OSDN Git Service

* tree-vectorizer.c (vect_print_dump_info): Print line
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2
3         * tree-vectorizer.c (vect_print_dump_info): Print line
4         number when dumping to a file.
5         (vectorize_loops): Add new messages to dump file.
6
7 2011-09-03  Martin Jambor  <mjambor@suse.cz>
8
9         * ipa-prop.h (ipa_jump_func_t): New typedef.
10         (struct ipa_edge_args): Removed field argument_count, field
11         jump_functions turned into a vector.
12         (ipa_set_cs_argument_count): Removed.
13         (ipa_get_cs_argument_count): Updated to work on vectors.
14         (ipa_get_ith_jump_func): Likewise.
15         * ipa-prop.c (ipa_count_arguments): Removed.
16         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
17         jump functions.  Update caller.
18         (compute_pass_through_member_ptrs): Likewise.
19         (compute_cst_member_ptr_arguments): Likewise.
20         (ipa_compute_jump_functions_for_edge): Get number of arguments from
21         the statement, allocate vector.
22         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
23         (duplicate_ipa_jump_func_array): Removed.
24         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
25         (ipa_read_node_info): Allocate vector.
26
27 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28
29         PR middle-end/50232
30         * config/pa/pa.md (return): Define "return" insn pattern.
31         (epilogue): Use it when no epilogue is needed.
32         * config/pa/pa.c (pa_can_use_return_insn): New function.
33         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
34
35 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
36
37         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
38         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
39         Force at least BITS_PER_UNIT alignment on the new variable.
40
41 2011-09-02  Gary Funck <gary@intrepid.com>
42
43         * opts.c (print_specific_help): Fix off-by-one compare in
44         assertion check.
45         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
46         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
47         Increase by +5 to allow for more languages.
48         * optc-gen.awk: Generate #if that ensures that the number of
49         languages is within the implementation-defined limit.
50
51 2011-09-02  Michael Matz  <matz@suse.de>
52
53         PR middle-end/50260
54         * ipa-split.c (split_function): Call add_referenced_var.
55
56         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
57         (cond_if_else_store_replacement_1): Ditto.
58         * tree-ssa-pre.c (get_representative_for): Ditto.
59         (create_expression_by_pieces): Ditto.
60         (insert_into_preds_of_block): Ditto.
61         * tree-sra.c (create_access_replacement): Ditto.
62         (get_replaced_param_substitute): Ditto.
63
64 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
65
66         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
67         automata_options.
68         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
69         (l1w, s1w, l2w, s2w): Define in the main automaton.
70         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
71         units.
72         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
73         (c6x_unit_names): Add the new units.
74         (c6x_unit_codes): New static array.
75         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
76         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
77         UNIT_QID_SIDE_OFFSET): New macros.
78         (RESERVATION_S2): Adjust value.
79         (c6x_option_override): Compute c6x_unit_codes.
80         (assign_reservations): Take the unit_mask of the last instruction
81         into account.  Detect floating point reservations by looking for
82         the new units.  Don't assign reservations if the field is already
83         nonzero.
84         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
85         (init_sched_state): Initialize it.
86         (c6x_clear_sched_context): Free it.
87         (insn_set_clock): Clear reservation.
88         (prev_cycle_state): New static variable.
89         (c6x_init_sched_context): Save it.
90         (c6x_sched_init): Allocate space for it and clear it.
91         (c6x_sched_dfa_pre_cycle_insn): New static function.
92         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
93         (c6x_variable_issue): Only record units in the unit_mask that
94         were not set at the start of the cycle.
95         (c6x_variable_issue): Compute and store the unit_mask from the
96         current state.
97         (reorg_split_calls): Ensure the new information remains correct.
98         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
99         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
100         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
101         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
102         Add special reservations.
103         * config/c6x/c6x-sched.md: Regenerate.
104
105 2011-09-02  Martin Jambor  <mjambor@suse.cz>
106
107         * ipa-prop.h (ipa_node_params): Removed fields
108         called_with_var_arguments and node_versionable.
109         (ipa_set_called_with_variable_arg): Removed.
110         (ipa_is_called_with_var_arguments): Likewise.
111         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
112         (determine_versionability): Do not check for type attributes and va
113         builtins.  Record versionability into inline summary.
114         (initialize_node_lattices): Do not check
115         ipa_is_called_with_var_arguments.
116         (propagate_constants_accross_call): Likewise, ignore arguments we do
117         not have PARM_DECLs for, set variable flag for parameters that were
118         not passed a value.
119         (create_specialized_node): Dump info that we cannot change signature.
120         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
121         number of arguments.
122         (ipa_make_edge_direct_to_target): Likewise.
123         (ipa_update_after_lto_read): Likewise.
124         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
125         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
126         they were remapped.
127
128 2011-09-02  Richard Guenther  <rguenther@suse.de>
129
130         PR tree-optimization/27460
131         PR middle-end/29269
132         * doc/md.texi (vcond): Document.
133         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
134         optab with two modes.
135         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
136         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
137         (vcond_optab): Adjust.
138         (vcondu_optab): Likewise.
139         (expand_vec_cond_expr_p): Adjust prototype.
140         * optabs.c (get_vcond_icode): Adjust.
141         (expand_vec_cond_expr_p): Likewise.
142         (expand_vec_cond_expr): Likewise.
143         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
144         vector type.
145         (vectorizable_condition): Allow differing types for comparison
146         and result.
147         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
148         for the comparison.
149         * config/i386/sse.md (vcond<mode>): Split to
150         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
151         vcond<V_128:mode><VI124_128:mode> and
152         vcondu<V_128:mode><VI124_128:mode>.
153         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
154         (vconduv2di): Likewise.
155         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
156         (vcondu<mode>): Likewise.
157         * config/ia64/vect.md (vcond<mode>): Likewise.
158         (vcondu<mode>): Likewise.
159         (vcondv2sf): Likewise.
160         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
161         * config/rs6000/paired.md (vcondv2sf): Likewise.
162         * config/rs6000/vector.md (vcond<mode>): Likewise.
163         (vcondu<mode>): Likewise.
164         * config/spu/spu.md (vcond<mode>): Likewise.
165         (vcondu<mode>): Likewise.
166
167 2011-09-02  Richard Guenther  <rguenther@suse.de>
168
169         * pretty-print.h (pp_unsigned_wide_integer): New.
170         * tree-pretty-print.c (dump_generic_node): Print unsigned
171         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
172
173 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
174
175         PR target/49987
176         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
177         valid CONST_VECTOR operands.
178         (rs6000_expand_vector_init): Likewise.
179
180 2011-09-02  Martin Jambor  <mjambor@suse.cz>
181
182         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
183         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
184         BINFO_VTABLE.  Parameter delta removed, all callers updated.
185         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
186         BINFO_VTABLE.
187         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
188         all calls.
189         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
190         handling of thunk_delta.
191         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
192         (devirtualization_time_bonus): Do not handle thunk deltas.
193         (ipcp_discover_new_direct_edges): Likewise.
194         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
195         (try_make_edge_direct_simple_call): Likewise.
196         (try_make_edge_direct_virtual_call): Likewise.
197         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
198         parameter set as unused.
199         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
200         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
201         parameter set as unused.
202         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
203         (input_edge_opt_summary): Likewise.
204         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
205         BINFO_VIRTUALS at all.
206         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
207
208 2011-09-02  Richard Guenther  <rguenther@suse.de>
209
210         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not
211         fold alloca (0).
212         (ccp_fold_stmt): Continue replacing args when folding
213         alloca fails.
214
215 2011-08-31  Richard Guenther  <rguenther@suse.de>
216
217         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
218         handling here, from ...
219         (expand_expr_real_1): ... here.
220         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
221         and VEC_COND_EXPR.
222         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
223         a GIMPLE_TERNARY_RHS.
224         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
225         and VEC_COND_EXPR here ...
226         (verify_gimple_assign_single): ... not here.
227         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
228         * tree-object-size.c (cond_expr_object_size): Adjust.
229         (collect_object_sizes_for): Likewise.
230         * tree-scalar-evolution.c (interpret_expr): Don't handle
231         ternary RHSs.
232         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and
233         simplify.
234         (ssa_forward_propagate_and_combine): Adjust.
235         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
236         as ternary.
237         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
238         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
239         * tree-vect-stmt.c (vectorizable_condition): Likewise.
240         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
241         (extract_range_from_assignment): Likewise.
242
243 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
244
245         * config/i386/i386.md: Use (match_test ...) for attribute tests.
246         * config/i386/mmx.md: Likewise.
247         * config/i386/sse.md: Likewise.
248         * config/i386/predicates.md (call_insn_operand): Use
249         (not (match_test "...")) instead of (match_test "!...")
250         * config/i386/constraints.md (w): Likewise.
251
252 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
253
254         * doc/md.texi: Describe the use of match_tests in attribute tests.
255         * rtl.def (MATCH_TEST): Update commentary.
256         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
257         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
258
259 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
260
261         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
262         (attr_string): Use copy_md_ptr_loc.
263
264 2011-08-31  Martin Jambor  <mjambor@suse.cz>
265
266         PR middle-end/49886
267         * ipa-inline-analysis.c (compute_inline_parameters): Set
268         can_change_signature of noes with typde attributes.
269         * ipa-split.c (split_function): Do not skip any arguments if
270         can_change_signature is set.
271
272 2011-08-31  Martin Jambor  <mjambor@suse.cz>
273
274         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
275         check removed.
276
277 2011-08-31  Richard Guenther  <rguenther@suse.de>
278
279         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
280         special-casing.
281
282 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
283
284         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
285
286 2011-08-31  Tom de Vries  <tom@codesourcery.com>
287
288         PR middle-end/43513
289         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
290         * tree-ssa-ccp.c (params.h): Include.
291         (fold_builtin_alloca_for_var): New function.
292         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
293
294 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
295
296         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
297         Handle FMA option.
298
299 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
300
301         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
302         b3 and b4 unsigned.
303
304 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
305
306         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
307         when code is SET.
308
309 2011-08-30  Richard Guenther  <rguenther@suse.de>
310
311         PR middle-end/48571
312         * gimple.h (maybe_fold_offset_to_address): Remove.
313         (maybe_fold_offset_to_reference): Likewise.
314         (maybe_fold_stmt_addition): Likewise.
315         (may_propagate_address_into_dereference): Likewise.
316         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
317         array references.
318         * gimple-fold.c (canonicalize_constructor_val): Likewise.
319         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
320         addresses instead.
321         (may_propagate_address_into_dereference): Remove.
322         (maybe_fold_offset_to_array_ref): Likewise.
323         (maybe_fold_offset_to_reference): Likewise.
324         (maybe_fold_offset_to_address): Likewise.
325         (maybe_fold_stmt_addition): Likewise.
326         (fold_gimple_assign): Do not reconstruct array references but
327         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
328         MEM_REF addresses.
329         (gimple_fold_stmt_to_constant_1): Likewise.
330         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
331         * gimplify.c (gimplify_conversion): Likewise.
332         (gimplify_expr): Likewise.
333
334 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
335
336         * config/i386/fmaintrin.h: New.
337         * config.gcc: Add fmaintrin.h.
338         * config/i386/i386.c
339         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
340         <IX86_BUILTIN_VFMADDSD3>: Likewise.
341         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
342         (*fmai_fmadd_<mode>): Likewise.
343         (*fmai_fmsub_<mode>): Likewise.
344         (*fmai_fnmadd_<mode>): Likewise.
345         (*fmai_fnmsub_<mode>): Likewise.
346         * config/i386/immintrin.h: Add fmaintrin.h.
347
348 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
349
350         * genautomata.c (NO_COMB_OPTION): New macro.
351         (no_comb_flag): New static variable.
352         (gen_automata_option): Handle NO_COMB_OPTION.
353         (comb_vect_p): False if no_comb_flag.
354         (add_vect): Move computation of min/max values.  Return early if
355         no_comb_flag.
356         * doc/md.texi (automata_option): Document no-comb-vect.
357
358         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
359         "__x86.get_pc_thunk".
360
361         * bb-reorder.c (insert_section_boundary_note): Only do it if
362         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
363
364 2011-08-30  Christian Bruel  <christian.bruel@st.com>
365
366         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
367         flag_profile_use.
368
369 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
370
371         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
372         to off.  Document switch.
373         * doc/invoke.texi (-msave-toc-indirect): Ditto.
374
375 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
376
377         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
378         conditionals and comments inside macro arguments.
379
380 20011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
381              Richard Guenther  <rguenther@suse.de>
382
383         * tree.h (constant_boolean_node): Adjust prototype.
384         * fold-const.c (fold_convert_loc): Move aggregate conversion
385         leeway down.
386         (constant_boolean_node): Make value parameter boolean, add
387         vector type handling.
388         (fold_unary_loc): Use constant_boolean_node.
389         (fold_binary_loc): Preserve types properly when folding
390         COMPLEX_EXPR <__real x, __imag x>.
391         * gimplify.c (gimplify_expr): Handle vector comparison.
392         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
393         comparison.
394         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
395         comparisons.
396
397 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
398
399         PR middle-end/48722
400         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
401         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
402         (verify_rtl_sharing): Likewise and verify_rtx_sharing
403         in there too.
404         (unshare_all_rtl_in_chain): For CALL_INSNs
405         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
406
407 2011-08-29  Richard Guenther  <rguenther@suse.de>
408
409         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
410         on the built ADDR_EXPR.
411
412 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
413
414         PR debug/50215
415         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
416         before adding ENTRY_VALUE to val->locs.
417
418 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
419
420         PR bootstrap/50218
421         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
422         comp.
423
424 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
425
426         * doc/rtl.texi (simple_return): Document.
427         (parallel, PATTERN): Here too.
428         * doc/md.texi (return): Mention it's allowed to expand to simple_return
429         in some cases.
430         (simple_return): Document standard pattern.
431         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
432         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
433         * reorg.c (function_return_label, function_simple_return_label):
434         New static variables, replacing...
435         (end_of_function_label): ... this.
436         (simplejump_or_return_p): New static function.
437         (optimize_skip, steal_delay_list_from_fallthrough,
438         fill_slots_from_thread): Use it.
439         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
440         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
441         (find_end_label): Take a new arg which is one of the two return
442         rtxs.  Depending on which, set either function_return_label or
443         function_simple_return_label.  All callers changed.
444         (make_return_insns): Make both kinds.
445         (dbr_schedule): Adjust for two kinds of end labels.
446         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
447         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
448         (gen_expand, gen_split): Use ANY_RETURN_P.
449         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
450         * rtl.def (SIMPLE_RETURN): New code.
451         * ifcvt.c (find_if_case_1): Be more careful about
452         redirecting jumps to the EXIT_BLOCK.
453         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
454         returnjump_p_1): Handle SIMPLE_RETURNs.
455         * print-rtl.c (print_rtx): Likewise.
456         * rtl.c (copy_rtx): Likewise.
457         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
458         * combine.c (simplify_set): Likewise.
459         * resource.c (find_dead_or_set_registers, mark_set_resources):
460         Likewise.
461         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
462         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
463         (init_emit_regs): Initialize simple_return_rtx.
464         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
465         force_nonfallthru_and_redirect.
466         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
467         (GR_SIMPLE_RETURN): New enum value.
468         (simple_return_rtx): New macro.
469         * basic-block.h (force_nonfallthru_and_redirect): Adjust
470         declaration.
471         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
472         argument.  All callers changed.  Be careful about what kinds of
473         returnjumps to generate.
474         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
475         ix86_pad_short_function): Likewise.
476         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
477         of return.
478         * config/mips/mips.md (any_return): New code_iterator.
479         (optab): Add cases for return and simple_return.
480         (return): Expand to a simple_return.
481         (simple_return): New pattern.
482         (*<optab>, *<optab>_internal for any_return): New patterns.
483         (return_internal): Remove.
484         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
485         a simple_return_internal.
486
487 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
488
489         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
490         (vec_extract_lo_<mode>): Prevent both operands in memory.
491         (vec_extract_lo_v16hi): Ditto.
492         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
493
494 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
495
496         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
497         (*sse2_mulv4si3): Ditto.
498         (mulv2di3): Ditto.
499         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
500         notes to REG_EQUAL.
501
502 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
503
504         PR target/50202
505         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
506         when all outputs are unused.
507         (sse4_2_pcmpistr): Ditto.
508
509 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
510
511         * config/i386/i386.md (round<mode>2): New expander.
512         * config/i386/i386.c (enum ix86_builtins): Add
513         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
514         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
515         descriptions.
516         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
517         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
518
519 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
520
521         PR middle-end/50083
522         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
523         only when TARGET_C99_FUNCTIONS.
524         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
525         <BUILT_IN_RINT{,F,L}>: Ditto.
526
527 2011-08-26  Michael Matz  <matz@suse.de>
528             Jakub Jelinek  <jakub@redhat.com>
529
530         PR lto/50165
531         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
532         don't call strlen twice, use memcpy.
533
534 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
535
536         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
537         * config/i386/bmiintrin.h: Likewise.
538         * config/i386/lzcntintrin.h: Likewise.
539
540         * config/i386/immintrin.h: Include <lzcntintrin.h>,
541         <bmiintrin.h> and <bmi2intrin.h>.
542
543 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
544
545         PR target/50166
546         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
547         * configure: Regenerate.
548
549 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
550
551         PR c/50179
552         * c-typeck.c (c_process_expr_stmt): Skip over nops and
553         call mark_exp_read even if exprv is ADDR_EXPR.
554
555 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
556
557         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
558         to df_set_dead_notes_for_mw.
559
560 2011-08-26  Richard Guenther  <rguenther@suse.de>
561
562         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
563
564 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
565             Tom de Vries  <tom@codesourcery.com>
566
567         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
568         (struct ivopts_data): Add loop_single_exit_p field.
569         (niter_for_exit): Change parameter desc_p into return value.  Return
570         desc if desc->may_be_zero.  Free desc if unused.
571         (niter_for_single_dom_exit): Change return type.
572         (find_induction_variables): Handle changed return type of
573         niter_for_single_dom_exit.  Dump may_be_zero.
574         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
575         (set_use_iv_cost): Add and handle comp parameter.
576         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
577         comp argument to set_use_iv_cost.
578         (strip_wrap_conserving_type_conversions, expr_equal_p)
579         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
580         (may_eliminate_iv): Add comp parameter.  Handle new return type of
581         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
582         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
583         and may_eliminate_iv.
584         (rewrite_use_compare): Move call to iv_elimination_compare to ...
585         (may_eliminate_iv): Here.
586         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
587
588 2011-08-26  Tom de Vries  <tom@codesourcery.com>
589
590         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
591         accessing TREE_TYPE.
592
593 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
594
595         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
596         (*ior_scc_scc_cmp): Likewise
597         (*and_scc_scc): Likewise.
598         (*and_scc_scc_cmp): Likewise.
599         (*and_scc_scc_nodom): Likewise.
600         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
601
602 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
603
604         * rtlanal.c (nonzero_bits1): Handle CLRSB.
605
606 2011-08-26  Richard Guenther  <rguenther@suse.de>
607
608         * expr.c (string_constant): Handle &MEM_REF.
609
610 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
611
612         * config/arm/arm.c (struct four_ints): New type.
613         (count_insns_for_constant): Delete function.
614         (find_best_start): Delete function.
615         (optimal_immediate_sequence): New function.
616         (optimal_immediate_sequence_1): New function.
617         (arm_gen_constant): Move constant splitting code to
618         optimal_immediate_sequence.
619         Rewrite constant negation/invertion code.
620
621 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
622
623         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
624         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
625         Remove prototype. Remove static function type.
626         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
627         Add arch attribute.
628         * config/arm/constraints.md (Pj, PJ): New constraints.
629
630 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
631
632         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
633         ("cortex_a9_multiply_long"): New and use above.  Handle all
634         long multiply cases.
635         ("cortex_a9_multiply"): Handle smmul and smmulr.
636         ("cortex_a9_mac"): Handle smmla.
637
638 2011-08-25  Richard Henderson  <rth@redhat.com>
639
640         PR 50132
641         PR 49864
642         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
643         non-constant stack adjutment.
644         * expr.c (find_args_size_adjust): Break out from ...
645         (fixup_args_size_notes): ... here.
646         * rtl.h (find_args_size_adjust): Declare.
647
648 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
649
650         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
651         sse4 and sse4_noavx.
652         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
653         (*pushdf_rex64): Change Y2 register constraint to x.
654         (*movdf_internal_rex64): Ditto.
655         (*zero_extendsidi2_rex64): Ditto.
656         (*movdi_internal): Change Y2 register constraint to x
657         and update "isa" attribute.
658         (*pushdf): Ditto.
659         (*movdf internal): Ditto.
660         (zero_extendsidi2_1): Ditto.
661         (*truncdfdf_mixed): Ditto.
662         (*truncxfdf2_mixed): Ditto.
663         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
664         register constraint to x.
665         (*movv2sf_internal_rex64): Ditto.
666         (*mov<mode>_internal): Change Y2 register constraint to x
667         and add "isa" attribute.
668         (*movv2sf_internal): Ditto.
669         (*vec_extractv2si_1): Ditto.
670         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
671         constraints to x and update "isa" attribute.
672         (*vec_interleave_highv2df): Change Y3 registerconstraint
673         to x and update "isa" attribute.
674         (*vec_interleave_lowv2df): Ditto.
675         (*vec_concatv2df): Change Y2 register constraint to x and
676         update "isa" attribute.
677         (sse2_loadld): Ditto.
678         (*vec_extractv2di_1): Ditto.
679         (*vec_dupv4si): Ditto.
680         (*vec_dupv2di): Ditto.
681         (*vec_concatv4si): Ditto.
682         (vec_concatv2di): Ditto.
683         * config/i386/constraints.md (Y2): Remove.
684         (Y3): Ditto.
685         (Y4): Ditto.
686
687 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
688
689         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
690         dump_def_use_chain): Don't declare.
691         (mark_conflict, create_new_chain): Move before users.
692         (regrename_optimize): Move to near end of file.
693
694 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
695
696         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
697         (secondary_input_reload_class): Remove Prototype.
698         * config/avr/avr.c (byte_immediate_operand): Remove Function.
699         * config/avr/avr.md (setmemhi): Use u8_operand.
700         (strlenhi): Use const0_rtx for comparison.
701         * config/avr/avr.h (avr_reg_order): Remove Declaration.
702
703 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
704
705         * config/avr/avr.c (reg_class_tab): Make local to
706         avr_regno_reg_class.  Return smallest register class available.
707
708 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
709
710         * config/avr/avr.c (STR_PREFIX_P): New Define.
711         (avr_asm_declare_function_name): Use it.
712         (avr_asm_named_section): Use it.
713         (avr_section_type_flags): Use it.
714
715 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
716
717         * doc/md.texi (automata_option): Document collapse-ndfa.
718         * genautomata.c (COLLAPSE_OPTION): New macro.
719         (collapse_flag): New static variable.
720         (struct description): New member normal_decls_num.
721         (struct automaton): New members advance_ainsn and collapse_ainsn.
722         (gen_automata_option): Check for COLLAPSE_OPTION.
723         (collapse_ndfa_insn_decl): New static variable.
724         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
725         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
726         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
727         necessary.  Use normal_decls_num rather than decls_num, remove
728         test for special decls.
729         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
730         (make_automaton); Likewise.  Use the new advance_cycle_insn member
731         of struct automaton.
732         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
733         is set.
734         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
735         transition.  Create the necessary transitions for it.
736         (create_ainsns): Return void.  Take an automaton_t argument, and
737         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
738         callers changed.
739         (COLLAPSE_NDFA_VALUE_NAME): New macro.
740         (output_tables): Output code to define it.
741         (output_internal_insn_code_evaluation): Output code to accept
742         const0_rtx as collapse-ndfa transition.
743         (output_default_latencies, output_print_reservation_func,
744         output_print_description): Reorganize loops to use normal_decls_num
745         as loop bound; remove special case for advance_cycle_insn_decl.
746         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
747         (check_automata_insn_issues): Check for collapse_ainsn.
748         (expand_automate): Allocate sufficient space.  Initialize
749         normal_decls_num.
750
751 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
752
753         * config/avr/avr.md: Fix indentation from r177991.
754
755 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
756
757         * regrename.c (struct du_head): Remove member terminated.
758         (create_new_chain): Don't initialize it.
759         (scan_rtx_reg): Don't set or test it, test the open_chains_set
760         bitmap instead.
761         (tick, this_tick): New global variables, moved out of
762         regrename_optimize.
763         (current_id, open_chains, closed_chains, open_chains_set,
764         live_in_chains, live_hard_regs): Reorder declarations.
765         (dump_def_use_chain): Move function earlier in the file.
766         (rename_chains): New static function, broken out of
767         regrename_optimize.
768         (regrename_optimize): Use it.  Remove #if 0'ed code.
769
770 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
771
772         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
773
774 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
775
776         PR target/50172
777         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
778
779 2011-08-24  Richard Guenther  <rguenther@suse.de>
780
781         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
782         ref in the basic-block case.  Move stripping array-refs
783         to the place we create an access-function for it.  Remove
784         bogus stripping down a MEM_REF to its base.
785
786 2011-08-24  Richard Guenther  <rguenther@suse.de>
787
788         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
789         with -fno-strict-overflow.
790
791 2011-08-24  Richard Guenther  <rguenther@suse.de>
792
793         * tree-vectorizer.c (vect_print_dump_info): Avoid the
794         file and location clutter when dumping to dump files.
795
796 2011-08-24  Simon Baldwin  <simonb@google.com>
797
798         * gengtype-state.c (write_state): Remove timestamped header line.
799
800 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
801
802         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
803         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
804         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
805         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
806         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
807         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
808         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
809         rules.
810         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
811
812 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
813
814         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
815
816 2011-08-24  Richard Guenther  <rguenther@suse.de>
817
818         PR tree-optimization/50067
819         * tree-data-ref.c (dr_analyze_indices): Do not add an access
820         function for a MEM_REF base that has no evolution in the loop
821         nest or that is not analyzable.
822
823 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
824
825         * ira.c (ira_init_register_move_cost): Check small subclasses
826         through ira_reg_class_max_nregs and ira_available_class_regs.
827
828 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
829
830         * config/i386/constraints.md (Yp): New register constraint.
831         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
832         Yp register constraint.
833         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
834         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
835         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
836
837 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
838
839         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
840
841 2011-08-23  Mark Heffernan  <meheff@google.com>
842
843         PR middle-end/38509
844         * common.opt (Wfree-nonheap-object): New option.
845         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
846         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
847         to warning.
848         (expand_builtin): Make warning conditional.
849
850 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
851
852         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
853         (length_immediate): Handle imulx, ishiftx and rotatex.
854         (imm_disp): Ditto.
855         (isa): Add bmi2.
856         (enabled): Handle bmi2.
857         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
858         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
859         (*bmi2_umulditi3_1): New insn pattern.
860         (*bmi2_umulsidi3_1): Ditto.
861         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
862         (*bmi2_ashl<mode>3_1): New insn pattern.
863         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
864         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
865         (*bmi2_ashlsi3_1_zext): New insn pattern.
866         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
867         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
868         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
869         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
870         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
871         flags dependency.
872         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
873         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
874         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
875         flags dependency.
876         (*bmi2_rorx<mode>3_1): New insn pattern.
877         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
878         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
879         (*rotatert<mode>3_1 splitter): Ditto.
880         (*bmi2_rorxsi3_1_zext): New insn pattern.
881         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
882         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
883         (*rotatertsi3_1_zext splitter): Ditto.
884
885 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
886
887         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
888         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
889         (ix86_handle_option): Handle OPT_mbmi2 case.
890         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
891         (x86_64-*-*): Likewise.
892         * config/i386/bmi2intrin.h: New file.
893         * config/i386/cpuid.h (bit_BMI2): New.
894         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
895         BMI2 feature.
896         * config/i386/i386-c.c (ix86_target_macros_internal):
897         Conditionally define __BMI2__.
898         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
899         Handle BMI2 option.
900         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
901         (print_reg): New code.
902         (ix86_print_operand): Likewise.
903         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
904         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
905         IX86_BUILTIN_PEXT64.
906         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
907         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
908         IX86_BUILTIN_PEXT64.
909         * config/i386/i386.h (TARGET_BMI2): New.
910         * config/i386/i386.md (UNSPEC_PDEP): New.
911         (UNSPEC_PEXT): Likewise.
912         (*bmi2_bzhi_<mode>3): Likewise.
913         (*bmi2_pdep_<mode>3): Likewise.
914         (*bmi2_pext_<mode>3): Likewise.
915         * config/i386/i386.opt (mbmi2): New.
916         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
917         is defined.
918         * doc/extend.texi: Document BMI2 built-in functions.
919         * doc/invoke.texi: Document -mbmi2.
920
921 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
922
923         PR middle-end/50161
924         * simplify-rtx.c (simplify_const_unary_operation): If
925         op is CONST_INT, don't look at op_mode, but use instead mode.
926         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
927         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
928         operation and TRUNCATE/ZERO_EXTEND if needed.
929         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
930         Document that operand mode must be same as operation mode,
931         or VOIDmode.
932         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
933         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
934         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
935         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
936         use the mode of operand for the operation and add truncate
937         or zero_extend around if needed.
938         * config/c6x/c6x.md (ctzdi2): Likewise.
939         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
940
941 2011-08-12  Michael Matz  <matz@suse.de>
942
943         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
944         (gimple_expand_cfg): Merge alignment info for coalesced pointer
945         SSA names.
946
947 2011-08-23  Richard Guenther  <rguenther@suse.de>
948
949         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
950         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
951         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
952         from ...
953         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
954         (mem_refs_may_alias_p): Adjust.
955         * tree-data-ref.h (dr_may_alias_p): Adjust.
956         * tree-data-ref.c: Include tree-affine.h.
957         (dr_analyze_indices): Do nothing for the non-loop case.
958         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
959         more cases in the non-loop case.
960         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
961         calls to dr_may_alias_p.
962         (write_alias_graph_to_ascii_ecc): Likewise.
963         (write_alias_graph_to_ascii_dot): Likewise.
964         (build_alias_set_optimal_p): Likewise.
965
966 2011-08-23  Richard Guenther  <rguenther@suse.de>
967
968         PR tree-optimization/50162
969         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
970
971 2011-08-23  Richard Guenther  <rguenther@suse.de>
972
973         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
974         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
975         (create_data_ref): Also dump access functions for the created data-ref.
976
977 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
978             Kirill Yukhin  <kirill.yukhin@intel.com>
979
980         PR target/50155
981         * config/i386/sse.md (VI_AVX2): New.
982         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
983         (*<plusminus_insn><mode>3): Ditto.
984         (<sse2_avx2>_andnot<mode>3): Ditto.
985         (*andnot<mode>3): Fix order of cond operands.
986         Add asserts for correct TARGET_xxx.
987         (*<any_logic:code><mode>3): Ditto.
988
989 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
990
991         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
992         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
993         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
994         regclass argument type to reg_class_t. Change 'max' and 'v' vars
995         and return types to unsigned char. Use reg_class_contents instead
996         of class_contents.
997         (TARGET_CLASS_MAX_NREGS): Define.
998
999 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1000
1001         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1002         to make computed_jump_p return true.
1003
1004 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1005
1006         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1007         (PICFLAG_FOR_TARGET): Substitute.
1008         * aclocal.m4: Regenerate.
1009         * configure: Regenerate.
1010
1011 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1012
1013         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1014         after reading in the pch.
1015
1016 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1017
1018         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1019         * configure: Regenerated.
1020
1021 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1022
1023         PR tree-optimization/50133
1024         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1025         from stmt instead of some statement around gsi.
1026
1027         PR middle-end/50141
1028         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1029         innerdecl is a VAR_DECL.
1030
1031 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1032
1033         * config/i386/avx2intrin.h: New file.
1034         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1035         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1036         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1037         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1038         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1039         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1040         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1041         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1042         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1043         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1044         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1045         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1046         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1047         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1048         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1049         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1050         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1051         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1052         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1053         VOID_FTYPE_PV8SI_V8SI_V8SI,
1054         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1055         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1056         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1057         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1058         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1059         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1060         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1061         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1062         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1063         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1064         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1065         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1066         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1067         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1068         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1069         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1070         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1071         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1072         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1073         V4DI_FTYPE_V4DI_INT_CONVERT,
1074         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1075         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1076         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1077         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1078         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1079         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1080         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1081         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1082         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1083         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1084         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1085         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1086         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1087         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1088         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1089         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1090         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1091         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1092         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1093         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1094         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1095         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1096         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1097         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1098         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1099         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1100         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1101         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1102         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1103         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1104         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1105         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1106         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1107         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1108         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1109         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1110         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1111         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1112         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1113         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1114         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1115         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1116         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1117         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1118         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1119         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1120         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1121         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1122         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1123         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1124         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1125         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1126         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1127         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1128         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1129         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1130         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1131         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1132         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1133         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1134         IX86_BUILTIN_VBROADCASTSS_PS256,
1135         IX86_BUILTIN_VBROADCASTSD_PD256,
1136         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1137         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1138         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1139         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1140         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1141         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1142         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1143         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1144         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1145         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1146         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1147         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1148         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1149         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1150         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1151         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1152         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1153         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1154         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1155         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1156         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1157         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1158         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1159         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1160         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1161         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1162         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1163         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1164         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1165         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1166         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1167         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1168         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1169         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1170         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1171         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1172         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1173         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1174         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1175         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1176         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1177         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1178         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1179         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1180         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1181         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1182         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1183         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1184         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1185         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1186         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1187         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1188         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1189         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1190         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1191         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1192         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1193         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1194         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1195         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1196         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1197         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1198         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1199         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1200         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1201         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1202         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1203         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1204         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1205         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1206         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1207         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1208         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1209         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1210         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1211         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1212         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1213         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1214         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1215         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1216         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1217         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1218         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1219         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1220         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1221         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1222         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1223         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1224         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1225         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1226         IX86_BUILTIN_VBROADCASTSD_PD256,
1227         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1228         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1229         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1230         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1231         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1232         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1233         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1234         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1235         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1236         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1237         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1238         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1239         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1240         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1241         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1242         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1243         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1244         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1245         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1246         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1247         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1248         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1249         IX86_BUILTIN_GATHERDIV8SI.
1250         (ix86_preferred_simd_mode): Support AVX2 modes.
1251         (ix86_expand_args_builtin): Support AVX2 builtins.
1252         (ix86_expand_special_args_builtin): Likewise.
1253         (ix86_expand_builtin): Likewise.
1254         * config/i386/i386.md (UNSPEC_VPERMSI): New.
1255         (UNSPEC_VPERMDF): Likewise.
1256         (UNSPEC_VPERMSF): Likewise.
1257         (UNSPEC_VPERMDI): Likewise.
1258         (UNSPEC_VPERMTI): Likewise.
1259         (UNSPEC_GATHER): Likewise.
1260         (ssemodesuffix): Extend.
1261         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1262         is defined.
1263         * config/i386/predicates.md (const1248_operand): New.
1264         * config/i386/sse.md (VI1_AVX2): New mode iterator.
1265         (VI2_AVX2): Likewise.
1266         (VI4_AVX2): Likewise.
1267         (VI8_AVX2): Likewise.
1268         (VIMAX_AVX2): Likewise.
1269         (SSESCALARMODE): Likewise.
1270         (VI12_AVX2): Likewise.
1271         (VI24_AVX2): Likewise.
1272         (VI124_AVX2): Likewise.
1273         (VI248_AVX2): Likewise.
1274         (VI48_AVX2): Likewise.
1275         (VI4SD_AVX2): Likewise.
1276         (V48_AVX2): Likewise.
1277         (AVX256MODE2P): Likewise.
1278         (AVXMODE48P_DI): Likewise.
1279         (sse2_avx2): New mode attribute.
1280         (ssse3_avx2): Likewise.
1281         (sse4_1_avx2): Likewise.
1282         (avx_avx2): Likewise.
1283         (ssebytemode): Likewise.
1284         (AVXTOSSEMODE): Likewise.
1285         (AVXMODE48P_DI): Likewise.
1286         (gthrfirstp): Likewise.
1287         (gthrlastp): Likewise.
1288         (lshift): New code_iterator
1289         (lshift): New code attribute.
1290         (lshift): Likewise.
1291         (ssescalarmodesuffix): Update.
1292         (sseunpackmode): Likewise.
1293         (ssepackmode): Likewise.
1294         (avx2_vec_dupv4sf): New insn pattern.
1295         (avx2_vec_dupv8sf): Likewise.
1296         (avx2_interleave_highv4di): Likewise.
1297         (avx2_interleave_lowv4di): Likewise.
1298         (avx2_umulv4siv4di3): Likewise
1299         (*avx2_umulv4siv4di3): Likewise
1300         (avx2_pmaddwd): Likewise.
1301         (*avx2_pmaddwd): Likewise.
1302         (avx2_lshrqv4di3): Likewise.
1303         (avx2_lshlqv4di3): Likewise.
1304         (avx2_lshl<mode>3): Likewise.
1305         (avx2_<umaxmin:code><mode>3): Likewise.
1306         (*avx2_<umaxmin:code><mode>3): Likewise.
1307         (avx2_<smaxmin:code><mode>3): Likewise.
1308         (*avx2_<smaxmin:code><mode>3): Likewise.
1309         (avx2_eq<mode>3): Likewise.
1310         (*avx2_eq<mode>3): Likewise.
1311         (avx2_gt<mode>3): Likewise.
1312         (avx2_interleave_highv32qi): New.
1313         (avx2_interleave_lowv32qi): Likewise.
1314         (avx2_interleave_highv16hi): Likewise.
1315         (avx2_interleave_lowv16hi): Likewise.
1316         (avx2_interleave_highv8si): Likewise.
1317         (avx2_interleave_lowv8si): Likewise.
1318         (avx2_pshufd): Likewise.
1319         (avx2_pshufd_1): Likewise.
1320         (avx2_pshuflwv3): Likewise.
1321         (avx2_pshuflw_1): Likewise.
1322         (avx2_pshufhwv3): Likewise.
1323         (avx2_pshufhw_1): Likewise.
1324         (avx2_uavgv32qi3): Likewise.
1325         (*avx2_uavgv32qi3): Likewise.
1326         (avx2_uavgv16hi3): Likewise.
1327         (*avx2_uavgv16hi3): Likewise.
1328         (avx2_pmovmskb): Likewise.
1329         (avx2_phaddwv16hi3): Likewise.
1330         (avx2_phadddv8si3): Likewise.
1331         (avx2_phaddswv16hi3): Likewise.
1332         (avx2_phsubwv16hi3): Likewise.
1333         (avx2_phsubdv8si3): Likewise.
1334         (avx2_phsubswv16hi3): Likewise.
1335         (avx2_pmaddubsw256): Likewise.
1336         (avx2_umulhrswv16hi3): Likewise.
1337         (*avx2_umulhrswv16hi3): Likewise.
1338         (avx2_packusdw): Likewise.
1339         (avx2_pblendd<mode>): Likewise.
1340         (avx2_<code>v16qiv16hi2): Likewise.
1341         (avx2_<code>v8qiv8si2): Likewise.
1342         (avx2_<code>v8hiv8si2): Likewise.
1343         (avx2_<code>v4qiv4di2): Likewise.
1344         (avx2_<code>v4hiv4di2): Likewise.
1345         (avx2_<code>v4siv4di2): Likewise.
1346         (avx2_pbroadcast<mode>): Likewise.
1347         (avx2_permvarv8si): Likewise.
1348         (avx2_permv4df): Likewise.
1349         (avx2_permvarv8sf): Likewise.
1350         (avx2_permv4di): Likewise.
1351         (avx2_permv2ti): Likewise.
1352         (avx2_vec_dupv4df): Likewise.
1353         (avx2_vbroadcasti128_<mode>): Likewise.
1354         (avx2_vec_set_lo_v4di): Likewise.
1355         (avx2_vec_set_hi_v4di): Likewise.
1356         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1357         (avx2_extracti128): Likewise.
1358         (avx2_inserti128): Likewise.
1359         (avx2_ashrvv8si): Likewise.
1360         (avx2_ashrvv4si): Likewise.
1361         (avx2_<lshift>vv8si): Likewise.
1362         (avx2_<lshift>v<mode>): Likewise.
1363         (avx2_<lshift>vv2di): Likewise.
1364         (avx2_gathersi<mode>): Likewise.
1365         (*avx2_gathersi<mode>): Likewise.
1366         (avx2_gatherdi<mode>): Likewise.
1367         (*avx2_gatherdi<mode>): Likewise.
1368         (avx2_gatherdi<mode>256): Likewise.
1369         (*avx2_gatherdi<mode>256): Likewise.
1370         (<plusminus_insn><mode>3): Use VI mode iterator.
1371         (*<plusminus_insn><mode>3): Use VI mode iterator.
1372         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1373         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1374         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1375         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1376         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
1377         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
1378         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1379         Use VI2_AVX2 mode iterator.
1380         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1381         Use VI2_AVX2 mode iterator.
1382         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
1383         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
1384         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1385         Use VI4_AVX2 mode iterator.
1386         (ashr<mode>3): Use VI24_AVX2 mode iterator.
1387         (lshr<mode>3): Use VI248_AVX2 mode iterator.
1388         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1389         Use VIMAX_AVX2 mode iterator.
1390         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1391         Use VI mode iterator.
1392         (*andnot<mode>3): Update for AVX2.
1393         (*<any_logic:code><mode>3): Likewise.
1394         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1395         Use VI1_AVX mode iterator.
1396         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
1397         Use VI2_AVX mode iterator.
1398         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1399         Use VI1_AVX mode iterator.
1400         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1401         Use VI8_AVX2 mode iterator.
1402         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1403         Use VI1_AVX2 mode iterator.
1404         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1405         Use VI124_AVX2 mode iterator.
1406         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1407         Use SSESCALARMODE mode iterator.
1408         (abs<mode>2): Use VI124_AVX2 mode iterator.
1409         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1410         Use VI8_AVX2 mode iterator.
1411         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1412         Use VI1_AVX2 mode iterator.
1413         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1414         Use VI1_AVX2 mode iterator.
1415         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1416         Use VI2_AVX2 mode iterator.
1417         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1418         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1419         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1420         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1421         Use V48_AVX2 mode iterator.
1422         * doc/extend.texi: Document AVX2 built-in functions.
1423         * doc/invoke.texi: Document -mavx2.
1424
1425 2011-08-22  Matthias Klose <doko@debian.org>
1426
1427         Revert:
1428         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1429                     Matthias Klose <doko@debian.org>
1430         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1431         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1432         convention.
1433         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1434
1435 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1436
1437         PR bootstrap/50146
1438         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1439         to #ifndef HONOR_REG_ALLOC_ORDER block.
1440
1441 2011-08-21  Richard Henderson  <rth@redhat.com>
1442
1443         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1444         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1445         * resource.c (next_insn_no_annul): Likewise.
1446         (mark_set_resources): Likewise.
1447         * reorg.c (delete_from_delay_slot): Likewise.
1448         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1449         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1450
1451 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1452
1453         * config/i386/i386.md (any_div): Remove.
1454         (sgnprefix): Update for removal.
1455         (u): Ditto.
1456
1457 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1458
1459         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1460         for ira_reg_class_max_nregs.  Increase pressure by 1.
1461         (mark_pseudo_regno_subword_dead): Use allocno class
1462         for ira_reg_class_max_nregs.
1463
1464 2011-08-20  Richard Henderson  <rth@redhat.com>
1465
1466         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1467         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1468         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1469         config/c6x/ltf.c: Adjust include path for soft-fp.
1470
1471 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1472
1473         PR other/46770
1474         * config.gcc (tm_file): Add initfini-array.h if
1475         .init_arrary/.fini_array are supported.
1476
1477         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1478         USE_INITFINI_ARRAY is defined.
1479
1480         * output.h (default_elf_init_array_asm_out_constructor): New.
1481         (default_elf_fini_array_asm_out_destructor): Likewise.
1482         * varasm.c (elf_init_array_section): Likewise.
1483         (elf_fini_array_section): Likewise.
1484         (get_elf_initfini_array_priority_section): Likewise.
1485         (default_elf_init_array_asm_out_constructor): Likewise.
1486         (default_elf_fini_array_asm_out_destructor): Likewise.
1487
1488         * config/initfini-array.h: New.
1489
1490 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1491
1492         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1493         OK for ST_REGS and FP_REGS before taking those classes into account.
1494
1495 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1496
1497         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1498         before checking for annulled branches.
1499
1500 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1501
1502         * config/i386/i386.c (ix86_binary_operator_ok): Use
1503         satisfies_constraint_L.
1504
1505 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1506             Michael Matz  <matz@suse.de>
1507
1508         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1509         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1510
1511 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1512
1513         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1514         * doc/tm.texi: Regenerate.
1515         * targhooks.c (default_preferred_output_reload_class): Don't use
1516         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1517         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1518
1519 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR tree-optimization/48739
1522         * tree-ssa.c: Include cfgloop.h.
1523         (execute_update_addresses_taken): When updating ssa, if in loop closed
1524         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1525         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1526
1527 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1528
1529         PR rtl-optimization/49936
1530         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1531         for calculation of max register move costs.
1532
1533 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1534
1535         * c-parser.c (c_parser_postfix_expression): Convert operands of
1536         __builtin_complex to their semantic types.
1537
1538 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1539
1540         PR middle-end/49721
1541         * explow.c (convert_memory_address_addr_space): Also permute the
1542         conversion and addition of constant for zero-extend.
1543
1544 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1547         * doc/extend.texi (__builtin_complex): Document.
1548
1549 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1550
1551         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1552         beyond conversions.
1553         (convert_mult_to_widen): Convert constant inputs to the right type.
1554         (convert_plusminus_to_widen): Don't automatically reject inputs that
1555         are not an SSA_NAME.
1556         Convert constant inputs to the right type.
1557
1558 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1559
1560         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1561         to the correct type.
1562
1563 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1564
1565         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1566         unsigned inputs of different modes.
1567         (convert_plusminus_to_widen): Likewise.
1568
1569 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1570
1571         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1572         'type'.
1573         Use 'type' from caller, not inferred from 'rhs'.
1574         Don't reject non-conversion statements. Do return lhs in this case.
1575         (is_widening_mult_p): Add new argument 'type'.
1576         Use 'type' from caller, not inferred from 'stmt'.
1577         Pass type to is_widening_mult_rhs_p.
1578         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1579         (convert_plusminus_to_widen): Likewise.
1580
1581 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1582
1583         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1584         Ensure the the larger type is the first operand.
1585
1586 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1587
1588         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1589         unsupported unsigned multiplies to signed.
1590         (convert_plusminus_to_widen): Likewise.
1591
1592 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1593
1594         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1595         conversion statement separating multiply-and-accumulate.
1596
1597 2011-08-19  Richard Guenther  <rguenther@suse.de>
1598
1599         PR tree-optimization/50067
1600         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1601         offset only if we accounted for it.
1602
1603 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1604
1605         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1606         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1607         * optabs.c (find_widening_optab_handler_and_mode): New function.
1608         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1609         (expand_binop_directly): Likewise.
1610         (expand_binop): Likewise.
1611         * optabs.h (find_widening_optab_handler): New macro define.
1612         (find_widening_optab_handler_and_mode): New prototype.
1613         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1614         type precision rules.
1615         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1616         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1617         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1618         Explicitly disallow mis-matched input types.
1619         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1620         input types to fit the new handler.
1621         (convert_plusminus_to_widen): Likewise.
1622
1623 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1624
1625         * expr.c (expand_expr_real_2): Use widening_optab_handler.
1626         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1627         (gen_insn): $N now means $a must be wider than $b, not consecutive.
1628         * optabs.c (widened_mode): New function.
1629         (expand_widen_pattern_expr): Use widening_optab_handler.
1630         (expand_binop_directly): Likewise.
1631         (expand_binop): Likewise.
1632         * optabs.h (widening_optab_handlers): New struct.
1633         (optab_d): New member, 'widening'.
1634         (widening_optab_handler): New function.
1635         (set_widening_optab_handler): New function.
1636         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1637         widening_optab_handler.
1638         (convert_plusminus_to_widen): Likewise.
1639
1640 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1641
1642         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1643         pedantic.
1644         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1645         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1646
1647 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1648
1649         * opth-gen.awk: Do not declare target save/restore structures and
1650         functions if IN_RTS defined.
1651
1652 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1653
1654         PR target/49437
1655         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1656         when stack was realigned in interrupt handler prologue.
1657
1658 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1659
1660         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1661         (quals_from_declspecs): Assert _Noreturn not present.
1662         (grokdeclarator): Handle _Noreturn.
1663         (build_null_declspecs): Initialize noreturn_p.
1664         (declspecs_add_scspec): Handle RID_NORETURN.
1665         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1666         (c_parser_attributes): Handle RID_NORETURN.
1667         * c-tree.h (struct c_declspecs): Add noreturn_p.
1668         * ginclude/stdnoreturn.h: New.
1669         * Makefile.in (USER_H): Add stdnoreturn.h.
1670
1671 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1672
1673         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1674         (OPTION_MASK_ISA_AVX_UNSET): Update.
1675         (OPTION_MASK_ISA_AVX2_UNSET): New.
1676         (ix86_handle_option): Handle OPT_mavx2 case.
1677         * config/i386/cpuid.h (bit_AVX2): New.
1678         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1679         AVX2 feature.
1680         * config/i386/i386-c.c (ix86_target_macros_internal):
1681         Conditionally define __AVX2__.
1682         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1683         Define "core-avx2" processor alias.  Handle avx2 option.
1684         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1685         * config/i386/i386.h (TARGET_AVX2): New.
1686         * config/i386/i386.opt (mavx2): New.
1687         * doc/invoke.texi: Document -mavx2.
1688
1689 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
1690
1691         PR rtl-optimization/49890
1692         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1693         subclasses of class which is superset of a pressure class.
1694
1695 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1696             Igor Zamyatin <igor.zamyatin@intel.com>
1697
1698         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1699         with HOST_WIDE_INT for isa_flag.
1700         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1701         isa variables.
1702
1703         * config/i386/i386.c (ix86_target_string): Replace int with
1704         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
1705         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1706         (pta_flags): Removed.
1707         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1708         (pta): Use HOST_WIDE_INT on flags.
1709         (builtin_isa): Use HOST_WIDE_INT on isa.
1710         (ix86_add_new_builtins): Likewise.
1711         (def_builtin): Use HOST_WIDE_INT on mask.
1712         (def_builtin_const): Likewise.
1713         (builtin_description): Likewise.
1714
1715         * config/i386/i386.opt (ix86_isa_flags): Replace int with
1716         HOST_WIDE_INT.
1717         (ix86_isa_flags_explicit): Likewise.
1718         (x_ix86_isa_flags_explicit): Likewise.
1719
1720 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
1721
1722         PR rtl-optimization/50107
1723         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1724         (ira_hard_reg_in_set_p): New.
1725
1726         * ira-color.c (calculate_saved_nregs): New.
1727         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
1728         hard regs.
1729         (allocno_reload_assign, fast_allocation): Use
1730         ira_hard_reg_set_intersection_p instead of
1731         ira_hard_reg_not_in_set_p.
1732
1733         * ira.c (setup_reg_renumber): Use
1734         ira_hard_reg_set_intersection_p instead of
1735         ira_hard_reg_not_in_set_p.
1736         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1737         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1738
1739         * ira-costs.c (ira_tune_allocno_costs): Use
1740         ira_hard_reg_set_intersection_p instead of
1741         ira_hard_reg_not_in_set_p.
1742
1743 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1744             Igor Zamyatin <igor.zamyatin@intel.com>
1745
1746         * hwint.h (HOST_WIDE_INT_1): New.
1747
1748         * opt-functions.awk (switch_bit_fields): Initialize the
1749         host_wide_int field.
1750         (host_wide_int_var_name): New.
1751         (var_type_struct): Check and return HOST_WIDE_INT.
1752
1753         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1754
1755         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1756
1757         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
1758         check masks for HOST_WIDE_INT.
1759
1760         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1761         (option_enabled): Likewise.
1762         (get_option_state): Likewise.
1763
1764         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
1765         to HOST_WIDE_INT.
1766
1767 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1768             Marc Glisse  <marc.glisse@normalesup.org>
1769
1770         PR libstdc++-v3/1773
1771         * target.def (decl_mangling_context): New C++ hook.
1772         * doc/tm.texi: Regenerate.
1773         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1774         * config/sol2-protos.h: Group by source file.
1775         (solaris_cxx_decl_mangling_context): Declare.
1776         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1777         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1778         Use $<.
1779         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1780         Add sol2-stubs.o to extra_objs.
1781
1782 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1783
1784         PR target/50009
1785         * stor-layout.c (update_alignment_for_field): Don't ICE on
1786         packed flexible array members if ms_bitfield_layout_p.
1787
1788         PR target/50092
1789         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1790         on the result before returning it.
1791
1792         PR debug/50017
1793         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1794         is a debug stmt, use location of the first non-debug stmt after it.
1795
1796 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1797
1798         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1799         (arm_size_rtx_costs): Likewise.
1800
1801 2011-08-18  Richard Guenther  <rguenther@suse.de>
1802
1803         * tree.h (tree_int_cst_msb): Remove.
1804         * tree.c (tree_int_cst_msb): Likewise.
1805         (tree_int_cst_sign_bit): Move from ...
1806         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1807
1808 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1809
1810         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1811         * doc/tm.texi: Regenerate.
1812         * target.def (rtx_costs): Add an opno parameter.
1813         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1814         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1815         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1816         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1817         * cse.c (COST_IN): Add an opno parameter.
1818         (notreg_cost): Likewise.  Update call to rtx_cost.
1819         (COST, fold_rtx): Update accordingly.
1820         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1821         * expmed.c (emit_store_flag): Likewise.
1822         * optabs.c (avoid_expensive_constant): Add an opno parameter.
1823         Update call to rtx_cost.
1824         (expand_binop_directly, expand_binop): Likewise.
1825         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1826         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1827         (set_src_cost, get_full_set_src_cost): Update accordingly.
1828         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
1829         to target hook.
1830         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
1831         (default_adress_cost): Update calls to rtx_cost.
1832
1833         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1834         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1835         (arm_rtx_costs): Add an opno parameter.
1836         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1837         adjust any recursive rtx-cost calls.
1838         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1839         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1840         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1841         * config/cris/cris.c (cris_rtx_costs): Likewise.
1842         * config/frv/frv.c (frv_rtx_costs): Likewise.
1843         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1844         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1845         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1846         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1847         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1848         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1849         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1850         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1851         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1852         * config/mep/mep.c (mep_rtx_cost): Likewise.
1853         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1854         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1855         (mips_zero_extend_cost): Add an opno parameter.
1856         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1857         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1858         to rtx_cost.
1859         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1860         rtx-cost calls.
1861         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1862         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1863         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1864         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1865         (rs6000_debug_rtx_costs): Likewise.
1866         * config/s390/s390.c (s390_rtx_costs): Likewise.
1867         * config/score/score-protos.h (score_rtx_costs): Likewise.
1868         * config/score/score.c (score_rtx_costs): Likewise.
1869         * config/sh/sh.c (andcosts): Update call to rtx_cost.
1870         (sh_rtx_costs): Add an opno parameter.
1871         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1872         * config/spu/spu.c (spu_rtx_costs): Likewise.
1873         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1874         * config/v850/v850.c (v850_rtx_costs): Likewise.
1875         * config/vax/vax.c (vax_rtx_costs): Likewise.
1876         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1877
1878 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1879
1880         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1881         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1882         rtx_cost.
1883         * calls.c (precompute_register_parameters): Likewise.
1884         * combine.c (expand_compound_operation, make_extraction): Likewise.
1885         (force_to_mode, distribute_and_simplify_rtx): Likewise.
1886         * dse.c (find_shift_sequence): Likewise.
1887         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1888         * expr.c (compress_float_constant): Likewise.
1889         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1890         * gcse.c (want_to_gcse_p): Likewise.
1891         * ifcvt.c (noce_try_sign_mask): Likewise.
1892         * loop-doloop.c (doloop_optimize): Likewise.
1893         * loop-invariant.c (create_new_invariant): Likewise.
1894         * optabs.c (avoid_expensive_constant): Likewise.
1895         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1896         (try_replace_in_use, reload_cse_move2add): Likewise.
1897         * reload1.c (calculate_elim_costs_all_insns): Likewise.
1898         (note_reg_elim_costly): Likewise.
1899         * rtlanal.c (insn_rtx_cost): Likewise.
1900         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1901         * stmt.c (lshift_cheap_p): Likewise.
1902         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1903         * config/avr/avr.c (final_prescan_insn): Likewise.
1904         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1905         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1906
1907 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1908
1909         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
1910         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
1911         * cfgloopanal.c (seq_cost): Likewise.
1912         * loop-invariant.c (create_new_invariant): Likewise.
1913         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
1914         (reload_cse_move2add): Use get_full_set_rtx_cost.
1915
1916 2011-08-18  Richard Guenther  <rguenther@suse.de>
1917
1918         * expr.c (get_inner_reference): Fix typo in last change.
1919
1920 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1921             Joseph Myers  <joseph@codesourcery.com>
1922
1923         PR tree-optimization/49963
1924         * hwint.c (absu_hwi): Define.
1925         * hwint.h (absu_hwi): Declare.
1926         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
1927         of abs_hwi.
1928         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1929         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1930
1931 2011-08-18  Richard Guenther  <rguenther@suse.de>
1932
1933         * expr.c (get_inner_reference): Sign-extend the constant
1934         twos-complement offset before doing arbitrary precision
1935         arithmetic on it.
1936         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
1937         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
1938         to get_constraint_for_ptr_offset.
1939
1940 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1941
1942         PR target/50068
1943         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
1944
1945 2011-08-17  Richard Guenther  <rguenther@suse.de>
1946
1947         * tree.h (convert_to_ptrofftype_loc): New function.
1948         (convert_to_ptrofftype): Define.
1949         * builtins.c (expand_builtin_bzero): Use size_type_node.
1950         (fold_builtin_bzero): Likewise.
1951         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
1952         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
1953         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
1954         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
1955         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
1956         * fold-const.c (build_range_check): Negate using the original type.
1957         (fold_unary_loc): Use fold_build_pointer_plus_loc.
1958         * gimple-fold.c (gimple_adjust_this_by_delta): Use
1959         convert_to_ptrofftype.
1960         * gimplify.c (gimplify_self_mod_expr): Likewise.
1961         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
1962         (graphite_create_new_loop_guard): Likewise.
1963         * graphite-sese-to-poly.c (my_long_long): Remove.
1964         (scop_ivs_can_be_represented): Adjust.
1965         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
1966         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
1967         * tree-loop-distribution.c (build_size_arg_loc): Use
1968         size_type_node.
1969         (generate_memset_zero): Simplify.
1970         * tree-mudflap.c: Use fold_convert, not convert.
1971         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
1972         its own type.
1973         (determine_offset): Likewise for DR_STEP.
1974         (valid_initializer_p): Likewise.
1975         * tree-profile.c (prepare_instrumented_value): Convert the pointer
1976         to an integer type of same size.
1977         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
1978         to sizetype without need.
1979         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1980         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
1981         * tree-ssa-loop-manip.c (create_iv): Likewise.
1982         (determine_exit_conditions): Adjust comment.
1983         * tree-ssa-pre.c (create_expression_by_pieces): Use
1984         convert_to_ptrofftype.
1985         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
1986         * varasm.c (array_size_for_constructor): Compute using double_ints.
1987
1988 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1989
1990         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
1991         when generating an integer result where possible.  Short-cut
1992         comparison against 0 also for QImode.
1993
1994 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1995
1996         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
1997         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
1998         prototype.
1999         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2000         (spu_legitimate_address_p): Do not check displacement if the base
2001         is an eliminable stack register.
2002
2003 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2004
2005         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2006         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2007         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2008         m32c_preferred_output_reload_class): Remove.
2009         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2010         Change rclass argument and return types to reg_class_t. Use
2011         reg_class_subset_p instead of class_sizes.
2012         (m32c_preferred_output_reload_class): Make static. Change rclass
2013         argument and return types to reg_class_t.
2014         (TARGET_PREFERRED_RELOAD_CLASS,
2015         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2016
2017 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2018
2019         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2020
2021 2011-08-16  Richard GUenther  <rguenther@suse.de>
2022
2023         PR tree-optimization/50082
2024         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2025         warnings here, instead of ...
2026         (ssa_forward_propagate_and_combine): ... here.
2027         (forward_propagate_into_comparison_1): Adjust.
2028         (forward_propagate_into_comparison): Likewise.
2029         (forward_propagate_into_gimple_cond): Likewise.
2030         (forward_propagate_into_cond): Likewise.
2031
2032 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2033
2034         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2035         instead of ggc_alloc_zone_vec_rtvec_def.
2036
2037 2011-08-16  Richard Guenther  <rguenther@suse.de>
2038
2039         * tree.h (ptrofftype_p): New helper function.
2040         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2041         offset verification.
2042         (verify_gimple_assign_binary): Likewise.
2043         * tree.c (build2_stat): Likewise.
2044         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2045         (reset_evolution_in_loop): Likewise.
2046         * tree-chrec.h (build_polynomial_chrec): Likewise.
2047
2048 2011-08-16  Liang Wang  <lwang1@marvell.com>
2049
2050         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2051         ggc_alloc_zone_vec_rtvec_def.
2052
2053 2011-08-16  Richard Guenther  <rguenther@suse.de>
2054
2055         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2056         helper factored out from ...
2057         (extract_range_from_binary_expr_1): ... here.  Re-structure
2058         to not glob handling too different tree codes.
2059
2060 2011-08-15  Richard Henderson  <rth@redhat.com>
2061
2062         PR middle-end/50006
2063         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2064         setting out to include allocate_stack named pattern as well.
2065         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2066         * stmt.c (expand_stack_restore): Likewise.
2067
2068 2011-08-15  Richard Guenther  <rguenther@suse.de>
2069
2070         PR middle-end/50082
2071         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2072         convert the modified operand to the other operand type.
2073         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2074         useless conversions stripped from comparison operands.
2075
2076 2011-08-15  Richard Guenther  <rguenther@suse.de>
2077
2078         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2079         (extract_range_from_unary_expr_1): Restructure.
2080
2081 2011-08-15  Richard Guenther  <rguenther@suse.de>
2082
2083         PR tree-optimization/50058
2084         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2085         copy matching.
2086
2087 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2088
2089         PR target/50022
2090         * config/arm/arm.c (output_move_double): Add 2 parameters
2091         to count the number of insns emitted and whether to emit or not.
2092         Use the flag to decide when to emit and count number of instructions
2093         that will be emitted.
2094         Handle case where output_move_double might be called for calculating
2095         lengths with an invalid constant.
2096         (arm_count_output_move_double_insns): Define.
2097         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2098         (output_move_double): Adjust prototype.
2099         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2100         output_move_double.
2101         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2102         for ce_count.
2103         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2104         ("*movdf_soft_insn"): Likewise.
2105         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2106         ("*cirrus_thumb2_movdi"): Likewise.
2107         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2108         ("*cirrus_movdf_hard_insn"): Likewise.
2109         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2110         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2111         ("mov<mode>_internal VMMX"): Likewise.
2112         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2113
2114 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2115
2116         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2117         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2118         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2119         for TARGET_ROUND.
2120
2121         (rint<mode>2): Simplify TARGET_ROUND check.
2122         (floor<mode>2): Ditto.
2123         (ceil<mode>2): Ditto.
2124         (btrunc<mode>2): Ditto.
2125
2126 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2127
2128         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2129         as mmix_preferred_output_reload_class.
2130
2131 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2132
2133         * PR target/49903
2134         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2135         (branch_unspec): New insn.
2136         (branch): Beauty farm.
2137         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2138         to be IF_THEN_ELSE.
2139         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2140         New static functions.
2141         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2142         Use CONST_INT_P.  Beauty.
2143
2144 2011-08-12  Richard Henderson  <rth@redhat.com>
2145
2146         PR rtl-opt/49994
2147         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2148         * sched-deps.c (init_deps): Clear it.
2149         (deps_analyze_insn): Consume it.
2150         (sched_analyze_insn): Fill it.
2151
2152 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2153
2154         PR target/48328
2155         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2156         for tbh instructions.
2157
2158 2011-08-12  Diego Novillo  <dnovillo@google.com>
2159
2160         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2161         (streamer_write_uhwi): Rename from lto_output_uleb128.
2162         (streamer_write_hwi): Rename from output_sleb128.
2163         (streamer_write_string): Rename from lto_output_string.
2164         (streamer_string_index): Rename from lto_string_index.
2165         (streamer_write_string_with_length): Rename from
2166         lto_output_string_with_length.
2167         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2168         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2169         (streamer_read_string): Rename from lto_input_string.
2170         (streamer_read_indexed_string): Rename from input_string_internal.
2171         (streamer_read_uhwi): Rename from lto_input_uleb128.
2172         (streamer_read_hwi): Rename from lto_input_sleb128.
2173         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2174         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2175         (streamer_write_enum): Rename from lto_output_enum.
2176         (streamer_read_enum): Rename from lto_input_enum.
2177         (streamer_write_record_start): Rename from output_record_start.
2178         (streamer_read_record_start): Rename from input_record_start.
2179         (streamer_write_bitpack): Rename from lto_output_bitpack.
2180         (streamer_read_bitpack): Rename from lto_input_bitpack.
2181         (streamer_write_char_stream): Rename from lto_output_1_stream.
2182         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2183         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2184         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2185         (streamer_read_string_cst): Rename from input_string_cst.
2186         (streamer_read_chain): Rename from lto_input_chain.
2187         (streamer_alloc_tree): Rename from lto_materialize_tree.
2188         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2189         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2190         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2191         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2192         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2193         (streamer_write_chain): Rename from lto_output_chain.
2194         (streamer_write_tree_header): Rename from lto_output_tree_header.
2195         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2196         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2197         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2198         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2199         (streamer_check_handled_ts_structures): Rename from
2200         check_handled_ts_structures.
2201         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2202         (streamer_tree_cache_insert_at): Rename from
2203         lto_streamer_cache_insert_at.
2204         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2205         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2206         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2207         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2208         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2209         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2210         (write_identifier): Rename from output_identifier.
2211         (write_ts_common_tree_pointers): Rename from
2212         lto_output_ts_common_tree_pointers.
2213         (write_ts_vector_tree_pointers): Rename from
2214         lto_output_ts_vector_tree_pointers.
2215         (write_ts_complex_tree_pointers): Rename from
2216         lto_output_ts_complex_tree_pointers.
2217         (write_ts_decl_minimal_tree_pointers): Rename from
2218         lto_output_ts_decl_minimal_tree_pointers.
2219         (write_ts_decl_common_tree_pointers): Rename from
2220         lto_output_ts_decl_common_tree_pointers.
2221         (write_ts_decl_non_common_tree_pointers): Rename from
2222         lto_output_ts_decl_non_common_tree_pointers.
2223         (write_ts_decl_with_vis_tree_pointers): Rename from
2224         lto_output_ts_decl_with_vis_tree_pointers.
2225         (write_ts_field_decl_tree_pointers): Rename from
2226         lto_output_ts_field_decl_tree_pointers.
2227         (write_ts_function_decl_tree_pointers): Rename from
2228         lto_output_ts_function_decl_tree_pointers.
2229         (write_ts_type_common_tree_pointers): Rename from
2230         lto_output_ts_type_common_tree_pointers.
2231         (write_ts_type_non_common_tree_pointers): Rename from
2232         lto_output_ts_type_non_common_tree_pointers.
2233         (write_ts_list_tree_pointers): Rename from
2234         lto_output_ts_list_tree_pointers.
2235         (write_ts_vec_tree_pointers): Rename from
2236         lto_output_ts_vec_tree_pointers.
2237         (write_ts_exp_tree_pointers): Rename from
2238         lto_output_ts_exp_tree_pointers.
2239         (write_ts_block_tree_pointers): Rename from
2240         lto_output_ts_block_tree_pointers.
2241         (write_ts_binfo_tree_pointers): Rename from
2242         lto_output_ts_binfo_tree_pointers.
2243         (write_ts_constructor_tree_pointers): Rename from
2244         lto_output_ts_constructor_tree_pointers.
2245         (write_ts_target_option): Rename from lto_output_ts_target_option.
2246         (write_ts_translation_unit_decl_tree_pointers): Rename from
2247         lto_output_ts_translation_unit_decl_tree_pointers.
2248         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2249         Rename from lto_streamer_cache_add_to_node_array.
2250         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2251         (record_common_node): Rename from lto_record_common_node.
2252
2253         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2254         declarations.
2255         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2256         function.
2257         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2258         unused function.
2259         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2260         (ipa-reference.o): Likewise.
2261         * lto-section-out.c: Include data-streamer.h.
2262         * ipa-reference.c: Include data-streamer.h.
2263
2264 2011-08-12  Nick Clifton  <nickc@redhat.com>
2265
2266         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2267         * doc/md.texi (cmpstrn): Note that the comparison stops if both
2268         fetched bytes are zero.
2269         (cmpstr): Likewise.
2270         (cmpmem): Note that the comparison does not stop if both of the
2271         fetched bytes are zero.
2272
2273 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
2274
2275         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2276         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2277         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2278         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2279         to integer_type_node.
2280         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2281         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2282         * builtins.c (expand_builtin_in): Ditto.
2283         (mathfn_built_in_1): Ditto.
2284         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2285         BUILT_IN_IFLOOR.
2286         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2287         BUILT_IN_IROUND.
2288         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2289         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2290         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2291
2292 2011-08-12  Richard Guenther  <rguenther@suse.de>
2293
2294         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2295
2296 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
2297
2298         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2299
2300 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2301
2302         * config/arm/arm.c (get_label_padding): New function.
2303         (create_fix_barrier, arm_reorg): Use it.
2304
2305 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2306
2307         PR target/49781
2308         * config/i386/i386.md (*lea_5_zext): New.
2309         (*lea_6_zext): Ditto.
2310         * config/i386/predicates.md (const_32bit_mask): New predicate.
2311         (lea_address_operand): Reject AND.
2312         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2313         const_32bit_mask immediate.
2314         (ix86_print_operand_address): Handle AND.
2315         (memory_address_length): Ditto.
2316
2317 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
2318             Brian Hackett  <bhackett1024@gmail.com>
2319
2320         * plugin.def: Add event for finish_decl.
2321         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2322         * c-decl.c (finish_decl): Invoke callbacks on above event.
2323         * doc/plugins.texi: Document above event.
2324
2325 2011-08-11  Richard Guenther  <rguenther@suse.de>
2326
2327         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2328         lookups, make looking through aggregate copies stronger.
2329
2330 2011-08-11  Richard Henderson  <rth@redhat.com>
2331
2332         PR bootstrap/50018
2333         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2334
2335 2011-08-11  Richard Guenther  <rguenther@suse.de>
2336
2337         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2338         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2339         (vrp_visit_stmt): Likewise.
2340
2341 2011-08-11  Richard Guenther  <rguenther@suse.de>
2342
2343         PR middle-end/50040
2344         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2345         load of the other piece with TREE_NO_WARNING.
2346         * tree-flow.h (warn_uninit): Adjust prototype.
2347         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2348         the base variable and the expression that is used separately.
2349         Properly query all TREE_NO_WARNING flags.
2350         (struct walk_data): Remove.
2351         (warn_uninitialized_var): Likewise.
2352         (warn_uninitialized_vars): Do not walk gimple pieces but simply
2353         look at all SSA uses of the statement.  Handle unused memory
2354         separately.
2355         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2356
2357 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2358
2359         * config/rx/rx.md (movsicc): Allow register to register transfers.
2360         (*movsicc): Likewise.
2361         (*stcc): Restrict this pattern to EQ and NE compares.
2362         (*stcc_reg): New pattern.  Works for any comparison but only for
2363         register transfers.
2364
2365 2011-08-11   Diego Novillo  <dnovillo@google.com>
2366
2367         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2368         Call stream_write_tree instead of output_record_start.
2369         (lto_output_ts_binfo_tree_pointers): Likewise.
2370
2371         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2372         Convert it to a macro.
2373         (stream_read_tree): Likewise.
2374
2375         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2376         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2377
2378         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2379         and tree_read_bitfields.
2380         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2381         (lto_write_tree): Call it.
2382         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2383         * streamer-hooks.h (struct streamer_hooks): Remove fields
2384         name, is_streamable and alloc_tree. Update all users.
2385         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2386         (lto_materialize_tree): ... here.
2387         Handle CALL_EXPR codes.
2388         Remove call to lto_streamer_cache_append.
2389         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2390         * tree-streamer.h (tree_read_bitfields): Declare.
2391
2392         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2393         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2394         * tree-streamer.h (stream_read_tree): New.  Replace all calls
2395         to lto_input_tree with it.
2396         (stream_write_tree): New.  Replace all calls to lto_output_tree,
2397         lto_output_tree_ref and lto_output_tree_or_ref with it.
2398         * lto-streamer-in.c (lto_read_tree): Inline code from
2399         lto_streamer_read_tree.
2400         (lto_input_tree): Move from tree-streamer-in.c.
2401         * lto-streamer-out.c (lto_output_tree_ref): Make static.
2402         Remove handling of NULL values for EXPR.
2403         Do not handle EXPRs that are not indexable.
2404         (lto_write_tree): Move from tree-streamer-out.c.
2405         Inline lto_streamer_write_tree.
2406         (lto_output_tree): Move from tree-streamer-out.c.
2407         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2408         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2409         (lto_preload_common_nodes): Likewise.
2410         Remove assertions and adjustments for nodes
2411         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2412         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2413         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2414         * lto-streamer.h (lto_input_tree): Declare.
2415         (lto_output_tree_ref): Remove.
2416         * streamer-hooks.h (struct streamer_hooks): Remove fields
2417         preload_common_nodes, indexable_with_decls_p,
2418         pack_value_fields, unpack_value_fields and output_tree_header.
2419         Update all users.
2420         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2421         (lto_input_tree_pointers): Likewise.
2422         (lto_read_tree): Move to lto-streamer-in.c.
2423         (lto_input_integer_cst): Make extern.
2424         (lto_get_pickled_tree): Likewise.
2425         (lto_get_builtin_tree): Likewise.
2426         (lto_input_tree): Move to lto-streamer-in.c.
2427         * tree-streamer-out.c (pack_value_fields): Make extern.
2428         (lto_output_tree_or_ref): Remove.  Replace all callers with
2429         calls to stream_write_tree.
2430         (lto_output_builtin_tree): Make extern.
2431         (lto_streamer_write_tree): Inline into lto_write_tree.
2432         (lto_output_tree_pointers): Make extern.
2433         (lto_output_tree_header): Likewise.
2434         (lto_output_integer_cst): Likewise.
2435         (lto_write_tree): Move to lto-streamer-out.c.
2436         (lto_output_tree): Likewise.
2437         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2438         (preload_common_nodes): Likewise.
2439         (lto_streamer_cache_create): Call it.
2440         * tree-streamer.h: Include streamer-hooks.h.
2441         (stream_write_tree): New.
2442         (stream_read_tree): New.
2443         (lto_input_tree): Remove.
2444         (lto_materialize_tree): Declare.
2445         (lto_input_tree_pointers): Declare.
2446         (lto_get_pickled_tree): Declare.
2447         (lto_get_builtin_tree): Declare.
2448         (lto_input_integer_cst): Declare.
2449         (lto_output_tree_header): Declare.
2450         (pack_value_fields): Declare.
2451         (lto_output_tree_pointers): Declare.
2452         (lto_output_integer_cst): Declare.
2453         (lto_output_builtin_tree): Declare.
2454
2455 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2456
2457         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2458         only if producer writes to the register given by regno.
2459
2460 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2461             Alexander Monakov  <amonakov@ispras.ru>
2462
2463         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2464         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2465         condition caching logic into ...
2466         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2467         attempt to use cache for instructions with zero luid.
2468         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2469         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2470
2471 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2472
2473         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2474         get_seqno_for_a_jump.  Update the caller.
2475         (get_seqno_by_succs): New.  Use it ...
2476         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2477         predecessors was not sufficient.
2478         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2479
2480 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2481
2482         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2483
2484 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2485
2486         * sel-sched-ir.h (register_unavailable_p): Declare.
2487         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2488         (set_unavailable_target_for_expr): ... here to properly test
2489         availability of a register.
2490         (speculate_expr): Ditto.
2491         * sel-sched.c (substitute_reg_in_expr): Ditto.
2492         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2493
2494 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2495
2496         * sel-sched.c (verify_target_availability): Fix usage of
2497         hard_regno_nregs.
2498
2499 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2500
2501         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2502         recognized by cannot_copy_insn_p hook and volatile instructions.
2503
2504 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2505
2506         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2507
2508 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2509
2510         * doc/md.texi (define_bypass): Say that the instruction names can
2511         be filename-style globs.
2512         * Makefile.in (FNMATCH_H): Define.
2513         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2514         * genattrtab.c: Include fnmatch.h.
2515         (bypass_list): Change field name from "insn" to "pattern".
2516         (gen_bypass_1): Update accordingly.
2517         (process_bypasses): Use fnmatch to check for matches between
2518         insn reservations and define_bypasses.
2519         * genautomata.c: Include fnmatch.h.
2520         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2521         and out_pattern respectively.
2522         (gen_bypass, insert_bypass): Update accordingly.
2523         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2524         (process_bypass): New functions.
2525         (process_decls): Use process_bypass.  Update after field name changes.
2526
2527 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2528
2529         PR target/49687
2530         * config/avr/avr.md (smulqi3_highpart): New insn.
2531         (umulqi3_highpart): New insn.
2532         (*subqi3.ashiftrt7): New insn.
2533         (smulhi3_highpart): New expander.
2534         (umulhi3_highpart): Nex expander.
2535         (*smulhi3_highpart_call): New insn.
2536         (*umulhi3_highpart_call): New insn.
2537         (extend_u): New code attribute.
2538         (extend_prefix): Rename code attribute to extend_su.
2539         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2540         widening QI/HI multiply.
2541
2542 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2543
2544         PR tree-optimization/50039
2545         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2546         that DEF_STMT has a stmt_vec_info.
2547
2548 2011-08-10  Richard Guenther  <rguenther@suse.de>
2549
2550         * tree.h (can_trust_pointer_alignment): Remove.
2551         * builtins.c (can_trust_pointer_alignment): Remove.
2552
2553 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2554
2555         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2556         vector conversion.
2557         (stv_conv): New enum for scalar_to_vector return type.
2558         (build_binary_op): Adjust.
2559         * doc/extend.texi: Description of scalar to vector expansion.
2560
2561 2011-08-10  Richard Guenther  <rguenther@suse.de>
2562
2563         * tree.h (get_pointer_alignment): Remove max-align argument.
2564         (get_object_alignment): Likewise.
2565         * builtins.c (get_object_alignment_1): Adjust.
2566         (get_object_alignment): Remove max-align argument.
2567         (get_pointer_alignment): Likewise.
2568         (expand_builtin_strlen): Adjust.
2569         (expand_builtin_memcpy): Likewise.
2570         (expand_builtin_mempcpy_args): Likewise.
2571         (expand_builtin_strncpy): Likewise.
2572         (expand_builtin_memset_args): Likewise.
2573         (expand_builtin_memcmp): Likewise.
2574         (expand_builtin_strcmp): Likewise.
2575         (expand_builtin_strncmp): Likewise.
2576         (get_builtin_sync_mem): Likewise.
2577         (fold_builtin_memset): Likewise.
2578         (fold_builtin_memory_op): Likewise.
2579         (expand_builtin_memory_chk): Likewise.
2580         * emit-rtl.c (get_mem_align_offset): Likewise.
2581         (set_mem_attributes_minus_bitpos): Likewise.
2582         * expr.c (expand_assignment): Likewise.
2583         (expand_expr_real_1): Likewise.
2584         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2585         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2586         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2587         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2588         * value-prof.c (gimple_stringops_transform): Likewise.
2589
2590 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2591
2592         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2593         * doc/tm.texi: Regenerate.
2594
2595 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2596
2597         PR target/29560
2598         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2599         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2600         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2601         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2602         shift target is unused.
2603
2604 2011-08-10  Richard Guenther  <rguenther@suse.de>
2605
2606         PR tree-optimization/49937
2607         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2608         using get_object_alignment_1.
2609
2610 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2611
2612         * config/i386/i386.c (ix86_emit_i387_round): New function.
2613         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2614         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2615         Use ix86_emit_i387_round to expand round function for i387 math.
2616         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2617         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2618
2619 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2620
2621         * config/sync.c: Move to ../libgcc.
2622         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2623         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2624         Remove.
2625
2626 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2627
2628         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2629         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2630         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2631         Change 'from' and 'to' arguments type to reg_class_t.
2632         (TARGET_REGISTER_MOVE_COST): Define.
2633
2634 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
2635
2636         PR target/50026
2637         Revert:
2638         PR rtl-optimization/49990
2639         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2640         ignore classes which can not change mode.
2641         (find_costs_and_classes): Ditto.
2642
2643 2011-08-09  Richard Guenther  <rguenther@suse.de>
2644
2645         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2646         information for ranges with only negative values.
2647         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2648         BIT_AND_EXPR handling to handle ranges with negative values.
2649
2650 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2651
2652         * config/i386/i386.c: Remove traling spaces.
2653         * config/i386/sse.md: Likewise.
2654         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2655         (*fma_fmsub_<mode>): Likewise.
2656         (*fma_fnmadd_<mode>): Likewise.
2657         (*fma_fnmsub_<mode>): Likewise.
2658
2659 2011-08-09  Nick Clifton  <nickc@redhat.com>
2660
2661         * config/rx/rx.md: Disable extender peepholes at -O3.
2662
2663 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2664
2665         PR target/49781
2666         * config/i386/i386.md (reload_noff_load): New.
2667         (reload_noff_store): Ditto.
2668         * config/i386/i386.c (ix86_secondary_reload): Use
2669         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2670         double-word moves from/to non-offsetable addresses instead of
2671         generating XMM temporary.
2672
2673 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2674
2675         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2676
2677 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
2678
2679         PR tree-optimization/50014
2680         * tree-vect-loop.c (vectorizable_reduction): Get def type before
2681         calling vect_get_vec_def_for_stmt_copy ().
2682
2683 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
2684
2685         PR rtl-optimization/49990
2686         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2687         ignore classes which can not change mode.
2688         (find_costs_and_classes): Ditto.
2689
2690 2011-08-08  Richard Henderson  <rth@redhat.com>
2691
2692         PR middle-end/49990
2693         * config/i386/i386.c (ix86_expand_prologue): Call
2694         for SEH target gen_prologue_use instead of gen_blockage
2695         at prologue's end.
2696
2697 2011-08-08  Martin Jambor  <mjambor@suse.cz>
2698
2699         PR middle-end/49923
2700         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2701         memory alignment.
2702
2703 2011-08-08   Diego Novillo  <dnovillo@google.com>
2704
2705         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2706         (DATA_STREAMER_H): New.
2707         (GIMPLE_STREAMER_H): New.
2708         (TREE_STREAMER_H): New.
2709         (STREAMER_HOOKS_H): New.
2710         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2711         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2712         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2713         (data-streamer.o): New.
2714         (data-streamer-in.o): New.
2715         (data-streamer-out.o): New.
2716         (gimple-streamer-in.o): New.
2717         (gimple-streamer-out.o): New.
2718         (streamer-hooks.o): New.
2719         (tree-streamer.o): New.
2720         (tree-streamer-in.o): New.
2721         (tree-streamer-out.o): New.
2722         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2723         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2724         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2725         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2726         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2727         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2728         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2729         (ipa-inline-analysis.o): Likewise.
2730         (ipa-pure-const.o): Likewise.
2731         * data-streamer-in.c: New.
2732         * data-streamer-out.c: New.
2733         * data-streamer.c: New.
2734         * data-streamer.h: New.
2735         * gimple-streamer-in.c: New.
2736         * gimple-streamer-out.c: New.
2737         * gimple-streamer.h: New.
2738         * ipa-inline-analysis.c: Include data-streamer.h.
2739         * ipa-prop.c: Include data-streamer.h.
2740         * ipa-pure-const.c: Include data-streamer.h.
2741         * lto-cgraph.c: Include data-streamer.h.
2742         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2743         (lto_input_widest_uint_uleb128): Likewise.
2744         (lto_input_sleb128): Likewise.
2745         (bp_unpack_var_len_unsigned): Likewise.
2746         (bp_unpack_var_len_int): Likewise.
2747         * lto-section-out.c (lto_output_uleb128_stream): Move to
2748         data-streamer-out.c.
2749         (lto_output_widest_uint_uleb128_stream): Likewise.
2750         (lto_output_sleb128_stream): Likewise.
2751         (bp_pack_var_len_unsigned): Likewise.
2752         (bp_pack_var_len_int): Likewise.
2753         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2754         (struct string_slot): Remove.  Update all users.
2755         (lto_tag_check_set): Make extern.
2756         (lto_tag_check_range): Move to lto-streamer.h.
2757         (lto_tag_check): Likewise.
2758         (hash_string_slot_node): Remove.  Update all users.
2759         (eq_string_slot_node): Remove.  Update all users.
2760         (string_for_index): Move to data-streamer-in.c
2761         (input_string_internal): Likewise.
2762         (input_string_cst): Move to tree-streamer-in.c.
2763         (input_identifier): Likewise.
2764         (lto_input_string): Move to data-streamer-in.c
2765         (input_record_start): Move to data-streamer.h
2766         (canon_file_name): Use new definition of struct string_slot
2767         from data-streamer.h.  Set S_SLOT.LEN.
2768         (lto_input_location): Make extern.
2769         (lto_input_chain): Move to tree-streamer-in.c.
2770         (lto_init_eh): Make extern.
2771         (input_phi): Move to gimple-streamer-in.c.
2772         (input_gimple_stmt): Likewise.
2773         (input_bb): Likewise.
2774         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2775         (unpack_ts_real_cst_value_fields): Likewise.
2776         (unpack_ts_fixed_cst_value_fields): Likewise.
2777         (unpack_ts_decl_common_value_fields): Likewise.
2778         (unpack_ts_decl_wrtl_value_fields): Likewise.
2779         (unpack_ts_decl_with_vis_value_fields): Likewise.
2780         (unpack_ts_function_decl_value_fields): Likewise.
2781         (unpack_ts_type_common_value_fields): Likewise.
2782         (unpack_ts_block_value_fields): Likewise.
2783         (unpack_ts_translation_unit_decl_value_fields): Likewise.
2784         (unpack_value_fields): Likewise.
2785         (lto_materialize_tree): Likewise.
2786         (lto_input_ts_common_tree_pointers): Likewise.
2787         (lto_input_ts_vector_tree_pointers): Likewise.
2788         (lto_input_ts_complex_tree_pointers): Likewise.
2789         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2790         (lto_input_ts_decl_common_tree_pointers): Likewise.
2791         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2792         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2793         (lto_input_ts_field_decl_tree_pointers): Likewise.
2794         (lto_input_ts_function_decl_tree_pointers): Likewise.
2795         (lto_input_ts_type_common_tree_pointers): Likewise.
2796         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2797         (lto_input_ts_list_tree_pointers): Likewise.
2798         (lto_input_ts_vec_tree_pointers): Likewise.
2799         (lto_input_ts_exp_tree_pointers): Likewise.
2800         (lto_input_ts_block_tree_pointers): Likewise.
2801         (lto_input_ts_binfo_tree_pointers): Likewise.
2802         (lto_input_ts_constructor_tree_pointers): Likewise.
2803         (lto_input_ts_target_option): Likewise.
2804         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2805         (lto_input_tree_pointers): Likewise.
2806         (lto_get_pickled_tree): Likewise.
2807         (lto_get_builtin_tree): Likewise.
2808         (lto_read_tree): Likewise.
2809         (lto_input_integer_cst): Likewise.
2810         (lto_input_tree): Likewise.
2811         * lto-streamer-out.c: Include data-streamer.h,
2812         gimple-streamer.h and streamer-hooks.h.
2813         (struct string_slot): Move to data-streamer.h.
2814         (hash_string_slot_node): Likewise.
2815         (eq_string_slot_node): Likewise.
2816         (lto_string_index): Move to data-streamer-out.c.
2817         (lto_output_string_with_length): Likewise.
2818         (lto_output_string): Likewise.
2819         (output_string_cst): Move to tree-streamer-out.c.
2820         (output_identifier): Likewise.
2821         (output_zero): Move to data-streamer-out.c
2822         (output_uleb128): Likewise.
2823         (output_sleb128): Likewise.
2824         (output_record_start): Move to data-streamer.h
2825         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2826         (pack_ts_real_cst_value_fields): Likewise.
2827         (pack_ts_fixed_cst_value_fields): Likewise.
2828         (pack_ts_decl_common_value_fields): Likewise.
2829         (pack_ts_decl_wrtl_value_fields): Likewise.
2830         (pack_ts_decl_with_vis_value_fields): Likewise.
2831         (pack_ts_function_decl_value_fields): Likewise.
2832         (pack_ts_type_common_value_fields): Likewise.
2833         (pack_ts_block_value_fields): Likewise.
2834         (pack_ts_translation_unit_decl_value_fields): Likewise.
2835         (pack_value_fields): Likewise.
2836         (lto_output_chain): Likewise.
2837         (lto_output_ts_common_tree_pointers): Likewise.
2838         (lto_output_ts_vector_tree_pointers): Likewise.
2839         (lto_output_ts_complex_tree_pointers): Likewise.
2840         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2841         (lto_output_ts_decl_common_tree_pointers): Likewise.
2842         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2843         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2844         (lto_output_ts_field_decl_tree_pointers): Likewise.
2845         (lto_output_ts_function_decl_tree_pointers): Likewise.
2846         (lto_output_ts_type_common_tree_pointers): Likewise.
2847         (lto_output_ts_type_non_common_tree_pointers): Likewise.
2848         (lto_output_ts_list_tree_pointers): Likewise.
2849         (lto_output_ts_vec_tree_pointers): Likewise.
2850         (lto_output_ts_exp_tree_pointers): Likewise.
2851         (lto_output_ts_block_tree_pointers): Likewise.
2852         (lto_output_ts_binfo_tree_pointers): Likewise.
2853         (lto_output_ts_constructor_tree_pointers): Likewise.
2854         (lto_output_ts_target_option): Likewise.
2855         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2856         (lto_output_tree_pointers): Likewise.
2857         (lto_output_tree_header): Likewise.
2858         (lto_output_builtin_tree): Likewise.
2859         (lto_write_tree): Likewise.
2860         (lto_output_integer_cst): Likewise.
2861         (lto_output_tree): Likewise.
2862         (output_phi): Move to gimple-streamer-out.c.
2863         (output_gimple_stmt): Likewise.
2864         (output_bb): Likewise.
2865         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2866         (streamer_hooks): Move to streamer-hooks.c.
2867         (check_handled_ts_structures): Move to tree-streamer.c
2868         (lto_streamer_cache_add_to_node_array): Likewise.
2869         (lto_streamer_cache_insert_1): Likewise.
2870         (lto_streamer_cache_insert): Likewise.
2871         (lto_streamer_cache_insert_at): Likewise.
2872         (lto_streamer_cache_append): Likewise.
2873         (lto_streamer_cache_lookup): Likewise.
2874         (lto_streamer_cache_get): Likewise.
2875         (lto_record_common_node): Likewise.
2876         (lto_preload_common_nodes): Likewise.
2877         (lto_streamer_cache_create): Likewise.
2878         (lto_streamer_cache_delete): Likewise.
2879         (streamer_hooks_init): Move to streamer-hooks.c.
2880         * lto-streamer.h: Include diagnostic.h
2881         (struct output_block, struct lto_input_block,
2882         struct data_in, struct bitpack_d): Remove forward declarations.
2883         (struct bitpack_d): Move to data-streamer.h.
2884         (struct lto_streamer_cache_d): Move to tree-streamer.h.
2885         (struct streamer_hooks): Move to streamer-hooks.h.
2886         (bp_pack_var_len_unsigned): Move to data-streamer.h.
2887         (bp_pack_var_len_int): Likewise.
2888         (bp_unpack_var_len_unsigned): Likewise.
2889         (bp_unpack_var_len_int): Likewise.
2890         (lto_input_location): Declare.
2891         (lto_tag_check_set): Declare.
2892         (lto_init_eh): Declare.
2893         (lto_output_tree_ref): Declare.
2894         (lto_output_location): Declare.
2895         (bitpack_create): Move to data-streamer.h.
2896         (bp_pack_value): Likewise.
2897         (lto_output_bitpack): Likewise.
2898         (lto_input_bitpack): Likewise.
2899         (bp_unpack_value): Likewise.
2900         (lto_output_1_stream): Likewise.
2901         (lto_input_1_unsigned): Likewise.
2902         (lto_output_int_in_range): Likewise.
2903         (lto_input_int_in_range): Likewise.
2904         (bp_pack_int_in_range): Likewise.
2905         (bp_unpack_int_in_range): Likewise.
2906         (lto_output_enum): Likewise.
2907         (lto_input_enum): Likewise.
2908         (bp_pack_enum): Likewise.
2909         (bp_unpack_enum): Likewise.
2910         * streamer-hooks.c: New.
2911         * streamer-hooks.h: New.
2912         * tree-streamer-in.c: New.
2913         * tree-streamer-out.c: New.
2914         * tree-streamer.c: New.
2915         * tree-streamer.h: New.
2916
2917 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2918
2919         * gthr-posix95.h: Remove.
2920         * gthr.h [_PTHREADS95]: Remove.
2921         * configure.ac (enable_threads): Remove posix95.
2922         * configure: Regenerate.
2923         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
2924
2925 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
2926
2927         PR target/49781
2928         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
2929         SImode addresses.
2930         (ix86_print_operand_address): Handle zero-extended addresses.
2931         (memory_address_length): Add length of addr32 prefix for
2932         zero-extended addresses.
2933         (ix86_secondary_reload): Handle moves to/from double-word general
2934         registers from/to zero-extended addresses.
2935         * config/i386/predicates.md (lea_address_operand): Reject
2936         zero-extended operands.
2937
2938 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2939
2940         PR other/48007
2941         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
2942
2943         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
2944         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
2945
2946         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
2947         (_Unwind_Context_Reg_Val): Likewise.
2948         (_Unwind_Get_Unwind_Word): Likewise.
2949         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
2950         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
2951         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
2952         for EXTENDED_CONTEXT_BIT.
2953         (__frame_state_for): Likewise.
2954         (uw_init_context_1): Likewise.
2955         (_Unwind_GetGR): Updated.
2956         (_Unwind_SetGR): Likewise.
2957         (_Unwind_GetGRPtr): Likewise.
2958         (_Unwind_SetGRPtr): Likewise.
2959         (_Unwind_SetGRValue): Likewise.
2960         (_Unwind_GRByValue): Likewise.
2961         (uw_install_context_1): Likewise.
2962
2963         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
2964         ASSUME_EXTENDED_UNWIND_CONTEXT.
2965         * doc/tm.texi: Regenerated.
2966
2967 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2968
2969         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
2970
2971 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2972
2973         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
2974         Linux/GNU-specific.
2975         (DEC Alpha Options, -mtune): Likewise.
2976         (MIPS Options, -march): native is supported on IRIX.
2977
2978 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2979
2980         * config/sparc/driver-sparc.c: New file.
2981         * config/sparc/x-sparc: New file.
2982         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
2983         * config/sparc/sparc.opt (native): New value for enum processor_type.
2984         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
2985         * config/sparc/sparc.c (sparc_option_override): Abort if
2986         PROCESSOR_NATIVE gets here.
2987         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
2988         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
2989         DRIVER_SELF_SPECS): Define.
2990         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
2991         (SPARC Options, -mtune): Likewise.
2992         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
2993         Substitute result.
2994         * configure: Regenerate.
2995         * Makefile.in (EXTRA_GCC_LIBS): Set.
2996         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
2997         (cpp$(exeext)): Likewise.
2998
2999 2011-08-08  Richard Guenther  <rguenther@suse.de>
3000
3001         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3002         split out from ...
3003         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3004         by composition.
3005
3006 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3007
3008         PR tree-optimization/50005
3009         * ipa-inline-analysis (remap_predicate): Add cast to
3010         silence signed/unsigned comparison warning.
3011
3012 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3013
3014         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3015         Print the current ii.
3016         (sms_schedule_by_order): Reduce whitespace in dump line.
3017
3018 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3019
3020         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3021         and one loop for successors.  Fix upper bound of memory range.
3022
3023 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3024
3025         PR target/50001
3026         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3027         (TARGET_INSTANTIATE_DECLS): New define.
3028
3029 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3030             Mikael Morin   <mikael.morin@sfr.fr>
3031
3032         * Makefile.in (INCLUDES_FOR_TARGET): New.
3033         (LIBGCC2_CFLAGS): Use it.
3034         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3035
3036 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3037
3038         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3039         frame->save_regs_using_mov calculation.
3040
3041 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3042
3043         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3044         * config/i386/sse.md (castmode): New mode attribute.
3045         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3046         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3047
3048 2011-08-05  Jan Hubicka  <jh@suse.cz>
3049
3050         PR middle-end/49494
3051         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3052
3053 2011-08-05  Jan Hubicka  <jh@suse.cz>
3054
3055         PR middle-end/49500
3056         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3057         handle aliases.
3058         (create_emultls_var):New function.
3059         (ipa_lower_emutls): Handle aliases correctly.
3060
3061 2011-08-05  Jan Hubicka  <jh@suse.cz>
3062
3063         PR middle-end/49735
3064         * ipa-inline.c (recursive_inlining): Look through aliases.
3065
3066 2011-08-05  Jason Merrill  <jason@redhat.com>
3067
3068         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3069         declarations to beginning of function.
3070
3071 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3072
3073         PR rtl-optimization/49900
3074         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3075         ensure basic blocks stay in the same order.
3076
3077 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3078
3079         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3080         store_bit_field.
3081         (s390_expand_atomic): Same.
3082
3083 2011-08-05  Richard Henderson  <rth@redhat.com>
3084
3085         PR rtl-opt/49977
3086         * dwarf2cfi.c (scan_insn_after): Split out of ...
3087         (scan_trace): ... here.  Correctly place notes wrt sequences.
3088
3089 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3090             Richard Henderson  <rth@redhat.com>
3091
3092         PR rtl-opt/49982
3093         * expr.c (fixup_args_size_notes): Look through no-op moves.
3094
3095 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3096
3097         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3098         of "m" for operand 0.  Add type and mode attribute.
3099         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3100         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3101         constraint instead of "o" for opreand 1.
3102         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3103         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3104         operand 0, alternative 4.
3105         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3106
3107 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/predicates.md (lea_address_operand): Rename from
3110         no_seg_address_operand.
3111         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3112         (*lea_1_zext): Ditto.
3113         (*lea_2): Ditto.
3114         (*lea_2_zext): Ditto.
3115
3116 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3117
3118         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3119         parts.base and parts.index.
3120         * config/i386/predicates.md (aligned_operand): Ditto.
3121         (cmpxchg8b_pic_memory_operand): Ditto.
3122
3123 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3124
3125         * config/soft-fp: Move to ../libgcc.
3126         * Makefile.in (SFP_MACHINE): Remove.
3127         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3128         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3129         * config/arm/t-arm-softfp: Move to
3130         ../libgcc/config/arm/t-softfp.
3131         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3132         * config/c6x/t-c6x-softfp: Remove.
3133         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3134         * config/i386/t-fprules-softfp: Move to
3135         ../libgcc/config/t-softfp-tf.
3136         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3137         * config/ia64/t-fprules-softfp: Remove.
3138         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3139         * config/lm32/t-fprules-softfp: Remove.
3140         * config/moxie/sfp-machine.h: Remove.
3141         * config/moxie/t-moxie-softfp: Remove.
3142         * config/rs6000/darwin-ldouble-format: Move to
3143         ../libgcc/config/rs6000/ibm-ldouble-format.
3144         * config/rs6000/darwin-ldouble.c: Move to
3145         ../libgcc/config/rs6000/ibm-ldouble.c
3146         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3147         * config/rs6000/libgcc-ppc64.ver: Likewise.
3148         * config/rs6000/sfp-machine.h: Likewise.
3149         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3150         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3151         (LIB2FUNCS_EXTRA): Remove.
3152         (TARGET_LIBGCC2_CFLAGS): Remove.
3153         * config/rs6000/t-aix52: Likewise
3154         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3155         $(srcdir)/config/rs6000/darwin-ldouble.c.
3156         (SHLIB_MAPFILES): Remove.
3157         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3158         $(srcdir)/config/rs6000/darwin-ldouble.c.
3159         * config/rs6000/t-fprules-softfp: Move to
3160         ../libgcc/config/t-softfp-sfdf.
3161         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3162         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3163         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3164         $(srcdir)/config/rs6000/darwin-ldouble.c.
3165         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3166         * config/score/t-score-softfp: Remove.
3167         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3168         soft-fp/t-softfp from tmake_file.
3169         (arm*-*-uclinux*): Likewise.
3170         (arm*-*-ecos-elf): Likewise.
3171         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3172         (arm*-*-rtems*): Likewise.
3173         (arm*-*-elf): Likewise.
3174         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3175         tmake_file.
3176         (moxie-*-uclinux*): Likewise.
3177         (moxie-*-rtems*): Likewise.
3178         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3179         tmake_file.
3180         (lm32-*-rtems*): Likewise.
3181         (lm32-*-uclinux*): Likewise.
3182         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3183         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3184         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3185         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3186         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3187         tmake_file.
3188         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3189         tmake_file.
3190         (tic6x-*-uclinux): Likewise.
3191         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3192         soft-fp/t-softfp from tmake_file.
3193         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3194         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3195         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3196         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3197         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3198
3199 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3200
3201         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3202         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3203         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3204         TPBIT, TPBIT_FUNCS.
3205         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3206         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3207         Remove.
3208         * config/arm/t-vxworks: Likewise.
3209         * config/arm/t-wince-pe: Likewise.
3210         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3211         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3212         * config/bfin/t-bfin-elf: Likewise.
3213         * config/bfin/t-bfin-linux: Likewise.
3214         * config/bfin/t-bfin-uclinux: Likewise.
3215         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3216         Remove.
3217         * config/fr30/t-fr30: Likewise.
3218         * config/frv/t-frv: Likewise.
3219         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3220         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3221         * config/m32c/t-m32c: Likewise.
3222         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3223         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3224         * config/mcore/t-mcore: Likewise.
3225         * config/mep/t-mep: Likewise.
3226         * config/microblaze/t-microblaze: Likewise.
3227         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3228         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3229         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3230         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3231         * config/mn10300/t-linux: Remove.
3232         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3233         * config/pdp11/t-pdp11: Likewise.
3234         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3235         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3236         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3237         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3238         * config/rs6000/t-aix52: Likewise.
3239         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3240         $(srcdir)/config/rs6000/ppc64-fp.c.
3241         * config/rs6000/t-fprules-fpbit: Remove.
3242         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3243         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3244         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3245         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3246         * config/sparc/t-elf: Likewise.
3247         * config/sparc/t-leon: Likewise.
3248         * config/sparc/t-leon3: Likewise.
3249         * config/spu/t-spu-elf: Likewise.
3250         (DPBIT_FUNCS): Remove.
3251         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3252         * config/v850/t-v850: Likewise.
3253         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3254         (avr-*-*): Likewise.
3255         (h8300-*-rtems*): Set libgcc_tm_file.
3256         (h8300-*-elf*): Likewise.
3257         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3258         tmake_file.
3259         (powerpc-*-eabisim*): Likewise.
3260         (powerpc-*-elf*): Likewise.
3261         (powerpc-*-eabialtivec*): Likewise.
3262         (powerpc-xilinx-eabi*): Likewise.
3263         (powerpc-*-eabi*): Likewise.
3264         (powerpc-*-rtems*): Likewise.
3265         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3266         (powerpcle-*-elf*): Likewise.
3267         (powerpcle-*-eabisim*): Likewise.
3268         (powerpcle-*-eabi*): Likewise.
3269         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3270         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3271         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3272         Remove.
3273
3274 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3275
3276         * Makefile.in (UNWIND_H): Remove.
3277         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3278         ../libgcc/Makefile.in.
3279         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3280         (LIBUNWINDDEP): Remove.
3281         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3282         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3283         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3284         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3285         Don't copy $(UNWIND_H).
3286         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3287         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3288         * aclocal.m4: Regenerate.
3289         * configure: Regenerate.
3290         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3291         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3292         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3293         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3294         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3295         * config/arm/libunwind.S, config/arm/pr-support.c,
3296         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3297         ../libgcc/config/arm.
3298         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3299         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3300         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3301         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3302         ($(T)frvend$(objext)): Likewise.
3303         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3304         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3305         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3306         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3307         ../libgcc/config/ia64.
3308         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3309         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3310         * config/ia64/t-vms (LIB2ADDEH): Remove.
3311         * config/ia64/vms.h (UNW_IVMS_MODE,
3312         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3313         * config/picochip/t-picochip (LIB2ADDEH): Remove.
3314         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3315         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3316         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3317         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3318         $(srcdir)/../libgcc to refer to unwinder sources.
3319         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3320         * config/t-darwin (LIB2ADDEH): Remove.
3321         * config/t-freebsd (LIB2ADDEH): Remove.
3322         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3323         * config/t-libunwind-elf: Move to ../libgcc/config.
3324         * config/t-linux (LIB2ADDEH): Remove.
3325         * config/t-sol2 (LIB2ADDEH): Remove.
3326         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3327         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3328
3329 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
3330
3331         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3332
3333         * doc/invoke.texi: Document core-avx-i.
3334
3335 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3336
3337         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3338
3339 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
3340
3341         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3342         result of multiple results reduction when extracting the final
3343         value using scalar code.
3344
3345 2011-08-05  Richard Guenther  <rguenther@suse.de>
3346
3347         PR tree-optimization/49984
3348         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3349
3350 2011-08-05  Richard Guenther  <rguenther@suse.de>
3351
3352         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3353         return true for constant integer ranges.
3354         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3355         BIT_IOR_EXPR handling.
3356
3357 2011-08-04  Kai Tietz  <ktietz@redhat.com>
3358
3359         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3360         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3361
3362 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
3363
3364         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3365         pattern def statement, and its access macro.
3366         (NUM_PATTERNS): Set to 5.
3367         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3368         pattern def statement.
3369         (vect_transform_loop): Likewise.
3370         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3371         function vect_recog_over_widening_pattern ().
3372         (vect_operation_fits_smaller_type): New function.
3373         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3374         Likewise.
3375         (vect_pattern_recog_1): Move the code that marks pattern
3376         statements to vect_mark_pattern_stmts (), and call it.  Update
3377         documentation.
3378         * tree-vect-stmts.c (vect_supportable_shift): New function.
3379         (vect_analyze_stmt): Handle pattern def statement.
3380         (new_stmt_vec_info): Initialize pattern def statement.
3381
3382 2011-08-04  Richard Henderson  <rth@redhat.com>
3383
3384         PR target/49964
3385         * config/i386/i386.c (ix86_expand_call): Don't create nested
3386         PARALLELs for TARGET_VZEROUPPER.
3387         (ix86_split_call_vzeroupper): Fix extraction of the original call.
3388         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3389         recognize nested PARALLELs.
3390         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3391         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3392         *sibcall_value_pop_vzeroupper): Likewise.
3393
3394 2011-08-04  Richard Henderson  <rth@redhat.com>
3395
3396         PR middle-end/49968
3397         * calls.c (expand_call): Use fixup_args_size_notes for
3398         emit_stack_restore.
3399         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3400         in non-standard modes.
3401
3402 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3403
3404         * gcc.c (self_spec): New variable.
3405         (static_specs): Add self_spec.
3406         (main): Call do_self_spec on "self_spec" specs after reading
3407         user specs files.  Move compare_debug handling right after that.
3408
3409 2011-08-04  Richard Guenther  <rguenther@suse.de>
3410
3411         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3412         (value_range_nonnegative_p): New function.
3413         (ssa_name_nonnegative_p): Use it.
3414         (value_range_constant_singleton): New function.
3415         (op_with_constant_singleton_value_range): Use it.
3416         (extract_range_from_binary_expr_1): New function, split out from ...
3417         (extract_range_from_binary_expr): ... this.  Remove fallback
3418         constant folding done here.
3419
3420 2011-08-04  Richard Guenther  <rguenther@suse.de>
3421
3422         PR tree-optimization/49806
3423         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3424         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3425         a new statement for a final conversion to bool.
3426
3427 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3428
3429         * gengtype-state.c: Include "bconfig.h" if
3430         GENERATOR_FILE is defined, "config.h" otherwise.
3431         * gengtype.c: Likewise.
3432         * gengtype-lex.l: Likewise.
3433         * gengtype-parse.c: Likewise.
3434         * Makefile.in (gengtype-lex.o-warn): New variable.
3435         (plugin_resourcesdir): Likewise.
3436         (plugin_bindir): Likewise.
3437         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3438         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3439         (native): Depend on gengtype$(exeext) is $enable_plugin
3440         is set to "yes".
3441         (gtype.state): Depend on s-gtype. Use temporary file.
3442         (gengtype-lex.o): New rule.
3443         (gengtype-parse.o): Likewise.
3444         (gengtype-state.o): Likewise.
3445         (gengtype$(exeext)): Likewise.
3446         (install-gengtype): Likewise.
3447         (gengtype.o): Likewise.
3448         (build/gengtype.o): Depend on version.h.
3449         (build/gengtype-state): Depend on double-int.h, version.h,
3450         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3451         (install-plugin): Depend on install-gengtype.
3452
3453 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3454
3455         PR middle-end/49905
3456         * tree.h (init_attributes): New prototype.
3457         * attribs.c (init_attributes): No longer static.
3458
3459 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3460
3461         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3462         maybe_suffix.
3463
3464 2011-08-03   David Li  <davidxl@google.com>
3465
3466         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3467         outgoing edge counts after inlining.
3468
3469 2011-08-03   David Li  <davidxl@google.com>
3470
3471         * profile.c (compute_branch_probabilities): Compute
3472         function frequency after profile annotation.
3473
3474 2011-08-04  Alan Modra  <amodra@gmail.com>
3475
3476         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3477         use_backchain_to_restore_sp initialisation.
3478         (rs6000_legitimate_offset_address_p): Simplify offset test.
3479
3480 2011-08-03  Richard Henderson  <rth@redhat.com>
3481
3482         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3483         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3484         (UNSPECV_NOP): New.
3485
3486 2011-08-03  Richard Henderson  <rth@redhat.com>
3487
3488         PR target/34888
3489         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3490
3491 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3492
3493         PR tree-optimization/49948
3494         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3495
3496 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3497
3498         * config/m32c/m32c.c (class_sizes): Remove.
3499         (reduce_class): Change arguments and return type to reg_class_t.
3500         Change type cc var to HARD_REG_SET. Change type best var to
3501         reg_class_t. Change type best_size var to unsigned int. Remove
3502         initialization class_sizes var. Use reg_class_size array instead
3503         of class_sizes. Use reg_class_contents array instead
3504         of class_contents.
3505
3506 2011-08-03  Richard Guenther  <rguenther@suse.de>
3507
3508         PR middle-end/49958
3509         * fold-const.c (fold_binary_loc): Only associate
3510         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3511         overflow wraps.
3512
3513 2011-08-03  Alan Modra  <amodra@gmail.com>
3514
3515         PR rtl-optimization/49941
3516         * jump.c (mark_jump_label): Comment.
3517         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3518         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3519         (mark_used_flags): Don't mark RETURN.
3520
3521 2011-08-03  Richard Guenther  <rguenther@suse.de>
3522
3523         PR tree-optimization/49938
3524         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3525         deal with a POLYNOMIAL_CHREC.
3526
3527 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3528
3529         * modulo-sched.c (calculate_stage_count,
3530         calculate_must_precede_follow, get_sched_window,
3531         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3532         declaration.
3533         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3534         New functions.
3535         (reset_sched_times): Call update_node_sched_params.
3536         (sms_schedule): Call optimize_sc.
3537         (get_sched_window): Change function arguments.
3538         (sms_schedule_by_order): Update call to get_sched_window.
3539         Call set_must_precede_follow.
3540         (calculate_stage_count): Add function argument.
3541
3542 2011-08-02  Richard Henderson  <rth@redhat.com>
3543
3544         PR target/49864
3545         PR target/49879
3546         * reg-notes.def (REG_ARGS_SIZE): New.
3547         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3548         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3549         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3550         different stack levels.
3551         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3552         (maybe_move_args_size_note): New.
3553         (combine_stack_adjustments_for_block): Use it.
3554         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3555         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3556         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3557         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3558         (cur_cfa): New.
3559         (queued_args_size): Remove.
3560         (add_cfi_args_size): Assert size is non-negative.
3561         (stack_adjust_offset, dwarf2out_args_size): Remove.
3562         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3563         (notice_args_size, notice_eh_throw): New.
3564         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3565         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3566         (dwarf2out_frame_debug_cfa_offset): Likewise.
3567         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3568         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3569         (change_cfi_row): Don't emit args_size.
3570         (maybe_record_trace_start_abnormal): Split out from ...
3571         (maybe_record_trace_start): Here.  Set args_size_undefined.
3572         (create_trace_edges): Update to match.
3573         (scan_trace): Handle REG_ARGS_SIZE.
3574         (connect_traces): Connect args_size between EH insns.
3575         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3576         * explow.c (suppress_reg_args_size): New.
3577         (adjust_stack_1): Split out from ...
3578         (adjust_stack): ... here.
3579         (anti_adjust_stack): Use it.
3580         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3581         * expr.c (mem_autoinc_base): New.
3582         (fixup_args_size_notes): New.
3583         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3584         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3585         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3586         * reload1.c (reload_as_needed): Likewise.
3587         * rtl.h (fixup_args_size_notes): Declare.
3588
3589 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3590
3591         PR bootstrap/49914
3592         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3593         of abs.
3594         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3595         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3596
3597 2011-08-02  Richard Henderson  <rth@redhat.com>
3598
3599         * config/h8300/h8300.c (push, pop): Return the insn.
3600         (h8300_swap_into_er6): Generate correct unwind info.
3601         (h8300_swap_out_of_er6): Likewise.
3602         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3603         complex cfa expression.
3604         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3605
3606 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3607
3608         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3609
3610 2011-08-02  Richard Henderson  <rth@redhat.com>
3611
3612         PR target/49878
3613         * config/h8300/h8300.c (h8300_move_ok): New.
3614         * config/h8300/h8300-protos.h: Declare it.
3615         * config/h8300/h8300.md (P): New mode iterator.
3616         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3617         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3618         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3619         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3620         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3621         and pushqi1_h8300hs_normal; use PRE_MODIFY and
3622         register_no_sp_elim_operand.
3623         (*pushhi1_h8300hs_<P>): Similarly.
3624         (pushqi1, pushhi1, pushhi1_h8300): Remove.
3625         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3626
3627 2011-08-02  Richard Henderson  <rth@redhat.com>
3628
3629         PR target/49881
3630         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3631
3632 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3633
3634         * c-parser.c (enum c_parser_prec): New enum, moved from within
3635         c_parser_binary_expression.
3636         (c_parser_binary_expression): Add PREC argument.  Stop parsing
3637         if operator has lower or equal precedence than PREC.
3638         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3639         callers.
3640         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3641         Adjust c_finish_omp_atomic caller.
3642         (c_parser_omp_taskyield): New function.
3643         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3644         (c_parser_omp_clause_name): Handle final and mergeable clauses.
3645         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3646         functions.
3647         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3648         and PRAGMA_OMP_CLAUSE_MERGEABLE.
3649         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3650         (c_parser_omp_clause_reduction): Handle min and max.
3651         * c-typeck.c (c_finish_omp_clauses): Don't complain about
3652         const qualified predetermined vars in firstprivate clause.
3653         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3654         Handle MIN_EXPR and MAX_EXPR.
3655         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3656         and OMP_CLAUSE_MERGEABLE.
3657         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3658         and OMP_ATOMIC_CAPTURE_NEW.
3659         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3660         OMP_CLAUSE_MERGEABLE.
3661         (omp_clause_code_name): Likewise.
3662         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3663         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3664         and OMP_CLAUSE_MERGEABLE.
3665         (OMP_CLAUSE_FINAL_EXPR): Define.
3666         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3667         OMP_CLAUSE_MERGEABLE.
3668         (expand_task_call): Likewise.
3669         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3670         (expand_omp_atomic_fetch_op): Handle cases where old or new
3671         value is needed afterwards.
3672         (expand_omp_atomic): Call expand_omp_atomic_load resp.
3673         expand_omp_atomic_store.
3674         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3675         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3676         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3677         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3678         * tree-nested.c (convert_nonlocal_omp_clauses,
3679         convert_local_omp_clauses): Likewise.
3680         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3681         OMP_ATOMIC_CAPTURE_NEW): New.
3682         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3683         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3684         New inlines.
3685         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3686         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3687         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3688
3689 2011-08-02  Kai Tietz  <ktietz@redhat.com>
3690
3691         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3692         boolean-type.
3693         (ssa_forward_propagate_and_combine): Interprete result of
3694         forward_propagate_comparison.
3695         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3696         boolean-typed operands for comparisons.
3697
3698 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
3699
3700         * config/avr/libgcc.S: Gather related function in the
3701         same input section.
3702         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3703         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3704         references.
3705         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3706         __udivmodsi4, __divmodsi4, __prologue_saves__,
3707         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3708         __do_copy_data, __do_clear_bss, __do_global_ctors,
3709         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3710
3711 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
3712
3713         PR target/47766
3714         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3715         (stack_protect_test): The pattern compares ptr_mode value.
3716
3717 2011-08-02  Alan Modra  <amodra@gmail.com>
3718
3719         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3720         note for save_LR_around_toc_setup sequence.
3721
3722 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3723
3724         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3725
3726 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3727             Joseph Myers  <joseph@codesourcery.com>
3728
3729         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3730         * hwint.c: Include diagnostic-core.h.
3731         (abs_hwi): New.
3732         (gcd): Moved here...
3733         (pos_mul_hwi): New.
3734         (mul_hwi): New.
3735         (least_common_multiple): Moved here...
3736         * hwint.h (gcd): ... from here.
3737         (least_common_multiple): ... from here.
3738         (HOST_WIDE_INT_MIN): New.
3739         (HOST_WIDE_INT_MAX): New.
3740         (abs_hwi): Declared.
3741         (gcd): Declared.
3742         (pos_mul_hwi): Declared.
3743         (mul_hwi): Declared.
3744         (least_common_multiple): Declared.
3745         * omega.c (check_pos_mul): Removed.
3746         (check_mul): Removed.
3747         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3748         mul_hwi instead of check_mul.
3749
3750 2011-08-01  Richard Henderson  <rth@redhat.com>
3751
3752         PR target/49881
3753         * config/avr/avr.h (PUSH_ROUNDING): New.
3754         * config/avr/avr.md (pushqi1): Rename from *pushqi.
3755         (*pushhi, *pushsi, *pushsf): Remove.
3756         (MPUSH): New mode iterator.
3757         (push<MPUSH>1): New expander.
3758
3759 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
3760
3761         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3762         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3763         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3764         mmix_preferred_output_reload_class): Remove.
3765         * config/mmix/mmix.c (mmix_preferred_reload_class,
3766         mmix_preferred_output_reload_class): Make static. Change rclass
3767         argument and return type to reg_class_t.
3768         (TARGET_PREFERRED_RELOAD_CLASS,
3769         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3770
3771 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3772
3773         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3774         handling.
3775
3776 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3777
3778         PR target/47766
3779         * config/i386/i386.md (PTR): New.
3780         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3781         (stack_protect_test): Likewise.
3782         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3783         (stack_tls_protect_set_<mode>): Likewise.
3784         (stack_tls_protect_test_<mode>): Likewise.
3785
3786 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
3787
3788         PR target/49927
3789         * config/i386/i386.c (ix86_address_subreg_operand): New.
3790         (ix86_decompose_address): Use ix86_address_subreg_operand.
3791         (ix86_legitimate_address_p): Do not assert that subregs satisfy
3792         register_no_elim_operand in DImode.
3793
3794 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
3795
3796         PR tree-optimization/49926
3797         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3798         in a chain doesn't have uses both inside and outside the loop.
3799
3800 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3801
3802         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3803         * config/avr/avr-devices.c (avr_mcu_types): Use it.
3804         * config/avr/avr-mcus.def (AVR_MCU): Use it.
3805         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3806         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3807         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3808         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3809         to detect if XJMP must not be skipped.
3810
3811 2011-08-02  Alan Modra  <amodra@gmail.com>
3812
3813         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3814         Delete.
3815         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3816         (rs6000_emit_prologue): Don't prematurely return when
3817         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
3818         save_toc_in_prologue case.
3819         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3820         calls_alloca.
3821
3822 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3823
3824         * config/avr/avr-devices.c: Delete SVN property svn:executable.
3825         * config/avr/predicates.md: Ditto.
3826         * config/avr/driver-avr.c: Ditto.
3827         * config/avr/genopt.sh: Set SVN property svn:executable to *.
3828
3829 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3830
3831         * calls.c (emit_library_call_value_1): Declare size only if
3832         BLOCK_REG_PADDING is defined.
3833
3834 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
3835
3836         PR target/49547
3837         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3838         (x86_64-*-*): Likewise.
3839         * config/i386/i386.opt (mlzcnt): New.
3840         * config/i386/abmintrin.h: File removed.
3841         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3842         * config/i386/lzcntintrin.h: ... here.  New file.
3843         (__lzcnt): Rename to ...
3844         (__lzcnt32): ... this.
3845         * config/i386/bmiintrin.h (head): Update copyright year.
3846         (__lzcnt_u16): Removed.
3847         (__lzcnt_u32): Likewise.
3848         (__lzcnt_u64): Likewise.
3849         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3850         is defined, remove abmintrin.h.
3851         * config/i386/cpuid.h (bit_LZCNT): New.
3852         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3853         LZCNT feature.
3854         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3855         __LZCNT__ if needed.
3856         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3857         (ix86_option_override_internal): Handle LZCNT option.
3858         (ix86_valid_target_attribute_inner_p): Likewise.
3859         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3860         * config/i386/i386.h (TARGET_LZCNT): New.
3861         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3862         * config/i386/i386.md (clz<mode>2): Update insn constraint.
3863         (clz<mode>2_lzcnt): Likewise.
3864         * doc/invoke.texi: Mention -mlzcnt option.
3865         * doc/extend.texi: Likewise.
3866
3867 2011-08-01  Julian Brown  <julian@codesourcery.com>
3868
3869         * configure.ac (fixed-point): Add ARM support.
3870         * configure: Regenerate.
3871         * config/arm/arm.c (arm_fixed_mode_set): New struct.
3872         (arm_set_fixed_optab_libfunc): New.
3873         (arm_set_fixed_conv_libfunc): New.
3874         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3875         ARM-specific names.
3876         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3877         return values in SImode.
3878         (arm_return_in_msb): Return fixed-point types in the msb.
3879         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3880         upwards.
3881         (arm_scalar_mode_supported_p): Support fixed-point modes.
3882         (arm_vector_mode_supported_p): Support vector fixed-point modes.
3883         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3884         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3885         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3886         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3887         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3888         New mode iterators.
3889         (qaddsub_suf): New mode attribute.
3890         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3891         vector modes.
3892         * config/arm/predicates.md (sat_shift_operator): New predicate.
3893         * config/arm/arm-fixed.md: New.
3894         * config/arm/arm.md: Include arm-fixed.md.
3895         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3896
3897 2011-08-01  Julian Brown  <julian@codesourcery.com>
3898
3899         * calls.c (emit_library_call_value_1): Support padding for libcall
3900         arguments and return values.
3901         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3902         downwards in big-endian mode.
3903
3904 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3905
3906         PR debug/49887
3907         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3908         * config/sol2-protos.h: Likewise.
3909         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
3910         solaris_code_end.
3911         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
3912         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
3913         solaris_file_end.
3914         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
3915
3916 2011-08-01  Julian Brown  <julian@codesourcery.com>
3917
3918         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
3919
3920 2011-08-01  Julian Brown  <julian@codesourcery.com>
3921
3922         * final.c (output_addr_const): Print fixed-point constants as
3923         decimal not hex.
3924
3925 2011-08-01  Richard Guenther  <rguenther@suse.de>
3926
3927         * stor-layout.c (initialize_sizetypes): Properly sign-extend
3928         bitsiztype TYPE_MAX_VALUE.
3929
3930 2011-08-01  Julian Brown  <julian@codesourcery.com>
3931
3932         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
3933         comparison helpers.
3934
3935 2011-07-31  Richard Henderson  <rth@redhat.com>
3936
3937         * config/h8300/crti.asm: Add flags to .section directive.
3938         * config/h8300/crtn.asm: Likewise.
3939
3940 2011-07-31  Richard Henderson  <rth@redhat.com>
3941
3942         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
3943         * tree.c (build_common_tree_nodes): Likewise.
3944
3945 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3946
3947         PR target/49880
3948         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
3949         (divsi3_i1): Likewise.
3950
3951 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3952
3953         PR tree-optimization/49749
3954         * tree-ssa-reassoc.c (get_rank): New forward declaration.
3955         (PHI_LOOP_BIAS): New macro.
3956         (phi_rank): New function.
3957         (loop_carried_phi): Likewise.
3958         (propagate_rank): Likewise.
3959         (get_rank): Add calls to phi_rank and propagate_rank.
3960
3961 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
3962
3963         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
3964         of TARGET_64BIT.
3965         (PTRDIFF_TYPE): Likewise.
3966
3967 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
3968
3969         PR target/49920
3970         * config/i386/i386.md (strset): Do not expand strset_singleop
3971         when %eax or $edi are fixed.
3972         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
3973         (*strsetsi_1): Ditto.
3974         (*strsethi_1): Ditto.
3975         (*strsetqi_1): Ditto.
3976         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
3977         (*rep_stossi): Ditto.
3978         (*rep_stosqi): Ditto.
3979         (*strlenqi_1): Ditto.
3980         (cmpstrnsi): Also fail when %ecx is fixed.
3981         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
3982         (*cmpstrnqi_1): Ditto.
3983         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
3984         (*strmovsi_1): Ditto.
3985         (*strmovhi_1): Ditto.
3986         (*strmovqi_1): Ditto.
3987         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
3988         (*rep_movsi): Ditto.
3989         (*rep_movqi): Ditto.
3990
3991 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
3992
3993         PR target/47908
3994         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
3995         Disable instruction scheduling for non-ColdFire targets.
3996         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3997
3998 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3999
4000         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4001         of anti-dep edge from a branch.
4002         (add_cross_iteration_register_deps): Create anti-dep edge from
4003         a branch.
4004
4005 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4006
4007         * modulo-sched.c: Change comment.
4008         (reset_sched_times): Fix print message.
4009         (print_partial_schedule): Add print info.
4010
4011 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4012
4013         PR middle-end/43513
4014         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4015         get_object_alignment and TYPE_ALIGN.
4016
4017 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4018
4019         PR middle-end/43513
4020         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4021         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4022
4023 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4024
4025         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4026         <sys/sbd.h>.
4027         (cpu_types): New array.
4028         (cputype): New function.
4029         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4030         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4031         * config.host: Also use driver-native.o, mips/x-native on
4032         mips-sgi-irix*.
4033         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4034         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4035         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4036
4037 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4038
4039         PR middle-end/49897
4040         PR middle-end/49898
4041         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4042         in nested parallel and outer is a gimple_reg, mark it as addressable
4043         and set its bit in task_shared_vars bitmap too.
4044
4045 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4048
4049 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4050
4051         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4052         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4053         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4054         AMASK_LOCKPFTCHOK): Define.
4055         (host_detect_local_cpu): Remove buf, f, cpu_names.
4056         Define cpu_types, implver, amask.
4057         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4058         native CPU.
4059         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4060         alpha*-dec-osf*.
4061         * config/alpha/osf5.h [__alpha__ || __alpha]
4062         (host_detect_local_cpu): Declare.
4063         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4064         (DRIVER_SELF_SPECS): Define.
4065
4066 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4067
4068         PR target/47715
4069         * config/i386/i386.md (*load_tp_x32): New.
4070         (*load_tp_x32_zext): Ditto.
4071         (*add_tp_x32): Ditto.
4072         (*add_tp_x32_zext): Ditto.
4073         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4074         (*add_tp_<mode>): Ditto.
4075         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4076         ptr_mode and convert to Pmode if needed.
4077
4078 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4079
4080         PR target/49687
4081         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4082         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4083         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4084         Add X to register footprint: Clobber r26/r27.
4085
4086 2011-07-29  Richard Guenther  <rguenther@suse.de>
4087
4088         * builtins.c (fold_builtin_signbit): Build the comparison
4089         with a proper type.
4090
4091 2011-07-29  Richard Guenther  <rguenther@suse.de>
4092
4093         PR tree-optimization/49893
4094         * tree-predcom.c (suitable_reference_p): Volatile references
4095         are not suitable.
4096
4097 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4098
4099         PR target/49313
4100         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4101         (__ctzsi2): Result for 0 may be undefined.
4102         (__ctzhi2): Result for 0 may be undefined.
4103         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4104         (__popcountsi2): Ditto. And don't clobber r26.
4105         (__popcountdi2): Ditto. And don't clobber r27.
4106         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4107         (parityhi2): New expand.
4108         (paritysi2): New expand.
4109         (popcounthi2): New expand.
4110         (popcountsi2): New expand.
4111         (clzhi2): New expand.
4112         (clzsi2): New expand.
4113         (ctzhi2): New expand.
4114         (ctzsi2): New expand.
4115         (ffshi2): New expand.
4116         (ffssi2): New expand.
4117         (copysignsf3): New insn.
4118         (bswapsi2): New expand.
4119         (*parityhi2.libgcc): New insn.
4120         (*parityqihi2.libgcc): New insn.
4121         (*paritysihi2.libgcc): New insn.
4122         (*popcounthi2.libgcc): New insn.
4123         (*popcountsi2.libgcc): New insn.
4124         (*popcountqi2.libgcc): New insn.
4125         (*popcountqihi2.libgcc): New insn-and-split.
4126         (*clzhi2.libgcc): New insn.
4127         (*clzsihi2.libgcc): New insn.
4128         (*ctzhi2.libgcc): New insn.
4129         (*ctzsihi2.libgcc): New insn.
4130         (*ffshi2.libgcc): New insn.
4131         (*ffssihi2.libgcc): New insn.
4132         (*bswapsi2.libgcc): New insn.
4133
4134 2011-07-29  Richard Guenther  <rguenther@suse.de>
4135
4136         * tree-vrp.c (get_value_range): Only set parameter default
4137         definitions to varying, leave others at undefined.
4138         (extract_range_from_binary_expr): Fix undefined handling.
4139         (vrp_visit_phi_node): Handle merged undefined state.
4140
4141 2011-07-29  Wei Guozhi  <carrot@google.com>
4142
4143         PR rtl-optimization/49799
4144         * combine.c (make_compound_operation): Check if the bit field is valid
4145         before change it to bit field extraction.
4146
4147 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4148
4149         PR rtl-optimization/49891
4150         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4151         newly created returnjumps.
4152
4153 2011-07-28  DJ Delorie  <dj@redhat.com>
4154
4155         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4156         local frame in a naked function, and produce a suitable error for
4157         that specific case.
4158
4159         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4160         registers to be reloaded in HI classes when the target is HI.
4161
4162 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4163
4164         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4165         bound_one, bound_two.
4166
4167 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4168
4169         PR middle-end/48648
4170         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4171         CLAST assignments.
4172         (translate_clast): Same.
4173         (translate_clast_assignment): New.
4174
4175 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4176
4177         PR tree-optimization/49876
4178         * sese.c (rename_uses): Do not return false on gloog_error: set
4179         the new_expr to integer_zero_node and continue code generation.
4180         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4181
4182 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4183
4184         PR debug/49846
4185         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4186         arguments also check if they aren't initialized with a MODE_INT
4187         mode of the same size.
4188
4189 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4190
4191         * expr.c (get_bit_range): Handle *MEM_REF's.
4192
4193 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4194
4195         * rtlanal.c (tablejump_p): False for returns.
4196         * reorg.c (first_active_target_insn): New static function.
4197         (find_end_label): Set JUMP_LABEL for a new returnjump.
4198         (optimize_skip, get_jump_flags, rare_destination,
4199         mostly_true_jump, get_branch_condition,
4200         steal_delay_list_from_target, own_thread_p,
4201         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4202         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4203         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4204         * jump.c (delete_related_insns): Likewise.
4205         (jump_to_label_p): New function.
4206         (redirect_target): New static function.
4207         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4208         (redirect_jump_1): Assert that the new label is nonnull.
4209         (redirect_jump): Likewise.
4210         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4211         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4212         exit block.
4213         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4214         changed.  Ensure that the right label is passed to redirect_jump.
4215         * function.c (emit_return_into_block,
4216         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4217         ret_rtx in their JUMP_LABEL.
4218         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4219         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4220         pass ret_rtx as label.
4221         * cfglayout.c (fixup_reorder_chain): Use
4222         force_nonfallthru_and_redirect rather than force_nonfallthru.
4223         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4224         * rtl.h (ANY_RETURN_P): New macro.
4225         (jump_to_label_p): Declare.
4226         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4227         JUMP_LABELs.
4228         (mark_target_live_regs): Likewise.
4229         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4230         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4231         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4232         alpha_tablejump_best_label): Remove functions.
4233         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4234         alpha_tablejump_best_label): Remove declarations.
4235         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4236         ret_rtx in JUMP_LABELs.
4237         * config/arm/arm.c (is_jump_table): Likewise.
4238
4239 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4240
4241         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4242         special predicate.  Remove explicit mode checks.
4243
4244 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4245
4246         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4247         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4248
4249         PR debug/49871
4250         * dwarf2out.c (size_of_die, value_format, output_die): Use
4251         DW_FORM_udata instead of DW_FORM_data[48] for
4252         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4253
4254 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4255
4256         * config/i386/i386.md (*tls_global_dynamic_64): Update
4257         length attribute.
4258
4259 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4260
4261         PR target/47715
4262         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4263         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
4264         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4265         (tls_dynamic_gnu2_64): Ditto.
4266         (*tls_dynamic_gnu2_lea_64): Ditto.
4267         (*tls_dynamic_gnu2_call_64): Ditto.
4268         (*tls_dynamic_gnu2_combine_64): Ditto.
4269
4270 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4271
4272         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4273
4274 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4275
4276         PR target/47364
4277         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4278
4279 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4280
4281         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4282         before the core constraints. Adjust attributes.
4283         ("*thumb2_movdf_vfp"): Likewise.
4284
4285 2011-07-28  Kai Tietz  <ktietz@redhat.com>
4286
4287         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4288         (simplify_truth_ops_using_ranges): Likewise.
4289         (build_assert_expr_for): Likewise.
4290         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4291         and handle BIT_NOT_EXPR for truth-operation.
4292
4293 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4294
4295         PR target/49313
4296         Undo r176835 from trunk
4297         2011-07-27  Georg-Johann Lay
4298
4299 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4300
4301         PR target/49687
4302         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4303         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4304         * config/avr/libgcc.S (__mulsi3): Rewrite.
4305         (__mulhisi3): Rewrite.
4306         (__umulhisi3): Rewrite.
4307         (__usmulhisi3): New.
4308         (__muluhisi3): New.
4309         (__mulshisi3): New.
4310         (__mulohisi3): New.
4311         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4312         declare.
4313         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4314         (pseudo_register_or_const_int_operand): New.
4315         (combine_pseudo_register_operand): New.
4316         (u16_operand): New.
4317         (s16_operand): New.
4318         (o16_operand): New.
4319         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4320         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4321         (any_extend, any_extend2): New code iterators.
4322         (extend_prefix): New code attribute.
4323         (mulsi3): Rewrite. Turn insn to expander.
4324         (mulhisi3): Ditto.
4325         (umulhisi3): Ditto.
4326         (usmulhisi3): New expander.
4327         (*mulsi3): New insn-and-split.
4328         (mulu<mode>si3): New insn-and-split.
4329         (muls<mode>si3): New insn-and-split.
4330         (mulohisi3): New insn-and-split.
4331         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4332         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4333         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4334         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4335         insn-and-split.
4336         (*mulsi3_call): Rewrite.
4337         (*mulhisi3_call): Rewrite.
4338         (*umulhisi3_call): Rewrite.
4339         (*usmulhisi3_call): New insn.
4340         (*muluhisi3_call): New insn.
4341         (*mulshisi3_call): New insn.
4342         (*mulohisi3_call): New insn.
4343         (extendqihi2): Use combine_pseudo_register_operand as predicate
4344         for operand 1.
4345         (extendqisi2): Ditto.
4346         (zero_extendqihi2): Ditto.
4347         (zero_extendqisi2): Ditto.
4348         (zero_extendhisi2): Ditto.
4349         (extendhisi2): Ditto. Don't early-clobber operand 0.
4350
4351 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4352
4353         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4354
4355 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4356
4357         PR tree-optimization/49471
4358         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4359         iv only when the largest type is unsigned.  Do not call
4360         lang_hooks.types.type_for_size.
4361
4362 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4363
4364         PR middle-end/45450
4365         * graphite-poly.c (apply_poly_transforms): Disable legality check
4366         after an openscop read.
4367
4368 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4369
4370         PR middle-end/47691
4371         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4372         copy_bb_and_scalar_dependences.
4373         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
4374         (graphite_copy_stmts_from_block): Update call to rename_uses.
4375         (copy_bb_and_scalar_dependences): Update call to
4376         graphite_copy_stmts_from_block.
4377         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4378
4379 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
4380
4381         PR target/49313
4382         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4383         (__ctzsi2): Result for 0 may be undefined.
4384         (__ctzhi2): Result for 0 may be undefined.
4385         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4386         (__popcountsi2): Ditto. And don't clobber r26.
4387         (__popcountdi2): Ditto. And don't clobber r27.
4388         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4389         (parityhi2): New expand.
4390         (paritysi2): New expand.
4391         (popcounthi2): New expand.
4392         (popcountsi2): New expand.
4393         (clzhi2): New expand.
4394         (clzsi2): New expand.
4395         (ctzhi2): New expand.
4396         (ctzsi2): New expand.
4397         (ffshi2): New expand.
4398         (ffssi2): New expand.
4399         (copysignsf3): New insn.
4400         (bswapsi2): New expand.
4401         (*parityhi2.libgcc): New insn.
4402         (*parityqihi2.libgcc): New insn.
4403         (*paritysihi2.libgcc): New insn.
4404         (*popcounthi2.libgcc): New insn.
4405         (*popcountsi2.libgcc): New insn.
4406         (*popcountqi2.libgcc): New insn.
4407         (*popcountqihi2.libgcc): New insn-and-split.
4408         (*clzhi2.libgcc): New insn.
4409         (*clzsihi2.libgcc): New insn.
4410         (*ctzhi2.libgcc): New insn.
4411         (*ctzsihi2.libgcc): New insn.
4412         (*ffshi2.libgcc): New insn.
4413         (*ffssihi2.libgcc): New insn.
4414         (*bswapsi2.libgcc): New insn.
4415
4416 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4417
4418         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4419         the mode of symbolic_opreand RTXes.
4420
4421 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4422
4423         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4424         for pic_32bit_operand RTXes.
4425         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4426         in DImode.
4427
4428 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4429
4430         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4431         for 32-bit, too.
4432         (ix86_handle_abi_attribute): Allow function attributes
4433         ms_abi/sysv_abi in 32-bit mode, too.
4434         * doc/extend.texi: Adjust attribute documentation.
4435
4436         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4437         expression handling.
4438         (and_var_with_comparison_1): Likewise.
4439
4440 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4441
4442         * params.h (ALLOW_STORE_DATA_RACES): New.
4443         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4444         * Makefile.in (expr.o): Depend on PARAMS_H.
4445         * machmode.h (get_best_mode): Add argument.
4446         * fold-const.c (optimize_bit_field_compare): Add argument to
4447         get_best_mode.
4448         (fold_truthop): Same.
4449         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4450         * expr.c (emit_group_store): Same.
4451         (copy_blkmode_from_reg): Same.
4452         (write_complex_part): Same.
4453         (optimize_bitfield_assignment_op): Add argument.
4454         Add argument to get_best_mode.
4455         (get_bit_range): New.
4456         (expand_assignment): Calculate maxbits and pass it down accordingly.
4457         (store_field): New argument.
4458         (expand_expr_real_2): New argument to store_field.  Include params.h.
4459         * expr.h (store_bit_field): New argument.
4460         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4461         into account maxbits.
4462         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4463         to store_bit_field.
4464         * expmed.c (store_bit_field_1): New argument.  Use it.
4465         (store_bit_field): Same.
4466         (store_fixed_bit_field): Same.
4467         (store_split_bit_field): Same.
4468         (extract_bit_field_1): Pass new argument to get_best_mode.
4469         (extract_bit_field): Same.
4470         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4471         * doc/invoke.texi: Document parameter allow-store-data-races.
4472
4473 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4474
4475         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4476
4477 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4478
4479         * tree-vrp.c (extract_range_from_binary_expr): Remove
4480         TRUTH-binary cases and add new bitwise-cases.
4481         (extract_range_from_assignment): Likewise.
4482         (register_edge_assert_for_1): Likeiwise.
4483         (register_edge_assert_for): Likewise.
4484         (simplify_truth_ops_using_ranges): Likewise.
4485         (simplify_stmt_using_ranges): Likewise.
4486
4487 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4488
4489         PR target/47372
4490         * config/i386/i386.c (ix86_delegitimize_address): Call
4491         simplify_gen_subreg for PIC with mode of x only if modes of
4492         x and orig_x are different.
4493
4494 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4495
4496         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4497         to GC allocated copy of the string.
4498         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4499         before .debug_line, not after it.
4500
4501 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4502
4503         PR middle-end/47046
4504         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4505         evolution_function_is_affine_p on CHREC_RIGHT.
4506
4507 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4508
4509         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4510         lang_hooks.types.type_for_size.
4511
4512 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4513
4514         PR middle-end/47653
4515         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4516         loops using wrapping semantics.
4517
4518 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4519
4520         PR middle-end/48805
4521         * tree-scalar-evolution.c (instantiate_scev_r): Return
4522         chrec_dont_know for ADDR_EXPR.
4523
4524 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4525             H.J. Lu  <hongjiu.lu@intel.com>
4526
4527         PR target/47369
4528         PR target/49853
4529         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4530         if legitimize_tls_address returned operand in wrong mode. Allow
4531         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4532         if legitimize_pic_address returned operand in wrong mode.
4533
4534 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4535
4536         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4537         return false for invariants.
4538
4539 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4540
4541         * config/i386/i386.md (add->lea splitter): Implement using SWI
4542         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4543         (add->lea zext splitter): Change operand 2 predicate to
4544         x86_64_nonmemory_operand.
4545
4546 2011-07-26  Richard Guenther  <rguenther@suse.de>
4547
4548         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4549         frequency makes everything hot.
4550
4551 2011-07-26  Richard Guenther  <rguenther@suse.de>
4552
4553         PR tree-optimization/49840
4554         * tree-vrp.c (range_fits_type_p): Properly handle full
4555         double-int precision.
4556
4557 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4558
4559         PR bootstrap/49786
4560         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4561         counts.
4562         (update_specialized_profile): Likewise.
4563
4564 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4565             H.J. Lu  <hongjiu.lu@intel.com>
4566
4567         PR target/47381
4568         PR target/49832
4569         PR target/49833
4570         * config/i386/i386.md (i): Change SImode attribute to "e".
4571         (g): Change SImode attribute to "rme".
4572         (di): Change SImode attribute to "nF".
4573         (general_operand): Change SImode attribute to x86_64_general_operand.
4574         (general_szext_operand): Change SImode attribute to
4575         x86_64_szext_general_operand.
4576         (immediate_operand): Change SImode attribute to
4577         x86_64_immediate_operand.
4578         (nonmemory_operand): Change SImode attribute to
4579         x86_64_nonmemory_operand.
4580         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4581         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4582         (*lea_1): Use SWI48 mode iterator.
4583         (*lea_1_zext): New insn pattern.
4584         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4585         (*bt<mode>): Ditto.
4586         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4587         Update operand constraints.
4588         (addsi_1_zext): Ditto.
4589         (*add<mode>2): Ditto.
4590         (*addsi_3_zext): Ditto.
4591         (*subsi_1_zext): Ditto.
4592         (*subsi_2_zext): Ditto.
4593         (*subsi_3_zext): Ditto.
4594         (*addsi3_carry_zext): Ditto.
4595         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4596         (*mulsi3_1_zext): Ditto.
4597         (*andsi_1): Ditto.
4598         (*andsi_1_zext): Ditto.
4599         (*andsi_2_zext): Ditto.
4600         (*<any_or:code>si_1_zext): Ditto.
4601         (*<any_or:code>si_2_zext): Ditto.
4602         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4603         (*and<mode>_2): Ditto.
4604         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4605         (add->lea splitter): Check operand modes in insn constraint.  Extend
4606         operands less than SImode wide to SImode.
4607         (add->lea zext splitter): Do not extend input operands to DImode.
4608         (*lea_general_1): Handle only QImode and HImode operands.
4609         (*lea_general_2): Ditto.
4610         (*lea_general_3): Ditto.
4611         (*lea_general_1_zext): Remove.
4612         (*lea_general_2_zext): Ditto.
4613         (*lea_general_3_zext): Ditto.
4614         (*lea_general_4): Check operand modes in insn constraint.  Extend
4615         operands less than SImode wide to SImode.
4616         (ashift->lea splitter): Ditto.
4617         * config/i386/i386.c (ix86_print_operand_address): Print address
4618         registers with 'q' modifier on 64bit targets.
4619         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4620         predicate.  Reject non-SI and non-DI modes.
4621
4622 2011-07-25  Andrew Pinski  <apinski@cavium.com>
4623
4624         PR tree-opt/49671
4625         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4626         TREE_THIS_NOTRAP into the inner most MEM_REF.
4627         Always copy TREE_THIS_VOLATILE.
4628         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4629         arguments are not volatile references.
4630
4631 2011-07-25  Richard Henderson  <rth@redhat.com>
4632
4633         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4634         * final.c (final_scan_insn): Don't test for it.
4635         (rest_of_clean_state): Likewise.
4636
4637 2011-07-25  Richard Henderson  <rth@redhat.com>
4638
4639         PR debug/49841
4640         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4641         (emit_frame_save): Likewise.
4642         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4643         insn onto a dummy blockage insn after the join label.
4644
4645 2011-07-25  Richard Henderson  <rth@redhat.com>
4646
4647         * dwarf2cfi.c (dw_trace_info): Add ID member.
4648         (get_trace_index): Remove.  Change users to use ID member.
4649         (before_next_cfi_note): New.
4650         (connect_traces): Remove unreachable traces before the main loop.
4651         Look across one trace and generate remember/restore_state if needed.
4652
4653 2011-07-25  Richard Henderson  <rth@redhat.com>
4654
4655         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4656
4657 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
4658
4659         * genattr.c (write_upcase, gen_attr <enum definition writing>):
4660         Move to ...
4661         * genattr-common.c ... here.
4662         (main): Call gen_attr.
4663         * optc-gen.awk: Make generated program include insn-attr-common.h .
4664         * Makefile.in (oprions.o): Depend on insn-attr-common.h
4665
4666 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4667
4668         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4669         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4670         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4671         m32c_print_operand, m32c_print_operand_address): Remove.
4672         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4673         Change return type to bool. Change argument type to bool.
4674         (m32c_print_operand, m32c_print_operand_address): Make static.
4675         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4676         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4677
4678 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4679
4680         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4681         attributes): Document mmap.
4682
4683 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4684
4685         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4686         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4687         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4688         mmix_print_operand, mmix_print_operand_address): Remove.
4689         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4690         Change return type to bool. Change argument type to bool.
4691         (mmix_print_operand, mmix_print_operand_address): Make static.
4692         (mmix_intval, mmix_output_condition): Change 'x' argument type
4693         to const_rtx.
4694         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4695         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4696
4697 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
4698
4699         PR target/39386
4700         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4701         shift counter for x << x and x >> x shifts.
4702
4703 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4704
4705         PR target/47124
4706         * config.gcc: Reject *-*-solaris2 configuration.
4707
4708 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
4709
4710         PR tree-optimization/49809
4711         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4712         gimple_get_lhs instead of gimple_assign_lhs.
4713
4714 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4715
4716         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4717
4718 2011-07-25  Richard Guenther  <rguenther@suse.de>
4719
4720         PR tree-optimization/49822
4721         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4722         more.  Make sure to preserve stmts with side-effects.  Properly
4723         handle virtual defs, follow a longer def chain.
4724
4725 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
4726
4727         PR plugins/45348
4728         PR plugins/48425
4729         PR plugins/46577
4730         * Makefile.in: Do not flatten c-family directory when installing
4731         plugin headers.
4732
4733 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4734
4735         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4736         original nodes if we are dealing with virtual clones.
4737
4738 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
4739
4740         * common/config/c6x/c6x-common.c: New file.
4741
4742 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
4743
4744         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4745
4746 2011-07-25  Richard Guenther  <rguenther@suse.de>
4747
4748         PR tree-optimization/49715
4749         * tree-vrp.c: Include expr.h and optabs.h.
4750         (range_fits_type_): New function.
4751         (simplify_float_conversion_using_ranges): Likewise.
4752         (simplify_stmt_using_ranges): Call it.
4753         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4754         * optabs.c (can_float_p): Export.
4755         * optabs.h (can_float_p): Declare.
4756
4757 2011-07-25  Richard Guenther  <rguenther@suse.de>
4758
4759         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4760         (get_value_range): For out-of-range SSA names or names created
4761         after propagation return a read-only varying range.
4762         (dump_all_value_ranges): Adjust.
4763         (vrp_initialize): Likewise.
4764         (vrp_finalize): Likewise.
4765
4766 2011-07-24  Richard Henderson  <rth@redhat.com>
4767
4768         PR debug/49831
4769         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
4770         them entirely.
4771
4772 2011-07-24  Richard Henderson  <rth@redhat.com>
4773
4774         PR debug/49825
4775         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4776         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4777
4778 2011-07-24  Richard Henderson  <rth@redhat.com>
4779
4780         PR debug/49827
4781         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4782
4783 2011-07-24  Richard Henderson  <rth@redhat.com>
4784
4785         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4786         Zero args_size for abnormal edges.  Adjust all callers.
4787
4788 2011-07-24  Richard Henderson  <rth@redhat.com>
4789
4790         PR debug/49825
4791         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4792
4793 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4794
4795         PR bootstrap/49835
4796         * collect2.c (demangle_flag): Removed.
4797
4798 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
4799
4800         * configure.ac (demangler_in_ld): Default to yes.
4801         * configure: Regenerated.
4802         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4803         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4804         --no-demangle options straight through to ld.  When
4805         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4806         way that has the intended effect on Windows.
4807
4808 2011-07-23  Richard Henderson  <rth@redhat.com>
4809
4810         * dwarf2cfi.c: Include basic-block.h.
4811         (dw_label_info): Remove.
4812         (trace_work_list, trace_index): New.
4813         (remember_row, emit_cfa_remember): Remove.
4814         (dw_trace_info_hash, dw_trace_info_eq): New.
4815         (get_trace_index, get_trace_info): New.
4816         (save_point_p): New.
4817         (free_cfi_row): Remove.
4818         (add_cfi): Do not emit DW_CFA_remember_state.
4819         (cfa_row_equal_p): New.
4820         (barrier_args_size): Remove.
4821         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4822         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4823         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4824         (dwarf2out_cfi_begin_epilogue): Remove.
4825         (dwarf2out_frame_debug_restore_state): Remove.
4826         (connect_traces, create_pseudo_cfg): New.
4827         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4828         * Makefile.in (dwarf2cfi.o): Update.
4829
4830 2011-07-23  Richard Henderson  <rth@redhat.com>
4831
4832         * dwarf2cfi.c (dw_trace_info): New.
4833         (dw_label_info): New.
4834         (cie_return_save): New.
4835         (cur_trace): New.
4836         (queued_args_size): Rename from args_size.  Update all users.
4837         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4838         (def_cfa_1): Use cur_trace instead of cfa_*.
4839         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4840         (clobbers_queued_reg_save, reg_saved_in): Likewise.
4841         (dwarf2out_frame_debug_expr): Likewise.
4842         (create_cie_data): Split out from ...
4843         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
4844
4845 2011-07-23  Richard Henderson  <rth@redhat.com>
4846
4847         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4848         Update all users to match.
4849         (execute_dwarf2_frame): Free reg_saved_in_data.
4850
4851 2011-07-23  Richard Henderson  <rth@redhat.com>
4852
4853         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4854         (queued_reg_saves): Don't GTY.  Change to a VEC.
4855         (queue_reg_save): Update to match.
4856         (dwarf2out_flush_queued_reg_saves): Likewise.
4857         (clobbers_queued_reg_save): Likewise.
4858         (reg_saved_in): Likewise.
4859         (execute_dwarf2_frame): Free queued_reg_saves.
4860
4861 2011-07-23  Richard Henderson  <rth@redhat.com>
4862
4863         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
4864
4865 2011-07-23  Richard Henderson  <rth@redhat.com>
4866
4867         * dwarf2cfi.c (add_cfi_args_size): Split out from...
4868         (dwarf2out_args_size): ... here.
4869         (add_cfi_restore): Split out from ...
4870         (dwarf2out_frame_debug_cfa_restore): ... here.
4871         (def_cfa_0): Split out from ...
4872         (def_cfa_1): ... here.
4873         (cfi_oprnd_equal_p, cfi_equal_p): New.
4874         (change_cfi_row): New.
4875         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4876         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4877         (output_cfis): Remove.
4878         * dwarf2out.c (output_fde): Simplify output_cfi loop.
4879         (dwarf2out_switch_text_section): Don't call output_cfis.
4880         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4881         * dwarf2out.h: Update decls.
4882         (enum dw_val_class): Add dw_val_class_none.
4883
4884 2011-07-23  Richard Henderson  <rth@redhat.com>
4885
4886         * dwarf2cfi.c (update_row_reg_save): New.
4887         (dwarf2out_frame_debug_cfa_expression): Use it.
4888         (dwarf2out_frame_debug_cfa_restore): Likewise.
4889         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
4890
4891 2011-07-23  Richard Henderson  <rth@redhat.com>
4892
4893         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
4894
4895 2011-07-23  Richard Henderson  <rth@redhat.com>
4896
4897         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4898         (cie_cfi_row): New.
4899         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4900         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4901         (cur_row, remember_row): New.
4902         (def_cfa_1): Use cur_row instead of the old_* variables.
4903         (dwarf2out_frame_debug_restore_state): Similarly.
4904         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4905         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4906         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4907         (dwarf2out_frame_debug_cfa_offset): Likewise.
4908         (dwarf2out_frame_debug_expr): Likewise.
4909         (execute_dwarf2_frame): Set up cur_row.
4910         * dwarf2out.h (struct cfa_loc): Mark for GTY.
4911
4912 2011-07-23  Richard Henderson  <rth@redhat.com>
4913
4914         * basic-block.h (EDGE_PRESERVE): New.
4915         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
4916         * bb-reorder.c: Include except.h.
4917         (fix_up_crossing_landing_pad): New.
4918         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
4919         landing pads in the right partition.  Duplicate as necessary.
4920         (partition_hot_cold_basic_blocks): Fix up DF info after
4921         duplicating landing pads.
4922         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
4923         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
4924         is set properly.  Validate that EH edges are not CROSSING.
4925         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
4926         (dw2_build_landing_pads): ... here.
4927         (convert_to_eh_region_ranges): Remove code to fixup crossing
4928         landing pads.
4929         * except.h (expand_dw2_landing_pad_for_region): Declare.
4930         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
4931
4932 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
4933
4934         PR target/49816
4935         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
4936
4937 2011-07-22  Jason Merrill  <jason@redhat.com>
4938
4939         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
4940
4941 2011-07-22  Richard Henderson  <rth@redhat.com>
4942
4943         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
4944
4945 2011-07-22  Richard Henderson  <rth@redhat.com>
4946
4947         * jump.c (maybe_propagate_label_ref): Split out of...
4948         (mark_all_labels): ... here.  Do not attempt label_ref
4949         propagation while in cfglayout mode.
4950
4951 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4952
4953         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
4954         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
4955         (dwarf_attr_name): Handle DW_AT_GNU_macros.
4956         (dwarf2out_define): If the vector is empty and
4957         lineno is 0, emit a dummy entry first.
4958         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
4959         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
4960         optimize_macinfo_range): New functions.
4961         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
4962         mergeable, optimize longer strings using
4963         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
4964         optimize longer sequences of define/undef ops from headers
4965         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
4966         emit a section headers.
4967         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
4968         and macinfo_section_label to DEBUG_MACRO_SECTION
4969         resp. DEBUG_MACRO_SECTION_LABEL.
4970         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
4971         instead of DW_AT_macro_info.
4972
4973         PR other/32998
4974         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
4975         options.
4976         * dwarf2out.c: Include opts.h.
4977         (dchar_p): New typedef.  Define heap VEC for it.
4978         (producer_string): New variable.
4979         (gen_producer_string): New function.
4980         (gen_compile_unit_die): Use it.
4981         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
4982         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
4983         * doc/invoke.texi: Document -grecord-gcc-switches and
4984         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
4985         to -frecord-gcc-switches description.
4986
4987 2011-07-22  Jason Merrill  <jason@redhat.com>
4988
4989         PR c++/30112
4990         * c-decl.c (c_linkage_bindings): Define.
4991
4992 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4993
4994         PR debug/49815
4995         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
4996
4997 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
4998
4999         * config/i386/i386.c (ix86_option_override_internal): Disallow
5000         MS ABI in x32 mode.
5001         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5002         only for TARGET_LP64.
5003         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5004
5005 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5006
5007         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5008         avoid warnings when GCC is built with a C++ compiler.
5009
5010 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5011
5012         PR lto/49796
5013         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5014         if decl node is in another partition, call cgraph_get_node only once.
5015
5016 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5017
5018         * config.gcc (x86_64-*-linux*): Set
5019         default_gnu_indirect_function to yes.
5020
5021 2011-07-22  Richard Guenther  <rguenther@suse.de>
5022
5023         PR tree-optimization/45819
5024         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5025         preserve volatile and notrap flags.
5026
5027 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5028             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5029
5030         PR bootstrap/49794
5031         * configure.ac: Test AM_ICONV with CXX.
5032         * configure: Regenerate.
5033         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5034
5035 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5036
5037         PR bootstrap/49797
5038         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5039         (set_cloog_options): Use it.
5040
5041 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5042
5043         PR c++/49756
5044         * gcc.c (main): Call stack_limit_increase (64MB).
5045         * toplev.c (toplev_main): Likewise.
5046
5047 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5048
5049         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5050         instead of force_reg.
5051
5052 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5053
5054         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5055         needed and use force_reg after convert.
5056         (ix86_expand_call): Likewise.
5057         (ix86_expand_special_args_builtin): Likewise.
5058         (ix86_expand_builtin): Likewise.
5059
5060 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5061
5062         PR middle-end/47654
5063         PR middle-end/49649
5064         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5065         in parameter.  Initialize v1 and v2 based on the values returned
5066         by clast_name_to_lb_ub.
5067         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5068         values.
5069         (type_for_clast_bin): Same.
5070         (type_for_clast_expr): Same.
5071         (type_for_clast_eq): Update calls to type_for_clast_expr.
5072         (type_for_clast_for): Same.
5073         (build_iv_mapping): Same.
5074         * graphite-ppl.h (value_min): New.
5075
5076 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5077
5078         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5079         types whenever possible.
5080
5081 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5082
5083         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5084         and ub fields.
5085         (new_clast_name_index): Add lb and ub parameters.
5086         (free_clast_name_index): New.
5087         (clast_name_to_lb_ub): New.
5088         (save_clast_name_index): Add lb and ub parameters.
5089         (compute_bounds_for_param): New.
5090         (type_for_level): Removed.
5091         (type_for_clast_for): Removed level parameter.  Do not call
5092         type_for_level.
5093         (graphite_create_new_loop): Store the lb and ub for the clast_name
5094         of the iterator of the loop that has been generated.
5095         (graphite_create_new_loop_guard): Remove parameter level.
5096         (create_params_index): Store the lb and ub of each parameter.
5097         (gloog): Use free_clast_name_index.  Pass to create_params_index
5098         the current scop.
5099
5100 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5101
5102         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5103         (max_precision_type): Inline max_signed_precision_type.
5104         (type_for_clast_red): Use max_precision_type.
5105         (type_for_clast_bin): Same.
5106         (type_for_clast_for): Same.
5107
5108 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5109
5110         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5111         type_for_interval.
5112         (gcc_type_for_value): Renamed type_for_value.
5113         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5114         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5115         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5116         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5117         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5118         (graphite_translate_clast_equation): Update calls.
5119         (compute_type_for_level): Renamed type_for_level.
5120         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5121         (build_iv_mapping): Update calls.
5122         (graphite_create_new_loop_guard): Same.
5123
5124 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5125
5126         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5127         comment.
5128
5129 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5130
5131         * graphite-clast-to-gimple.c (struct ivs_params): New.
5132         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5133         (clast_to_gcc_expression): Same.
5134         (clast_to_gcc_expression_red): Same.
5135         (gcc_type_for_clast_term): Same.
5136         (gcc_type_for_clast_expr): Same.
5137         (gcc_type_for_clast_red): Same.
5138         (gcc_type_for_clast_bin): Same.
5139         (gcc_type_for_clast_eq): Same.
5140         (graphite_translate_clast_equation): Same.
5141         (graphite_create_guard_cond_expr): Same.
5142         (graphite_create_new_guard): Same.
5143         (graphite_create_new_loop): Same.
5144         (build_iv_mapping): Same.
5145         (translate_clast_user): Same.
5146         (graphite_create_new_loop_guard): Same.
5147         (translate_clast): Same.
5148         (translate_clast_for_loop): Same.
5149         (translate_clast_for): Same.
5150         (translate_clast_guard): Same.
5151         (initialize_cloog_names): Fix typo.
5152         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5153
5154 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5155
5156         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5157         (new_clast_name_index): Add level parameter.
5158         (clast_name_to_level): New.
5159         (save_clast_name_index): Add level parameter.
5160         (newivs_to_depth_to_newiv): Removed.
5161         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5162         (graphite_create_new_loop): Add level parameter.  Pass level to
5163         save_clast_name_index.
5164         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5165         (create_params_index): Pass level to save_clast_name_index.
5166
5167 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5168
5169         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5170         recompute type, lb, and ub.  Get them from...
5171         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5172         pointers to type, lb, and ub.
5173         (translate_clast_for_loop): Update function calls.
5174         (translate_clast_for): Same.
5175
5176 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5177
5178         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5179         psct_dynamic_dim.
5180         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5181         (gcc_type_for_iv_of_clast_loop): Update use of level.
5182         (gloog): Start counting nesting level from 0.
5183         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5184         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5185         psct_dynamic_dim on level.
5186
5187 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5188
5189         * config/i386/i386.c (ix86_legitimize_address): Convert to
5190         Pmode if needed.
5191
5192 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5193
5194         * config/i386/i386.c (function_value_64): Always return pointers
5195         in Pmode.
5196         (ix86_promote_function_mode): New.
5197         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5198
5199 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5200
5201         PR tree-optimization/49749
5202         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5203         remove no-longer-used maxrank variable.
5204
5205 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5206
5207         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5208
5209 2011-07-21  Jason Merrill  <jason@redhat.com>
5210
5211         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5212         * recog.h (struct insn_data_d): Check it instead of
5213         HAVE_DESIGNATED_INITIALIZERS.
5214         * genoutput.c (output_insn_data): Likewise.
5215
5216 2011-07-21  Richard Guenther  <rguenther@suse.de>
5217
5218         PR tree-optimization/49770
5219         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5220         valueized any operand.  Renamed from ...
5221         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5222         (valueize_shared_reference_ops_from_ref): Return whether we
5223         valueized any operand.
5224         (vn_reference_lookup): Only when we valueized any operand
5225         use the valueized reference for alias analysis.  Do not preserve
5226         the original reference tree in this case.
5227
5228 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5229
5230         * config/i386/i386.c (ix86_decompose_address): Reject all but
5231         register operands and subregs of DImode hard registers in index.
5232
5233 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5234
5235         * fold-const.c (fold_unary_loc): Preserve indirect
5236         comparison cast to none-boolean type.
5237         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5238         from/to boolean-type.
5239         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5240         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5241         * tree-cfg.c (verify_gimple_comparison): Check result
5242         type of comparison expression.
5243         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5244         of condition result and disallow type-cast sinking into comparison.
5245
5246 2011-07-21  Richard Guenther  <rguenther@suse.de>
5247
5248         * tree-ssa-forwprop.c (combine_conversions): Return whether
5249         we have to run cfg-cleanup.  Properly remove dead stmts.
5250         (ssa_forward_propagate_and_combine): Adjust.
5251
5252 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
5253
5254         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5255
5256 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5257
5258         * tree-ssa-propagate.c (substitute_and_fold): Use
5259         do_dce flag to deside, if BB's statements are scanned
5260         in last to first, or first to last order.
5261
5262 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5263
5264         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5265
5266 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
5267             Uros Bizjak  <ubizjak@gmail.com>
5268             Richard Henderson  <rth@redhat.com>
5269
5270         * config/i386/constraints.md (w): New.
5271
5272         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5273         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5274
5275         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5276         instead of TARGET_64BIT.
5277
5278         * config/i386/i386.md (indirect_jump): Replace
5279         nonimmediate_operand with indirect_branch_operand.
5280         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
5281         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5282         Convert operand 0 to Pmode for x32 if not PIC.
5283         (*tablejump_1): Replace nonimmediate_operand with
5284         indirect_branch_operand.  Replace constraint "m" with "w".
5285         (*call_vzeroupper): Replace constraint "m" with "w".
5286         (*call): Likewise.
5287         (*call_rex64_ms_sysv_vzeroupper): Likewise.
5288         (*call_rex64_ms_sysv): Likewise.
5289         (*call_value_vzeroupper): Likewise.
5290         (*call_value): Likewise.
5291         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5292         (*call_value_rex64_ms_sysv): Likewise.
5293         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5294
5295         * config/i386/predicates.md (indirect_branch_operand): New.
5296         (call_insn_operand): Support x32.
5297
5298 2011-07-20  Michael Eager  <eager@eagercon.com>
5299
5300         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5301
5302 2011-07-20  Richard Henderson  <rth@redhat.com>
5303
5304         * cfg.c (dump_bb_info): Dump basic_block->flags.
5305         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5306
5307 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5308
5309         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5310         of DImode hard registers in index.
5311         (ix86_legitimate_address_p): Allow subregs of base and index to span
5312         more than a word.  Assert that subregs of base and index satisfy
5313         register_no_elim_operand predicates.  Reject addresses where
5314         base and index have different modes.
5315
5316 2011-07-20  Robert Millan  <rmh@gnu.org>
5317
5318         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5319
5320 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5321
5322         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5323         removing now-unnecessary assignment.
5324
5325 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5326
5327         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5328         memory address space to the type's address space.
5329
5330 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5331
5332         PR target/36467
5333         PR target/49687
5334         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5335         and expand appropriately if there is a CONST_INT in operand2.
5336         (usmulqihi3): New insn.
5337         (*sumulqihi3): New insn.
5338         (*osmulqihi3): New insn.
5339         (*oumulqihi3): New insn.
5340         (*muluqihi3.uconst): New insn_and_split.
5341         (*muluqihi3.sconst): New insn_and_split.
5342         (*mulsqihi3.sconst): New insn_and_split.
5343         (*mulsqihi3.uconst): New insn_and_split.
5344         (*mulsqihi3.oconst): New insn_and_split.
5345         (*ashifthi3.signx.const): New insn_and_split.
5346         (*ashifthi3.signx.const7): New insn_and_split.
5347         (*ashifthi3.zerox.const): New insn_and_split.
5348         (mulsqihi3): New insn.
5349         (muluqihi3): New insn.
5350         (muloqihi3): New insn.
5351         * config/avr/predicates.md (const_2_to_7_operand): New.
5352         (const_2_to_6_operand): New.
5353         (u8_operand): New.
5354         (s8_operand): New.
5355         (o8_operand): New.
5356         (s9_operand): New.
5357         (register_or_s9_operand): New.
5358
5359 2011-07-20  Kai Tietz  <ktietz@redhat.com>
5360
5361         * builtins.c (fold_builtin_expect): See through the cast
5362         from truthvalue_type_node to long.
5363
5364 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5365
5366         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5367         where we can use them from the standard and altivec instruction
5368         sets, instead of always using the 3 operand VSX forms that require
5369         the destination to overlap one of the inputs.
5370         (vsx_fms*): Ditto.
5371         (vsx_fnma*): Ditto.
5372         (vsx_fnms*): Ditto.
5373
5374         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5375         for DF types.
5376         (fmsdf4_fpr): Ditto.
5377         (nfmadf4_fpr): Ditto.
5378         (nfmsdf4_fpr): Ditto.
5379
5380 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
5381
5382         * genrecog.c (make_insn_sequence): Correct position numbering
5383         when filtering out match_scratch and match_dup.
5384
5385 2011-07-20  Richard Guenther  <rguenther@suse.de>
5386
5387         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5388         against already removed statements.
5389         (forward_propagate_into_comparison): Remove dead defining stmts.
5390         (forward_propagate_into_gimple_cond): Likewise.
5391         (forward_propagate_into_cond): Simplify.
5392         (ssa_forward_propagate_and_combine): Handle changed cfg from
5393         forward_propagate_into_comparison.
5394         * tree-ssa-phiopt.c (conditional_replacement): Use proper
5395         locations for newly built statements.
5396
5397 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5398
5399         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5400
5401 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5402
5403         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5404         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5405
5406 2011-07-20  Richard Guenther  <rguenther@suse.de>
5407
5408         PR middle-end/18908
5409         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5410         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5411         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
5412
5413 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
5414
5415         * config/frv/frv.c (frv_register_move_cost): Define explicitly
5416         costs for subclasses of GR_REGS.
5417
5418 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5419
5420         PR target/49780
5421         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5422         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5423         of DImode hard registers in base.
5424         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5425         registers.
5426
5427 2011-07-20  Richard Guenther  <rguenther@suse.de>
5428
5429         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5430         (unify_nodes): Deal with that.
5431         (solve_graph): Likewise.
5432
5433 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5434
5435         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5436         canonicalize left operand from ZERO_EXTEND to AND.
5437
5438 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5439
5440         * target.def (class_max_nregs): New hook.
5441         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5442         * doc/tm.texi: Regenerate.
5443         * targhooks.c (default_class_max_nregs): New function.
5444         * targhooks.h (default_class_max_nregs): Declare.
5445         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5446         x_ira_reg_class_min_nregs arrays to unsigned char.
5447         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5448         hook instead of CLASS_MAX_NREGS macro.
5449         * reginfo.c (restore_register_info): Ditto.
5450         * ira-conflicts.c (process_regs_for_copy): Use
5451         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5452         Change type rclass and aclass vars to reg_class_t.
5453         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5454         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5455         reg_class_t.
5456         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5457         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5458
5459         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5460         * config/i386/i386.c (ix86_class_max_nregs): New function.
5461         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5462         instead of CLASS_MAX_NREGS macro.
5463         (TARGET_CLASS_MAX_NREGS): Define.
5464         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5465         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5466         * config/avr/avr.c (class_max_nregs): Remove function.
5467         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5468         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5469         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5470         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5471         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5472         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5473         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5474         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5475         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5476         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5477         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5478         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5479         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5480         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5481         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5482
5483 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5484
5485         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5486         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5487         (EH_PERSONALITY): Fix typo.
5488         (NON_CALL_EXCEPTIONS): Fix message.
5489         (OPTIMIZATION_MISMATCH): Adjust message.
5490         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5491
5492 2011-07-19  Ian Lance Taylor  <iant@google.com>
5493
5494         * doc/install.texi (Configuration): Document
5495         --enable-build-poststage1-with-cxx.
5496
5497 2011-07-19  Robert Millan  <rmh@gnu.org>
5498
5499         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5500         (GLIBC_DYNAMIC_LINKER): Remove.
5501
5502         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5503         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5504         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5505         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5506         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5507         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5508
5509         * config/mips/linux.h: Remove everything except for ...
5510         (GLIBC_DYNAMIC_LINKER): ... this macro.
5511
5512         * config/mips/linux64.h: Remove everything except for ...
5513         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5514         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5515         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5516         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5517         (GNU_USER_LINK_EMULATIONN32): New macros.
5518
5519         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5520         Use the new headers.
5521
5522 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5523
5524         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5525         Add offset_known_p and size_known_p fields.
5526         (MEM_OFFSET_KNOWN_P): Update accordingly.
5527         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5528         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5529         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5530         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5531         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5532         (init_emit_regs): Likewise.
5533
5534 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5535
5536         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5537         (MEM_OFFSET): Change from returning an rtx to returning a
5538         HOST_WIDE_INT.
5539         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5540         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5541         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5542         (clear_mem_offset): Declare.
5543         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5544         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5545         MEM_OFFSET to get a HOST_WIDE_INT offset.
5546         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5547         (adjust_offset_for_component_ref): Take a bool "known_p"
5548         parameter and a HOST_WIDE_INT "offset" parameter.
5549         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5550         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5551         than an rtx.  Use clear_mem_offset to clear the offset.
5552         * cfgcleanup.c (merge_memattrs): Likewise.
5553         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5554         * function.c (assign_parm_find_stack_rtl): Likewise.
5555         (assign_parm_setup_stack): Likewise.
5556         * print-rtl.c (print_rtx): Likewise.
5557         * reload.c (find_reloads_subreg_address): Likewise.
5558         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5559         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5560         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5561         (get_mem_align_offset): Likewise.
5562         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5563         (clear_mem_offset): New function.
5564         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5565         offset rather than an rtx.  Assume both the expressio and offset
5566         are available.
5567         (r10k_needs_protection_p_1): Update accordingly, checking the
5568         expression and offset availability here instead.
5569
5570 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5571
5572         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5573         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5574         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5575         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5576         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5577         (clear_mem_size): Declare.
5578         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5579         (clear_mem_size): New function.
5580         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5581         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5582         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5583         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5584         to clear the size.
5585         (nonoverlapping_memrefs_p): Likewise.
5586         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5587         (expand_builtin_init_trampoline): Likewise.
5588         * calls.c (compute_argument_addresses): Likewise.
5589         * cfgcleanup.c (merge_memattrs): Likewise.
5590         * dce.c (find_call_stack_args): Likewise.
5591         * dse.c (record_store, scan_insn): Likewise.
5592         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5593         * expr.c (emit_block_move_hints): Likewise.
5594         * function.c (assign_parm_find_stack_rtl): Likewise.
5595         * print-rtl.c (print_rtx): Likewise.
5596         * reload.c (find_reloads_subreg_address): Likewise.
5597         * rtlanal.c (may_trap_p_1): Likewise.
5598         * var-tracking.c (track_expr_p): Likewise.
5599         * varasm.c (assemble_trampoline_template): Likewise.
5600         * config/arm/arm.c (arm_print_operand): Likewise.
5601         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5602         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5603         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5604         (expand_constant_setmem_prologue): Likewise.
5605         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5606         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5607         (adjacent_mem_locations): Likewise.
5608         * config/s390/s390.c (s390_expand_setmem): Likewise.
5609         (s390_expand_insv): Likewise.
5610         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5611         (*extendqi<mode>2_short_displ): Likewise.
5612         * config/sh/sh.c (expand_block_move): Likewise.
5613         * config/sh/sh.md (extv, extzv): Likewise.
5614
5615 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5616
5617         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5618         (mem_attrs_htab_eq): ...here.
5619         (find_mem_attrs): Replace with...
5620         (set_mem_attrs): ...this function.  Take a mem_attrs structure
5621         rather than individual fields.
5622         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5623         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5624         (set_mem_size, change_address, adjust_address_1, offset_address)
5625         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5626         Update accordingly.
5627
5628 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5629
5630         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5631         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5632         Provide a dummy definition of MEM_ADDR_SPACE for generators.
5633         (target_rtl): Add x_mode_mem_attrs.
5634         (mode_mem_attrs): New macro.
5635         (get_mem_attrs): New function.
5636         * emit-rtl.c (get_mem_attrs): Rename to...
5637         (find_mem_attrs): ...this.
5638         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5639         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5640         (set_mem_size, change_address, adjust_address_1, offset_address)
5641         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5642         Update accordingly.
5643         (init_emit_regs): Initialize mode_mem_attrs.
5644
5645 2011-07-19  Richard Guenther  <rguenther@suse.de>
5646
5647         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5648         TRUTH_*_EXPR handling.
5649         * tree-ssa-operands.c (get_expr_operands): Likewise.
5650         * tree-ssa-pre.c (fully_constant_expression): Likewise.
5651         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5652         Likewise.
5653         (is_and_or_or): Likewise.
5654         (is_norm_cond_subset_of): Likewise.
5655
5656 2011-07-19  Richard Guenther  <rguenther@suse.de>
5657
5658         * tree.h (fold_build_pointer_plus_loc): New helper function.
5659         (fold_build_pointer_plus_hwi_loc): Likewise.
5660         (fold_build_pointer_plus): Define.
5661         (fold_build_pointer_plus_hwi): Likewise.
5662         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5663         (fold_builtin_memory_op): Likewise.
5664         (fold_builtin_stpcpy): Likewise.
5665         (fold_builtin_memchr): Likewise.
5666         (fold_builtin_strstr): Likewise.
5667         (fold_builtin_strchr): Likewise.
5668         (fold_builtin_strrchr): Likewise.
5669         (fold_builtin_strpbrk): Likewise.
5670         (fold_builtin_strcat): Likewise.
5671         (expand_builtin_memory_chk): Likewise.
5672         (fold_builtin_memory_chk): Likewise.
5673         * c-typeck.c (build_unary_op): Likewise.
5674         * cgraphunit.c (thunk_adjust): Likewise.
5675         * fold-const.c (build_range_check): Likewise.
5676         (fold_binary_loc): Likewise.
5677         * omp-low.c (extract_omp_for_data): Likewise.
5678         (expand_omp_for_generic): Likewise.
5679         (expand_omp_for_static_nochunk): Likewise.
5680         (expand_omp_for_static_chunk): Likewise.
5681         * tree-affine.c (add_elt_to_tree): Likewise.
5682         * tree-data-ref.c (split_constant_offset_1): Likewise.
5683         * tree-loop-distribution.c (generate_memset_zero): Likewise.
5684         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5685         * tree-predcom.c (ref_at_iteration): Likewise.
5686         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5687         (add_to_parts): Likewise.
5688         (create_mem_ref): Likewise.
5689         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5690         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5691         (number_of_iterations_le): Likewise.
5692         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5693         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5694         (vect_create_addr_base_for_vector_ref): Likewise.
5695         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5696         (vect_create_cond_for_alias_checks): Likewise.
5697         * tree-vrp.c (extract_range_from_assert): Likewise.
5698         * config/alpha/alpha.c (alpha_va_start): Likewise.
5699         (alpha_gimplify_va_arg_1): Likewise.
5700         * config/i386/i386.c (ix86_va_start): Likewise.
5701         (ix86_gimplify_va_arg): Likewise.
5702         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5703         * config/mep/mep.c (mep_expand_va_start): Likewise.
5704         (mep_gimplify_va_arg_expr): Likewise.
5705         * config/mips/mips.c (mips_va_start): Likewise.
5706         (mips_gimplify_va_arg_expr): Likewise.
5707         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5708         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5709         (rs6000_gimplify_va_arg): Likewise.
5710         * config/s390/s390.c (s390_va_start): Likewise.
5711         (s390_gimplify_va_arg): Likewise.
5712         * config/sh/sh.c (sh_va_start): Likewise.
5713         (sh_gimplify_va_arg_expr): Likewise.
5714         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5715         * config/spu/spu.c (spu_va_start): Likewise.
5716         (spu_gimplify_va_arg_expr): Likewise.
5717         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5718         Likewise.
5719         (xstormy16_gimplify_va_arg_expr): Likewise.
5720         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5721         (xtensa_gimplify_va_arg_expr): Likewise.
5722
5723 2011-07-19  Richard Guenther  <rguenther@suse.de>
5724
5725         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5726         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5727         handling.
5728
5729         PR middle-end/18908
5730         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5731         result of BIT_*_EXPR to bitfield precision.
5732
5733 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
5734
5735         PR tree-optimization/49742
5736         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5737         as a potential write.
5738
5739 2011-07-19  Richard Guenther  <rguenther@suse.de>
5740
5741         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5742         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5743         (forward_propagate_comparison): Simplify, remove obsolete code.
5744
5745 2011-07-19  Richard Guenther  <rguenther@suse.de>
5746
5747         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5748         BIT_XOR_EXPR, same as the RTL expander does.
5749         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5750         (verify_gimple_assign_unary): Likewise.
5751         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5752         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5753         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5754
5755 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
5756
5757         PR tree-optimization/49768
5758         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5759         if offset is smaller than bitoffset, but offset+size is bigger
5760         than bitoffset.
5761
5762 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
5763
5764         PR tree-optimization/49771
5765         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5766         zero step, set segment length to the size of the data-ref's type.
5767
5768 2011-07-18  Martin Jambor  <mjambor@suse.cz>
5769
5770         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5771         comments.
5772         (ipcp_values_pool): Declare.
5773         (ipcp_sources_pool): Likewise.
5774         (ipcp_lattice): Changed to forward declaration.
5775         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5776         cannot_devirtualize.
5777         (ipa_node_params): New fields descriptors, lattices, known_vals,
5778         clone_for_all_contexts and node dead, removed fields params and
5779         count_scale.
5780         (ipa_set_param_count): Removed.
5781         (ipa_get_param_count): Made to work with descriptors vector.
5782         (ipa_get_param): Updated.
5783         (ipa_param_cannot_devirtualize_p): Removed.
5784         (ipa_param_types_vec_empty): Likewise.
5785         (ipa_set_param_used): New function.
5786         (ipa_get_param_used): Updated to use descriptors vector.
5787         (ipa_func_list): Removed.
5788         (ipa_init_func_list): Removed declaration.
5789         (ipa_push_func_to_list_1): Likewise.
5790         (ipa_pop_func_from_list): Likewise.
5791         (ipa_push_func_to_list): Removed.
5792         (ipa_lattice_from_jfunc): Remove declaration.
5793         (ipa_get_jf_pass_through_result): Declare.
5794         (ipa_get_jf_ancestor_result): Likewise.
5795         (ipa_value_from_jfunc): Likewise.
5796         (ipa_get_lattice): Update.
5797         (ipa_lat_is_single_const): New function.
5798         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5799         (ipa_init_func_list): Likewise.
5800         (ipa_pop_func_from_list): Likewise.
5801         (ipa_get_param_decl_index): Fix coding style.
5802         (count_formal_params): Removed.
5803         (count_formal_params_1): Renamed to count_formal_params.
5804         (ipa_populate_param_decls): Update to use descriptors vector.
5805         (ipa_initialize_node_params): Likewise.
5806         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5807         (ipa_analyze_params_uses): Likewise.
5808         (ipa_free_node_params_substructures): Likewise and free also lattices
5809         and known values.
5810         (duplicate_array): Removed.
5811         (ipa_edge_duplication_hook): Add the new edge to the list of edge
5812         clones.
5813         (ipa_node_duplication_hook): Update to use new lattices.
5814         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5815         (ipa_free_all_structures_after_iinln): Likewise.
5816         (ipa_write_node_info): Update to use new lattices.
5817         (ipa_read_node_info): Likewise.
5818         (ipa_get_jf_pass_through_result): New function.
5819         (ipa_get_jf_ancestor_result): Likewise.
5820         (ipa_value_from_jfunc): Likewise.
5821         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5822         * ipa-cp.c: Reimplemented.
5823         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5824         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5825         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5826         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5827         * doc/invoke.texi (devirt-type-list-size): Removed description.
5828         (ipa-cp-value-list-size): Added description.
5829
5830 2011-07-18  Richard Henderson  <rth@redhat.com>
5831
5832         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5833         before calling create_basic_block.
5834
5835 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
5836
5837         PR middle-end/49675
5838         * tree.c (build_common_builtin_nodes): Register
5839         __builtin_return_address, __cyg_profile_func_enter
5840         and __cyg_profile_func_exit.
5841
5842 2011-07-18  Richard Henderson  <rth@redhat.com>
5843
5844         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5845         (add_labels_and_missing_jumps): ... here.
5846         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5847
5848 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
5849
5850         PR target/47744
5851         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5852         of DImode hard registers in PLUS address chains.
5853
5854 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5855
5856         PR bootstrap/49769
5857         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5858         (alpha*-*-freebsd*): Likewise.
5859         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5860         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5861         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5862         crtprec80.o, crtfastmath.o to extra_parts for all targets.
5863         (ia64*-*-elf*): Remove extra_parts.
5864         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5865         (sparc64-*-linux*): Likewise.
5866         (sparc64-*-freebsd*): Likewise.
5867
5868         Revert:
5869         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5870         (ia64*-*-linux*): Likewise.
5871         (mips64*-*-linux*): Likewise.
5872         (mips*-*-linux*): Likewise.
5873
5874 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
5875
5876         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5877
5878 2011-07-18  Richard Guenther  <rguenther@suse.de>
5879
5880         * gimplify.c (gimplify_expr): Use input_location, not saved_location
5881         when building new trees.
5882
5883 2011-07-18  Richard Guenther  <rguenther@suse.de>
5884
5885         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5886         expansion result to bitfield precision if required.
5887
5888 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5889
5890         * config.gcc (i[3456x]86-*-netware*): Remove.
5891
5892         * gthr-nks.h: Remove.
5893         * configure.ac (enable_threads): Remove nks.
5894         * configure: Regenerate.
5895
5896         * config/i386/i386.c (ix86_encode_section_info): Remove netware
5897         reference.
5898         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5899         <netware.h> reference.
5900
5901         * config/i386/netware-libgcc.c,
5902         gcc/config/i386/netware-libgcc.def,
5903         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5904         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5905         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5906         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5907
5908         * doc/extend.texi (Function Attributes,
5909         callee_pop_aggregate_return): Remove i?86-netware reference.
5910         * doc/install.texi (Configuration, --enable-threads): Remove nks.
5911
5912 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5913
5914         PR target/49746
5915         Revert:
5916         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5917
5918         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
5919         patterns.
5920
5921 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
5922
5923         PR middle-end/49732
5924         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
5925
5926 2011-07-16  Matthias Klose  <doko@ubuntu.com>
5927
5928         * doc/install.texi: Document --enable-static-libjava.
5929
5930 2011-07-15  Richard Henderson  <rth@redhat.com>
5931
5932         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5933         Replace all three arguments by returning a VEC of edges.
5934         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
5935         pointers and counts.
5936         (fix_edges_for_rarely_executed_code): Merge ...
5937         (rest_of_handle_partition_blocks): ... into...
5938         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
5939         any work was performed.
5940         (pass_partition_blocks): Clear todo_flags_finish.
5941
5942 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
5943             Jakub Jelinek  <jakub@redhat.com>
5944             Jonathan Wakely  <jwakely.gcc@gmail.com>
5945
5946         PR libstdc++/49745
5947         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
5948         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
5949
5950 2011-07-15  Jason Merrill  <jason@redhat.com>
5951
5952         PR testsuite/49741
5953         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
5954         rather than --tool_opts.
5955
5956 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
5957
5958         * doc/plugins.texi (Building GCC plugins): gengtype needs its
5959         corresponding gtype.state.
5960
5961 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5962
5963         PR target/49723
5964         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
5965
5966 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5967
5968         PR target/48220
5969         * doc/md.texi (Standard Names): Document window_save.
5970         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
5971         expand_debug_expr and expand_debug_source_expr.  If the target has
5972         a window_save instruction, adjust the ENTRY_VALUE_EXP.
5973         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
5974         SSA_NAME_VAR is a parameter.
5975         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
5976         * var-tracking.c (parm_reg_t): New type and associated vector type.
5977         (windowed_parm_regs): New variable.
5978         (adjust_insn): If the target has a window_save instruction and this
5979         is the instruction, make its effect on parameter registers explicit.
5980         (next_non_note_insn_var_location): New function.
5981         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
5982         (vt_add_function_parameter): If the target has a window_save insn,
5983         adjust the incoming RTL and record that in windowed_parm_regs.
5984         (vt_finalize): Free windowed_parm_regs.
5985
5986 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5987
5988         * doc/invoke.texi (C6X Options): New section.
5989         * doc/md.texi (TI C6X family): New section.
5990         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
5991         tic6x-*-uclinux.
5992         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
5993         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
5994         Provide C6X definitions.
5995         * config/c6x/c6x.md: New file.
5996         * config/c6x/constraints.md: New file.
5997         * config/c6x/predicates.md: New file.
5998         * config/c6x/c6x-sched.md.in: New file.
5999         * config/c6x/c6x-sched.md: New file.
6000         * config/c6x/gensched.sh: New file.
6001         * config/c6x/c6x-mult.md.in: New file.
6002         * config/c6x/genmult.sh: New file.
6003         * config/c6x/c6x-mult.md: New file.
6004         * config/c6x/sync.md: New file.
6005         * config/c6x/c6x-protos.h: New file.
6006         * config/c6x/sfp-machine.h: New file.
6007         * config/c6x/c6x.c: New file.
6008         * config/c6x/c6x.h: New file.
6009         * config/c6x/crti.s: New file.
6010         * config/c6x/crtn.s: New file.
6011         * config/c6x/lib1funcs.asm: New file.
6012         * config/c6x/c6x-modes.def: New file.
6013         * config/c6x/genopt.sh: New file.
6014         * config/c6x/c6x.opt: New file.
6015         * config/c6x/c6x-tables.opt: New file.
6016         * config/c6x/c6x-opts.h: New file.
6017         * config/c6x/c6x-isas.def: New file.
6018         * config/c6x/elf.h: New file.
6019         * config/c6x/elf-common.h: New file.
6020         * config/c6x/uclinux-elf.h: New file.
6021         * config/c6x/t-c6x: New file.
6022         * config/c6x/t-c6x-elf: New file.
6023         * config/c6x/t-c6x-uclinux: New file.
6024         * config/c6x/t-c6x-softfp: New file.
6025         * config/c6x/gtd.c: New file.
6026         * config/c6x/gtf.c: New file.
6027         * config/c6x/ltd.c: New file.
6028         * config/c6x/ltf.c: New file.
6029         * config/c6x/ged.c: New file.
6030         * config/c6x/gef.c: New file.
6031         * config/c6x/led.c: New file.
6032         * config/c6x/lef.c: New file.
6033         * config/c6x/eqd.c: New file.
6034         * config/c6x/eqf.c: New file.
6035         * config/c6x/libgcc-c6xeabi.ver: New file.
6036
6037         Revert
6038         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6039         PR rtl-optimization/11320
6040         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6041         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6042         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6043         current_sched_info->compute_jump_reg_dependencies. Record which
6044         registers are used and which registers are set by the jump.
6045         Clear deps->reg_conditional_sets after a barrier.
6046         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6047         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6048         (init_deps): Initialize reg_conditional_sets.
6049         (free_deps): Clear reg_conditional_sets.
6050         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6051         Mark registers live on entry of the fallthrough block and conditionally
6052         set as set by the jump. Mark registers live on entry of non-fallthrough
6053         blocks as used by the jump.
6054         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6055         Mark new parameters as unused.
6056
6057 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6058
6059         PR tree-opt/49309
6060         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6061         Use fold_build2_loc instead of build2.
6062         Use the correct type for the new tree.
6063
6064 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6065
6066         PR rtl-optimization/11320
6067         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6068         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6069
6070 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6071
6072         PR target/49487
6073         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6074         of REG.
6075         (*rotw<mode>): Use const_int_operand for operand2.
6076         Use match_scatch for operand3.
6077         (*rotb<mode>): Ditto
6078         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6079
6080 2011-07-14  Richard Guenther  <rguenther@suse.de>
6081
6082         PR tree-optimization/49651
6083         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6084         handle dereferences with subvariables.
6085
6086 2011-07-14  Richard Guenther  <rguenther@suse.de>
6087
6088         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6089         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6090
6091 2011-07-14  Richard Guenther  <rguenther@suse.de>
6092
6093         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6094         not bool_var when folding bool_var != 1 or bool_var == 0.
6095
6096 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6097
6098         * haifa-sched.c (schedule_insns): Remove outdated comment.
6099         (schedule_block): When computing a known value for TODO_SPEC,
6100         just set it rather than using logical operations.
6101         (try_ready): Likewise.  Use a local variable rather than a
6102         pointer to TODO_SPEC.  Reorder an if statement to move the
6103         easy case to the then block.
6104         * sched-deps.c (dep_spec_p): New static function.
6105         (update_dep): Use it to decide whether to call
6106         change_spec_dep_to_hard.
6107         (get_back_and_forw_lists): Use it.
6108         (sd_resolve_dep): Likewise.
6109         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6110         (haifa_note_mem_dep): Likewise.
6111         (check_dep): Likewise.
6112         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6113         (sched_free_deps): Free in two passes.
6114
6115 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6116
6117         PR middle-end/49736
6118         * expr.c (all_zeros_p): Undo bogus part of last change.
6119
6120 2011-07-14  Matthias Klose <doko@ubuntu.com>
6121
6122         * doc/extend.texi (optimize attribute): Fix typo.
6123
6124 2011-07-14  Richard Guenther  <rguenther@suse.de>
6125
6126         * gimplify.c (gimplify_expr): Only do required conversions.
6127
6128 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6129
6130         PR target/43746
6131         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6132         i.e. use default_elf_select_section.
6133         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6134         (READONLY_DATA_SECTION_ASM_OP): Remove.
6135         (TARGET_ASM_NAMED_SECTION): Move from here...
6136         * config/avr/avr.c: ...to here.
6137         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6138         (avr_asm_named_section): Make static.
6139
6140 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6141
6142         PR bootstrap/49739
6143         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6144         and crtfastmath.o for Linux/x86.
6145
6146 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6147
6148         * haifa-sched.c: Include "hashtab.h"
6149         (sched_no_dce): New global variable.
6150         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6151         SHADOW_P): New macros.
6152         (last_clock_var, cycle_issued_insns): Move declarations.
6153         (must_backtrack): New static variable.
6154         (struct delay_pair): New structure.
6155         (delay_htab, delay_htab_i2): New static variables.
6156         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6157         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6158         functions.
6159         (dep_cost_1): If delay pairs exist, try to look up the insns and
6160         use the correct pair delay if we find them.
6161         (rank-for_schedule): Tweak priority for insns that must be scheduled
6162         soon to avoid backtracking.
6163         (queue_insn): Detect conditions which force backtracking.
6164         (ready_add): Likewise.
6165         (struct sched_block_state): Add member shadows_only_p.
6166         (struct haifa_save_data): New structure.
6167         (backtrack_queue): New static variable.
6168         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6169         unschedule_insns_until, restore_last_backtrack_point,
6170         free_topmost_backtrack_point, free_backtrack_queue,
6171         estimate_insn_tick, estimate_shadow_tick): New functions.
6172         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6173         If true, remove everything that isn't SHADOW_P.  Look up delay
6174         pairs and estimate ticks to avoid scheduling the first insn too early.
6175         (verify_shadows): New function.
6176         (schedule_block): Add machinery to enable backtracking.
6177         (sched_init): Take sched_no_dce into account when setting
6178         DF_LR_RUN_DCE.
6179         (free_delay_pairs): New function.
6180         (init_h_i_d): Initialize INSN_EXACT_TICK.
6181         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6182         * sched-deps.c (sd_unresolve_dep): New function.
6183         * sched-int. (struct haifa_sched_info): New fields save_state
6184         and restore_state.
6185         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6186         feeds_backtrack_insn and shadow_p.
6187         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6188         (sched_no_dce): Declare variable.
6189         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6190         sd_unresolve_dep): Declare functions.
6191         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6192         * sched-rgn.c (rgn_const_sched_info): Likewise.
6193         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6194         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6195         (ebb_sched_info): Add them for the two new fields.
6196         (add_deps_for_risky_insns): Call add_delay_dependencies.
6197
6198 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6199
6200         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6201         Rename -mr11.
6202         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6203         (rs6000_call_indirect_aix): Ditto.
6204         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6205         (call_indirect_aix<ptrsize>_internal): Ditto.
6206         (call_indirect_aix<ptrsize>_nor11): Ditto.
6207         (call_indirect_aix<ptrsize>_internal2): Ditto.
6208         (call_value_indirect_aix<ptrsize>): Ditto.
6209         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6210         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6211         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6212         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6213
6214 2011-07-13  Jason Merrill  <jason@redhat.com>
6215
6216         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6217
6218 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6219
6220         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6221         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6222
6223 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6224
6225         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6226         * configure: Regenerate.
6227
6228 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6229
6230         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6231         (asm_file_start): Remove.
6232         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6233         free_bb_for_insn around code that modifies insns before
6234         restarting df analysis.
6235
6236 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6237
6238         PR target/49541
6239         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6240         (LINK_SPEC): ... here.
6241
6242 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6243
6244         * haifa-sched.c (struct sched_block_state): New.
6245         (schedule_block): Move some local variables into such a structure.
6246
6247 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6248
6249         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6250         * config/i386/t-crtpc: Remove.
6251         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6252         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6253         tmake_file.
6254         (x86_64-*-darwin*): Likewise.
6255         (i[34567]86-*-linux*): Likewise.
6256         (x86_64-*-linux*): Likewise.
6257
6258         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6259         Handle -mpc32, -mpc64, -mpc80.
6260
6261 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6262
6263         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6264         * config/alpha/t-crtfm: Remove.
6265         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6266         * config/i386/t-crtfm: Remove.
6267         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6268         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6269         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6270         * config/sparc/t-crtfm: Remove.
6271
6272         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6273         (alpha*-*-freebsd*): Likewise.
6274         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6275         (x86_64-*-darwin*): Likewise.
6276         (i[34567]86-*-linux*): Likewise.
6277         (x86_64-*-linux*): Likewise.
6278         (x86_64-*-mingw*): Likewise.
6279         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6280         (ia64*-*-freebsd*): Likewise.
6281         (ia64*-*-linux*): Likewise.
6282         (mips64*-*-linux*): Likewise.
6283         (mips*-*-linux*): Likewise.
6284         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6285         (sparc64-*-linux*): Likewise.
6286         (sparc64-*-freebsd*): Likewise.
6287
6288 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6289
6290         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6291         * config/darwin-crt3.c: Move to ../libgcc/config.
6292         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6293         ($(T)crt3$(objext)): Remove.
6294         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6295         ($(T)crt2$(objext)): Remove.
6296         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6297         (powerpc64-*-darwin*): Likewise.
6298
6299 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6302
6303         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6304         (addsi_1_zext): This.
6305
6306 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6307
6308         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6309         * doc/tm.texi: Regenerate.
6310         * target.def (mergeable_rodata_prefix): New defhookpod.
6311         * varasm.c (mergeable_string_section, mergeable_constant_section):
6312         Use it. Allocate name with alloca.
6313
6314 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6315
6316         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6317
6318 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6319
6320         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6321         overlap check.
6322
6323 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6324
6325         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
6326         (count_type_elements): Delete.
6327         (complete_ctor_at_level_p): Declare.
6328         * expr.c (flexible_array_member_p): New function, split out from...
6329         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
6330         parameter with for_ctor_p.  When for_ctor_p is true, return the
6331         number of elements that should appear in the top-level constructor,
6332         otherwise return an estimate of the number of scalars.
6333         (categorize_ctor_elements): Replace p_must_clear with p_complete.
6334         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
6335         (complete_ctor_at_level_p): New function, borrowing union logic
6336         from old categorize_ctor_elements_1.
6337         (mostly_zeros_p): Return true if the constructor is not complete.
6338         (all_zeros_p): Update call to categorize_ctor_elements.
6339         * gimplify.c (gimplify_init_constructor): Update call to
6340         categorize_ctor_elements.  Don't call count_type_elements.
6341         Unconditionally prevent clearing for variable-sized types,
6342         otherwise rely on categorize_ctor_elements to detect
6343         incomplete initializers.
6344
6345 2011-07-13  Richard Guenther  <rguenther@suse.de>
6346
6347         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6348         the final type is integral.
6349
6350 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6351
6352         * sched-int.h (struct _dep): Add member cost.
6353         (DEP_COST, UNKNOWN_DEP_COST): New macros.
6354         * sched-deps.c (init_dep_1): Initialize DEP_COST.
6355         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6356         (sched_change_pattern): Reset it for dependent insns.
6357
6358 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6359
6360         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6361         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6362         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6363         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6364         (CRT0_S, MCRT0_S): Remove.
6365         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6366         Remove.
6367         (s-crt0): Remove.
6368         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6369
6370 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
6371
6372         * cse.c (insert_with_costs): Put semi-colon after empty loop body
6373         on the next line.
6374         * emit-rtl.c (push_to_sequence): Likewise.
6375         * haifa-sched.c (max_issue): Likewise.
6376         * matrix-reorg.c (add_allocation_site): Likewise.
6377         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6378         * reload.c (alternative_allows_const_pool_ref): Likewise.
6379         * sched-rgn.c (rgn_add_block): Likewise.
6380         (rgn_fix_recovery_cfg): Likewise.
6381         * tree.c (attribute_list_contained): Likewise.
6382
6383 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
6384
6385         * config/i386/i386.c: Tidy processor feature bitmasks.
6386         (m_P4_NOCONA): New.
6387
6388 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
6389
6390         PR rtl-opt/49474
6391         * cprop.c (find_implicit_sets): Correct the condition.
6392
6393 2011-07-12  Richard Henderson  <rth@redhat.com>
6394
6395         PR target/49713
6396         * dwarf2out.h (dwarf_frame_regnum): Remove.
6397         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
6398         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
6399         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6400         (execute_dwarf2_frame): Initialize them.
6401         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6402         users of the macros with the variables.
6403         (expand_builtin_dwarf_sp_column): Revert last change.
6404         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
6405         result of DWARF_FRAME_REGNUM into a local variable.
6406
6407 2011-07-12  Richard Henderson  <rth@redhat.com>
6408
6409         PR target/49714
6410         * config/i386/i386.c (x86_output_mi_thunk): Use
6411         machopic_indirect_call_target instead of machopic_indirection_name
6412         directly.
6413
6414 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
6415             Eric Botcazou  <ebotcazou@adacore.com>
6416
6417         * prefix.h: Wrap up in extern "C" block.
6418
6419 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6420
6421         AMD bdver2 Enablement
6422         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6423         (case ${target}): Add bdver2.
6424         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6425         -march=native recognize bdver2 processors.
6426         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6427         bdver2 def_and_undef
6428         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6429         bdver2 cost table.
6430         (m_BDVER2): New definition.
6431         (m_AMD_MULTIPLE): Includes m_BDVER2.
6432         (initial_ix86_tune_features): Add bdver2 tuning.
6433         (processor_target_table): Add bdver2 entry.
6434         (static const char *const cpu_names): Add bdver2 entry.
6435         (ix86_option_override_internal): Add bdver2 instruction sets.
6436         (ix86_issue_rate): Add bdver2.
6437         (ix86_adjust_cost): Add bdver2.
6438         (has_dispatch): Add bdver2.
6439         * config/i386/i386.h (TARGET_BDVER2): New definition.
6440         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6441         (enum processor_type): Add PROCESSOR_BDVER2.
6442         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6443         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6444         description.
6445
6446 2011-07-12  Richard Henderson  <rth@redhat.com>
6447
6448         PR target/49714
6449         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6450         destination address in memory on some paths.
6451
6452 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6453
6454         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6455         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6456         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6457         * function.c (locate_and_pad_parm): Take it into account.
6458         * target.def (function_arg_round_boundary): New hook.
6459         * targhooks.c (default_function_arg_round_boundary): New function.
6460         * targhooks.h (default_function_arg_round_boundary): Declare.
6461         * doc/tm.texi: Regenerate.
6462
6463 2011-07-12  Richard Guenther  <rguenther@suse.de>
6464
6465         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6466         Do not perform no-op changes.
6467
6468 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6469
6470         * config/arm/predicates.md (neon_struct_operand): Make a normal
6471         predicate.
6472         (neon_struct_or_register_operand): New predicate.
6473         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6474         with neon_struct_or_register_operand.
6475         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6476         neon_struct_operand instead of memory_operand.
6477
6478 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6479
6480         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6481         * cgraph.c (cgraph_get_node_or_alias): Removed.
6482         (change_decl_assembler_name): Changed all calls to
6483         cgraph_get_node_or_alias to a call to cgraph_get_node.
6484         (cgraph_make_decl_local): Likewise.
6485         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6486         * varasm.c (default_binds_local_p_1): Likewise.
6487         (decl_binds_to_current_def_p): Likewise.
6488
6489 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6490
6491         PR tree-optimization/49712
6492         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6493
6494 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6495
6496         * genautomata.c (add_arc): Return void.  All callers changed.
6497         (make_automaton): Remove dead code.
6498
6499 2011-07-11  Richard Henderson  <rth@redhat.com>
6500
6501         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6502         (DW_FRAME_POINTER_REGNUM): New.
6503         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6504         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6505         (dwf_regno): New.
6506         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6507         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6508         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6509         Use it.
6510         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6511         * dwarf2out.h (dwarf_frame_regnum): New.
6512         (struct cfa_loc): Document the domain of the reg member.
6513
6514 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6515
6516         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6517         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6518
6519 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6520
6521         PR debug/49676
6522         * dwarf2out.c (int_shift_loc_descriptor): New function.
6523         (int_loc_descriptor): If shorter, emit i as
6524         (i >> shift), shift, DW_OP_shl for suitable shift value.
6525         Similarly, try to optimize large negative values using
6526         DW_OP_neg of a positive value if shorter.
6527         (size_of_int_shift_loc_descriptor): New function.
6528         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6529         changes.
6530         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6531         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6532         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6533         is shorter.
6534         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6535         addend as added DW_OP_plus if it is shorter.
6536
6537 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6538
6539         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6540         (DTORS_SECTION_ASM_OP): Define.
6541
6542 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6543
6544         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6545         * config/t-dfprules: Move to ../libgcc/config.
6546         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6547         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6548         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6549         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6550         Likewise.
6551         (i[34567]86-*-cygwin*): Likewise.
6552         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6553         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6554         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6555         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6556         D64PBIT_FUNCS, D128PBIT_FUNCS.
6557
6558 2011-07-11  Richard Guenther  <rguenther@suse.de>
6559
6560         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6561         translate the source value-range through the conversion chain.
6562
6563 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6564
6565         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6566
6567 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6568
6569         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6570         a bi-arch compiler defaulting to 31-bit. In this case:
6571         (tmake_file): Add s390/t-linux64.
6572         * doc/install.texi: Add s390-linux to the list of targets supporting
6573         --enable-targets=all.
6574
6575 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6576             Matthias Klose <doko@debian.org>
6577
6578         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6579         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6580         (tm_file): Add mips/linux64.h.
6581         (tmake_file): Add mips/t-linux64.
6582         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6583         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6584         instead of hardcoded mabi=n32.
6585         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6586         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6587         convention.
6588
6589 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6590
6591         * passes.c (init_optimization_passes): Add invariant motion pass
6592         after induction variable optimization.
6593
6594 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6595
6596         PR target/39633
6597         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6598         offsets 1..5 set cc0 in a usable way.
6599
6600 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6601
6602         * tree.h (call_expr_arg): Remove.
6603         (call_expr_argp): Likewise.
6604
6605 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6606
6607         * config/sparc/sparc.md (save_register_window_1): Rename to...
6608         (window_save): ...this.
6609         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6610         (emit_window_save): ...this.
6611         (sparc_expand_prologue): Adjust to above renaming.
6612
6613 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6614
6615         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6616         of movabs for x32.
6617
6618 2011-07-10  Richard Henderson  <rth@redhat.com>
6619
6620         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6621         run final, instead of emitting text directly.
6622
6623 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         * config/i386/i386.c (ix86_option_override_internal): Turn on
6626         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
6627         small PIC models for TARGET_X32.
6628
6629 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
6630
6631         PR target/49684
6632         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6633         $(LIBGCC2_CFLAGS).
6634
6635         PR bootstrap/49680
6636         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6637         stray notes and debug insns by using prev_nonnote_nondebug_insn
6638         instead of PREV_INSN.
6639
6640 2011-07-09  Richard Henderson  <rth@redhat.com>
6641
6642         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6643         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6644         * dwarf2out.c: ... here.
6645         (output_all_cfis): Remove.
6646         (dwarf2out_switch_text_section): Use output_cfis directly.
6647         (size_of_locs): Export.
6648         (output_loc_sequence, output_loc_sequence_raw): Export.
6649         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6650         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6651         output_cfa_loc_raw): Move to ...
6652         * dwarfcfi.c: ... here.
6653         * dwarf2out.h: Update decls.
6654
6655 2011-07-09  Richard Henderson  <rth@redhat.com>
6656
6657         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6658         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6659         * dwarf2cfi.c: ... here.
6660         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6661         (DWARF_ROUND, DWARF_CIE_ID): Remove.
6662         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6663         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6664         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6665
6666 2011-07-09  Richard Henderson  <rth@redhat.com>
6667
6668         * dwarf2cfi.c (cie_return_save): New.
6669         (queue_reg_save): Use compare_reg_or_pc.
6670         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6671         (dwarf2out_frame_debug_expr): Likewise.
6672         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6673         (initial_return_save): Likewise.
6674         (execute_dwarf2_frame): Save and restore initial return save from
6675         the cie to the fde.
6676         * config/mips/mips.c (mips_frame_set): Remove special case for
6677         DWARF_FRAME_RETURN_COLUMN.
6678
6679 2011-07-09  Richard Henderson  <rth@redhat.com>
6680
6681         * dwarf2cfi.c (lookup_cfa): Remove.
6682         (execute_dwarf2_frame): Assert queues are empty on entry.
6683         Setup initial cfa directly, not via lookup_cfa.
6684         Don't clear args_size state here.
6685
6686 2011-07-09  Richard Henderson  <rth@redhat.com>
6687
6688         * dwarf2cfi.c (add_cfi_vec): New.
6689         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
6690         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
6691         (execute_dwarf2_frame): Set add_cfi_vec.
6692
6693 2011-07-09  Richard Henderson  <rth@redhat.com>
6694
6695         * defaults.h (ASM_COMMENT_START): Move here...
6696         * dwarf2asm.c: ... from here.
6697         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6698         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6699         * varasm.c: Likewise.
6700
6701 2011-07-09  Richard Henderson  <rth@redhat.com>
6702
6703         PR debug/49686
6704         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6705         (create_cfi_notes): ... do it here instead.
6706
6707 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
6708
6709         PR debug/49676
6710         * dwarf2out.c (size_of_int_loc_descriptor): New function.
6711         (address_of_int_loc_descriptor): Use it.
6712         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6713
6714 2011-07-09  Richard Henderson  <rth@redhat.com>
6715
6716         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6717         (prologue, epilogue): New.
6718         (return, *rts): New.
6719         (blockage, setd, seti): New.
6720         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6721         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6722         (pdp11_saved_regno): New.
6723         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6724         generate rtl instead of text.
6725         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6726         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
6727         * config/pdp11/pdp11-protos.h: Update.
6728
6729 2011-07-09  Richard Henderson  <rth@redhat.com>
6730
6731         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6732         try to insert an rtl prologue here.
6733         (rs6000_output_function_epilogue): Similarly.
6734         * config/rs6000/rs6000.md (prologue): Emit a barrier to
6735         satisfy !TARGET_SCHED_PROLOG.
6736         (epilogue, sibcall_epilogue): Likewise.
6737
6738 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
6739
6740         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6741         (FP_REG_P): Delete.
6742         (IN_OR_GLOBAL_P): Likewise.
6743
6744 2011-07-08  Jason Merrill  <jason@redhat.com>
6745
6746         PR c++/45437
6747         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6748         compound assignment.
6749
6750         * cgraph.c (cgraph_add_to_same_comdat_group): New.
6751         * cgraph.h: Declare it.
6752         * ipa.c (function_and_variable_visibility): Make sure thunks
6753         have the right visibility.
6754
6755 2011-07-08  Richard Henderson  <rth@redhat.com>
6756
6757         PR bootstrap/49680
6758         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6759         any tablejump vector.
6760
6761         PR bootstrap/49680
6762         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6763         end of the prologue.
6764
6765 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
6766
6767         PR target/49621
6768         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6769         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6770         * config/rs6000/vector.md (vector_select_<mode>,
6771         vector_select_<mode>_uns): Change second operand of NE to
6772         CONST0_RTX (<MODE>mode) instead of const0_rtx.
6773         * config/rs6000/altivec.md (*altivec_vsel<mode>,
6774         *altivec_vsel<mode>_uns): Expect second operand of NE to be
6775         zero_constant of the corresponding vector mode.
6776         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6777         Likewise.
6778
6779 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6780
6781         * graphite-dependences.c (build_alias_set_powerset): Remove
6782         continue from loop, add one more assert.
6783
6784 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6785
6786         PR target/46779
6787         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6788         In particular, allow 8-bit values in r28 and r29.
6789         (avr_hard_regno_scratch_ok): Disallow any register that might be
6790         part of the frame pointer.
6791         (avr_hard_regno_rename_ok): Same.
6792         (avr_legitimate_address_p): Don't allow SUBREGs.
6793
6794 2011-07-08  Julian Brown  <julian@codesourcery.com>
6795
6796         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6797         big-endian mode.
6798         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6799         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6800         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6801         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6802         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6803         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6804         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6805         registers in big-endian mode.
6806
6807 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6808
6809         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6810         in terms of another.
6811         (write_attr_value): Write a cast if necessary.
6812
6813         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6814         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6815         (REG_WORDS_BIG_ENDIAN): Document.
6816         * doc/tm.texi: Regenerate.
6817         * reload.c (operands_match_p): Take it into account.
6818         (reload_adjust_reg_for_mode): Likewise.
6819         * rtlanal.c (subreg_get_info): Likewise.
6820
6821 2011-07-08  Richard Guenther  <rguenther@suse.de>
6822
6823         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6824         folding.
6825
6826 2011-07-08  Kai Tietz  <ktietz@redhat.com>
6827
6828         * fold-const.c (fold_truth_andor): Factored out truth_andor
6829         label from fold_binary as function.
6830         (fold_binary_loc): Replace truth_andor lable
6831         by function fold_truth_andor.
6832
6833 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
6834
6835         PR middle-end/49519
6836         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6837         check if address is stored in register. If so - give up.
6838         (check_sibcall_argument_overlap_1): Do not perform check of
6839         overlapping when it is call to address.
6840
6841 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6842
6843         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6844         of magic '31'.
6845
6846 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6847
6848         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6849         GET_MODE_BITSIZE where appropriate.
6850         (widen_leading, expand_parity, expand_ctz, expand_ffs,
6851         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6852         expand_float, expand_fix): Likewise.
6853         * expr.c (convert_move, convert_modes, expand_expr_real_2,
6854         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6855         * stor-layout.c (get_mode_bounds): Likewise.
6856         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6857         Likewise.
6858         * convert.c (convert_to_integer): Likewise.
6859         * expmed.c (expand_shift_1): Likewise.
6860
6861         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6862         a bitsize.
6863
6864         * optabs.c (expand_binop): Tighten conditions for doubleword
6865         expansions.
6866         (widen_bswap): Assert that mode bitsize and precision are the same.
6867         * stor-layout.c (get_best_mode): Skip modes that have lower
6868         precision than bitsize.
6869         * recog.c (simplify_while_replacing): Assert that bitsize and
6870         precision are the same.
6871
6872 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6873
6874         * Makefile.in (LIBGCOV): Remove.
6875         (libgcc.mvars): Remove LIBGCOV.
6876         * libgov.c: Move to ../libgcc.
6877
6878 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6879
6880         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6881
6882 2011-07-08  Martin Jambor  <mjambor@suse.cz>
6883
6884         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6885         is too big for total scalarization.
6886
6887 2011-07-07  Richard Henderson  <rth@redhat.com>
6888
6889         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6890         (DBX_DEBUGGING_INFO): Undef.
6891
6892 2011-07-07  Richard Henderson  <rth@redhat.com>
6893
6894         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
6895         Handle some opcodes specially for debugging.
6896         * print-rtl.c: Include dwarf2out.h
6897         (print_rtx): Handle NOTE_INSN_CFI.
6898         * Makefile.in (print-rtl.o): Update.
6899
6900 2011-07-07  Richard Henderson  <rth@redhat.com>
6901
6902         * tree-pass.h (pass_dwarf2_frame): Declare.
6903         * passes.c (init_optimization_passes): Add it.
6904         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6905         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6906         make static, do not call add_cfis_to_fde.
6907         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6908         dwarf2out_frame_init): Merge into...
6909         (execute_dwarf2_frame): ... here.  New function.
6910         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
6911         saved_do_cfi_asm to a tri-state variable.
6912         (gate_dwarf2_frame, pass_dwarf2_frame): New.
6913         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
6914         if it has yet to be done.  Don't call dwarf2cfi_function_init.
6915         * dwarf2out.h, debug.h: Update decls.
6916         * final.c (final_start_function): Don't call
6917         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
6918         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
6919         * toplev.c (lang_dependent_init): Likewise.
6920
6921 2011-07-07  Richard Henderson  <rth@redhat.com>
6922
6923         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
6924         FDE_TABLE_INCREMENT): Replace with...
6925         (fde_vec): ... this, a new vector.
6926         (current_fde): Remove.  Replace all users with cfun->fde.
6927         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
6928         (size_of_aranges, dwarf2out_finish): Likewise.
6929         (dwarf2out_alloc_current_fde): Break out from ...
6930         (dwarf2out_begin_prologue): ... here.
6931         (dwarf2out_frame_init): Remove.
6932         * dwarf2cfi.c: Update all users of current_fde.
6933         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
6934         * dwarf2out.h: Update decls.
6935         (dw_fde_node): Add fde_index member.
6936         * function.h (struct function): Add fde member.
6937
6938 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6939             Richard Henderson  <rth@redhat.com>
6940
6941         * dwarf2cfi.c (add_cfi): Remove.
6942         (dwarf2out_cfi_label): Remove force argument.  Only generate the
6943         label name.
6944         (add_fde_cfi): Simplify the different code paths.
6945         (add_cie_cfi): New.
6946         (old_cfa, old_cfa_remember): New.
6947         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
6948         (last_reg_save_label): Remove.
6949         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
6950         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6951         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6952         dwarf2out_frame_debug_cfa_expression,
6953         dwarf2out_frame_debug_cfa_restore,
6954         dwarf2out_frame_debug_cfa_window_save,
6955         dwarf2out_frame_debug_expr): Remove label parameter.
6956         (cfi_label_required_p, add_cfis_to_fde): New.
6957         (dwarf2out_frame_debug_after_prologue): New.
6958         (dwarf2cfi_frame_init): Initialize old_cfa.
6959         (dwarf2out_frame_debug_restore_state): Likewise.
6960         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
6961         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
6962         * final.c (final_start_function): Call
6963         dwarf2out_frame_debug_after_prologue.
6964
6965 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6966             Richard Henderson  <rth@redhat.com>
6967
6968         * dwarf2cfi.c (cfi_insn): New.
6969         (dwarf2out_cfi_label): Don't emit cfi label here.
6970         (add_fde_cfi): Create a NOTE_INSN_CFI.
6971         (dwarf2out_frame_debug): Setup cfi_insn.
6972         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
6973         (dwarf2out_cfi_begin_epilogue): Make static.
6974         (dwarf2out_frame_debug_restore_state): Make static.
6975         * dwarf2out.c (output_cfi_directive): Make static.
6976         (dwarf2out_emit_cfi): New.
6977         * dwarf2out.h: Update.
6978         * final.c (final): Remove CFI notes.
6979         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
6980         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
6981         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
6982         * insn-notes.def (NOTE_INSN_CFI): New.
6983         (NOTE_INSN_CFI_LABEL): New.
6984         * rtl.h (union rtunion_def): Add rt_cfi member.
6985         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
6986
6987 2011-07-07  Richard Henderson  <rth@redhat.com>
6988
6989         * dwarf2cfi.c: New file.
6990         * Makefile.in (OBJS): Add it.
6991         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
6992         * gengtype.c (open_base_files): Include dwarf2out.h.
6993         * coretypes.h (enum var_init_status): Move from ...
6994         * rtl.h: ... here.
6995         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
6996         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
6997         expand_builtin_dwarf_sp_column, init_return_column_size,
6998         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
6999         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7000         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7001         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7002         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7003         compute_barrier_args_size, dwarf2out_args_size,
7004         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7005         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7006         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7007         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7008         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7009         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7010         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7011         dwarf2out_frame_debug_cfa_expression,
7012         dwarf2out_frame_debug_cfa_restore,
7013         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7014         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7015         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7016         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7017         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7018         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7019         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7020         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7021         dw_loc_descr_node): Move to dwarf2out.h.
7022         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7023         mem_loc_descriptor): Export.
7024         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7025         (dwarf2out_frame_init): Extract CIE generation code to
7026         dwarf2cfi_frame_init.
7027
7028 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7029
7030         PR target/49660
7031         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7032         MASK_V8PLUS, remove commented out flag and reorder.
7033
7034 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7035
7036         PR c/49644
7037         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7038         one non-complex and one complex argument, call c_save_expr on both
7039         operands.
7040
7041 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7042
7043         PR middle-end/49495
7044         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7045         (verify_cgraph_node): Some functinality moved to
7046         verify_edge_corresponds_to_fndecl, call it.
7047
7048 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7049
7050         * config.gcc (*local*): Remove.
7051         * doc/install-old.texi: Don't mention local configurations.
7052
7053 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7054
7055         PR debug/49522
7056         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7057         referencing debug insns that have been reset.
7058         (dead_debug_insert_before): Don't assert reg is non-NULL,
7059         instead return immediately if it is NULL.
7060
7061 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7062
7063         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7064
7065 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7066
7067         * hw-doloop.c: New file.
7068         * hw-doloop.h: New file.
7069         * Makefile.in (OBJS): Add hw-doloop.o.
7070         (hw-doloop.o): New rule.
7071         ($(obj_out_file)): Add hw-doloop.h dependency.
7072         * config/bfin/bfin.c: Include "hw-doloop.h".
7073         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7074         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7075         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7076         type changed to hwloop_info.  Return bool, true if the loop was
7077         successfully optimized.  Remove code that was moved to
7078         hw-doloop.c, and adjust other parts.
7079         (hwloop_fail): New static function, containing parts that used
7080         to be in bfin_optimize_loop.
7081         (bfin_discover_loop, bfin_discover_loops, free_loops,
7082         bfin_reorder_loops): Remove.
7083         (hwloop_pattern_reg): New static function.
7084         (bfin_doloop_hooks): New variable.
7085         (bfin_reorg_loops): Remove most code, call reorg_loops.
7086         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7087         loop counter is a memory_operand.
7088
7089 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7090
7091         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7092
7093         * configure.ac: Mention x86-64 for --with-multilib-list.
7094         * configure: Regenerated.
7095
7096         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7097         (SPEC_32): Likewise.
7098         (ASM_SPEC): Likewise.
7099         (LINK_SPEC): Likewise.
7100         (TARGET_THREAD_SSP_OFFSET): Likewise.
7101         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7102         (SPEC_X32): New.
7103
7104         * config/i386/i386.h (TARGET_X32): New.
7105         (TARGET_LP64): New.
7106         (LONG_TYPE_SIZE): Likewise.
7107         (POINTER_SIZE): Likewise.
7108         (POINTERS_EXTEND_UNSIGNED): Likewise.
7109         (OPT_ARCH64): Support x32.
7110         (OPT_ARCH32): Likewise.
7111
7112         * config/i386/i386.opt (mx32): New.
7113
7114         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7115         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7116         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7117         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7118
7119         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7120         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7121         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7122
7123         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7124
7125         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7126
7127         * doc/invoke.texi: Document -mx32.
7128
7129 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7130
7131         * doc/invoke.texi (mwords-little-endian): Deprecate.
7132         * config/arm/arm.opt (mwords-little-endian): Likewise.
7133         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7134         of -mwords-little-endian.
7135
7136 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7137
7138         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7139         an old reload register completely defines the required value.
7140
7141 2011-07-07  Richard Guenther  <rguenther@suse.de>
7142
7143         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7144         for NEGATE_EXPR.
7145
7146 2011-07-07  Richard Guenther  <rguenther@suse.de>
7147
7148         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7149         (simplify_stmt_using_ranges): Call it.
7150
7151 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7152
7153         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7154         (lookup_logical_inverted_value): Likewise.
7155         (simplify_bitwise_binary_1): Likewise.
7156         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7157
7158 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7159
7160         * gcc.c (%[Spec]): Don't document.
7161         (struct spec_list): Update comment.
7162         (do_spec_1): Don't handle %[Spec].
7163         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7164
7165 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7166
7167         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7168         default based on TARGET_ASM_NAMED_SECTION.
7169         * common/common-target.def (have_named_sections): Default to true.
7170         * common/config/default-common.c: Don't include tm.h.
7171         * common/config/picochip/picochip-common.c
7172         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7173         * common/config/m32c/m32c-common.c: Remove.
7174         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7175         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7176         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7177         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7178         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7179         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7180         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7181
7182 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7183
7184         PR middle-end/49640
7185         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7186         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7187
7188 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7189
7190         PR libmudflap/49550
7191         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7192
7193 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7194
7195         PR target/39150
7196         * configure.ac (gcc_cv_as_hidden): Also accept
7197         x86_64-*-solaris2.1[0-9]*.
7198         (gcc_cv_as_cfi_directive): Likewise.
7199         (gcc_cv_as_comdat_group_group): Likewise.
7200         (set_have_as_tls): Likewise.
7201         * configure: Regenerate.
7202         * config.gcc (i[34567]86-*-solaris2*): Also handle
7203         x86_64-*-solaris2.1[0-9]*.
7204         * config.host (i[34567]86-*-solaris2*): Likewise.
7205         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7206         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7207         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7208         (TARGET_LD_EMULATION): Use it.
7209         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7210         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7211         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7212         (ASM_CPU64_DEFAULT_SPEC): Define.
7213         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7214         (ASM_SPEC): Redefine.
7215         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7216         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7217         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7218         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7219         configuration.
7220         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7221
7222 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7223
7224         * config/sol2.h (ASM_SPEC): Split into ...
7225         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7226         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7227         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7228         (ASM_SPEC): Use ASM_SPEC_BASE.
7229         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7230
7231 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7232
7233         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7234         const_int_operand.  Ditto for peep2 producing this insn.
7235         Add argument to output_reload_insisf call.
7236         (*movsi,*movsf): Add argument to output_movsisf call.
7237         (*reload_insf): New insn and new peep2 to produce it.
7238         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7239         (output_reload_insisf): Change prototype.
7240         * config/avr/avr.c (avr_asm_len): New function.
7241         (output_reload_insisf): Rewrite.
7242         (output_movsisf): Change prototype.  output_reload_insisf for
7243         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7244         (adjust_insn_length): Add argument to output_movsisf and
7245         output_reload_insisf call.
7246
7247 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7248
7249         * emit-rtl.c (paradoxical_subreg_p): New function.
7250         * rtl.h (paradoxical_subreg_p): Declare.
7251         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7252         apply_distributive_law, simplify_comparison, simplify_set): Use it.
7253         * cse.c (record_jump_cond, cse_insn): Likewise.
7254         * expr.c (force_operand): Likewise.
7255         * rtlanal.c (num_sign_bit_copies1): Likewise.
7256         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7257         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7258         (push_reload): Use precision to check for paradoxical subregs.
7259         * expmed.c (extract_bit_field_1): Likewise.
7260
7261         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7262         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7263         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7264         simplify_set, simplify_logical, expand_compound_operation,
7265         make_extraction, force_to_mode, if_then_else_cond, extended_count,
7266         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7267         record_value_for_reg): Likewise.
7268         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7269         * simplify-rtx. c (simplify_unary_operation_1,
7270         simplify_binary_operation_1, simplify_const_relational_operation):
7271         Likewise.
7272
7273         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7274         instead of GET_MODE_BITSIZE where appropriate.
7275         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7276         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7277         init_num_sign_bit_copies_in_rep): Likewise.
7278         * cse.c (fold_rtx, cse_insn): Likewise.
7279         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7280         * simplify-rtx.c (simplify_unary_operation_1,
7281         simplify_const_unary_operation, simplify_binary_operation_1,
7282         simplify_const_binary_operation, simplify_ternary_operation,
7283         simplify_const_relational_operation, simplify_subreg): Likewise.
7284         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7285         simplify_if_then_else, simplify_set, expand_compound_operation,
7286         expand_field_assignment, make_extraction, if_then_else_cond,
7287         make_compound_operation, force_to_mode, make_field_assignment,
7288         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7289         extended_count, try_widen_shift_mode, simplify_shift_const_1,
7290         simplify_comparison, record_promoted_value, simplify_compare_const,
7291         record_dead_and_set_regs_1): Likewise.
7292
7293         Revert:
7294         * simplify-rtx.c (simplify_const_binary_operation): Use the
7295         shift_truncation_mask hook instead of performing modulo by width.
7296         Compare against mode precision, not bitsize.
7297         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7298         Use shift_truncation_mask instead of constructing the value manually.
7299
7300 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7301
7302         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7303         declaration.
7304         (rs6000_save_toc_in_prologue_p): Ditto.
7305
7306         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7307         up the static chain (r11) during indirect function calls.
7308         (-msave-toc-indirect): New undocumented debug switch.
7309
7310         * config/rs6000/rs6000.c (struct machine_function): Add
7311         save_toc_in_prologue field to note whether the prologue needs to
7312         save the TOC value in the reserved stack location.
7313         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
7314         to save the TOC in the prologue, do so.
7315         (rs6000_trampoline_init): Don't allow creating AIX style
7316         trampolines if -mno-r11 is in effect.
7317         (rs6000_call_indirect_aix): New function to create AIX style
7318         indirect calls, adding support for -mno-r11 to suppress loading
7319         the static chain, and saving the TOC in the prologue instead of
7320         the call body.
7321         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7322         TOC in the prologue.
7323
7324         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7325         register numbers.
7326         (TOC_REGNUM): Ditto.
7327         (STATIC_CHAIN_REGNUM): Ditto.
7328         (ARG_POINTER_REGNUM): Ditto.
7329         (SFP_REGNO): Delete, unused.
7330         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7331         function descriptor offsets.
7332         (TOC_SAVE_OFFSET_64BIT): Ditto.
7333         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7334         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7335         (AIX_FUNC_DESC_SC_32BIT): Ditto.
7336         (AIX_FUNC_DESC_SC_64BIT): Ditto.
7337         (ptrload): New mode attribute for the appropriate load of a pointer.
7338         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7339         (call_indirect_aix64): Ditto.
7340         (call_value_indirect_aix32): Ditto.
7341         (call_value_indirect_aix64): Ditto.
7342         (call_indirect_nonlocal_aix32_internal): Ditto.
7343         (call_indirect_nonlocal_aix32): Ditto.
7344         (call_indirect_nonlocal_aix64_internal): Ditto.
7345         (call_indirect_nonlocal_aix64): Ditto.
7346         (call): Rewrite AIX indirect function calls.  Add support for
7347         eliminating the static chain, and for moving the save of the TOC
7348         to the function prologue.
7349         (call_value): Ditto.
7350         (call_indirect_aix<ptrsize>): Ditto.
7351         (call_indirect_aix<ptrsize>_internal): Ditto.
7352         (call_indirect_aix<ptrsize>_internal2): Ditto.
7353         (call_indirect_aix<ptrsize>_nor11): Ditto.
7354         (call_value_indirect_aix<ptrsize>): Ditto.
7355         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7356         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7357         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7358         (call_nonlocal_aix32): Relocate in the rs6000.md file.
7359         (call_nonlocal_aix64): Ditto.
7360
7361         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7362         -mno-r11 documentation.
7363
7364 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7365
7366         PR other/49658
7367         * doc/extend.texi (Compound Literals): Fix typo.
7368
7369 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
7370
7371         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7372
7373 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
7374
7375         * configure.ac (plugin-version.h): Generate
7376         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7377         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7378         macros.
7379
7380         * configure: Regenerate.
7381
7382         * doc/plugins.texi (Building GCC plugins): Mention
7383         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7384
7385 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7386
7387         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7388         * combine.c (make_extraction, gen_lowpart_or_truncate,
7389         apply_distributive_law, simplify_comparison,
7390         reg_truncated_to_mode, record_truncated_value): Use it.
7391         * cse.c (notreg_cost): Likewise.
7392         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7393         * expr.c (convert_move, convert_modes): Likewise.
7394         * optabs.c (expand_binop, expand_unop): Likewise.
7395         * postreload.c (move2add_last_label): Likewise.
7396         * regmove.c (optimize_reg_copy_3): Likewise.
7397         * rtlhooks.c (gen_lowpart_general): Likewise.
7398         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7399
7400 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
7401
7402         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7403
7404 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7405
7406         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7407         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7408         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7409         (simplify_const_unary_operation, simplify_binary_operation_1,
7410         simplify_const_binary_operation, simplify_const_relational_operation):
7411         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
7412         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7413         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7414         simplify_shift_const_1, simplify_comparison): Likewise.
7415         * expr.c (convert_modes): Likewise.
7416         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7417         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7418         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7419
7420         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7421
7422 2011-07-06  Richard Guenther  <rguenther@suse.de>
7423
7424         PR tree-optimization/49645
7425         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7426         register variables.
7427         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7428         in type qualification here ...
7429         (copy_reference_ops_from_ref): ... not here.
7430         (vn_reference_lookup_3): ... or here.
7431         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7432         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7433
7434 2011-07-06  Ian Lance Taylor  <iant@google.com>
7435
7436         * doc/install.texi (Configuration): It's
7437         --enable-gnu-indirect-function, not --enable-indirect-function.
7438
7439 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7440
7441         * simplify-rtx.c (simplify_const_binary_operation): Use the
7442         shift_truncation_mask hook instead of performing modulo by width.
7443         Compare against mode precision, not bitsize.
7444         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7445         Use shift_truncation_mask instead of constructing the value manually.
7446
7447 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7448
7449         PR middle-end/47383
7450         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7451         address computation and convert to address_mode if needed.
7452
7453 2011-07-06  Richard Guenther  <rguenther@suse.de>
7454
7455         * tree.c (build_common_tree_nodes_2): Merge with
7456         build_common_tree_nodes.
7457         * tree.h (build_common_tree_nodes): Adjust prototype.
7458         (build_common_tree_nodes_2): Remove.
7459         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7460         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7461
7462 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7463
7464         PR tree-optimization/49618
7465         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7466         t recurse on the decl.
7467         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7468         return true if expr isn't known to be defined in current
7469         TU or some other LTO partition.
7470
7471 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7472
7473         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7474         override CASE_VALUES_THRESHOLD.
7475
7476         * stmt.c (toplevel): Include params.h.
7477         (case_values_threshold): Use the --param case-values-threshold
7478         value if non-zero, otherwise use machine dependent value.
7479         (expand_case): Use case_values_threshold.
7480
7481         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7482
7483         * doc/invoke.texi (--param case-values-threshold): Document.
7484
7485 2011-07-05  Richard Henderson  <rth@redhat.com>
7486
7487         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7488         (dwarf2out_flush_queued_reg_saves): Make static.
7489         (dwarf2out_reg_save): Remove.
7490         (dwarf2out_return_save): Remove.
7491         (dwarf2out_return_reg): Remove.
7492         (dwarf2out_reg_save_reg): Remove.
7493         (dwarf2out_def_cfa): Merge into ...
7494         (dwarf2out_frame_init): ... here.
7495         * dwarf2out.h, tree.h: Remove declarations as necessary.
7496
7497 2011-07-05  Richard Henderson  <rth@redhat.com>
7498
7499         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7500         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7501         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7502         the alloc insn.
7503
7504         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7505         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7506         (process_epilogue): Don't call dwarf2out_def_cfa.
7507
7508         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7509         indicate the return address save.
7510         (process_cfa_register): Likewise.
7511
7512         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7513         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7514
7515         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7516         for ar.pfs save at alloc insn.
7517
7518 2011-07-05  Richard Henderson  <rth@redhat.com>
7519
7520         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7521         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7522         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7523         stack pointer save.
7524         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7525         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7526         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7527         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7528
7529 2011-07-05  Richard Henderson  <rth@redhat.com>
7530
7531         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7532         VUNSPEC_* constants here instead of via define_constants.
7533         (VUNSPEC_PEM): New constant.
7534         (procedure_entry_mask): New insn.
7535         (prologue): New expander.
7536         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7537         (vax_expand_prologue): Rename from vax_output_function_prologue;
7538         emit rtl instead of text.
7539         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7540         (print_operand): Add 'x' prefix.
7541
7542 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7543
7544         PR middle-end/47715
7545         * calls.c (precompute_register_parameters): Promote the function
7546         argument before checking non-legitimate constant.
7547
7548 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7549
7550         PR tree-optimization/47654
7551         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7552         (lst_do_strip_mine_loop): Return an int.
7553         (lst_do_strip_mine): Same.
7554         (scop_do_strip_mine): Same.
7555         (scop_do_block): Loop blocking should strip-mine at least two loops.
7556         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7557         (scop_do_interchange): Same.
7558         * graphite-poly.h (scop_do_interchange): Update declaration.
7559         (scop_do_strip_mine): Same.
7560
7561 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7562
7563         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7564         (precision_for_interval): Removed.
7565         (gcc_type_for_interval): Use mpz_sizeinbase.
7566
7567 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7568
7569         * graphite-ppl.h (value_max): Correct computation of max.
7570
7571 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7572
7573         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7574
7575 2011-07-05  Richard Guenther  <rguenther@suse.de>
7576
7577         * c-decl.c (c_init_decl_processing): Defer building common
7578         tree nodes to c_common_nodes_and_builtins.
7579
7580 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7581
7582         PR tree-optimization/49580
7583         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7584         the loop's number of iterations.
7585         * tree-parloops.c (transform_to_exit_first_loop): Add the
7586         handling of the loop's number of iterations before the call
7587         to gimple_duplicate_sese_tail.
7588         Insert the stmt caclculating the new rhs of the loop's
7589         condition stmt to the preheader instead of iters_bb.
7590
7591 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7592
7593         PR rtl-optimization/47449
7594         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7595         register nor zero/sign extended hard register.
7596
7597 2011-07-05  Richard Guenther  <rguenther@suse.de>
7598
7599         PR tree-optimization/49518
7600         PR tree-optimization/49628
7601         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7602         irrelevant and invariant data-references.
7603         (vect_analyze_data_ref_access): For invariant loads clear the
7604         group association.
7605
7606 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7607
7608         PR rtl-optimization/49619
7609         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7610         pass VOIDmode as op0_mode to recursive call, and return temp even
7611         when different from tor, just if it is not IOR of the original
7612         PLUS arguments.
7613
7614         PR rtl-optimization/49472
7615         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7616         negating MULT, negate the second operand instead of first.
7617         (simplify_binary_operation_1) <case MULT>: If one operand is
7618         a NEG and the other is MULT, don't attempt to optimize by negation
7619         of the MULT operand if it only moves the NEG operation around.
7620
7621         PR debug/49602
7622         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7623         get_current_def return value if it can't be trusted to be
7624         the current value of the variable in the current bb.
7625
7626 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
7627
7628         PR target/49600
7629         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7630         general register to memory for !TARGET_INTER_UNIT_MOVES.
7631
7632 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7633
7634         PR target/44643
7635         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7636         instead of TREE_READONLY.
7637
7638 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7639
7640         * doc/extend.texi (AVR Built-in Functions): Update documentation
7641         of __builtin_avr_fmul*.
7642         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7643         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7644         * config/avr/avr.md (fmul): Rename to fmul_insn.
7645         (fmuls): Rename to fmuls_insn.
7646         (fmulsu): Rename to fmulsu_insn.
7647         (fmul,fmuls,fmulsu): New expander.
7648         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7649         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7650         * config/avr/libgcc.S (__fmul): New function.
7651         (__fmuls): New function.
7652         (__fmulsu,__fmulsu_exit): New function.
7653
7654 2011-07-04  Richard Guenther  <rguenther@suse.de>
7655
7656         PR tree-optimization/49615
7657         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7658         basic-block index check.
7659
7660 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7661
7662         * longlong.h (count_leading_zeros, count_trailing_zeros,
7663         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7664         resp. 64.
7665
7666 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
7667
7668         PR tree-optimization/49610
7669         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7670         a basic block.
7671
7672 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7673             Olivier Hainque  <hainque@adacore.com>
7674             Nicolas Setton  <setton@adacore.com>
7675
7676         * tree.h (TYPE_ARTIFICIAL): New flag.
7677         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7678         the DIE of the type if it is artificial.
7679         (gen_array_type_die): Likewise.
7680         (gen_enumeration_type_die): Likewise.
7681         (gen_struct_or_union_type_die): Likewise.
7682         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7683         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7684
7685 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7686
7687         * tree-object-size.c (pass_through_call): Handle
7688         BUILT_IN_ASSUME_ALIGNED.
7689
7690 2011-07-01  Martin Jambor  <mjambor@suse.cz>
7691
7692         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7693
7694 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7695
7696         PR middle-end/48016
7697         * explow.c (update_nonlocal_goto_save_area): Use proper mode
7698         for stack save area.
7699         * function.c (expand_function_start): Likewise.
7700
7701 2011-07-01  Richard Guenther  <rguenther@suse.de>
7702
7703         PR middle-end/49596
7704         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7705         may have unknown refs.
7706
7707 2011-07-01  Kai Tietz  <ktietz@redhat.com>
7708
7709         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7710
7711 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7712
7713         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7714         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7715         (Specific, mips-sgi-irix6): Likewise.
7716
7717 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7718
7719         PR libmudflap/49549
7720         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7721
7722 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7723
7724         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7725         [idx]= and [idx1 ... idx2]= before initializers if needed for
7726         array initializers.
7727
7728 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
7729
7730         * config.gcc (score-*-elf): Remove score7.o.
7731         * config/score/t-score-elf: Likewise.
7732         * config/score/score.c: Merge score7 to score.c and
7733         remove forwarding functions.
7734         * config/score/score7.c: Deleted.
7735         * config/score/score7.h: Deleted.
7736
7737 2011-07-01  Richard Guenther  <rguenther@suse.de>
7738
7739         PR tree-optimization/49603
7740         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7741
7742 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7743
7744         * tree-sra.c (struct access): Rename total_scalarization to
7745         grp_total_scalarization
7746         (completely_scalarize_var): New function.
7747         (sort_and_splice_var_accesses): Set total_scalarization in the
7748         representative access.
7749         (analyze_access_subtree): Propagate total scalarization accross the
7750         tree, no holes in totally scalarized trees, simplify coverage
7751         computation.
7752         (analyze_all_variable_accesses): Call completely_scalarize_var instead
7753         of completely_scalarize_record.
7754
7755 2011-06-30  Richard Henderson  <rth@redhat.com>
7756
7757         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7758         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7759         * config/i386/i386.c: Don't include dwarf2out.h.
7760         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7761         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7762         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
7763         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7764         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7765
7766 2011-06-30  Richard Henderson  <rth@redhat.com>
7767
7768         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7769         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7770         * final.c (final_scan_insn): Look for it, and invoke
7771         dwarf2out_frame_debug before the insn if found.
7772
7773 2011-06-30  Richard Henderson  <rth@redhat.com>
7774
7775         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7776         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7777
7778 2011-06-30  Richard Henderson  <rth@redhat.com>
7779
7780         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7781         Define a vector of this type.
7782         (regs_saved_in_regs): Use a VEC.
7783         (num_regs_saved_in_regs): Remove.
7784         (compare_reg_or_pc): New.
7785         (record_reg_saved_in_reg): Split out from...
7786         (dwarf2out_flush_queued_reg_saves): ... here.
7787         (clobbers_queued_reg_save): Update for VEC.
7788         (reg_saved_in): Likewise.
7789         (dwarf2out_frame_debug_init): Likewise.
7790         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7791         (dwarf2out_frame_debug_cfa_register): Likewise.
7792
7793 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7794
7795         PR tree-optimization/49572
7796         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7797         type of the RHS instead of that of the LHS for the expression type.
7798
7799 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7800
7801         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7802         unconditionally.
7803
7804 2011-06-30  Richard Guenther  <rguenther@suse.de>
7805
7806         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7807         * tree-ssa-structalias.c (create_variable_info_for): Do not
7808         add initial constraints for non-var-decls.  Properly handle
7809         globals in other ltrans partitions.
7810         (intra_create_variable_infos): Manually create constraints for
7811         the fake no-alias parameter.
7812         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7813         and assert there are no clones.
7814
7815 2011-06-30  Richard Guenther  <rguenther@suse.de>
7816
7817         PR tree-optimization/46787
7818         * tree-data-ref.c (dr_address_invariant_p): Remove.
7819         (find_data_references_in_stmt): Invariant accesses are ok now.
7820         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7821         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7822         invariant loads.
7823
7824 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7825
7826         PR tree-optimization/49094
7827         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7828         (build_accesses_from_assign): Use it.
7829
7830 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7831
7832         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7833         handling of BUILT_IN_ASSUME_ALIGNED.
7834
7835         PR debug/49364
7836         * dwarf2out.c (output_abbrev_section): Don't return early
7837         if abbrev_die_table_in_use is 1.
7838         (dwarf2out_finish): Instead don't call output_abbrev_section
7839         nor emit abbrev_section_label in that case.
7840
7841 2011-06-30  Nick Clifton  <nickc@redhat.com>
7842
7843         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7844         for the V850E.
7845
7846 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7847
7848         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7849         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7850
7851 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
7852
7853         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7854         both pattern and original statements if necessary.
7855         (vect_transform_loop): Likewise.
7856         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7857         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7858         Mark the pattern statement only if the original statement doesn't
7859         have its own uses.
7860         (process_use): Call vect_mark_relevant with additional parameter.
7861         (vect_mark_stmts_to_be_vectorized): Likewise.
7862         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7863         (vect_analyze_stmt): Handle both pattern and original statements
7864         if necessary.
7865         (vect_transform_stmt): Don't store vectorized pattern statement
7866         in the original statement.
7867         (vect_is_simple_use_1): Use related pattern statement only if the
7868         original statement is irrelevant.
7869         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7870
7871 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
7872
7873         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7874         option.
7875         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7876         entry.
7877         (TARGET_AVX128_OPTIMAL): New definition.
7878         * config/i386/i386.c (initial_ix86_tune_features): Initialize
7879         X86_TUNE_AVX128_OPTIMAL entry.
7880         (ix86_option_override_internal): Enable the generation
7881         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7882         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7883         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7884
7885 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7886
7887         PR tree-optimization/49539
7888         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7889         names by means of stmt_references_abnormal_ssa_name.
7890         (associate_plusminus): Call can_propagate_from before propagating
7891         from definition statements.
7892         (ssa_forward_propagate_and_combine): Remove superfluous newline.
7893
7894 2011-06-29  Richard Guenther  <rguenther@suse.de>
7895
7896         * doc/invoke.texi: Document -scev dump modifier.
7897         * tree-pass.h (TDF_SCEV): New dump flag.
7898         * tree-dump.c (dump_option_value_in): Add scev.
7899         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7900         * tree-scalar-evolution.c: Likewise.
7901
7902 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
7903
7904         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7905         (cxa_type_match): Correct declaration.
7906         (__gnu_unwind_pr_common): Reconstruct additional indirection
7907         when __cxa_type_match returns succeeded_with_ptr_to_base.
7908
7909 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7910
7911         PR rtl-optimization/49114
7912         * reload.c (struct replacement): Remove SUBREG_LOC member.
7913         (push_reload): Do not set it.
7914         (push_replacement): Likewise.
7915         (subst_reload): Remove dead code.
7916         (copy_replacements): Remove assertion.
7917         (copy_replacements_1): Do not handle SUBREG_LOC.
7918         (move_replacements): Likewise.
7919         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
7920         Detect subregs via recursive descent instead of via SUBREG_LOC.
7921
7922 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7923
7924         * config/avr/avr.c (avr_encode_section_info): Dispatch to
7925         default_encode_section_info.
7926
7927 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
7928
7929         PR tree-optimization/49545
7930         * builtins.c (get_object_alignment_1): Update function comment.
7931         Do not use DECL_ALIGN for functions, but test
7932         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7933         * fold-const.c (get_pointer_modulus_and_residue): Don't check
7934         for functions here.
7935         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7936
7937 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
7938
7939         PR debug/49567
7940         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
7941         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
7942
7943 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7944
7945         PR target/34734
7946         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
7947         about uninitialized data attributed 'progmem' from here...
7948         (avr_encode_section_info): ...to this new function.
7949         (TARGET_ENCODE_SECTION_INFO): New define.
7950         (avr_section_type_flags): For data in ".progmem.data", remove
7951         section flag SECTION_WRITE.
7952
7953 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7954
7955         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
7956         _xmulhisi3_exit.
7957         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
7958         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
7959         (__umulhisi3): Ditto.
7960         * config/avr/avr.md (mulhisi3): New insn expender.
7961         (umulhisi3): New insn expender.
7962         (*mulhisi3_call): New insn.
7963         (*umulhisi3_call): New insn.
7964
7965 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7966
7967         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
7968
7969 2011-06-28  Richard Henderson  <rth@redhat.com>
7970
7971         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
7972         all code and arguments that handled pushes.  Update all callers.
7973
7974 2011-06-28  Richard Henderson  <rth@redhat.com>
7975
7976         * config/arm/arm.c (arm_output_function_prologue): Don't call
7977         thumb1_output_function_prologue.
7978         (arm_expand_prologue): Avoid dead store.
7979         (number_of_first_bit_set): Use ctz_hwi.
7980         (thumb1_emit_multi_reg_push): New.
7981         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
7982         to emit the entire prologue as rtl.
7983         (thumb1_output_interwork): Split out from
7984         thumb1_output_function_prologue.
7985         (thumb1_output_function_prologue): Remove.
7986         (arm_attr_length_push_multi): Handle thumb1.
7987         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
7988         (prologue_thumb1_interwork): New.
7989         (*push_multi): Allow thumb1; use push_mult_memory_operand.
7990         * config/arm/predicates.md (push_mult_memory_operand): New.
7991
7992 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7993
7994         * config/sparc/sync.md (*stbar): Delete.
7995         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
7996
7997 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7998
7999         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8000
8001 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8002
8003         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8004         (TARGET_64BIT_DEFAULT): Define.
8005         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8006         of tm_file.
8007         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8008
8009 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8010
8011         * common.opt (in_lto_p): New Variable entry.
8012         * flags.h (in_lto_p): Move to common.opt.
8013         * gcc.c: Include params.h.
8014         (set_option_handlers): Also use common_handle_option and
8015         target_handle_option.
8016         (main): Call global_init_params, finish_params and init_options_struct.
8017         * opts.c (debug_type_names): Move from toplev.c.
8018         (print_filtered_help): Access quiet_flag through opts pointer.
8019         (common_handle_option): Return early in the driver for some options.
8020         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8021         opts pointer.
8022         * toplev.c (in_lto_p): Move to common.opt.
8023         (debug_type_names): Move to opts.c.
8024         * Makefile.in (OBJS): Remove opts.o.
8025         (OBJS-libcommon-target): Add opts.o.
8026         (gcc.o): Update dependencies.
8027
8028 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8029
8030         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8031
8032 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8033
8034         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8035         with '=' constraint modifier.
8036         (*divdf3_vfp): Likewise.
8037         ("*mulsf3_vfp"): Likewise.
8038         ("*muldf3_vfp"): Likewise.
8039         ("*mulsf3negsf_vfp"): Likewise.
8040         ("*muldf3negdf_vfp"): Likewise.
8041
8042 2011-06-28  Nick Clifton  <nickc@redhat.com>
8043
8044         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8045         relaxation when performing an incremental link.
8046
8047 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8048
8049         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8050         within BB from last to first.
8051
8052 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * genattr-common.c: New.  Based on genattr.c.
8055         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8056         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8057         (opts.o): Update dependencies.
8058         (.PRECIOUS): Add insn-attr-common.h.
8059         (simple_rtl_generated_h): Add insn-attr-common.h.
8060         (build/genattr-common.o): New.
8061         (genprogrtl): Add attr-common.
8062         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8063         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8064         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8065
8066 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8067
8068         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8069         avr-*-* and avr-*-rtems* targets.
8070
8071         * config/avr/elf.h: New file.
8072         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8073         (TARGET_ASM_SELECT_SECTION): Define.
8074         (INIT_SECTION_ASM_OP): Undefine.
8075         (FINI_SECTION_ASM_OP): Undefine.
8076         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8077         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8078         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8079         * config/avr/avr.h:
8080         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8081         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8082         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8083         (STRING_LIMIT): Move to elf.h.
8084         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8085         (ASM_DECLARE_OBJECT_NAME): Remove.
8086         (ESCAPES): Remove.
8087         (ASM_OUTPUT_SKIP): Remove.
8088         (DWARF2_DEBUGGING_INFO): Remove.
8089         (OBJECT_FORMAT_ELF): Remove.
8090         (USER_LABEL_PREFIX): Remove.
8091         (ASM_OUTPUT_EXTERNAL): Remove.
8092         (ASM_OUTPUT_ASCII): Remove.
8093         (TYPE_ASM_OP): Remove.
8094         (SIZE_ASM_OP): Remove.
8095         (WEAK_ASM_OP): Remove.
8096         (STRING_ASM_OP): Remove.
8097         (SET_ASM_OP): Remove.
8098         (ASM_WEAKEN_LABEL): Remove.
8099         (TYPE_OPERAND_FMT): Remove.
8100         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8101         (ASM_FINISH_DECLARE_OBJECT): Remove.
8102         (NO_DOLLAR_IN_LABEL): Remove.
8103         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8104         (ASM_OUTPUT_CASE_LABEL): Remove.
8105         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8106         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8107         (gas_output_ascii): Remove.
8108         (gas_output_limited_string): Remove.
8109         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8110         * config/avr/avr-protos.h
8111         (gas_output_ascii): Remove prototye.
8112         (gas_output_limited_string): Remove prototype.
8113
8114 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8115
8116         PR target/48637
8117         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8118         asm operands.
8119
8120 2011-06-27  Jan Hubicka  <jh@suse.cz>
8121
8122         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8123         node instead of references in node.
8124
8125 2011-06-27  Richard Henderson  <rth@redhat.com>
8126
8127         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8128         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8129         inside ifdef.
8130
8131 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8132
8133         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8134
8135         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8136         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8137         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8138         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8139         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8140         (evaluate_stmt, execute_fold_all_builtins): Handle
8141         BUILT_IN_ASSUME_ALIGNED.
8142         * tree-ssa-dce.c (propagate_necessity): Likewise.
8143         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8144         call_may_clobber_ref_p_1): Likewise.
8145         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8146         (expand_builtin_assume_aligned): New function.
8147         * doc/extend.texi (__builtin_assume_aligned): Document.
8148
8149         PR debug/49544
8150         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8151         and l has two DEBUG_INSN owned locs instead of just one, adjust
8152         the second location's setting_insn too.
8153
8154 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8155
8156         PR libmudflap/38738
8157         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8158
8159 2011-06-27  Nick Clifton  <nickc@redhat.com>
8160
8161         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8162         bit position of highest bit set into a count of the high zero bits.
8163
8164 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8165
8166         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8167
8168 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8169
8170         PR lto/48492
8171         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8172         to a NULL parent.
8173
8174 2011-06-27  Richard Guenther  <rguenther@suse.de>
8175
8176         PR tree-optimization/49394
8177         * passes.c (execute_one_pass): Restore current_pass after
8178         applying IPA transforms.
8179
8180 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8181
8182         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8183         out of type precision after operation.
8184         (find_bswap): Take for limit value the integer auto-promotion
8185         into account.
8186
8187 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8188
8189         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8190         forward scan as well.
8191
8192 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8193
8194         PR target/44241
8195         * config/vms/vms-protos.h: New file.
8196         * config/vms/vms-crtlmap.map: New file.
8197         * config/vms/vms.c: New file.
8198         * config/vms/make-crtlmap.awk: New file.
8199         * config/vms/vms-crtl.h: File removed.
8200         * config/vms/vms-crtl-64.h: File removed.
8201         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8202         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8203         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8204         clear some builtins on VMS.  Calls vms_patch_builtins.
8205         (avms_asm_output_external): Remove.
8206         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8207         (struct crtl_name_spec): Remove
8208         (DO_CTRL_NAMES): Remove.
8209         * config/ia64/vms.h (struct crtl_name_spec): Remove
8210         (DO_CTRL_NAMES): Remove.
8211         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8212         clear some builtins on VMS.  Calls vms_patch_builtins.
8213         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8214         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8215         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8216
8217 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8218
8219         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8220         directive on VMS.
8221
8222 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8223
8224         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8225         the function receives nonlocal gotos.
8226
8227 2011-06-27  Richard Guenther  <rguenther@suse.de>
8228
8229         PR tree-optimization/49536
8230         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8231         For non-scalar inner types use a scalar type according to
8232         the scalar inner mode.
8233
8234 2011-06-27  Richard Guenther  <rguenther@suse.de>
8235
8236         PR tree-optimization/49365
8237         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8238
8239 2011-06-27  Richard Guenther  <rguenther@suse.de>
8240
8241         PR tree-optimization/49169
8242         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8243         the alignment of function decls.
8244
8245 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8246
8247         PR target/47997
8248         * config/darwin.c (darwin_mergeable_string_section): Place string
8249         constants in '.cstring' rather than '.const' when CF/NSStrings are
8250         active.
8251
8252 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8253
8254         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8255         (emit_save_register_window): Likewise.
8256         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8257         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
8258         Swap back %o7/%i7 in register naming.
8259
8260 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
8261
8262         PR driver/49371
8263         * config/darwin.c (darwin_override_options): Improve warning when
8264         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8265         is given with fpie/fPIE.
8266         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8267         * config/darwin9.h (PIE_SPEC): New.
8268
8269 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
8270
8271         * timevar.c (timevar_print): Increase width for display of timevar
8272         name.
8273
8274 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
8275
8276         PR c++/46400
8277         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8278         instead of TYPE_CHAIN for chain_next for types.
8279
8280 2011-06-24  Richard Henderson  <rth@redhat.com>
8281
8282         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8283         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8284         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8285         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8286         (sparc_flat_expand_prologue): Emit individual instructions
8287         instead of one of the above.
8288
8289 2011-06-24  Easwaran Raman  <eraman@google.com>
8290
8291         PR rtl-optimization/49429
8292         PR target/49454
8293         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
8294         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8295         used to copy y into x.
8296         * calls.c (initialize_argument_information): Mark
8297         an argument addressable if it is passed by invisible reference.
8298         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8299         if it is passed by reference.
8300
8301 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8302
8303         PR rtl-optimization/49504
8304         * rtlanal.c (nonzero_bits1): Properly handle addition or
8305         subtraction of a pointer in Pmode if pointers extend unsigned.
8306         (num_sign_bit_copies1): Likewise.
8307
8308 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8309
8310         PR tree-optimizations/49516
8311         * tree-sra.c (sra_modify_assign): Choose the safe path for
8312         aggregate copies if we also did scalar replacements.
8313
8314 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8315
8316         PR target/49335
8317         * config/arm/predicates.md (add_operator): New.
8318         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8319
8320 2011-06-24  Andi Kleen  <ak@linux.intel.com>
8321
8322         * tree-sra.c (type_internals_preclude_sra_p): Add msg
8323         parameter. Split up ifs and report reason in *msg.
8324         (reject): Add.
8325         (find_var_candiate): Add msg variable.
8326         Split up ifs and report reason to reject.
8327         (find_param_candidates): Add msg variable.
8328         Pass msg to type_internals_preclude_sra_p.
8329
8330 2011-06-23  Jeff Law  <law@redhat.com>
8331
8332         PR middle-end/48770
8333         * reload.h (reload): Change to return a bool.
8334         * ira.c (ira): If requested by reload, run a fast DCE pass after
8335         reload has completed.  Fix comment typo.
8336         * reload1.c (need_dce): New file scoped static.
8337         (reload): Set reload_completed here.  Return whether or not a DCE
8338         pass after reload is needed.
8339         (delete_dead_insn): Set need_dce as needed.
8340
8341         PR middle-end/49465
8342         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8343         to detect threading through joiner block.  If there was already
8344         an edge to the new target, then do not change the PHI nodes.
8345
8346 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
8347
8348         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8349         get_pointer_alignment to see if base isn't sufficiently aligned.
8350
8351 2011-06-23  Jan Hubicka  <jh@suse.cz>
8352
8353         PR tree-optimize/49373
8354         * tree-pass.h (all_late_ipa_passes): Declare.
8355         * cgraphunit.c (init_lowered_empty_function): Fix properties.
8356         (cgraph_optimize): Execute late passes; remove unreachable funcions
8357         after materialization.
8358         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8359         LTOing.
8360         * passes.c (all_late_ipa_passes): Declare.
8361         (dump_passes, register_pass): Handle late ipa passes.
8362         (init_optimization_passes): Move ipa_pta to late passes; schedule
8363         fixup_cfg at beggining of all_passes.
8364         (apply_ipa_transforms): New function.
8365         (execute_one_pass): When doing simple ipa pass, apply all transforms.
8366
8367 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
8368
8369         * params.c: Include common/common-target.h.  Don't include tm.h.
8370         (lang_independent_params): Move from toplev.c.
8371         (global_init_params): New.
8372         * params.h (global_init_params): Declare.
8373         * target.def (default_params): Move to common-target.def.
8374         * toplev.c (lang_independent_options): Remove.
8375         (lang_independent_params): Move to params.c.
8376         (general_init): Use global_init_params.
8377         * common/common-target.def (option_default_params): Move from
8378         target.def.
8379         * common/config/ia64/ia64-common.c: Include params.h.
8380         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8381         from ia64.c.
8382         * common/config/rs6000/rs6000-common.c: Include params.h.
8383         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8384         from rs6000.c.
8385         * common/config/sh/sh-common.c: Include params.h.
8386         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8387         from sh.c.
8388         * common/config/spu/spu-common.c: Include params.h.
8389         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8390         from spu.c.
8391         * config/ia64/ia64.c (ia64_option_default_params,
8392         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8393         * config/rs6000/rs6000.c (rs6000_option_default_params,
8394         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8395         * config/sh/sh.c (sh_option_default_params,
8396         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8397         * config/spu/spu.c (spu_option_default_params,
8398         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8399         * Makefile.in (OBJS): Remove params.o.
8400         (OBJS-libcommon-target): Add params.o.
8401         (params.o, $(common_out_object_file)): Update dependencies.
8402         * doc/tm.texi: Regenerate.
8403
8404 2011-06-23  Alan Modra  <amodra@gmail.com>
8405
8406         PR bootstrap/49383
8407         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8408         invocation for 2011-06-09 changes.
8409
8410 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8411
8412         PR libgomp/49490
8413         * omp-low.c (expand_omp_for_static_nochunk): Only
8414         use n ceil/ nthreads size for the first n % nthreads threads in the
8415         team instead of all threads except for the last few ones which
8416         get less work or none at all.
8417
8418         PR debug/49496
8419         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8420         uses.
8421
8422 2011-06-22  Richard Guenther  <rguenther@suse.de>
8423
8424         PR tree-optimization/49493
8425         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8426         Refer to the alias target of variables.
8427         (associate_varinfo_to_alias_1): Remove.
8428         (ipa_pta_execute): Do not associate aliases with anything.
8429         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8430         (cgraph_function_node): Likewise.
8431         (cgraph_function_or_thunk_node): Likewise.
8432         (varpool_variable_node): Likewise.
8433
8434 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8435
8436         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8437         * config.gcc (arm*-*-linux*): Default to gnu tls.
8438         (arm*-*-*): Add --with-tls option.
8439         (all_defaults): Add 'tls'.
8440
8441 2011-06-22  Richard Henderson  <rth@redhat.com>
8442
8443         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8444         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8445         (dwarf2out_frame_debug_cfa_window_save): Rename from
8446         dwarf2out_window_save; make static.
8447         * tree.h (dwarf2out_window_save): Don't declare.
8448
8449         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8450         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8451         (emit_save_register_window): Rename from gen_save_register_window;
8452         emit the insn and add REG_CFA_* notes.
8453         (sparc_expand_prologue): Update to match.
8454         * config/sparc/sparc.md (save_register_window_1): Simplify from
8455         save_register_window<P:mode>.
8456
8457 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8458
8459         PR target/49497
8460         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8461         (*lea_general_2_zext): Likewise.
8462         (imul to lea peepholes): Use const359_operand and check
8463         TARGET_PARTIAL_REG_STALL.
8464
8465         * config/i386/predicates.md (const359_operand): New.
8466
8467 2011-06-22  Michael Matz  <matz@suse.de>
8468
8469         * cgraphunit.c (assemble_thunk): Use correct return type.
8470
8471 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8472             Dmitry Melnik  <dm@ispras.ru>
8473
8474         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8475         (neon_output_shift_immediate): Ditto.
8476         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8477         prototype.
8478         (neon_output_shift_immediate): Ditto.
8479         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8480         (vashr<mode>3_imm): New insn pattern.
8481         (vlshr<mode>3_imm): Ditto.
8482         (vashr<mode>3): Modified constraint.
8483         (vlshr<mode>3): Ditto.
8484         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8485         predicate.
8486         (imm_for_neon_rshift_operand): Ditto.
8487         (imm_lshift_or_reg_neon): Ditto.
8488         (imm_rshift_or_reg_neon): Ditto.
8489
8490         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8491
8492 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8493
8494         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8495         builtin calls even if likelyvalue is not CONSTANT.
8496         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8497         Return get_value_for_expr of first operand
8498         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8499         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8500         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8501         their non-checking counterparts.
8502         (call_may_clobber_ref_p_1): Likewise.
8503         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8504         like their non-checking counterparts.
8505         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8506         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8507         like their non-checking counterparts.
8508         (find_func_clobbers): Likewise.
8509         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8510         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8511
8512         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8513         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8514         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8515         of base type reference as argument.
8516         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8517         (convert_descriptor_to_signed): Renamed to...
8518         (convert_descriptor_to_mode): ... this.  For wider types convert to
8519         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8520         (typed_binop): New function.
8521         (scompare_loc_descriptor, ucompare_loc_descriptor,
8522         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8523         default to unsigned type instead of signed.
8524
8525         PR debug/47858
8526         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8527         (gimple_build_debug_source_bind_stat): New prototype.
8528         (gimple_build_debug_source_bind): Define.
8529         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8530         gimple_debug_source_bind_get_value,
8531         gimple_debug_source_bind_get_value_ptr,
8532         gimple_debug_source_bind_set_var,
8533         gimple_debug_source_bind_set_value): New inlines.
8534         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8535         * gimple-pretty-print.c (dump_gimple_debug): Handle
8536         GIMPLE_DEBUG_SOURCE_BIND.
8537         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8538         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8539         * tree-parloops.c (eliminate_local_variables,
8540         separate_decls_in_region): Likewise.
8541         (separate_decls_in_region_debug): Renamed from
8542         separate_decls_in_region_debug_bind.  Handle
8543         gimple_debug_source_bind_p.
8544         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8545         prototypes.
8546         (DECL_HAS_DEBUG_ARGS_P): Define.
8547         (struct tree_function_decl): Add has_debug_args_flag field.
8548         * tree.c (debug_args_for_decl): New variable.
8549         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8550         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8551         (rewrite_debug_stmt_uses): New function.
8552         (rewrite_stmt): Use it to rewrite debug stmt uses.
8553         * rtl.def (DEBUG_PARAMETER_REF): New.
8554         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8555         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8556         DEBUG_PARAMETER_REF.
8557         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8558         * print-rtl.c (print_rtx): Likewise.
8559         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8560         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8561         debug stmts in the first bb.
8562         * tree-inline.c (remap_ssa_name): If remapping default def
8563         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8564         a source bind debug stmt.
8565         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8566         (maybe_move_debug_stmts_to_successors): Likewise.
8567         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8568         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8569         debug args vector from old_decl to new_decl.
8570         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8571         or modified parameters, add debug bind stmts before call
8572         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8573         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8574         on DECL_DEBUG_EXPRs from debug args vector.
8575         (expand_debug_source_expr): New function.
8576         (expand_debug_locations): Use it for source bind insns.
8577         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8578         * var-tracking.c (prepare_call_arguments): Add debug args
8579         to call_arguments if any.
8580         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8581         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8582         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8583         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8584         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8585         (gen_subprogram_die): Handle parameters identified by
8586         DEBUG_PARAMETER_REF.
8587
8588 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8589
8590         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8591         * doc/install.texi (Configuration): Document --with-tls.
8592         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8593         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8594         (arm_tls_descseq_addr): New.
8595         (legitimize_tls_address): Add tlsdesc support.
8596         (arm_cannot_copy_insn_p): Check for tlscall.
8597         (arm_emit_tls_decoration): Likewise.
8598         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8599         (OPTION_DEFAULT_SPECS): Add with-tls support.
8600         * config/arm/arm.md (R1_REGNUM): Define.
8601         (tlscall): New.
8602         * config/arm/arm.opt (tls_type): New enumeration type and values.
8603         (mtls-dialect): New switch.
8604         * config/arm/arm-opts.h (enum tls_type): New.
8605
8606 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8607
8608         * attribs.c (register_attribute): Added assert to check that all
8609         attribute specs are registered with a name that is not empty and
8610         does not start with '_'.
8611         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8612         if the function has no attributes.
8613         * tree.c (is_attribute_with_length_p): Removed.
8614         (is_attribute_p): Removed.
8615         (private_is_attribute_p): New.
8616         (private_lookup_attribute): New.
8617         (lookup_attribute): Removed.
8618         (lookup_ident_attribute): New.
8619         (remove_attribute): Require the first argument to be in the form
8620         'text', not '__text__'.  Updated asserts.
8621         (merge_attributes): Use lookup_ident_attributes instead of
8622         lookup_attribute.
8623         (merge_dllimport_decl_attributes): Use remove_attribute.
8624         (attribute_list_contained): Likewise.
8625         (attribute_list_equal): Immediately return 1 if the arguments are
8626         identical pointers.
8627         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
8628         'int'.  Require the first argument to be in the form 'text', not
8629         '__text__'.  Require the second argument to be an identifier.
8630         (lookup_attribute): Made inline.  Require the first argument to be
8631         in the form 'text', not '__text__'.
8632         (private_is_attribute_p, private_lookup_attribute): New.
8633         Updated comments.
8634
8635 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8636
8637         * builtins.c: Add sync_ or SYNC__ to builtin names.
8638         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8639         * omp-low.c: Add sync_ or SYNC__ to builtin names.
8640
8641 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8642
8643         PR target/33049
8644         * config/avr/avr.md (extzv): New expander.
8645         (*extzv): New insn.
8646         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8647         * config/avr/constraints.md (C04): New constraint.
8648         * doc/md.texi (Machine Constraints): Document it.
8649
8650 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR middle-end/49489
8653         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8654         unsignedp argument instead of 1 for clrsb_optab.
8655         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8656         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
8657         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8658         * optabs.c (widen_leading): Call widen_operand and expand_unop
8659         with 0 as unsignedp argument instead of 1 for clrsb_optab.
8660         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8661
8662 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8663
8664         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8665
8666 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
8667
8668         * gensupport.c (add_define_attr): New static function.
8669         (is_predicable): Allow multi-alternative lists for the "predicable"
8670         attribute.
8671         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8672         (process_one_cond_exec): Call alter_attrs_for_insn.
8673         * doc/md.texi (Defining Attributes): Mention some standard names.
8674         (Conditional Execution): Update documentation for "predicable".
8675
8676         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8677         __builtin_clrsbll): Document.
8678         * doc/rtl.texi (clrsb): New entry.
8679         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
8680         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
8681         (expand_unop): Handle clrsb_optab.
8682         (init_optabs): Initialize it.
8683         * optabs.h (enum optab_index): New entry OTI_clrsb.
8684         (clrsb_optab): Define.
8685         * genopinit.c (optabs): Add an entry for it.
8686         * builtins.c (expand_builtin): Handle clrsb builtin functions.
8687         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8688         BUILT_IN_CLRSBLL): New.
8689         * rtl.def (CLRSB): New code.
8690         * dwarf2out.c (mem_loc_descriptor): Handle it.
8691         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8692         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8693         and popcount.
8694         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8695         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8696         (__ctzDI2): Move declaration.
8697         * config/bfin/bfin.md (clrsbsi2): New expander.
8698         (signbitssi2): Use the CLRSB rtx.
8699         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
8700         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8701
8702 2011-06-21  Richard Guenther  <rguenther@suse.de>
8703
8704         * ipa-inline-transform.c (inline_transform): Fix previous change.
8705
8706 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
8707
8708         PR tree-optimization/49478
8709         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8710         with constant operand.
8711
8712 2011-06-21  Richard Guenther  <rguenther@suse.de>
8713
8714         * ipa-inline-transform.c (inline_transform): Fix typo.
8715
8716 2011-06-21  Richard Guenther  <rguenther@suse.de>
8717
8718         PR tree-optimization/49483
8719         * tree-vect-stmts.c (vectorizable_assignment): Also handle
8720         VIEW_CONVERT_EXPR conversions.
8721
8722 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
8723
8724         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8725         * config/avr/avr-tables.opt: New file (generated).
8726         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8727         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8728         avr-mcus.def.
8729         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8730         (avr_option_override): Don't process -mmcu= argument here.  Set
8731         avr_current_device using avr_mcu_index.
8732         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8733         * config/avr/avr.opt (mmcu=): Use Enum.
8734         * config/avr/t-avr (avr-devices.o): Update dependencies.
8735         ($(srcdir)/config/avr/avr-tables.opt): New.
8736         * target.def (help): Remove.
8737         * doc/tm.texi.in (TARGET_HELP): Remove.
8738         * doc/tm.texi: Regenerate.
8739         * opts.c: Don't include target.h.
8740         (common_handle_option): Don't call targetm.help.
8741         * system.h (TARGET_HELP): Poison.
8742         * Makefile.in (opts.o): Update dependencies.
8743
8744 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8745
8746         * config/usegld.h: New file.
8747         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8748         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8749         (LIB_SPEC): Likewise.  Search /lib.
8750         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8751         (RDYNAMIC_SPEC): Handle GNU ld.
8752         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8753         Define.
8754         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8755         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8756         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8757         (STACK_CHECK_STATIC_BUILTIN): Define.
8758         * config/sol2.opt (compat-bsd): Remove.
8759         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8760         * config/sol2-bi.h: New file.
8761         * config/sol2-gld.h: Remove.
8762         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8763         (NO_DBX_BNSYM_ENSYM): Remove.
8764         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8765         (STACK_CHECK_STATIC_BUILTIN): Remove.
8766         Test USE_GLD instead of TARGET_GNU_LD.
8767         * config/i386/sol2-10.h: Rename to ...
8768         * config/i386/sol2-bi.h .. this.
8769         (SUBTARGET_EXTRA_SPECS): Redefine.
8770         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8771         (MULTILIB_DEFAULTS): Remove.
8772         (DEFAULT_ARCH32_P): Define.
8773         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8774         (ARCH64_SUBDIR): Define.
8775         Test USE_GLD instead of TARGET_GNU_LD.
8776         (I386_EMULATION): Rename to ...
8777         (ARCH32_EMULATION): ... this.
8778         (X86_64_EMULATION): Rename to ...
8779         (ARCH64_EMULATION): ... this.
8780         (TARGET_LD_EMULATION): Remove.
8781         (LINK_ARCH_SPEC): Remove.
8782         * config/i386/sol2-gas.h: Remove.
8783         * config/i386/t-sol2-10: Rename to ...
8784         * config/i386/t-sol2-64: ... this.
8785         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8786         (AS_SPARC64_FLAG): Define.
8787         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8788         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8789         depending on TARGET_CPU_DEFAULT.
8790         (CPP_CPU_SPEC): Redefine.
8791         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8792         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8793         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8794         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8795         ASM_ARCH_DEFAULT_SPEC): Redefine.
8796         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8797         LINK_ARCH_DEFAULT_SPEC.
8798         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8799         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8800         (ARCH64_SUBDIR): Define.
8801         (LINK_ARCH64_SPEC): Redefine.
8802         (CC1_SPEC): Redefine.
8803         (OPTION_DEFAULT_SPECS): Redefine.
8804         (MULTILIB_DEFAULTS): Define.
8805         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8806         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8807         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8808         (NO_DBX_BNSYM_ENSYM): Remove.
8809         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8810         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8811         (TARGET_ASM_NAMED_SECTION): Likewise.
8812         (STACK_CHECK_STATIC_BUILTIN): Remove.
8813         * config/sparc/sol2-bi.h: Remove.
8814         * config/sparc/sol2-gas-bi.h: Remove.
8815         * config/sparc/sol2-gas.h: Remove.
8816         * config/sparc/sol2-gld-bi.h: Remove.
8817         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8818         common parts ...
8819         (*-*-solaris2*): ... here.
8820
8821 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8822
8823         PR other/43564
8824         * ipa-inline.c (can_inline_edge_p): Check
8825         !DECL_DISREGARD_INLINE_LIMITS.
8826
8827 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8828
8829         PR middle-end/49139
8830         * cgraphunit.c (process_function_and_variable_attributes): warn when
8831         always_inline functions that are not inline.
8832         * ipa-inline-transform.c (inline_transform): Always call
8833         optimize_inline.
8834         * tree-inline.c (tree_inlinable_function_p): Use error instead
8835         of sorry.
8836         (expand_call_inline): Likewise.
8837
8838 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8839
8840         * Makefile.in (dg_target_exps): Set.
8841         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8842         instead of 7, try to divide it more evenly.
8843
8844 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
8845
8846         PR target/49089
8847         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8848         (avx256_split_unaligned_store): New definition.
8849         (ix86_option_override_internal): Enable avx256 unaligned load/store
8850         splitting only when avx256_split_unaligned_load/store is set.
8851
8852 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8853
8854         * regrename.c (scan_rtx_reg): Handle the case where we write to an
8855         open chain in a smaller mode without failing the entire block.
8856
8857 2011-06-21  Alan Modra  <amodra@gmail.com>
8858
8859         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8860         CONST high part large-toc address.
8861         (rs6000_tls_referenced_p): Make static.
8862         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8863
8864 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8865
8866         PR target/49385
8867         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8868         one of the operands is a register.
8869
8870 2011-06-20  Kai Tietz  <ktietz@redhat.com>
8871
8872         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8873         operations in combination with binary and.
8874
8875 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8876
8877         * regrename.c (do_replace): Don't update notes.
8878
8879 2011-06-20  Alan Modra  <amodra@gmail.com>
8880
8881         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8882         of toc-relative address in CONST.
8883         (rs6000_delegitimize_address): Recognize changed address.
8884         (rs6000_legitimize_reload_address): Likewise.
8885         (rs6000_emit_move): Don't force these constants to memory.
8886         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8887         toc-relative address in CONST.
8888         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8889         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8890
8891 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8892
8893         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8894         (count_trailing_zeros): Likewise.
8895
8896 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8897
8898         PR other/49325
8899         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8900         .init_array can be used with .ctors on targets.
8901         * configure: Regenerated.
8902
8903 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8904
8905         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8906         if the element type is volatile.
8907
8908 2011-06-18  Jan Hubicka  <jh@suse.cz>
8909
8910         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
8911         extra name aliases.
8912         (lto_symtab_resolve_can_prevail_p): Likewise.
8913         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
8914         * cgraphbuild.c (record_reference): Remove extra body alias code.
8915         (mark_load): Likewise.
8916         (mark_store): Likewise.
8917         * cgraph.h (varpool_node): Remove extra_name filed;
8918         add alias_of and extraname_alias.
8919         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
8920         (varpool_alias_aliased_node): New inline function.
8921         (varpool_variable_node): New function.
8922         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
8923         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
8924         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
8925         (input_varpool_node): Likewise.
8926         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
8927         (varpool_externally_visible_p): Remove extra body alias code.
8928         (function_and_variable_visibility): Likewise.
8929         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
8930         (ipa_pta_execute): Use it.
8931         * varpool.c (varpool_remove_node): Remove extra name alias code.
8932         (varpool_mark_needed_node): Likewise.
8933         (varpool_analyze_pending_decls): Analyze aliases.
8934         (assemble_aliases): New functoin.
8935         (varpool_assemble_decl): Use it.
8936         (varpool_create_variable_alias): New function.
8937         (varpool_extra_name_alias): Rewrite.
8938         (varpool_for_node_and_aliases): New function.
8939
8940 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
8941
8942         PR target/49411
8943         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
8944         last_arg_constant and last argument doesn't match its predicate,
8945         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
8946         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
8947         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
8948         spelling of error message.
8949         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
8950         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
8951         const_0_to_255_operand instead of const_int_operand.
8952
8953         Revert:
8954         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8955
8956         * config/i386/sse.md (blendbits): Remove mode attribute.
8957         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8958         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8959         Check integer value of operand 3 in insn constraint.
8960
8961 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
8962
8963         PR rtl-optimization/48542
8964         * reload.c (find_equiv_reg): Stop looking when finding a
8965         setjmp-type call.
8966         * reload1.c (reload_as_needed): Invalidate all reload
8967         registers when crossing a setjmp-type call.
8968
8969 2011-06-16  Jeff Law  <law@redhat.com>
8970
8971         * tree-ssa-threadupdate.c (struct redirection_data): New field
8972         intermediate_edge.
8973         (THREAD_TARGET2): Define.
8974         (redirection_data_eq): Also check that the intermediate edge is equal.
8975         (lookup_redirection_data): Drop useless argument.  Extract the
8976         outgoing_edge and intermediate edge from E.  Callers updated.
8977         (copy_phi_args, update_destination_phis): New functions.
8978         (fix_duplicate_block_edges): Likewise.
8979         (create_edge_and_update_destination_phis): Duplicate all the edges
8980         hung off e->aux.  Use copy_phi_args.
8981         (create_duplicates): Use fix_duplicate_block_edges.
8982         (fixup_template_block): Likewise.
8983         (redirect_edges): If necessary, redirect the joiner block's incoming
8984         edge to the duplicate of the joiner block.
8985         (thread_block): Don't muck up loops when threading through a joiner
8986         block.
8987         (thread_through_loop_header): Handle threading through a joiner block.
8988         (mark_threaded_blocks, register_jump_thread): Likewise.
8989         * tree-flow.h (register_jump_thread): Add new argument.  Callers
8990         updated.
8991         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
8992         (thread_across_edge): Handle threading through a joiner block.
8993
8994 2011-06-16  Martin Jambor  <mjambor@suse.cz>
8995
8996         PR tree-optimization/49343
8997         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
8998         calculate offset, provide 2nd operand for the new COMPONENT_REF.
8999
9000 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9001
9002         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9003         inside RTX_CODE ifdef.
9004
9005 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9006
9007         PR target/45098
9008         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9009         Disallow NULL pointer for pointer arithmetic.
9010
9011 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9012
9013         PR target/49398
9014         Revert.
9015         2011-06-10  Wei Guozhi  <carrot@google.com>
9016
9017         PR target/45335
9018         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9019         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9020         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9021         related peephole2.
9022         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9023         related peephole2.
9024         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9025         (arm_legitimate_ldrd_p): New prototype.
9026         (arm_output_ldrd): New prototype.
9027         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9028         (arm_legitimate_ldrd_p): New function.
9029         (arm_output_ldrd): New function.
9030
9031 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9032
9033         PR middle-end/46500
9034         * doc/tm.texi.in: Update Copyright date.
9035         * doc/tm.texi: Regenerate.
9036         * targhooks.c (default_setup_incoming_varargs): Replace
9037         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9038         (default_pretend_outgoing_varargs_named): Likewise.
9039         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9040         (hook_callee_copies_named): Likewise.
9041         (default_function_arg_advance): Likewise.
9042         (default_function_arg): Likewise.
9043         (default_function_incoming_arg): Likewise.
9044         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9045         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9046         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9047         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9048         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9049         * targhooks.h (default_setup_incoming_varargs): Likewise.
9050         (default_pretend_outgoing_varargs_named): Likewise.
9051         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9052         (hook_callee_copies_named): Likewise.
9053         (default_function_arg_advance): Likewise.
9054         (default_function_arg): Likewise.
9055         (default_function_incoming_arg): Likewise.
9056         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9057         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9058         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9059         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9060         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9061         * target.def (pass_by_reference): Likewise.
9062         (setup_incoming_varargs, strict_argument_naming): Likewise.
9063         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9064         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9065         (function_incoming_arg): Likewise.
9066         * target.h: Don't include "tm.h" .
9067         (cumulative_args_t): New typedef.
9068         [GCC_TM_H] (get_cumulative_args): New static inline function.
9069         [GCC_TM_H] (pack_cumulative_args): Likewise.
9070         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9071         argument type with cumulative_args_t.
9072         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9073         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9074         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9075         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9076         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9077         (frv_function_arg_1): Likewise.
9078         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9079         (s390_function_arg_advance, s390_function_arg): Likewise.
9080         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9081         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9082         (m32c_strict_argument_naming): Likewise.
9083         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9084         (spu_function_arg_advance): Likewise.
9085         (spu_setup_incoming_varargs): Likewise.  Make static.
9086         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9087         Remove prototype.
9088         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9089         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9090         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9091         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9092         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9093         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9094         (mep_pass_by_reference, mep_function_arg): Likewise.
9095         (mep_function_arg_advance): Likewise.
9096         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9097         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9098         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9099         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9100         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9101         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9102         (ix86_setup_incoming_varargs): Likewise.
9103         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9104         (sh_strict_argument_naming): Likewise.
9105         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9106         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9107         (sh_function_arg_advance, sh_function_arg): Likewise.
9108         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9109         (pdp11_function_arg_advance): Likewise.
9110         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9111         Likewise.
9112         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9113         * config/avr/avr.c (avr_function_arg): Likewise.
9114         (avr_function_arg_advance): Likewise.
9115         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9116         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9117         (xtensa_function_arg_1): Likewise.
9118         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9119         Likewise.
9120         (xstormy16_function_arg): Likewise.
9121         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9122         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9123         (fr30_function_arg_advance): Likewise.
9124         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9125         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9126         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9127         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9128         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9129         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9130         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9131         (cris_function_arg, cris_function_incoming_arg): Likewise.
9132         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9133         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9134         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9135         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9136         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9137         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9138         (mn10300_arg_partial_bytes): Likewise.
9139         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9140         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9141         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9142         (ia64_function_arg_1): Likewise.
9143         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9144         (m68k_function_arg): Likewise.
9145         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9146         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9147         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9148         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9149         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9150         (picochip_arg_advance): Likewise.
9151         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9152         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9153         (mcore_function_arg_advance): Likewise.
9154         * config/score/score.c (score_pass_by_reference): Likewise.
9155         (score_function_arg_advance): Likewise.
9156         (score_arg_partial_bytes): Likewise.  Make static.
9157         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9158         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9159         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9160         (arm_function_arg, arm_function_arg_advance): Likewise.
9161         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9162         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9163         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9164         (pa_function_arg): Likewise.
9165         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9166         (mips_function_arg, mips_function_arg_advance): Likewise.
9167         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9168         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9169         * config/vax/vax.c (vax_function_arg): Likewise.
9170         (vax_function_arg_advance): Likewise.
9171         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9172         (h8300_function_arg_advance): Likewise.
9173         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9174         (v850_strict_argument_naming, v850_function_arg): Likewise.
9175         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9176         (v850_setup_incoming_varargs): Likewise.
9177         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9178         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9179         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9180         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9181         with const void *.
9182         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9183         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9184         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9185         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9186         * calls.c (emit_call_1): Change type of args_so_far to
9187         cumulative_args_t.  Changed all callers.
9188         (initialize_argument_information): Likewise.
9189         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9190         * dse.c (get_call_args): Likewise.
9191         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9192         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9193         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9194         New member args_so_far_v.  Changed all users.
9195         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9196         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9197         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9198         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9199         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9200         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9201         Likewise.
9202         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9203         m32r_pass_by_reference.
9204
9205 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9206
9207         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9208         argument to be a VEC of statements.
9209         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9210         assert that pattern statements have to have their vector type set.
9211         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9212         Change the first argument to be a VEC of statements.  Update
9213         documentation.
9214         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9215         (vect_handle_widen_mult_by_const): New function.
9216         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9217         VEC of statements.  Update documentation.  Check that the constant is
9218         INTEGER_CST.  Support multiplication by a constant that fits an
9219         intermediate type - call vect_handle_widen_mult_by_const.
9220         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9221         call.  Handle additional pattern statements if necessary.
9222
9223 2011-06-16  Nick Clifton  <nickc@redhat.com>
9224
9225         PR target/49427
9226         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9227         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9228         md_file, extra_modes, out_file and extra_options are these are all
9229         deduced from cpu_type.
9230
9231 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9232
9233         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9234         truncation mask to 63.
9235
9236 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9237
9238         PR target/49313
9239         PR target/29524
9240         * longlong.h: Add AVR support:
9241         (count_leading_zeros): New macro.
9242         (count_trailing_zeros): New macro.
9243         (COUNT_LEADING_ZEROS_0): New macro.
9244         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9245         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9246         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9247         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9248         (LIB2FUNCS_EXCLUDE): Add _clz.
9249         * config/avr/libgcc.S (XCALL): Move up in file.
9250         (XJMP): New C Macro.
9251         (DEFUN): New asm macro.
9252         (ENDF): New asm macro.
9253         (__ffssi2): New function.
9254         (__ffshi2): New function.
9255         (__loop_ffsqi2): New function.
9256         (__ctzsi2): New function.
9257         (__ctzhi2): New function.
9258         (__clzdi2): New function.
9259         (__clzsi2): New function.
9260         (__clzhi2): New function.
9261         (__paritydi2): New function.
9262         (__paritysi2): New function.
9263         (__parityhi2): New function.
9264         (__parityqi2): New function.
9265         (__popcounthi2): New function.
9266         (__popcountsi2): New function.
9267         (__popcountdi2): New function.
9268         (__popcountqi2): New function.
9269         (__bswapsi2): New function.
9270         (__bswapdi2): New function.
9271         (__ashldi3): New function.
9272         (__ashrdi3): New function.
9273         (__lshrdi3): New function.
9274         Fix suspicous lines.
9275
9276 2011-06-16  Richard Guenther  <rguenther@suse.de>
9277
9278         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9279         the same as x != 0.
9280         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9281         to (bool) X & 1.
9282         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9283         equality compares against zero for the lower bit.
9284
9285 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
9286
9287         PR tree-optimization/49419
9288         * tree-vrp.c (execute_vrp): Call init_range_assertions
9289         before estimate_numbers_of_iterations, call
9290         free_number_of_iterations_estimates before calling
9291         remove_range_assertions.
9292
9293 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9294
9295         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9296         (struct partial_schedule): Add rows_length field.
9297         (verify_partial_schedule): Check rows_length.
9298         (ps_insert_empty_row): Handle rows_length.
9299         (create_partial_schedule): Likewise.
9300         (free_partial_schedule): Likewise.
9301         (reset_partial_schedule): Likewise.
9302         (create_ps_insn): Remove rest_count argument.
9303         (remove_node_from_ps): Update rows_length.
9304         (add_node_to_ps): Update rows_length and call create_ps_insn
9305         without passing row_rest_count.
9306         (rotate_partial_schedule): Update rows_length.
9307
9308 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9309
9310         * ddg.c (add_intra_loop_mem_dep): New function.
9311         (build_intra_loop_deps): Call it.
9312
9313 2011-06-13  Jeff Law  <law@redhat.com>
9314
9315         * df-problems.c (df_lr_local_compute): Manually CSE
9316         PIC_OFFSET_TABLE_REGNUM.
9317         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9318         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9319
9320 2011-06-13  Jan Hubicka  <jh@suse.cz>
9321
9322         * cgraphunit.c (handle_alias_pairs): New function.
9323         (cgraph_finalize_compilation_unit): Use it.
9324         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9325         as externally visible.
9326
9327 2011-06-15  Richard Guenther  <rguenther@suse.de>
9328
9329         * expr.c (expand_expr_real_2): Reduce all integral types to
9330         bitfield precision.
9331         (expand_expr_real_1): Likewise.
9332
9333 2011-06-15  Martin Jambor  <mjambor@suse.cz>
9334
9335         PR tree-optimization/48613
9336         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9337         ipa_node_params_vector is NULL.
9338
9339 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
9340
9341         PR debug/49382
9342         * dwarf2out.c (dw_loc_list_node): Add force field.
9343         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9344         location in the list, even if it is modified before first real insn.
9345         (output_loc_list): Emit empty ranges with force flag set.
9346         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9347
9348 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
9349
9350         PR target/49349
9351         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9352         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
9353         above a fence.  Update comments.
9354         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9355         placed just above it.  Do not allow NULL place_to_insert.
9356
9357 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
9358
9359         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9360         (slpeel_tree_peel_loop_to_edge): Don't call
9361         remove_dead_stmts_from_loop.
9362         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9363         remove irrelevant pattern statements.  For irrelevant statements
9364         check if it is the last statement of a detected pattern, use
9365         corresponding pattern statement instead.
9366         (destroy_loop_vec_info): No need to remove pattern statements,
9367         only free stmt_vec_info.
9368         (vect_transform_loop): For irrelevant statements check if it is
9369         the last statement of a detected pattern, use corresponding
9370         pattern statement instead.
9371         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9372         pattern statements.  Set basic block for the new statement.
9373         (vect_pattern_recog): Update documentation.
9374         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9375         operands of pattern statements.
9376         (vectorizable_call): Fix printing.  In case of a pattern statement
9377         use the lhs of the original statement when creating a dummy
9378         statement to replace the original call.
9379         (vect_analyze_stmt): For irrelevant statements check if it is
9380         the last statement of a detected pattern, use corresponding
9381         pattern statement instead.
9382         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9383         statements use gsi of the original statement.
9384
9385 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9386
9387         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9388         common/common-target-def.h.
9389         * target.def (default_target_flags, handle_option,
9390         supports_split_stack, optimization_table, init_struct,
9391         except_unwind_info, unwind_tables_default, have_named_sections):
9392         Move to common/common-target.def.
9393         * target.h (enum opt_levels, struct default_options): Move to
9394         common/common-target.h.
9395         * targhooks.c (default_except_unwind_info,
9396         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9397         default_target_handle_option, empty_optimization_table): Move to
9398         common/common-targhooks.c.
9399         * targhooks.h (default_except_unwind_info,
9400         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9401         default_target_handle_option, empty_optimization_table): Move to
9402         common/common-targhooks.h.
9403         * common/common-target-def.h: Include common/common-targhooks.h.
9404         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9405         defined.
9406         * common/common-target.def (handle_option, option_init_struct,
9407         option_optimization_table, default_target_flags,
9408         except_unwind_info, supports_split_stack, unwind_tables_default,
9409         have_named_sections): Move from target.def.
9410         (HOOK_PREFIX): Undefine at end of file.
9411         * common/common-target.h: Include input.h.
9412         (enum opt_levels, struct default_options): Move from target.h.
9413         * common/common-targhooks.c, common/common-targhooks.h: New.
9414         * config.gcc (target_has_targetm_common): Default to yes.
9415         (moxie*): Set target_has_targetm_common=no.
9416         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9417         * doc/tm.texi: Regenerate.
9418         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9419         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9420         (GCC_OBJS): Remove vec.o.
9421         (OBJS): Remove hooks.o and vec.o.
9422         (OBJS-libcommon-target): Add vec.o, hooks.o and
9423         common/common-targhooks.o.
9424         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9425         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9426         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9427         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9428         Update dependencies.
9429         (common/common-targhooks.o): New.
9430         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9431         * common/config/pa/pa-common.c: Include more headers.  Take
9432         copyright dates from pa.c.
9433         (pa_option_optimization_table, pa_handle_option,
9434         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9435         TARGET_HANDLE_OPTION): Move from pa.c.
9436         * common/config/alpha/alpha-common.c,
9437         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9438         common/config/bfin/bfin-common.c,
9439         common/config/cris/cris-common.c,
9440         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9441         common/config/h8300/h8300-common.c,
9442         common/config/i386/i386-common.c,
9443         common/config/ia64/ia64-common.c,
9444         common/config/iq2000/iq2000-common.c,
9445         common/config/lm32/lm32-common.c,
9446         common/config/m32c/m32c-common.c,
9447         common/config/m32r/m32r-common.c,
9448         common/config/m68k/m68k-common.c,
9449         common/config/mcore/mcore-common.c,
9450         common/config/mep/mep-common.c,
9451         common/config/microblaze/microblaze-common.c,
9452         common/config/mips/mips-common.c,
9453         common/config/mmix/mmix-common.c,
9454         common/config/mn10300/mn10300-common.c,
9455         common/config/pdp11/pdp11-common.c,
9456         common/config/picochip/picochip-common.c,
9457         common/config/rs6000/rs6000-common.c,
9458         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9459         common/config/score/score-common.c, common/config/sh/sh-common.c,
9460         common/config/sparc/sparc-common.c,
9461         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9462         common/config/vax/vax-common.c,
9463         common/config/xstormy16/xstormy16-common.c,
9464         common/config/xtensa/xtensa-common.c: New.
9465         * config/alpha/alpha.c: Include common/common-target.h.
9466         (alpha_option_optimization_table, alpha_handle_option,
9467         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9468         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9469         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9470         * config/arm/arm.c (arm_option_optimization_table,
9471         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9472         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9473         arm-common.c.
9474         * config/avr/avr.c (avr_option_optimization_table,
9475         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9476         to avr-common.c.
9477         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9478         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9479         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9480         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9481         * config/cris/cris.c (cris_option_optimization_table,
9482         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9483         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9484         cris-common.c.
9485         * config/fr30/fr30.c (fr30_option_optimization_table,
9486         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9487         to fr30-common.c.
9488         * config/frv/frv.c (frv_option_optimization_table,
9489         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9490         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9491         * config/h8300/h8300.c (h8300_option_optimization_table,
9492         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9493         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9494         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9495         * config/i386/i386.c: Include common/common-target.h.
9496         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9497         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9498         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9499         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9500         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9501         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9502         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9503         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9504         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9505         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9506         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9507         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9508         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9509         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9510         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9511         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9512         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9513         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9514         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9515         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9516         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9517         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9518         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9519         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9520         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9521         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9522         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9523         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9524         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9525         ix86_option_optimization_table, ix86_option_init_struct,
9526         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9527         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9528         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9529         i386-common.c.
9530         * config/i386/t-i386 (i386.o): Update dependencies.
9531         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9532         * config/ia64/ia64.c (ia64_option_optimization_table,
9533         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9534         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9535         ia64_handle_option): Move to ia64-common.c.
9536         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9537         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9538         * config/lm32/lm32.c (lm32_option_optimization_table,
9539         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9540         to lm32-common.c.
9541         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9542         m32c-common.c.
9543         * config/m32r/m32r.c (m32r_option_optimization_table,
9544         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9545         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9546         m32r_handle_option): Move to m32r-common.c.
9547         (m32r_memory_move_cost): Remove comment referring to
9548         TARGET_HANDLE_OPTION.
9549         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9550         Move to m68k-common.c.
9551         * config/mcore/mcore.c (mcore_option_optimization_table,
9552         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9553         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9554         * config/mep/mep.c (mep_option_optimization_table,
9555         mep_handle_option, TARGET_HANDLE_OPTION,
9556         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9557         Move to mep-common.c.
9558         * config/microblaze/microblaze.c
9559         (microblaze_option_optimization_table,
9560         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9561         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9562         * config/mips/mips.c (mips_handle_option,
9563         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9564         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9565         mips-common.c.
9566         * config/mmix/mmix.c (mmix_option_optimization_table,
9567         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9568         Move to mmix-common.c.
9569         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9570         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9571         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9572         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9573         * config/pa/pa.c: Include common/common-target.h.
9574         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9575         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9576         pa_handle_option): Move to pa-common.c.
9577         (pa_option_override): Use targetm_common.except_unwind_info.
9578         (pa_asm_output_mi_thunk, pa_function_section): Use
9579         targetm_common.have_named_sections.
9580         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9581         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9582         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9583         pdp11_handle_option, pdp11_option_init_struct): Move to
9584         pdp11-common.c.
9585         * config/picochip/picochip.c (picochip_option_optimization_table,
9586         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9587         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9588         * config/rs6000/rs6000.c: Include common/common-target.h.
9589         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9590         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9591         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9592         rs6000_handle_option): Move to rs6000-common.c.
9593         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9594         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9595         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9596         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9597         * config/s390/s390.c (processor_flags_table,
9598         s390_option_optimization_table, s390_option_init_struct,
9599         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9600         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9601         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9602         * config/s390/s390.h (processor_flags_table): Declare.
9603         * config/score/score.c (score_option_optimization_table,
9604         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9605         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9606         score_handle_option): Move to score-common.c.
9607         * config/sh/sh.c (sh_option_optimization_table,
9608         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9609         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9610         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9611         * config/sparc/sparc.c: Include common/common-target.h.
9612         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9613         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9614         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9615         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9616         spu_option_init_struct): Move to spu-common.c.
9617         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9618         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9619         * config/v850/v850.c (small_memory_physical_max,
9620         v850_handle_memory_optionn v850_handle_option,
9621         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9622         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9623         v850-common.c.
9624         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9625         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9626         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9627         Move to xtensa-common.c.
9628         * cfglayout.c: Include common/common-target.h.
9629         (fixup_reorder_chain): Use targetm_common.have_named_sections.
9630         * cfgrtl.c: Include common/common-target.h.
9631         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9632         targetm_common.have_named_sections.
9633         * dbxout.c: Include common/common-target.h.
9634         (dbxout_function_end): Use targetm_common.have_named_sections.
9635         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9636         targetm_common.except_unwind_info.
9637         * dwarf2out.c: Include common/common-target.h.
9638         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9639         dwarf2out_begin_prologue, dwarf2out_frame_init,
9640         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9641         targetm_common.except_unwind_info.
9642         * except.c: Include common/common-target.h.
9643         (init_eh, finish_eh_generation,
9644         output_one_function_exception_table): Use
9645         targetm_common.except_unwind_info.
9646         (switch_to_exception_section): Use targetm_common.have_named_sections.
9647         * explow.c: Include common/common-target.h.
9648         * expr.c: Include common/common-target.h.
9649         (build_personality_function): Use targetm_common.except_unwind_info.
9650         * function.c: Include common/common-target.h.
9651         (expand_function_end): Use targetm_common.except_unwind_info.
9652         * haifa-sched.c: Include common/common-target.h.
9653         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9654         * lto-opts.c: Include common/common-target.h instead of target.h.
9655         (lto_reissue_options): Use targetm_common.handle_option.
9656         * opts.c: Include common/common-target.h.
9657         (target_handle_option): Use targetm_common.handle_option.
9658         (init_options_struct): Update comment referring to
9659         targetm.target_option.optimization.  Use
9660         targetm_common.default_target_flags,
9661         targetm_common.unwind_tables_default and
9662         targetm_common.option_init_struct.
9663         (default_options_optimization): Use
9664         targetm_common.option_optimization_table.
9665         (finish_options): Use targetm_common.except_unwind_info,
9666         targetm_common.unwind_tables_default,
9667         targetm_common.have_named_sections and
9668         targetm_common.supports_split_stack.
9669         * toplev.c: Include common/common-target.h.
9670         (process_options): Use targetm_common.have_named_sections.
9671         * tree-tailcall.c: Include common/common-target.h.
9672         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9673         * tree.c: Include common/common-target.h.
9674         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9675         * varasm.c: Include common/common-target.h.
9676         (resolve_unique_section, hot_function_section,
9677         default_function_section): Use targetm_common.have_named_sections.
9678
9679 2011-06-14  Easwaran Raman  <eraman@google.com>
9680
9681         PR rtl-optimization/44194
9682         * dse.c: Include tree-flow.h
9683         (insn_info): Add new field non_frame_wild_read.
9684         (group_info): Add new fields escaped_n and escaped_p.
9685         (kill_on_calls): New variable.
9686         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9687         (dse_step0): Initialize kill_on_calls.
9688         (can_escape): New function.
9689         (set_usage_bits): Add additional parameter; record information
9690         about escaped locations.
9691         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9692         (dse_step2_nospill): Set kill_on_calls based on
9693         group->escaped_n and group->escaped_n.
9694         (add_wild_read): Refactor into...
9695         (reset_active_stores): ... New function, and
9696         (free_read_records): ... New function.
9697         (add_non_frame_wild_read): New function.
9698         (scan_insn): Call add_non_frame_wild_read on non-const calls.
9699         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9700         (dse_step5_nospill): Call scan_reads_nospill for instructions
9701         marked as non_frame_wild_read.
9702         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9703
9704 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9705
9706         * common/common-target-def.h, common/common-target.def,
9707         common/common-target.h, common/config/default-common.c,
9708         common/config/pa/pa-common.c: New files.
9709         * Makefile.in (common_out_file, common_out_object_file,
9710         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9711         (OBJS-libcommon-target): Include $(common_out_object_file).
9712         (prefix.o): Update dependencies.
9713         ($(common_out_object_file), common/common-target-hooks-def.h,
9714         s-common-target-hooks-def-h): New.
9715         (s-tm-texi): Also check timestamp on common-target.def.
9716         (build/genhooks.o): Update dependencies.
9717         * config.gcc (common_out_file, target_has_targetm_common): Define.
9718         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9719         TARGET_ALWAYS_STRIP_DOTDOT.
9720         * configure.ac (common_out_object_file): Define.
9721         (common_out_file, common_out_object_file): Substitute.
9722         (common): Create directory.
9723         * configure: Regenerate.
9724         * doc/tm.texi.in (targetm_common): Document.
9725         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9726         * doc/tm.texi: Regenerate.
9727         * genhooks.c (hook_array): Also include common/common-target.def.
9728         * prefix.c (tm.h): Don't include.
9729         (common/common-target.h): Include.
9730         (ALWAYS_STRIP_DOTDOT): Don't define.
9731         (update_path): Use targetm_common.always_strip_dotdot instead of
9732         ALWAYS_STRIP_DOTDOT.
9733         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9734
9735 2011-06-14  David Li  <davidxl@google.com>
9736
9737         * passes.c (execute_function_todo): Remove TODO_dump_func.
9738         (execute_one_pass): Remove TODO_dump_func.
9739         (execute_function_dump): New function.
9740         * tree-vrp.c: Remove TODO_dump_func.
9741         * regrename.c: Remove TODO_dump_func.
9742         * fwprop.c: Remove TODO_dump_func.
9743         * tree-into-ssa.c: Remove TODO_dump_func.
9744         * tree-complex.c: Remove TODO_dump_func.
9745         * tracer.c: Remove TODO_dump_func.
9746         * tree-loop-distribution.c: Remove TODO_dump_func.
9747         * postreload-gcse.c: Remove TODO_dump_func.
9748         * postreload.c: Remove TODO_dump_func.
9749         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9750         * tree-tailcall.c: Remove TODO_dump_func.
9751         * ipa-cp.c: Remove TODO_dump_func.
9752         * final.c: Remove TODO_dump_func.
9753         * tree-emutls.c: Remove TODO_dump_func.
9754         * omp-low.c: Remove TODO_dump_func.
9755         * tree-ssa-dse.c: Remove TODO_dump_func.
9756         * tree-ssa-uncprop.c: Remove TODO_dump_func.
9757         * auto-inc-dec.c: Remove TODO_dump_func.
9758         * reorg.c: Remove TODO_dump_func.
9759         * tree-ssa-copyrename.c: Remove TODO_dump_func.
9760         * tree-ssa-ccp.c: Remove TODO_dump_func.
9761         * compare-elim.c: Remove TODO_dump_func.
9762         * mode-switching.c: Remove TODO_dump_func.
9763         * modulo-sched.c: Remove TODO_dump_func.
9764         * tree-call-cdce.c: Remove TODO_dump_func.
9765         * cse.c: Remove TODO_dump_func.
9766         * web.c: Remove TODO_dump_func.
9767         * tree-stdarg.c: Remove TODO_dump_func.
9768         * lto-streamer-out.c: Remove TODO_dump_func.
9769         * tree-ssa-math-opts.c: Remove TODO_dump_func.
9770         * tree-ssa-dom.c: Remove TODO_dump_func.
9771         * tree-nrv.c: Remove TODO_dump_func.
9772         * loop-init.c: Remove TODO_dump_func.
9773         * gimple-low.c: Remove TODO_dump_func.
9774         * ipa-inline.c: Remove TODO_dump_func.
9775         * tree-ssa-sink.c: Remove TODO_dump_func.
9776         * jump.c: Remove TODO_dump_func.
9777         * ifcvt.c: Remove TODO_dump_func.
9778         * tree-ssa-loop.c: Remove TODO_dump_func.
9779         * recog.c: Remove TODO_dump_func.
9780         * dse.c: Remove TODO_dump_func.
9781         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9782         * matrix-reorg.c: Remove TODO_dump_func.
9783         * tree-eh.c: Remove TODO_dump_func.
9784         * regmove.c: Remove TODO_dump_func.
9785         * function.c: Remove TODO_dump_func.
9786         * tree-vectorizer.c: Remove TODO_dump_func.
9787         * ipa-split.c: Remove TODO_dump_func.
9788         * gcse.c: Remove TODO_dump_func.
9789         * tree-if-conv.c: Remove TODO_dump_func.
9790         * init-regs.c: Remove TODO_dump_func.
9791         * tree-ssa-phiopt.c: Remove TODO_dump_func.
9792         * implicit-zee.c: Remove TODO_dump_func.
9793         * lower-subreg.c: Remove TODO_dump_func.
9794         * bt-load.c: Remove TODO_dump_func.
9795         * tree-dfa.c: Remove TODO_dump_func.
9796         * except.c: Remove TODO_dump_func.
9797         * emit-rtl.c: Remove TODO_dump_func.
9798         * store-motion.c: Remove TODO_dump_func.
9799         * cfgexpand.c: Remove TODO_dump_func.
9800         * tree-cfgcleanup.c: Remove TODO_dump_func.
9801         * cfgcleanup.c: Remove TODO_dump_func.
9802         * tree-ssa-pre.c: Remove TODO_dump_func.
9803         * tree-sra.c: Remove TODO_dump_func.
9804         * tree-mudflap.c: Remove TODO_dump_func.
9805         * tree-ssa-copy.c: Remove TODO_dump_func.
9806         * cfglayout.c: Remove TODO_dump_func.
9807         * tree-ssa-forwprop.c: Remove TODO_dump_func.
9808         * tree-ssa-dce.c: Remove TODO_dump_func.
9809         * ira.c: Remove TODO_dump_func.
9810         * tree-ssa.c: Remove TODO_dump_func.
9811         * integrate.c: Remove TODO_dump_func.
9812         * tree-optimize.c: Remove TODO_dump_func.
9813         * tree-ssa-phiprop.c: Remove TODO_dump_func.
9814         * tree-object-size.c: Remove TODO_dump_func.
9815         * combine.c: Remove TODO_dump_func.
9816         * bb-reorder.c: Remove TODO_dump_func.
9817         * cprop.c: Remove TODO_dump_func.
9818         * var-tracking.c: Remove TODO_dump_func.
9819         * tree-profile.c: Remove TODO_dump_func.
9820         * tree-vect-generic.c: Remove TODO_dump_func.
9821         * reg-stack.c: Remove TODO_dump_func.
9822         * sched-rgn.c: Remove TODO_dump_func.
9823         * tree-ssa-structalias.c: Remove TODO_dump_func.
9824         * tree-switch-conversion.c: Remove TODO_dump_func.
9825         * tree-cfg.c: Remove TODO_dump_func.
9826         * tree-ssa-reassoc.c: Remove TODO_dump_func.
9827         * combine-stack-adj.c: Remove TODO_dump_func.
9828         * dce.c: Remove TODO_dump_func.
9829         * tree-ssanames.c: Remove TODO_dump_func.
9830         * regcprop.c: Remove TODO_dump_func.
9831
9832 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9833
9834         PR middle-end/47364
9835         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9836         and properly handle result not in Pmode.
9837
9838 2011-06-14  Robert Millan  <rmh@gnu.org>
9839
9840         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9841         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9842         `config/linux.h'.
9843
9844         * config/i386/kfreebsd-gnu64.h: New file.
9845         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9846         with `i386/kfreebsd-gnu64.h'.
9847
9848         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9849         (GNU_USER_LINK_EMULATION64): New macros.
9850         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9851         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9852         of hardcoding `elf_i386' and `elf_x86_64'.
9853
9854 2011-06-14  Nick Clifton  <nickc@redhat.com>
9855
9856         PR target/49403
9857         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9858
9859         PR target/49402
9860         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9861
9862 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
9863
9864         PR fortran/49103
9865         * tree.h (DECL_NONSHAREABLE): Define.
9866         (struct tree_decl_common): Change decl_common_unused to
9867         decl_nonshareable_flag.
9868         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9869         Ignore vars with DECL_NONSHAREABLE bit set.
9870         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9871         on stores to automatic aggregate vars.
9872
9873         PR rtl-optimization/49390
9874         Revert:
9875         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9876
9877         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9878         MEM_ALIAS_SET.
9879
9880 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
9881             Tom de Vries  <tom@codesourcery.com>
9882
9883         PR target/45098
9884         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9885         Document changed semantics.
9886         (max_stmt_executions, max_stmt_executions_int): Declare.
9887         * tree-data-ref.c (estimated_loop_iterations)
9888         (estimated_loop_iterations_int): Move functions...
9889         * tree-ssa-loop-niter.c (estimated_loop_iterations)
9890         (estimated_loop_iterations_int): here.
9891         (record_estimate): Change nb_iterations_upper_bound and
9892         nb_iterations_estimate semantics.
9893         (max_stmt_executions, max_stmt_executions_int): New function.
9894         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9895         (max_stmt_executions_tree): this.
9896         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9897         estimated_loop_iterations_tree.
9898         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9899         max_stmt_executions_int instead of estimated_loop_iterations_int.
9900         * predict.c (predict_loops): Idem.
9901         * tree-parloops.c (parallelize_loops): Idem.
9902         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9903         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9904         (init_omega_for_ddr_1): Idem.
9905         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9906         (loop_prefetch_arrays): Idem
9907         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9908         max_stmt_executions instead of estimated_loop_iterations.
9909         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
9910         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
9911         instead of nb_iterations_upper_bound.
9912
9913 2011-06-13  Jan Hubicka  <jh@suse.cz>
9914
9915         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
9916
9917 2011-06-14  Richard Henderson  <rth@redhat.com>
9918
9919         PR debug/48459
9920         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9921         (based_loc_descr): Assert it's true.
9922         (compute_frame_pointer_to_fb_displacement): Set it, rather than
9923         aborting immediately.
9924
9925 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
9926             Mingfeng Wu  <mingfeng@faraday-tech.com>
9927
9928         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
9929
9930 2011-06-13  Jan Hubicka  <jh@suse.cz>
9931
9932         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
9933
9934 2011-06-13  Jan Hubicka  <jh@suse.cz>
9935
9936         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
9937         similarly to DECL_COMDAT.
9938         * cgraphunit.c (cgraph_analyze_function): Likewise.
9939         * ipa.c (function_and_variable_visibility): Likewise.
9940
9941 2011-06-13  Jan Hubicka  <jh@suse.cz>
9942
9943         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
9944         BINFO_VIRTUALS when streaming for ltrans unit.
9945
9946 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
9947
9948         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
9949         (movdi_internal64): Same.
9950
9951 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
9952
9953         PR target/44618
9954         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
9955         a set of similar patterns, where the MATCH_OPERAND for the function
9956         argument is replaced with individual references to hardware registers.
9957         (save_fpregs_<mode>): Ditto
9958         (restore_gpregs_<mode>): Ditto
9959         (return_and_restore_gpregs_<mode>): Ditto
9960         (return_and_restore_fpregs_<mode>): Ditto
9961         (return_and_restore_fpregs_aix_<mode>): Ditto
9962
9963 2011-06-13  Jan Hubicka  <jh@suse.cz>
9964
9965         * ipa-utils.c (postorder_stack): New structure.
9966         (ipa_reverse_postorder): Handle aliases.
9967
9968 2011-06-13  Jan Hubicka  <jh@suse.cz>
9969
9970         * ipa-inline.c (reset_edge_caches): Walk aliases.
9971         (update_caller_keys): Do not test inlinability of aliases.
9972         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
9973         (do_estimate_growth): Fix typo.
9974
9975 2011-06-13  Jan Hubicka  <jh@suse.cz>
9976
9977         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
9978         (can_remove_node_now_p): ... here; handle same comdat groups.
9979         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
9980         (inline_call): Update use of can_remove_node_now_p.
9981
9982 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9983
9984         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
9985         condition to disallow non-identical memory locations.
9986         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
9987         preference to bit manipulation instructions.
9988
9989 2011-06-13  Jan Hubicka  <jh@suse.cz>
9990
9991         * cgraph.c (cgraph_for_node_thunks_and_aliases,
9992         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
9993         (nonremovable_p): New function.
9994         (cgraph_can_remove_if_no_direct_calls_p): New function.
9995         (used_from_object_file_p): New functoin.
9996         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
9997         references from aliases.
9998         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
9999         * ipa-inline.c (check_caller_edge): New function.
10000         (want_inline_function_called_once_p): Use it; accept aliases called
10001         once, too.
10002         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10003
10004 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10005
10006         PR target/48454
10007         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10008         correctly for the case with Quad vectors.
10009
10010 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10011            Ira Rosen  <ira.rosen@linaro.org>
10012
10013         PR tree-optimization/49352
10014         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10015         all, make sure loop_use_stmt after the loop is a def stmt of a used
10016         SSA_NAME that is the only one defined inside of the loop.  Don't
10017         check for COND_EXPR and GIMPLE_BINARY_RHS.
10018         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10019         check_reduction is true.
10020
10021 2011-06-11  Jan Hubicka  <jh@suse.cz>
10022
10023         PR middle-end/49373
10024         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10025
10026 2011-06-11  Jan Hubicka  <jh@suse.cz>
10027
10028         PR middle-end/48836
10029         * ipa-inline-transform.c: Include tree-pass.h
10030         (inline_transform): Set TODO_update_ssa_only_virtuals.
10031         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10032
10033 2011-06-11  Jan Hubicka  <jh@suse.cz>
10034
10035         PR middle-end/49378
10036         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10037         aliases and thunks.
10038
10039 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10040
10041         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10042         Take number of iterations to peel into account for equally frequent
10043         misalignment values.
10044
10045 2011-06-11  Jan Hubicka  <jh@suse.cz>
10046
10047         * lto-streamer-out.c (produce_symtab): Stream out the newly
10048         represented aliases.
10049
10050 2011-06-11  Jan Hubicka  <jh@suse.cz>
10051
10052         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10053         varying args.
10054         (ipa_update_after_lto_read): Likewise.
10055         (ipa_write_node_info): Do not sream call_with_var_arguments.
10056         (ipa_read_node_info): Likewise.
10057
10058 2011-06-11  Jan Hubicka  <jh@suse.cz>
10059
10060         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10061
10062 2011-06-11  Jan Hubicka  <jh@suse.cz>
10063
10064         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10065         (lto_symtab_resolve_can_prevail_p): Likewise.
10066         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10067         * cgraph.c (same_body_aliases_done): New global var.
10068         (cgraph_same_body_alias_1): Rename to ...
10069         (cgraph_create_function_alias): ... this one; reorg to new
10070         representation.
10071         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10072         record references when asked to.
10073         (cgraph_add_thunk): Fix formating.
10074         (cgraph_get_node): Kill same body alias code.
10075         (cgraph_node_for_asm): Likewise.
10076         (cgraph_remove_same_body_alias): Remove.
10077         (cgraph_remove_node): Kill same body alias code.
10078         (cgraph_mark_address_taken_node): Mark also the aliased function
10079         as having address taken.
10080         (dump_cgraph_node): Dump same body aliases.
10081         (cgraph_for_node_thunks_and_aliases): Update for new alias
10082         representation.
10083         (cgraph_for_node_and_aliases): Likewise.
10084         * cgraph.h (same_body): Kll pointer.
10085         (same_body_alias): Update comment.
10086         (same_body_aliases_done): Declare.
10087         (cgraph_remove_same_body_alias): Remove declaration.
10088         (cgraph_create_function_alias): Declare.
10089         (cgraph_process_same_body_aliases): Declare.
10090         (cgraph_function_with_gimple_body_p): Check for alias.
10091         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10092         (cgraph_alias_aliased_node): New function.
10093         (cgraph_function_node): Update for new aliases.
10094         (cgraph_function_or_thunk_node): Likewise.
10095         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10096         (inline_call): Remove dead aliases.
10097         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10098         name hack for same body aliases.
10099         (clone_of_p): Look through aliases.
10100         (verify_cgraph_node): Verify aliases.
10101         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10102         (cgraph_process_same_body_aliases): New function.
10103         (process_function_and_variable_attributes): Disable weakref warning on
10104         alias.
10105         (cgraph_analyze_functions): Handle aliases.
10106         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10107         (assemble_thunks): Rename to ...
10108         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10109         (cgraph_expand_function): Remove alias output code.
10110         (cgraph_output_in_order): Skip aliases.
10111         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10112         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10113         (ipa_record_reference): Do not assert on alias references.
10114         (ipa_ref_has_aliases_p): New function.
10115         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10116         (ipa_ref_has_aliases_p): Declare.
10117         * lto-cgraph.c (lto_output_node): Handle aliases.
10118         (input_node): Likewise.
10119         * lto-streamer-out.c (lto_output): Skip aliases.
10120         (produce_symtab): Kill same_body_alias code.
10121         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10122         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10123         * ipa-inline.c (update_caller_keys): Walk aliases.
10124         (inline_small_functions): Fix thinko in previous patch.
10125         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10126         (function_and_variable_visibility): Do not walk same body aliases.
10127         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10128         (ipa_pta_execute): Use it.
10129
10130 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10131
10132         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10133         (*vec_dupv2df): Rename from vec_dupv2df.
10134         (vec_dupv2df): New expander.
10135
10136 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10137
10138         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10139
10140 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10141
10142         * config/i386/i386.md: Use default value in "isa" attribute.
10143         * config/i386/sse.md: Ditto.
10144         * config/i386/mmx.md: Ditto.
10145
10146 2011-06-10  Wei Guozhi  <carrot@google.com>
10147
10148         PR target/45335
10149         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10150         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10151         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10152         related peephole2.
10153         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10154         related peephole2.
10155         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10156         (arm_legitimate_ldrd_p): New prototype.
10157         (arm_output_ldrd): New prototype.
10158         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10159         (arm_legitimate_ldrd_p): New function.
10160         (arm_output_ldrd): New function.
10161
10162 2011-06-10  David Li  <davidxl@google.com>
10163
10164         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10165         * passes.c (passr_eq): New function.
10166         (create_pass_tab): New function.
10167         (pass_traverse): New function.
10168         (dump_one_pass): New function.
10169         (dump_pass_list): New function.
10170         (dump_passes): New function.
10171
10172 2011-06-10  Jan Hubicka  <jh@suse.cz>
10173
10174         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10175         setting the nothrow flag.
10176         * ipa-reference.c (propagate): Skip aliases.
10177         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10178         (propagate_nothrow): Skip aliases; do not update cgraph.
10179         (local_pure_const): Do not update cgraph.
10180         * tree-profile.c (tree_profiling): Do fixup_cfg.
10181
10182 2011-06-10  Jan Hubicka  <jh@suse.cz>
10183
10184         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10185         (cgraph_local_node_p): ... here; handle aliases.
10186         (has_addr_references_p): Break out from ...;
10187         (cgraph_remove_unreachable_nodes) ... here.
10188
10189 2011-06-10  Jan Hubicka  <jh@suse.cz>
10190
10191         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10192         * common.opt (flag_inline_functions_called_once): Do not
10193         initialize to 1.
10194
10195 2011-06-10  Jan Hubicka  <jh@suse.cz>
10196
10197         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10198         (ipcp_initialize_node_lattices): Do not deal with aliases;
10199         Do not try to propagate through thunks.
10200         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10201
10202 2011-06-10  Jan Hubicka  <jh@suse.cz>
10203
10204         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10205         for indirect calls.
10206         (ipa_read_node_info): Likewise.
10207
10208 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10209
10210         PR lto/49302
10211         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10212         (build_and_insert_call): Likewise.
10213         (build_and_insert_ref): New.
10214         (gimple_expand_builtin_pow): Minor cleanup.
10215         (gimple_expand_builtin_cabs): New.
10216         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10217
10218 2011-06-10  Jan Hubicka  <jh@suse.cz>
10219
10220         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10221         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10222         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10223         (ipcp_propagate_stage): Skip aliases when propagating.
10224         (ipcp_need_redirect_p): Skip aliases.
10225         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10226         collect_callers_of_node.
10227         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10228         for aliases.
10229         (ipa_compute_jump_functions): Look through aliases.
10230
10231 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10232
10233         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10234
10235 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10236
10237         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10238         Adjust comments.
10239         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10240
10241 2011-06-10  Jan Hubicka  <jh@suse.cz>
10242
10243         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10244         Update call of gimple_get_virt_method_for_binfo.
10245         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10246         refuse_thunks parameter.
10247         (gimple_fold_call): Update.
10248         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10249
10250 2011-06-10  Jan Hubicka  <jh@suse.cz>
10251
10252         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10253         (not_all_callers_have_enough_arguments_p): ... this one; turn into
10254         worker for cgraph_for_node_and_aliases.
10255         (convert_callers_for_node): Break out from ...
10256         (convert_callers): ... here.
10257         (modify_function): Use collect_callers_of_node.
10258         (ipa_early_sra): Use cgraph_for_node_and_aliases.
10259
10260 2011-06-10  Richard Guenther  <rguenther@suse.de>
10261
10262         PR tree-optimization/49361
10263         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10264         when not already in gimple form.
10265
10266 2011-06-10  Richard Guenther  <rguenther@suse.de>
10267
10268         PR bootstrap/49344
10269         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10270         FOR_EACH_PHI_OR_STMT_USE.
10271
10272 2011-06-10  Jan Hubicka  <jh@suse.cz>
10273
10274         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10275         (clone_inlined_nodes): ... here.
10276         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10277         to real destination prior inlining.
10278         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10279         can_early_inline_edge_p, want_early_inline_function_p,
10280         want_early_inline_function_p, want_inline_small_function_p,
10281         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10282         edge_badness, update_all_callee_keys, lookup_recursive_calls,
10283         add_new_edges_to_heap, inline_small_functions, flatten_function,
10284         inline_always_inline_functions, early_inline_small_functions): Use
10285         cgraph_function_or_thunk_node.
10286         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10287         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10288         (do_estimate_edge_growth_1): Break out from ...
10289         (do_estimate_growth) ... here; walk aliases.
10290         (inline_generate_summary): Skip aliases.
10291
10292 2011-06-10  Richard Guenther  <rguenther@suse.de>
10293
10294         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10295         forward when combining, visit inserted stmts when a stmt was changed.
10296
10297 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10298
10299         * tree.h (error_operand_p): Add.
10300         * dbxout.c (dbxout_type_fields): Use the latter.
10301         * c-decl.c (add_stmt): Likewise.
10302         * gimplify.c (omp_add_variable, omp_notice_variable,
10303         gimplify_scan_omp_clauses): Likewise.
10304
10305 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10306
10307         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10308         when a value is actually passed in regs.
10309
10310 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
10311             Laurent Rougé  <laurent.rouge@menta.fr>
10312
10313         * doc/invoke.texi (SPARC options): Add -mflat.
10314         * config/sparc/sparc.opt: Likewise.
10315         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10316         (sparc_flat_expand_prologue): Declare.
10317         (sparc_flat_expand_epilogue): Likewise.
10318         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10319         (CPP_ENDIAN_SPEC): Replace with...
10320         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
10321         (CPP_SPEC): Adjust to above change.
10322         (EXTRA_SPECS): Likewise.
10323         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10324         (INCOMING_REGNO): Likewise.
10325         (OUTGOING_REGNO): Likewise.
10326         (LOCAL_REGNO): Likewise.
10327         (SETUP_FRAME_ADDRESSES): Likewise.
10328         (FIXED_REGISTERS): Set 0 for %fp.
10329         (CALL_USED_REGISTERS): Likewise.
10330         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10331         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10332         (RETURN_ADDR_REGNUM): Define.
10333         (RETURN_ADDR_RTX): Use it.
10334         (INCOMING_RETURN_ADDR_REGNUM): Define.
10335         (INCOMING_RETURN_ADDR_RTX): Use it.
10336         (DWARF_FRAME_RETURN_COLUMN): Likewise.
10337         (EH_RETURN_REGNUM): Define.
10338         (EH_RETURN_STACKADJ_RTX): Use it.
10339         (EH_RETURN_HANDLER_RTX): Delete.
10340         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10341         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10342         Delete.
10343         (struct machine_function): Add frame_size, apparent_frame_size,
10344         frame_base_reg, frame_base_offset, n_global_fp_regs and
10345         save_local_in_regs_p fields.
10346         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10347         sparc_frame_base_offset, sparc_n_global_fp_regs,
10348         sparc_save_local_in_regs_p): New macros.
10349         (sparc_option_override): Error out if -fcall-saved-REG is specified
10350         for Out registers.
10351         (eligible_for_restore_insn): Fix formatting.
10352         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
10353         (eligible_for_sibcall_delay): Likewise.
10354         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10355         (sparc_legitimate_address_p): Adjust to above change.
10356         (save_global_or_fp_reg_p): New predicate.
10357         (return_addr_reg_needed_p): Likewise.
10358         (save_local_or_in_reg_p): Likewise.
10359         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
10360         (SORR_SAVE, SORR_RESTORE): Delete.
10361         (sorr_pred_t): New typedef.
10362         (sorr_act_t): New enum.
10363         (save_or_restore_regs): Rename to...
10364         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
10365         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10366         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
10367         mechanism.  Add CFI information for double-word saves in 32-bit mode.
10368         (emit_adjust_base_to_offset): New function extracted from...
10369         (emit_save_or_restore_regs): ...this.  Rename the rest to...
10370         (emit_save_or_restore_regs_global_fp_regs): ...this.
10371         (emit_save_or_restore_regs_local_in_regs): New function.
10372         (gen_create_flat_frame_[123]): New functions.
10373         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
10374         (sparc_flat_expand_prologue): New function.
10375         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10376         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
10377         (sparc_flat_expand_epilogue): New function.
10378         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10379         (output_return): Likewise.
10380         (output_sibcall): Likewise.
10381         (sparc_output_mi_thunk): Likewise.
10382         (sparc_frame_pointer_required): Likewise.
10383         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10384         function optimization.
10385         * config/sparc/sparc.md (flat): New attribute.
10386         (prologue): Add TARGET_FLAT handling.
10387         (save_register_window): Disable if TARGET_FLAT.
10388         (create_flat_frame_[123]): New patterns.
10389         (epilogue): Add TARGET_FLAT handling.
10390         (sibcall_epilogue): Likewise.
10391         (eh_return): New expander.
10392         (eh_return_internal): New insn and splitter.
10393         (return_internal): Add TARGET_FLAT handling.
10394         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10395         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10396         (nonlocal_goto): Add TARGET_FLAT handling.
10397         * config/sparc/t-elf: Add -mflat multilib.
10398         * config/sparc/t-leon: Likewise.
10399
10400 2011-06-10  Jan Hubicka  <jh@suse.cz>
10401
10402         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10403         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10404         (self_recursive_p): Use cgraph_function_node.
10405         (propagate_pure_const): Likewise.
10406         (propagate_nothrow): Likewise.
10407         * ipa-reference.c (ipa_reference_get_not_read_global): Use
10408         cgraph_function_node.
10409         (propagate_bits): Likewise.
10410         (propagate): Likewise.
10411
10412 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10413             Richard Earnshaw  <rearnsha@arm.com>
10414
10415         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10416         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10417         (*thumb2_movdi_vfp): Delete.
10418         (*arm_movdi_vfp_cortexa8): Delete.
10419         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10420         (*movdi_vfp_cortexa8): Likewise.
10421
10422 2011-06-10  Richard Guenther  <rguenther@suse.de>
10423
10424         * stor-layout.c (initialize_sizetypes): Give names to all
10425         sizetype kinds.
10426
10427 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10428
10429         PR tree-optimization/49318
10430         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10431         irrelevant pattern statements.
10432
10433 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10434
10435         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10436
10437         PR bootstrap/49354
10438         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10439         to last assignment.
10440
10441 2011-06-09  Jan Hubicka  <jh@suse.cz>
10442
10443         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10444         do not recompute reachable flag.
10445         (cgraph_finalize_function, cgraph_analyze_functions): Set
10446         redefined_extern_inline here.
10447
10448 2011-06-09  Jan Hubicka  <jh@suse.cz>
10449
10450         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10451         (cgraph_only_called_directly_p): ... this one; bring offline.
10452         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10453         varpool_used_from_object_file_p): Drop names from the declaratoin.
10454         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10455         collect_callers_of_node): New.
10456         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10457         (cgraph_edge_recursive_p): Use cgraph_function_node.
10458         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10459         (cgraph_node_cannot_be_local_p_1): Break out from ...
10460         (cgraph_node_can_be_local_p): ... here; walk aliases.
10461         (cgraph_for_node_thunks_and_aliases): New function.
10462         (cgraph_for_node_and_aliases): New function.
10463         (cgraph_make_node_local_1): Break out from ...
10464         (cgraph_make_node_local) ... here; use
10465         cgraph_for_node_thunks_and_aliases.
10466         (cgraph_set_nothrow_flag_1): Break out from ...
10467         (cgraph_set_nothrow_flag) ... here;
10468         use cgraph_for_node_thunks_and_aliases.
10469         (cgraph_set_const_flag_1): Break out from ...
10470         (cgraph_set_const_flag) ... here;
10471         use cgraph_for_node_thunks_and_aliases.
10472         (cgraph_set_pure_flag_1): Break out from ...
10473         (cgraph_set_pure_flag) ... here;
10474         use cgraph_for_node_thunks_and_aliases.
10475         (cgraph_propagate_frequency_1): Break out from ...
10476         (cgraph_propagate_frequency) ... here; use
10477         cgraph_for_node_thunks_and_aliases.
10478         (cgraph_used_from_object_file_p): Do not care about aliases.
10479         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10480         New functions.
10481         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10482
10483 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10484
10485         PR rtl-optimization/49154
10486         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10487         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10488         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10489         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10490         * config/cris/cris.h (cris_register_move_cost): Remove
10491         !TARGET_V32 code.  Tweak comments.
10492
10493 2011-06-09  Jan Hubicka  <jh@suse.cz>
10494
10495         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10496         address taken.
10497
10498 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10499
10500         PR rtl-optimization/49154
10501         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10502         is a matching slot in the hashtable, assign it to classes_ptr.
10503
10504         PR rtl-optimization/49154
10505         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10506         register classes.
10507         * doc/tm.texi: Regenerate.
10508
10509 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10510
10511         PR target/49307
10512         * config/sh/sh.md (UNSPEC_CHKADD): New.
10513         (chk_guard_add): New define_insn_and_split.
10514         (symGOT_load): Use chk_guard_add instead of blockage.
10515
10516 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10517
10518         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10519
10520 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10521
10522         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10523
10524 2011-06-09  Wei Guozhi  <carrot@google.com>
10525
10526         PR target/46975
10527         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10528         (peephole2 for conditional move): Generate 16 bit instructions.
10529
10530 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10531
10532         * config/i386/i386.md (*movdi_internal_rex64): Merge
10533         alternatives 6 and 8.
10534
10535 2011-06-09  David Li  <davidxl@google.com>
10536
10537         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10538         * passes.c (passr_eq): New function.
10539         (create_pass_tab): New function.
10540         (pass_traverse): New function.
10541         (dump_one_pass): New function.
10542         (dump_pass_list): New function.
10543         (dump_passes): New function.
10544
10545 2011-06-09  David Li  <davidxl@google.com>
10546
10547         * tree-complex.c (tree_lower_complex): Gate cleanup.
10548         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10549         (execute_optimize_stdarg): Ditto.
10550         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10551         (execute_cleanup_eh_1): Ditto.
10552         (execute_cleanup_eh): Ditto.
10553         * gcse.c (gate_rtl_pre): Ditto.
10554         (execute_rtl_pre): Ditto.
10555         * except.c (finish_eh_generation): Ditto.
10556         (convert_to_eh_region_ranges): Ditto.
10557         * cprop.c (one_cprop_pass): Ditto.
10558
10559 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10560
10561         PR target/48673
10562         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10563         in all basic blocks.
10564
10565 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10566
10567         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10568         (HAVE_ENABLE_EXECUTE_STACK): Define.
10569         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10570         (HAVE_ENABLE_EXECUTE_STACK): Define.
10571         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10572         (HAVE_ENABLE_EXECUTE_STACK): Define.
10573         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10574         (ENABLE_EXECUTE_STACK): Remove.
10575         (HAVE_ENABLE_EXECUTE_STACK): Define.
10576         [IN_LIBGCC2]: Don't include <windows.h>.
10577         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10578         (HAVE_ENABLE_EXECUTE_STACK): Define.
10579         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10580         (HAVE_ENABLE_EXECUTE_STACK): Define.
10581         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10582         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10583         (HAVE_ENABLE_EXECUTE_STACK): Define.
10584         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10585         (HAVE_ENABLE_EXECUTE_STACK): Define.
10586         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10587         (HAVE_ENABLE_EXECUTE_STACK): Define.
10588         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10589         (HAVE_ENABLE_EXECUTE_STACK): Define.
10590         * config/alpha/alpha.c (alpha_trampoline_init): Test
10591         HAVE_ENABLE_EXECUTE_STACK.
10592         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10593         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10594         (sparc64_initialize_trampoline): Likewise.
10595         * libgcc2.c [L_enable_execute_stack]: Remove.
10596         * system.h (ENABLE_EXECUTE_STACK): Poison.
10597         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10598         * doc/tm.texi: Regenerate.
10599         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10600
10601 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10602
10603         PR middle-end/49308
10604         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10605         variable.  After resetting and rescanning insn continue with previous
10606         statement.
10607
10608 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10609
10610         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10611         (gcc_cv_ld_hidden): Likewise.
10612         * configure: Regenerate.
10613         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10614         (ix86_stack_protect_fail): Mark unused.
10615         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10616         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10617         [TARGET_MACHO]: Don't define.
10618         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10619         (TARGET_STACK_PROTECT_FAIL): Likewise.
10620         (rs6000_stack_protect_fail): Mark unused.
10621         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10622         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
10623
10624 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10625
10626         * varasm.c (get_section): Print location of other conflict
10627         for section conflicts.
10628
10629 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10630
10631         * config/i386/driver-i386.c (host_detect_local_cpu):
10632         Add model 0x2d Intel CPU.
10633
10634 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10635
10636         * reginfo.c (global_regs_decl): Add.
10637         (globalize_reg): Add decl parameter. Compute location.  Pass location
10638         to warnings and add inform. Store decl in global_regs_decl.
10639         * rtl.h (globalize_reg): Update prototype.
10640         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10641
10642 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
10643
10644         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10645
10646 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10647
10648         PR target/49305
10649         * config/sh/predicates.md (general_movsrc_operand): Check
10650         mode for memory with indexed address for QI and HImode.
10651         (general_movdst_operand): Likewise.
10652
10653 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10654
10655         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10656
10657 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
10658
10659         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10660         (num_ssa_operands): Likewise.
10661         (op_iter_init_phiuse): Forward-declare.
10662         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10663
10664 2011-06-08  Nick Clifton  <nickc@redhat.com>
10665
10666         * doc/invoke.texi (ARM Options): Update description of
10667         -mthumb-interwork.
10668
10669 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
10670
10671         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10672         unknown Intel family 0x6 CPUs.
10673
10674 2011-06-08  Martin Jambor  <mjambor@suse.cz>
10675
10676         * tree-sra.c (mark_rw_status): Removed.
10677         (analyze_access_subtree): New parameter parent instead of
10678         mark_read and mark_write, propagate from that.
10679
10680 2011-06-08  Julian Brown  <julian@codesourcery.com>
10681
10682         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10683         for double-precision helper functions in hard-float mode if only
10684         single-precision arithmetic is supported in hardware.
10685
10686 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
10687
10688         PR rtl-optimization/49303
10689         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
10690         code_motion_path_driver returned 0 or 1.
10691         (sel_region_finish): Clear h_d_i_d.
10692
10693 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10694
10695         * config/sh/sh.c (prepare_move_operands): Set pic register
10696         appropriately for global and local dynamic tls models even
10697         if flag_pic is unset.
10698
10699 2011-06-07  Jason Merrill  <jason@redhat.com>
10700
10701         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10702
10703 2011-06-07  Xinliang David Li  <davidxl@google.com>
10704         * passes.c (enable_disable_pass): Handle assembler name.
10705         (is_pass_explicitly_enabled_or_disabled): Ditto.
10706
10707 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10708
10709         PR tree-optimization/48497
10710         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10711
10712 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10713
10714         PR tree-optimization/46728
10715         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10716         to use gimple_val_nonnegative_real_p.
10717         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10718         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10719
10720 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
10721
10722         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10723
10724 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
10725
10726         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10727         constant vectors.
10728
10729 2011-06-07  Richard Guenther  <rguenther@suse.de>
10730
10731         * stor-layout.c (initialize_sizetypes): Initialize all
10732         sizetypes based on target definitions.
10733         (set_sizetype): Remove.
10734         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10735         * tree.h (set_sizetype): Remove.
10736
10737 2011-06-07  Nick Clifton  <nickc@redhat.com>
10738
10739         * config.gcc: Unify V850 architecture options and add support for
10740         newer V850 architectures.
10741         * config/v850/t-v850e: Delete.
10742
10743 2011-06-07  Richard Guenther  <rguenther@suse.de>
10744
10745         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10746         Call set_sizetype from here.
10747
10748 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
10749
10750         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10751         (*maddhisi4tb, *maddhisi4tt): New define_insns.
10752
10753 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
10754             Andrew Stubbs  <ams@codesourcery.com>
10755
10756         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10757         multiplies.
10758         * doc/md.texi (Canonicalization of Instructions): Document widening
10759         multiply canonicalization.
10760
10761 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
10762
10763         PR gcov-profile/49299
10764         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10765
10766 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
10767
10768         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10769         a pointer.
10770         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10771         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10772         vect_recog_pow_pattern): Likewise.
10773         (vect_pattern_recog_1): Remove declaration.
10774         (widened_name_p): Remove declaration.  Add new argument to specify
10775         whether to check that both types are either signed or unsigned.
10776         (vect_recog_widen_mult_pattern): Update documentation.  Handle
10777         unsigned patterns and multiplication by constants.
10778         (vect_pattern_recog_1): Update vect_recog_func references.  Use
10779         statement information from the statement returned from pattern
10780         detection functions.
10781         (vect_pattern_recog): Update vect_recog_func reference.
10782         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10783         multiplication by a constant use the type of the other operand.
10784
10785 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
10786
10787         PR rtl-optimization/49145
10788         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10789
10790 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
10791
10792         PR debug/49262
10793         * dwarf2out.c (native_encode_initializer): Decrement count in each
10794         iteration.
10795
10796         PR debug/49294
10797         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10798         non-MODE_INT modes.
10799
10800         PR c++/49264
10801         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10802         if stmt folded into nothing.
10803         * tree-inline.c (fold_marked_statements): If a builtin at the end of
10804         a bb folded into nothing, just update cgraph edges and move to next bb.
10805         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10806         to be NULL.  Don't compute count and frequency if new_call is NULL.
10807
10808 2011-06-04  Diego Novillo  <dnovillo@google.com>
10809
10810         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10811         (cgraph.o): Likewise.
10812         (cgraphunit.o): Likewise.
10813         * cgraphunit.c: Include lto-streamer.h
10814         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10815         if LTO is enabled.
10816         * lto-streamer-in.c (unpack_value_fields): Call
10817         streamer_hooks.unpack_value_fields if set.
10818         (lto_materialize_tree): For unhandled nodes, first try to
10819         call lto_streamer_hooks.alloc_tree, if it exists.
10820         (lto_input_ts_decl_common_tree_pointers): Move reading of
10821         DECL_INITIAL to lto_streamer_read_tree.
10822         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10823         (lto_streamer_read_tree): New.
10824         (lto_reader_init): Rename from lto_init_reader.
10825         Move initialization code to lto/lto.c.
10826         * lto-streamer-out.c (pack_value_fields): Call
10827         streamer_hooks.pack_value_fields if set.
10828         (lto_output_tree_ref): For tree nodes that are not normally indexable,
10829         call streamer_hooks.indexable_with_decls_p before giving up.
10830         (lto_output_ts_decl_common_tree_pointers): Move handling
10831         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10832         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10833         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
10834         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10835         (lto_streamer_write_tree): New.
10836         (lto_output): Call lto_streamer_init directly.
10837         (lto_writer_init): Remove.
10838         * lto-streamer.c (streamer_hooks): New.
10839         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10840         instead of lto_preload_common_nodes.
10841         (lto_is_streamable): Move from lto-streamer.h
10842         (lto_streamer_hooks_init): New.
10843         (streamer_hooks): New.
10844         (streamer_hooks_init): New.
10845         * lto-streamer.h (struct output_block): Forward declare.
10846         (struct lto_input_block): Likewise.
10847         (struct data_in): Likewise.
10848         (struct bitpack_d): Likewise.
10849         (struct streamer_hooks): Declare.
10850         (streamer_hooks): Declare.
10851         (lto_streamer_hooks_init): Declare.
10852         (lto_streamer_write_tree): Declare.
10853         (lto_streamer_read_tree): Declare.
10854         (streamer_hooks_init): Declare.
10855         (lto_is_streamable): Move to lto-streamer.c
10856
10857 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10858
10859         * longlong.h (smul_ppmm): The resulting register pair contains the
10860         higher order word first.
10861
10862 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10863
10864         PR tree-optimization/46728
10865         * builtins.c (powi_table): Remove.
10866         (powi_lookup_cost): Remove.
10867         (powi_cost): Remove.
10868         (expand_powi_1): Remove.
10869         (expand_powi): Remove.
10870         (expand_builtin_pow_root): Remove.
10871         (expand_builtin_pow): Remove.
10872         (expand_builtin_powi): Eliminate handling of constant exponent.
10873         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10874
10875 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10876
10877         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10878
10879 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10880
10881         * dce.c (reset_unmarked_insns_debug_uses): New.
10882         (delete_unmarked_insns): Skip debug insns.
10883         (prescan_insns_for_dce): Likewise.
10884         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10885         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10886         active reg can be found.
10887         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
10888         (convert_regs_1): Use it.
10889
10890 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10891
10892         * tree-pretty-print.c (dump_function_header): Add flags.
10893         Don't dump decl_uid with nouid.
10894         * tree-pretty-print.h (dump_function_header): Adjust.
10895         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10896         * passes.c (pass_init_dump_file): Pass dump_flags on.
10897         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10898
10899 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10900
10901         PR bootstrap/49270
10902         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10903
10904 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
10905
10906         PR tree-optimization/49243
10907         * calls.c (setjmp_call_p): Also check if fndecl has the
10908         returns_twice attribute.
10909
10910 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10911
10912         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
10913         -ffast-math etc.
10914
10915 2011-06-06  Richard Henderson  <rth@redhat.com>
10916             Georg-Johann Lay  <avr@gjlay.de>
10917
10918         PR target/42210
10919         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
10920         New predicates.
10921         * config/avr/avr.md ("insv"): New insn expander.
10922         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
10923         "*insv.not.io", "*insv.reg"): New insns.
10924
10925 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
10926
10927         PR target/49285
10928         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
10929         to nonimmediate_operand from memory_operand for the operand that is to
10930         be forced to memory by the expander.  Lose the constraints.
10931
10932 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10933
10934         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
10935         EH return when delayed branches are disabled.
10936
10937 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
10938
10939         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
10940         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
10941         calculation.
10942         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
10943         Simplify MODE_V1DF and MODE_V2SF handling.
10944         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
10945         Simplify MODE_SF handling.
10946
10947 2011-06-04  Jan Hubicka  <jh@suse.cz>
10948
10949         PR tree-optimization/48893
10950         PR tree-optimization/49091
10951         PR tree-optimization/49179
10952         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
10953         Bounds check.
10954
10955 2011-06-04  Jan Hubicka  <jh@suse.cz>
10956
10957         PR lto/48954
10958         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
10959         bitmaps.
10960
10961 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
10962
10963         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
10964
10965 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10966
10967         PR target/49281
10968         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
10969         to be strictly smaller than 1 << shiftcount.
10970
10971 2011-06-04  Jan Hubicka  <jh@suse.cz>
10972
10973         PR tree-optimize/48929
10974         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
10975         of empty predicate.
10976
10977 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
10978
10979         PR debug/48333
10980         * calls.c (emit_call_1): Prefer the __builtin declaration of
10981         builtin functions.
10982
10983 2011-06-03   Diego Novillo  <dnovillo@google.com>
10984
10985         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
10986         (lto_input_tree_pointers): Likewise.
10987         * lto-streamer-out.c (pack_value_fields): Likewise.
10988         (lto_output_tree_pointers): Likewise.
10989         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
10990         and OPTIMIZATION_NODE.
10991
10992 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10993
10994         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
10995         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
10996         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
10997         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
10998         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
10999         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11000         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11001         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11002         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11003         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11004         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11005         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11006         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11007         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11008         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11009         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11010         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11011         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11012         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11013         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11014         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11015         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11016         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11017         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11018         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11019         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11020         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11021         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11022         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11023         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11024         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11025         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11026         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11027         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11028         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11029         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11030         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11031         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11032         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11033         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11034         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11035         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11036         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11037         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11038         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11039         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11040         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11041         * system.h (MD_UNWIND_SUPPORT): Poison.
11042         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11043         * doc/tm.texi: Regenerate.
11044         * unwind-dw2.c: Include md-unwind-support.h instead of
11045         MD_UNWIND_SUPPORT.
11046         * config/ia64/unwind-ia64.c: Likewise.
11047         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11048
11049 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11050
11051         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11052
11053 2011-06-03  Richard Henderson  <rth@redhat.com>
11054             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11055
11056         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11057         (sigill_hdlr): Correct insn, insn size.
11058         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11059
11060 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11061
11062         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11063         t-slibgcc-dummy.
11064         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11065         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11066         * config/mips/t-iris: Remove.
11067         * config/mips/t-irix6: New file.
11068         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11069
11070 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11071
11072         * Makefile.in (LIB2ADDEHDEP): Remove.
11073         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11074         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11075         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11076         * config/t-darwin (LIB2ADDEHDEP): Remove.
11077         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11078         * config/t-linux (LIB2ADDEHDEP): Remove.
11079
11080 2011-06-03  Diego Novillo  <dnovillo@google.com>
11081
11082         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11083         (lto_register_var_decl_in_symtab): Likewise.
11084         (lto_register_function_decl_in_symtab): Likewise.
11085         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11086         logic to uniquify_nodes.
11087
11088 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11089
11090         * config/alpha/t-osf5: Remove.
11091         * config/alpha/t-osf-pthread: Remove.
11092         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11093         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11094
11095 2011-06-03  Julian Brown  <julian@codesourcery.com>
11096
11097         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11098         (strongarm1110): Use strongarm tuning.
11099         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11100         * config/arm/arm.c (arm_strongarm_tune): New.
11101         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11102         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11103         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11104         setting, using previous defaults or 1 for Cortex-A5.
11105         (arm_option_override): Set max_insns_skipped from current tuning.
11106
11107 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11108
11109         * doc/install.texi (Options specification): Document --with-specs.
11110
11111 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11112
11113         * config/arm/neon.md (orndi3_neon): Actually split it.
11114
11115 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11116
11117         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11118         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11119
11120 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11121
11122         PR debug/47590
11123         * target.def (delay_sched2, delay_vartrack): New.
11124         * doc/tm.texi.in: Update.
11125         * doc/tm.texi: Rebuild.
11126         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11127         * var-tracking.c (gate_handle_var_tracking): Likewise.
11128         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11129         (bfin_flag_var_tracking): Drop.
11130         (output_file_start): Don't save and override flag_var_tracking.
11131         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11132         (bfin_reorg): Test original variables.
11133         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11134         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11135         (ia64_flag_var_tracking): Drop.
11136         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11137         (ia64_file_start): Don't save and override flag_var_tracking.
11138         (ia64_override_options_after_change): Ditto
11139         flag_schedule_insns_after_reload.
11140         (ia64_reorg): Test original variables.
11141         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11142         (picochip_flag_var_tracking): Drop.
11143         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11144         (picochip_option_override): Don't save and override
11145         flag_schedule_insns_after_reload.
11146         (picochip_asm_file_start): Ditto flag_var_tracking.
11147         (picochip_reorg): Test original variables.
11148         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11149         (TARGET_DELAY_VARTRACK): Define.
11150         (spu_var_tracking): New.
11151         (spu_machine_dependent_reorg): Call it.
11152         (asm_file_start): Don't save and override flag_var_tracking.
11153
11154 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11155
11156         PR target/49163
11157         * config/sh/predicates.md (general_movsrc_operand): Return 0
11158         for memory and memory subreg of which address is an invalid
11159         indexed address for QI and HImode.
11160         (general_movdst_operand): Likewise.
11161
11162 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11163
11164         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11165         edges only, when there is a non-local label in the function.
11166         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11167
11168 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11169
11170         * config/i386/constraints.md (Y3): New register constraint.
11171         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11172         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11173         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11174         *sse2_interleave_lowv2df.
11175
11176 2011-06-02  Julian Brown  <julian@codesourcery.com>
11177
11178         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11179         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11180         (arm_cortex_a5_tune): New.
11181
11182 2011-06-02  Julian Brown  <julian@codesourcery.com>
11183
11184         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11185         * config/arm/arm.c (arm_default_branch_cost): New.
11186         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11187         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11188         (arm_fa726_tune): Set branch_cost field using
11189         arm_default_branch_cost.
11190         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11191         current_tune structure.
11192         * dojump.c (tm_p.h): Include file.
11193
11194 2011-06-02  Julian Brown  <julian@codesourcery.com>
11195
11196         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11197         tuning.
11198         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11199         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11200         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11201         field.
11202         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11203         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11204         (arm_fa726te_tune): Add prefer_constant_pool setting.
11205         (arm_v6t2_tune, arm_cortex_tune): New.
11206         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11207         prefer_constant_pool setting.
11208
11209 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11210
11211         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11212         switch statement.
11213         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11214         (*movdf_internal) <case 6,7,8>: Ditto.
11215
11216         * config/i386/constraints.md (Y4): New register constraint.
11217         * config/i386/sse.md (vec_set<mode>_0): Merge with
11218         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11219         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11220         *vec_extractv2di_1_sse.
11221         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11222         and *vec_concatv2di_rex64_sse.
11223
11224 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11225
11226         PR target/48807
11227         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11228         of cgraph_local_info for null before attempting to use it.
11229
11230 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11231
11232         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11233         (current_function_dynamic_alloc_count): Delete.
11234         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11235         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11236         (expand_builtin_update_setjmp_buf): Remove dead code.
11237         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11238         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11239         support.
11240         * function.c (instantiate_virtual_regs): Likewise.
11241         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11242         for a block with a single abnormal incoming edge.
11243         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11244         (SETJMP_VIA_SAVE_AREA): Delete.
11245         * config/sparc/sparc-protos.h (load_got_register): Declare.
11246         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11247         (load_got_register): Make global.
11248         (sparc_frame_pointer_required): Add 'static'.
11249         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11250         (sparc_builtin_setjmp_frame_value): New function.
11251         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11252         (save_stack_nonlocal): New expander.
11253         (restore_stack_nonlocal): Likewise.
11254         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11255         (nonlocal_goto_internal): New insn.
11256         (goto_handler_and_restore): Delete.
11257         (builtin_setjmp_setup): Likewise.
11258         (do_builtin_setjmp_setup): Likewise.
11259         (setjmp): Likewise.
11260         (builtin_setjmp_receiver): New expander.
11261
11262 2011-06-01  David Li  <davidxl@google.com>
11263
11264         PR middle-end/49261
11265         * tree-pretty-print.c (dump_function_header): Format cleanup.
11266
11267 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11268
11269         PR target/49238
11270         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11271         needed when original operands are used for msw_skip comparison.
11272
11273 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11274
11275         PR debug/49250
11276         * var-tracking.c (add_uses, add_stores): Don't call
11277         cselib_subst_to_values on ENTRY_VALUE.
11278
11279 2011-06-01  Diego Novillo  <dnovillo@google.com>
11280
11281         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11282         output_record_start with LTO_null instead of output_zero.
11283         (lto_output_ts_binfo_tree_pointers): Likewise.
11284         (lto_output_tree): Likewise.
11285         (output_eh_try_list): Likewise.
11286         (output_eh_region): Likewise.
11287         (output_eh_lp): Likewise.
11288         (output_eh_regions): Likewise.
11289         (output_bb): Likewise.
11290         (output_function): Likewise.
11291         (output_unreferenced_globals): Likewise.
11292         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11293         instead of NUM_TREE_CODES.
11294         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11295         (lto_output_int_in_range): Change << to >> when shifting VAL.
11296
11297 2011-06-01  Diego Novillo  <dnovillo@google.com>
11298
11299         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11300         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11301
11302 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11303
11304         PR target/45074
11305         * optabs.h (valid_multiword_target_p): Declare.
11306         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11307         doing multi-word operations.
11308         * optabs.c (expand_binop): Likewise.
11309         (expand_doubleword_bswap): Likewise.
11310         (expand_absneg_bit): Likewise.
11311         (expand_unop): Likewise.
11312         (expand_copysign_bit): Likewise.
11313         (multiword_target_p): New function.
11314
11315 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11316
11317         PR rtl-optimization/48830
11318         PR rtl-optimization/48808
11319         PR rtl-optimization/48792
11320         * reload.c (push_reload): Check contains_reg_of_mode.
11321         * reload1.c (strip_paradoxical_subreg): New function.
11322         (gen_reload_chain_without_interm_reg_p): Use it to handle
11323         paradoxical subregs.
11324         (emit_output_reload_insns, gen_reload): Likewise.
11325
11326 2011-06-01  David Li  <davidxl@google.com>
11327
11328         * predict.c : Change pass name
11329         * ipa.c: Ditto.
11330         * dce.c: Ditto.
11331         * tree-profile.c: Ditto.
11332         * except.c: Ditto.
11333
11334 2011-06-01  David Li  <davidxl@google.com>
11335
11336         * tree-pretty-print.c (dump_function_header): New function.
11337         * final.c (rest_of_clean_state): Use header dumper.
11338         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11339         * passes.c (pass_init_dump_file): Use header dumper.
11340
11341 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11342
11343         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11344         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11345         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11346         New functions.
11347         (mem_loc_descriptor): Use them.
11348
11349         * var-tracking.c (create_entry_value): New function.
11350         (vt_add_function_parameter): Use it.
11351
11352 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11353
11354         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11355         Include <signal.h>, <ucontext.h>.
11356         (sigill_caught): Define.
11357         (sigill_hdlr): New function.
11358         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11359         insns can be executed.
11360         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11361         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11362
11363 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11364
11365         * config/t-slibgcc-darwin: Move to ...
11366         * config/t-slibgcc-dummy: ... this.  Clarify comments.
11367         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11368         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11369         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11370         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
11371         Remove i386/t-crtstuff from tmake_file.
11372         (i[34567]86-*-solaris2*): Remove t-svr4,
11373         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11374         t-slibgcc-dummy.
11375         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11376         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11377         sparc/t-crtfm from tmake_file.
11378         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11379         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11380         Remove extra_parts.
11381         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11382         * config/i386/t-nwld (SHLIB_LINK): Remove.
11383         * config/i386/t-rtems-i386: Rename to ...
11384         * config/i386/t-rtems: ... this.
11385         ($(T)crti.o, $(T)crtn.o): Remove.
11386         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11387         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11388         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11389         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11390         EXTRA_MULTILIB_PARTS): Remove.
11391         * config/sparc/t-sol2-64: Likewise.
11392         * config/sparc/t-sol2: Remove.
11393         * config/sparc/t-crtin: Remove.
11394         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11395         * config/i386/gmon-sol2.c: Remove.
11396         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11397         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11398         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11399         * config/i386/sol2-gc1.asm: Remove.
11400         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11401         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11402         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11403         * config/t-slibgcc-sld: Remove.
11404
11405 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11406
11407         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11408         base_type_for_mode with op_mode instead of mode.
11409
11410 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
11411
11412         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
11413         Cortex-A15.
11414         * config/arm/arm-tune.md: Regenerate.
11415         * config/arm/arm-tables.opt: Regenerate.
11416         * config/arm/arm.c (FL_DIV): Rename...
11417         (FL_THUMB_DIV): ... to this.
11418         (FL_ARM_DIV): Define.
11419         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11420         (arm_arch_hwdiv): Remove.
11421         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11422         (arm_issue_rate): Add cortexr5.
11423         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11424         __ARM_ARCH_EXT_IDIV__.
11425         (TARGET_IDIV): Define.
11426         (arm_arch_hwdiv): Remove.
11427         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11428         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11429         (divsi3, udivsi3): New patterns.
11430         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11431         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11432
11433 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11434
11435         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11436         * ipa-utils.c (searchc): Set scc_no.
11437
11438 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11439
11440         * ipa-utils.c (searchc_env): New field allow_overwritable.
11441         (searchc): do not ignore edges to overwritable nodes if indicated
11442         by env->allow_overwritable.
11443         (ipa_reduced_postorder): Set env.allow_overwritable.
11444
11445 2011-06-01  Richard Guenther  <rguenther@suse.de>
11446
11447         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11448         char_type_node.
11449         * lto-streamer.c (lto_record_common_node): Take node pointer,
11450         do not register types.
11451         (lto_preload_common_nodes): Explicitly skip preloading nodes
11452         that differ between frontends.
11453
11454 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11455
11456         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11457         NON_FLOAT_REGS.
11458
11459 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11460
11461         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11462         parameter value for dump. Dump cost on outermost call only.
11463         (rs6000_memory_move_cost): Dump cost on outermost call only.
11464
11465 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11466
11467         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11468         DW_OP_GNU_convert ops.
11469
11470         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11471         cselib_preserve_constants.
11472         (cselib_lookup_1): If cselib_preserve_constants,
11473         a new VALUE is being created for REG and there is a VALUE for the
11474         same register in wider mode, add another loc with lowpart SUBREG of
11475         the wider VALUE.
11476         (cselib_subst_to_values): Handle ENTRY_VALUE.
11477         * var-tracking.c  (replace_expr_with_values): Return NULL for
11478         ENTRY_VALUE too.
11479         * dwarf2out.c (convert_descriptor_to_signed): New function.
11480         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11481         instead of two shifts.
11482         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11483         the right mode if needed.
11484         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11485         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11486         convert_descriptor_to_signed.
11487         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11488         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11489
11490         PR target/48688
11491         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11492
11493 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11494
11495         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11496         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11497         (SWI248x): New mode iterator, rename from X87MODEI.
11498         (X87MODEI): Remove mode iterator.
11499         (X87MODEI12): Ditto.
11500         (SSEMODEI24): Ditto.
11501
11502 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11503
11504         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11505         * doc/invoke.texi: Document max-vartrack-expr-depth.
11506         * var-tracking.c (EXPR_DEPTH): New.
11507         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11508
11509 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11510
11511         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11512         * config/i386/sse.md: Add n to negated FMA pattern names.
11513
11514 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11515
11516         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11517
11518 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11519
11520         * gengtype-state.c (read_state_params_structs): Initialize previous.
11521
11522 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11523
11524         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11525         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11526
11527 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11528
11529         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11530         registers.  Penalize F*r->o alternative to prevent partial memory
11531         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11532         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11533         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11534         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11535         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11536         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11537         alternatives.
11538         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11539
11540         (fp_register_operand splitters): Use fp_register_operand
11541         constraint.  Do not use FP_REG_P in insn condition.
11542         (any_fp_register_operand splitters): Use any_fp_register_operand
11543         constraint.  Do not use ANY_FP_REG_P in insn condition.
11544
11545 2011-05-31  Jan Hubicka  <jh@suse.cz>
11546
11547         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11548         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11549         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11550         (lto_output_edge): Use output_enum and var_len_unsigned.
11551         (lto_output_varpool_node): Likewise.
11552         (input_overwrite_node): Do not take resolution parameter;
11553         extract it from a bitpack.
11554         (input_node): Do not read resolution; use input_enum and
11555         var_len_unsigned.
11556         (input_varpool_node): Likewise.
11557         (input_edge): Likewise.
11558         (input_cgraph_1): Likewise.
11559
11560 2011-05-31  Richard Guenther  <rguenther@suse.de>
11561
11562         * gimple.c (gimple_register_canonical_type): Do not register
11563         any types via gimple_register_type.
11564
11565 2011-05-31  Jan Hubicka  <jh@suse.cz>
11566
11567         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11568         of thunks.
11569
11570 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11571
11572         PR rtl-optimization/49235
11573         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11574         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11575
11576 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11577
11578         PR tree-optimization/49093
11579         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11580         data references.
11581
11582 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11583
11584         PR debug/49047
11585         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11586         for concrete functions containing the code of cloned functions.
11587
11588 2011-05-31  Richard Guenther  <rguenther@suse.de>
11589
11590         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11591         to ...
11592         (forward_propagate_into_comparison_1): ... this.
11593         (forward_propagate_comparison): Rename to ...
11594         (forward_propagate_into_comparison): ... this.  Split out
11595         real forward propagation code to ...
11596         (forward_propagate_comparison): ... this.
11597         (forward_propagate_into_gimple_cond): Remove looping.
11598         (forward_propagate_into_cond): Likewise.
11599         (simplify_not_neg_expr): Return whether we have done something.
11600         (simplify_gimple_switch): Likewise.
11601         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11602         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11603         to do a forward forward-propagation walk on BBs and a backward
11604         stmt combining walk on BBs.  Consistently re-scan changed statements.
11605         (pass_forwprop): Adjust.
11606
11607 2011-05-30  Ian Lance Taylor  <iant@google.com>
11608
11609         * godump.c (go_format_type): Correct length of name added to
11610         obstack for anonymous field.
11611
11612 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11613
11614         PR target/49186
11615         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11616         part of the second operand is 0.
11617
11618 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11619
11620         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11621         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
11622         to memory for !TARGET_MEMORY_MISMATCH_STALL.
11623         (*movdf_internal_rex64): Do not penalize F->r alternative.
11624         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11625         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
11626         when optimizing function for size.  Do not move CONST_DOUBLEs
11627         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11628         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
11629         SUBREGs.  Do not check for MEM_P operands in the insn condition,
11630         check for ANY_FP_REGNO_P instead.
11631         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11632         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11633         function for speed.
11634         * config/i386/i386.c (ix86_option_override_internal): Do not
11635         set TARGET_INTEGER_DFMODE_MOVES here.
11636
11637 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11638
11639         PR target/49168
11640         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11641
11642 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11643
11644         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11645         DW_TAG_rvalue_reference_type even for
11646         -gdwarf-4 -fno-debug-types-section.
11647
11648 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11649
11650         PR tree-optimization/46728
11651         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11652         (build_and_insert_binop): New.
11653         (gimple_expand_builtin_pow): Reorder args for
11654         build_and_insert_call; use build_and_insert_binop; add more
11655         optimizations for fractional exponents.
11656
11657 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11658
11659         PR bootstrap/49190
11660
11661         Revert:
11662         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11663
11664         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11665         tree_common.
11666         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11667         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11668         TS_BASE instead of TS_COMMON.
11669         * varasm.c (assemble_name): Remove assert.
11670
11671 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
11672
11673         * config.gcc: Keep obselete list sorted.
11674
11675 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11676             Eric Botcazou  <ebotcazou@adacore.com>
11677
11678         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11679         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11680         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11681         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11682         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11683
11684 2011-05-30  Richard Guenther  <rguenther@suse.de>
11685
11686         * gimple.c (gimple_types_compatible_p_1): Compare record
11687         and union type members properly.
11688
11689 2011-05-30  Richard Guenther  <rguenther@suse.de>
11690
11691         PR tree-optimization/49210
11692         * ipa-split.c (split_function): Care for the case where the call
11693         result is not trivially convertible to the result holding variable.
11694
11695 2011-05-30  Richard Guenther  <rguenther@suse.de>
11696
11697         PR tree-optimization/49218
11698         * tree-vrp.c (adjust_range_with_scev): Properly check whether
11699         overflow occured.
11700
11701 2011-05-30  Richard Guenther  <rguenther@suse.de>
11702
11703         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11704         New function split out from ...
11705         (forward_propagate_into_gimple_cond): ... here.  Adjust.
11706         (forward_propagate_into_cond): Likewise.
11707         (forward_propagate_comparison): Also propagate into
11708         comparisons on assignment RHS.  Change return value to
11709         behave similar to forward_propagate_into_cond.
11710         (tree_ssa_forward_propagate_single_use_vars): Handle
11711         strict-overflow warnings properly for forward_propagate_comparison.
11712
11713 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11714
11715         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11716         from plugin linker.
11717         * configure: Regenerate.
11718
11719 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
11720
11721         PR tree-optimization/49199
11722         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11723         non-reduction operands are either defined in the loop or by induction.
11724
11725 2011-05-29  Xinliang David Li  <davidxl@google.com>
11726
11727         * opts-global.c (handle_common_deferred_options): Handle new options.
11728         * passes.c (register_one_dump_file): Call register_pass_name.
11729         (execute_one_pass): Check explicit enable/disable flag.
11730         (passr_hash): New function.
11731         (passr_eq): Ditto.
11732         (register_pass_name): Ditto.
11733         (get_pass_by_name): Ditto.
11734         (pass_hash): Ditto.
11735         (pass_eq): Ditto.
11736         (enable_pass): Ditto.
11737         (disable_pass): Ditto.
11738         (is_pass_explicitly_enabled_or_disabled): Ditto.
11739
11740 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
11741
11742         * config/i386/i386.md (*movoi_internal_avx): Use
11743         standard_sse_constant_opcode for alternative 0.
11744         (*movti_internal_sse): Ditto.
11745         (*movti_internal_rex64): Use standard_sse_constant_opcode for
11746         alternative 2.
11747         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11748         sselog1 type moves.
11749         (*movsi_internal): Ditto.
11750         (*movdi_internal): Ditto.  Add ssecvt type moves.
11751
11752 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11753
11754         PR target/48830
11755         * rtlanal.c (simplify_subreg_regno): Adjust comment.
11756
11757 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
11758
11759         PR rtl-optimization/49095
11760         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11761         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11762
11763 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11764
11765         PR target/43995
11766         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11767         recurse_p argument.  Only follow register copies if it is set,
11768         and prevent mips_find_pic_call_symbol from recursing.
11769         (mips_find_pic_call_symbol): Add a recurse_p argument.
11770         Pass it to mips_pic_call_symbol_from_set.
11771         (mips_annotate_pic_calls): Update accordingly.
11772
11773 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11774
11775         * emit-rtl.c (try_split): Use a loop to search for
11776         NOTE_INSN_CALL_ARG_LOCATIONs.
11777
11778 2011-05-29  Richard Guenther  <rguenther@suse.de>
11779
11780         PR tree-optimization/49217
11781         * ipa-pure-const.c (propagate_pure_const): Fix typos.
11782
11783 2011-05-28  Jan Hubicka  <jh@suse.cz>
11784
11785         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11786         length.
11787         (string_slot_free): Remove
11788         (create_output_block): Initialize obstack.
11789         (destroy_output_block): Free obstack.
11790         (lto_string_index): Add PERSISTENT parameter; do not duplicate
11791         the string unless it needs to be added into the hash.
11792         (lto_output_string_with_length): Add persistent attribute;
11793         handle NULL strings.
11794         (lto_output_string): Add PERSISTENT parameter.
11795         (output_string_cst, output_identifier): Simplify.
11796         (lto_output_location_bitpack): Update.
11797         (lto_output_builtin_tree): Update.
11798         * lto-streamer.h (struct output_block): Add obstack.
11799         (lto_output_string, lto_output_string_with_length): Remove
11800         declarations; functions are static now.
11801
11802 2011-05-28  Jan Hubicka  <jh@suse.cz>
11803
11804         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11805         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11806         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11807         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11808         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11809         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11810         unpack_ts_decl_with_vis_value_fields,
11811         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11812         lto_get_builtin_tree): Use enum and variable length i/o.
11813         * basic-block.h (profile_status_d): Add PROFILE_LAST.
11814         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11815         New functions.
11816         (bp_pack_enum, bp_unpack_enum): New macros.
11817
11818 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11819
11820         * genrecog.c: Remove redundant forward declarations.
11821
11822 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11823
11824         * config.gcc: Deprecate mips*-*-openbsd*.
11825
11826 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11827
11828         PR bootstrap/49195
11829         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11830         for match_op_dup.
11831
11832 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
11833
11834         PR middle-end/48981
11835         * gengtype.c (vec_prefix_type): New function.
11836         (note_def_vec): Use vec_prefix_type and change the length
11837         attribute to be based on the prefix.
11838         * vec.c: Include coretypes.h before vec.h.
11839         (struct vec_prefix): Remove.
11840         (vec_gc_p_reserve): Change the offsetof to sizeof.
11841         (vec_gc_p_reserve_exact): Likewise.
11842         (vec_heap_p_reserve): Likewise.
11843         (vec_heap_p_reserve_exact): Likewise.
11844         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11845         (vec_stack_p_reserve): Change the offsetof to sizeof.
11846         (vec_stack_p_reserve_exact): Likewise.
11847         * vec.h (struct vec_prefix): New struct definition.
11848         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11849         (VEC_T_GTY(T,B)): Likewise.
11850         (DEF_VEC_FUNC_P(T)): Use prefix field.
11851         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11852         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11853
11854 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11855
11856         PR tree-optimization/46728
11857         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11858         (powi_as_mults): Add gimple_set_location.
11859         (build_and_insert_call): New.
11860         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11861         0.5, 0.25, 0.75, 1./3., or 1./6.
11862
11863 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
11864
11865         * doc/contrib.texi: Update copyright years.
11866         (Contributors): Add Zdenek Sojka.
11867
11868 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11869
11870         * c-decl.c (c_push_function_context): Copy the current statement
11871         list stack.
11872         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11873         (finish_struct): Call building_stmt_list_p instead of checking
11874         cur_stmt_list.
11875         * c-parser.c (c_parser_postfix_expression): Likewise.
11876         * c-typeck.c (c_end_compound_stmt): Likewise.
11877         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11878         * tree-iterator.c (stmt_list_cache): Change to a VEC.
11879         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11880         (free_stmt_list): Likewise.
11881         * tree.h (struct tree_statement_list): Include typed_tree instead
11882         of tree_common.
11883         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11884         as TS_TYPED instead of TS_COMMON.
11885
11886 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11887             Uros Bizjak  <ubizjak@gmail.com>
11888
11889         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11890         (HAVE_AS_IX86_TLSGDPTL): Define.
11891         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11892         (HAVE_AS_IX86_TLSLDMPLT): Define.
11893         * configure: Regenerate.
11894         * config.in: Regenerate.
11895         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11896         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11897         TARGET_SUN_TLS, use @tlsgdplt or @plt.
11898         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11899         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11900         @tlsldmplt or @plt.
11901         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11902
11903 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11904
11905         * sched-int.h (struct _haifa_deps_insn_data): New members cond
11906         and reverse_cond.
11907         (INSN_COND, INSN_REVERSE_COND): New macros.
11908         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
11909         once.
11910         (sched_get_condition_with_rev): Cache the results, and look them up
11911         if possible.
11912         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
11913         are clobbered by the current insn.
11914         * target.def (exposed_pipline): New sched data hook.
11915         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
11916         * doc/tm.texi: Regenerate.
11917
11918 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11919
11920         PR tree-optimization/49170
11921         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
11922         sincos or cexp.
11923
11924 2011-05-27  Richard Guenther  <rguenther@suse.de>
11925
11926         PR middle-end/49189
11927         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
11928         of comparisons.
11929
11930 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11931
11932         * haifa-sched.c (sched_scan_info): Remove.
11933         (schedule_block): Call sched_extend_luids rather than sched_init_luids
11934         with NULL args.
11935         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
11936         Remove functions.
11937         (sched_scan): Remove.
11938         (sched_extend_luids): Renamed from luids_extend_insn and no longer
11939         static.  All callers changed.
11940         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
11941         static.  All callers changed.
11942         (sched_init_luids): Remove all arguments except the first.  All
11943         callers changed.  Don't use sched_scan.
11944         (haifa_init_h_i_d): Likewise.
11945         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
11946         manually rather than using sched_init_luids.  Likewise with
11947         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
11948         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
11949         rather than sched_init_luids with NULL args.
11950         * sel-sched-ir.c (new_insns): Remove variable.
11951         (sched_scan): New static function, previously in haifa-sched.c.  Remove
11952         all arguments but the first two; all callers changed.
11953         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
11954         rather than sched_init_luids.
11955         (sel_init_bbs): Remove second argument.  All callers changed.
11956         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
11957         with NULL arguments.
11958         (create_insn_rtx_from_pattern): Likewise.
11959         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
11960         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
11961         (sched_init_insn_luid, sched_extend_luids): Declare.
11962         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
11963         declarations.
11964
11965 2011-05-27  Richard Guenther  <rguenther@suse.de>
11966
11967         PR middle-end/49177
11968         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
11969         A CMP B ? (T) true : (T) false for non-integral types T again.
11970
11971 2011-05-27  Jan Hubicka  <jh@suse.cz>
11972
11973         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
11974         so 0 means NULL string.
11975         (lto_output_string_with_length): ... here.
11976         (lto_output_string, output_string_cst, output_identifier): Update
11977         handling of NULL strings.
11978         (lto_output_location_bitpack): New function.
11979         (lto_output_location): Use it.
11980         (lto_output_tree_ref): Use output_record_start.
11981         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
11982         len values.
11983         * lto-streamer-in.c (string_for_index): Break out from ...; offset
11984         values by 1.
11985         (input_string_internal): ... here;
11986         (input_string_cst, input_identifier, lto_input_string): Update handling
11987         of NULL strings.
11988         (lto_input_location_bitpack): New function
11989         (lto_input_location): Use it.
11990         (unpack_ts_type_common_value_fields): Pack align & alias in var len
11991         values.
11992         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
11993         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
11994         (bp_pack_value): Sanity check the value range.
11995         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
11996         New functions.
11997         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
11998         New functions.
11999
12000 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12001
12002         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12003         call_arg_location instructions down the floor.
12004
12005 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12006
12007         PR rtl-optimization/49154
12008         * ira.c (setup_pressure_classes): Process class without sublcasses
12009         as a candidate for pressure classes.
12010
12011 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12012
12013         PR rtl-optimization/48575
12014         * genrecog.c (position_type): New enum.
12015         (position): New structure.
12016         (decision): Use position structure instead of a string.
12017         (root_pos, peep2_insn_pos_list): New variables.
12018         (next_position, compare_positions): New functions.
12019         (new_decision): Use position structures instead of strings.
12020         (maybe_both_true): Likewise.
12021         (change_state): Likewise.
12022         (write_tree): Likewise.
12023         (make_insn_sequence): Likewise.
12024
12025 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12026
12027         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12028         TS_BASE instead of TS_COMMON.
12029         (find_decls_types_r): Check for TS_TYPED structure before looking at
12030         TREE_TYPE.
12031         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12032         Add chain field.
12033         (BLOCK_CHAIN): Use new chain field.
12034
12035 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12036
12037         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12038         moves expensive on Power7 also.
12039
12040 2011-05-26  Richard Guenther  <rguenther@suse.de>
12041
12042         * fold-const.c (fold_unary_loc): Remove bogus code.
12043
12044 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12045
12046         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12047         tree_common.
12048         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12049         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12050         TS_BASE instead of TS_COMMON.
12051         * varasm.c (assemble_name): Remove assert.
12052
12053 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12054
12055         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12056         substituted first.
12057         * libgcc-std.ver: Delete file.
12058
12059 2011-05-26  Richard Guenther  <rguenther@suse.de>
12060
12061         PR tree-optimization/48702
12062         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12063         only when we know the base address is within bounds.
12064         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12065         assume the base address of TARGET_MEM_REFs is in bounds.
12066
12067 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12068
12069         PR target/49099
12070         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12071         declaration in TARGET_SOLARIS.
12072
12073 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12074
12075         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12076         The instruction is then expanded explicitly.
12077         (supported_compare): Callable instruction.
12078         (compare): Likewise.
12079
12080 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12081
12082         PR c++/49165
12083         * gimplify.c (shortcut_cond_r): Don't special case
12084         COND_EXPRs if they have void type on one of their arms.
12085
12086 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12087
12088         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12089         to reduce duplication, and to achieve a slightly more logical order
12090         of operations.
12091
12092 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12093
12094         PR tree-optimization/49161
12095         * tree-vrp.c (struct case_info): New type.
12096         (compare_case_labels): Sort case_info structs instead of
12097         trees, and not primarily by CASE_LABEL uids but by
12098         label_for_block indexes.
12099         (find_switch_asserts): Put case labels into struct case_info
12100         array instead of TREE_VEC, adjust sorting, compare label_for_block
12101         values instead of CASE_LABELs.
12102
12103 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12104
12105         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12106         ("orndi3_neon"): Likewise.
12107         ("bic<mode>3_neon"): Likewise.
12108
12109 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12110
12111         PR tree-optimization/49038
12112         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12113         Ensure at least one epilogue iteration if required by data
12114         accesses with gaps.
12115         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12116         to mark loops that require peeling for gaps.
12117         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12118         (vect_get_known_peeling_cost): Take peeling for gaps into
12119         account.
12120         (vect_transform_loop): Generate epilogue if required by data
12121         access with gaps.
12122         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12123         loop as requiring an epilogue if there are gaps in the end of
12124         the strided group.
12125
12126 2011-05-25  Ian Lance Taylor  <iant@google.com>
12127
12128         * godump.c (go_format_type): Output the first field with a usable
12129         Go type, if any.
12130
12131 2011-05-25  Ian Lance Taylor  <iant@google.com>
12132
12133         * godump.c (go_format_type): Check for invalid type names, pointer
12134         target types, and struct field types.
12135
12136 2011-05-25  Jason Merrill  <jason@redhat.com>
12137
12138         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12139
12140 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12141
12142         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12143
12144 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         * config/i386/i386.md (*movqi_extv_1)): Put back
12147         "register_operand" check in "type" calculation.
12148         (*movqi_extzv_2): Likewise.
12149
12150 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12151
12152         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12153
12154 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12155
12156         PR bootstrap/49160
12157         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12158         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12159         __divxc3, __divtc3): Wrap definitions in #ifndef.
12160
12161 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12162
12163         PR target/49142
12164         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12165         "register_operand" check and replace q_regs_operand with
12166         QIreg_operand in "type" calculation.
12167         (*movqi_extv_1): Likewise.
12168         (*movqi_extzv_2_rex64): Likewise.
12169         (*movqi_extzv_2): Likewise.
12170
12171         * config/i386/predicates.md (QIreg_operand): New.
12172
12173 2011-05-25  Richard Guenther  <rguenther@suse.de>
12174
12175         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12176         type-based offset disambiguation, streamline MEM_REF and
12177         TARGET_MEM_REF handling.
12178
12179 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12180
12181         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12182         (bdesc_special_args): Add pause intrinsic.
12183
12184         * config/i386/i386.md (UNSPEC_PAUSE): New.
12185         (pause): Likewise.
12186         (*pause): Likewise.
12187         * config/i386/ia32intrin.h (__pause): Likewise.
12188
12189         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12190         pause intrinsic.
12191
12192 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12193
12194         PR tree-optimization/46728
12195         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12196         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12197
12198 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12199
12200         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12201         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12202         instead of TS_COMMON.
12203
12204 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12205
12206         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12207         LIBGCC2_GNU_PREFIX is defined.
12208         (__N): New macro.
12209         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12210         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12211         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12212         __clz_tab): Define using __N.
12213         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12214         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12215         * target.def (libfunc_gnu_prefix): New hook.
12216         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12217         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12218         * doc/tm.texi: Regenerate.
12219         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12220         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12221         account.
12222         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12223         (init_optabs): Likewise for the bswap libfuncs.
12224         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12225         and divide.
12226         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12227         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12228         * libgcc-std.ver: Remove.
12229         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12230         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12231         libgcc-std.ver.
12232         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12233         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12234         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12235         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12236         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12237         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12238         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12239         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12240         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12241         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12242
12243 2011-05-25  Jan Hubicka  <jh@suse.cz>
12244
12245         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12246         (lto_output_tree): Use output_record_start.
12247         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12248         (lto_get_pickled_tree): Use input_record_start.
12249         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12250         (lto_value_range_error): New function.
12251         * lto-streamer.h (lto_value_range_error): Declare.
12252         (lto_output_int_in_range, lto_input_int_in_range): New functions.
12253         (lto_output_enum, lto_input_enum): New macros.
12254
12255 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12256
12257         * common.opt (flag_stack_usage_info): New variable.
12258         (-Wstack-usage): New option.
12259         * doc/invoke.texi (Warning options): Document -Wstack-usage.
12260         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12261         <OPT_fstack_usage>: Likewise.
12262         * toplev.c (output_stack_usage): Handle -Wstack-usage.
12263         * calls.c (expand_call): Test flag_stack_usage_info variable instead
12264         of flag_stack_usage.
12265         (emit_library_call_value_1): Likewise.
12266         * explow.c (allocate_dynamic_stack_space): Likewise.
12267         * function.c (instantiate_virtual_regs ): Likewise.
12268         (prepare_function_start): Likewise.
12269         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12270         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12271         * config/arm/arm.c (arm_expand_prologue): Likewise.
12272         (thumb1_expand_prologue): Likewise.
12273         * config/avr/avr.c (expand_prologue): Likewise.
12274         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12275         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12276         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12277         * config/mips/mips.c (mips_expand_prologue): Likewise.
12278         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12279         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12280         * config/s390/s390.c (s390_emit_prologue): Likewise.
12281         * config/sh/sh.c (sh_expand_prologue): Likewise.
12282         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12283         * config/spu/spu.c (spu_expand_prologue): Likewise.
12284
12285 2011-05-25  Richard Guenther  <rguenther@suse.de>
12286
12287         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12288         (gimple_canonical_types_compatible_p): Likewise.
12289
12290 2011-05-25  Jan Hubicka  <jh@suse.cz>
12291
12292         PR middle-end/49062
12293         * ipa.c (function_and_variable_visibility): Only add to same
12294         comdat group list if DECL_ONE_ONLY.
12295
12296 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
12297
12298         PR rtl-optimization/49014
12299         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12300
12301 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12302
12303         PR target/49128
12304         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12305
12306 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12307
12308         PR rtl-optimization/48757
12309         * ira-build.c (loop_with_eh_edge_p): Rename to
12310         loop_with_complex_edge_p, check edges on complexity, make function
12311         conditional.
12312         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12313         conditional.
12314
12315 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12316
12317         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12318         force flag_ira_share_save_slots to 0.
12319
12320 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12321
12322         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12323         (vt_initialize): Set PROLOGUE_BB unconditionally.
12324         Add block comment about CFA_BASE_RTX machinery.
12325         Reset FP_CFA_OFFSET to -1 on all invalid paths.
12326         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12327
12328 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12329
12330         PR objc/48187
12331         * c-parser.c (c_parser_objc_class_instance_variables): More robust
12332         parsing of syntax error in ObjC instance variable lists.  In
12333         particular, avoid an infinite loop if there is a stray ']'.
12334         Updated error message.
12335
12336 2011-05-24  Ian Lance Taylor  <iant@google.com>
12337
12338         * godump.c (go_define): Don't accept a string immediately after
12339         another operand.
12340
12341 2011-05-24  Ian Lance Taylor  <iant@google.com>
12342
12343         * godump.c (struct godump_container): Add invalid_hash field.
12344         (go_format_type): Return false if type is found in invalid_hash.
12345         (go_output_typedef): Add invalid type to invalid_hash.
12346         (go_finish): Create and delete invalid_hash.
12347
12348 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12349
12350         PR tree-optimization/46728
12351         * tree-ssa-math-opts.c (powi_table): New.
12352         (powi_lookup_cost): New.
12353         (powi_cost): New.
12354         (powi_as_mults_1): New.
12355         (powi_as_mults): New.
12356         (gimple_expand_builtin_powi): New.
12357         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12358         (gate_cse_sincos): Remove sincos/cexp restriction.
12359
12360 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12361
12362         PR target/3746
12363         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12364         mips-tdump native.
12365         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12366         * mips-tdump.c: Likewise.
12367
12368 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12369
12370         PR target/49128
12371         * config/i386/driver-i386.c (host_detect_local_cpu): Always
12372         add -mno-XXX.  Handle FMA.
12373
12374 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12375
12376         PR rtl-optimization/48633
12377         * ira-build.c (loop_with_eh_edge_p): New function.
12378         (mark_loops_for_removal): Use it.
12379
12380 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12381
12382         PR rtl-optimization/48971
12383         * ira.c (setup_pressure_classes): Don't check register move cost
12384         for classes with one registers.  Don't add pressure class if there
12385         is a pressure class with the same available hard registers.
12386         Check contains_reg_of_mode.  Fix a typo in collecting
12387         temp_hard_regset.  Ignore hard registers not belonging to a class.
12388
12389 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12390
12391         PR target/49133
12392         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12393
12394 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12395             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12396
12397         PR gcov-profile/48845
12398         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12399
12400 2011-05-24  Richard Guenther  <rguenther@suse.de>
12401
12402         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12403         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12404         (gimple_types_compatible_p_1): Adjust.
12405         (iterative_hash_canonical_type): Do not bother about complete vs.
12406         incomplete types.
12407         (gimple_canonical_types_compatible_p): Likewise.
12408
12409 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12410
12411         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12412
12413 2011-05-24  Richard Guenther  <rguenther@suse.de>
12414
12415         PR bootstrap/49078
12416         * gimple.c (gimple_register_canonical_type): Revert
12417         previous change.
12418         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12419         does not for a tree for the case where it matters.  Cache
12420         pointer-type alias-sets.
12421
12422 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12423
12424         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12425         (OBJS): Remove options.o, opts-common.o and prefix.o.
12426         (OBJS-libcommon-target): New.
12427         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12428         (BACKEND): Include libcommon-target.a.
12429         (MOSTLYCLEANFILES): Include libcommon-target.a.
12430         (libcommon-target.a): New.
12431         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12432         prefix.o.
12433
12434 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12435
12436         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12437         parts of output shared with the driver.
12438         * optc-gen.awk: Don't generate parts of output not shared with the
12439         driver.
12440         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12441         * doc/options.texi (SourcerInclude): Mention options-save.c.
12442         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12443         (OBJS): Add options-save.o.
12444         (options-save.c, options-save.o): New.
12445         (options.o): Update dependencies.
12446         (gcc-options.o): Remove.
12447         (mostlyclean): Remove options-save.c.
12448
12449 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12450
12451         PR debug/49032
12452         * dbxout.c: Include cgraph.h.
12453         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12454         and without value expr, return NULL if no varpool node exists for
12455         it or if it is not needed.
12456         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12457
12458         PR c/49120
12459         * c-decl.c (start_decl): Convert expr to void_type_node.
12460
12461 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12462
12463         PR rtl-optimization/48826
12464         * emit-rtl.c (try_split): When splitting a call that is followed
12465         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12466
12467 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12468
12469         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12470         parameters passed in memory prefer using DECL_INCOMING_RTL over
12471         the pseudos it will be copied into.
12472
12473 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12474
12475         PR target/47315
12476         * config/i386/i386.c (ix86_option_override_internal): Save the
12477         initial options after checking vzeroupper.
12478
12479 2011-05-23  David Li  <davidxl@google.com>
12480
12481         PR tree-optimization/48988
12482         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12483         Initialize has_valid_pred for each pred chain.
12484
12485 2011-05-23  Richard Guenther  <rguenther@suse.de>
12486
12487         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12488         (iterative_hash_gimple_type): Always hash type names.
12489
12490 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12491
12492         * c-typeck.c (build_function_call_vec): Tweak call to
12493         check_function_arguments.
12494
12495 2011-05-23  Richard Guenther  <rguenther@suse.de>
12496
12497         PR tree-optimization/49115
12498         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12499         is not necessarily carried out, do not claim it kills the ref.
12500         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12501
12502 2011-05-23  Richard Guenther  <rguenther@suse.de>
12503
12504         PR middle-end/15419
12505         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12506         what pointer types we accept for folding.
12507
12508 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12509
12510         * gthr-gnat.c: Remove.
12511         * gthr-gnat.h: Remove.
12512         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12513         * config/t-freebsd (LIB2ADDEH): Likewise.
12514         * config/t-linux (LIB2ADDEH): Likewise.
12515         * config/t-sol2 (LIB2ADDEH): Likewise.
12516         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12517         * configure.ac (target_thread_file): Remove gnat handling.
12518         * configure: Regenerate.
12519         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12520
12521 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12522             Eric Botcazou  <ebotcazou@adacore.com>
12523
12524         * gcov.c (create_file_names): If no object directory is specified,
12525         keep the directory of the file.
12526
12527 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12528
12529         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12530         * configure: Regenerate.
12531
12532 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12533
12534         PR middle-end/48973
12535         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12536         failed and the comparison has a single bit signed type, use
12537         constm1_rtx instead of const1_rtx for true value.
12538         (do_store_flag): If ops->type is single bit signed type, disable
12539         signel bit test optimization and pass -1 instead of 1 as last
12540         parameter to emit_store_flag_force.
12541
12542 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12543
12544         PR target/45098
12545         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12546         function.
12547         (infer_loop_bounds_from_undefined): Use new function.
12548
12549 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12550
12551         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12552         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12553         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12554         and -O0 otherwise.
12555         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12556
12557 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12558
12559         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12560         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12561         returns true.
12562
12563 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12564
12565         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12566
12567 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12568
12569         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12570         UNSPEC_MOVE_PIC pattern.
12571
12572 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12573
12574         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12575         (sparc-*-rtems*): Likewise.
12576         (sparc64-*-elf*): Likewise.
12577         (sparc64-*-rtems*): Likewise.
12578         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12579         * config/sparc/t-crtin: New file.
12580         * config/sparc/t-sol2 (crti.o): Delete rule.
12581         (crtn.o): Likewise.
12582         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12583         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12584         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12585         (ENDFILE_SPEC): Add crtn.o.
12586
12587 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12588
12589         PR middle-end/48689
12590         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12591         CODE_CONTAINS_STRUCT (TS_COMMON).
12592
12593 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12594
12595         PR middle-end/49029
12596         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12597         only after deciding which mode to use.
12598
12599 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12600
12601         PR target/45098
12602         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12603         for call to get_shiftadd_cost.
12604
12605 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12606
12607         PR target/49104
12608         * config/i386/cpuid.h (bit_MMXEXT): New define.
12609
12610 2011-05-22  Nick Clifton  <nickc@redhat.com>
12611
12612         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12613         initialisation of non-existant args[2] element.  Use args[] array
12614         not arg[] array to pass arguments to build_function_type_list.
12615
12616 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12617
12618         PR tree-optimization/49087
12619         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12620
12621 2011-05-21  Jason Merrill  <jason@redhat.com>
12622
12623         PR c++/49092
12624         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12625         static storage duration.
12626
12627 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12628
12629         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12630         frame pointer.
12631
12632 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12633
12634         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12635         false if there are call-saved registers here...
12636         (sparc_can_use_return_insn_p): ...but here instead.
12637         (save_or_restore_regs): Fix thinko.
12638         (sparc_expand_prologue): Use current_function_is_leaf.
12639         (sparc_frame_pointer_required): Likewise.
12640
12641 2011-05-21  Nick Clifton  <nickc@redhat.com>
12642
12643         PR target/49098
12644         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12645
12646 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12647
12648         * gengtype.c (walk_type): Implemented "atomic" GTY option.
12649         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12650
12651 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12652
12653         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
12654         * optc-gen.awk: Move common code to opt-read.awk.
12655         * opth-gen.awk: Likewise.
12656         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12657
12658 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
12659
12660         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12661
12662 2011-05-20  Tom de Vries  <tom@codesourcery.com>
12663
12664         PR target/45098
12665         * tree-ssa-loop-ivopts.c: Include expmed.h.
12666         (get_shiftadd_cost): New function.
12667         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
12668
12669 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12670
12671         PR bootstrap/49086
12672         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12673         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12674
12675 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12676
12677         * Makefile.in: Update comment referring to $(OBJS-common).
12678
12679 2011-05-20  Ian Lance Taylor  <iant@google.com>
12680
12681         * godump.c (go_output_typedef): Put enum constants in the macro
12682         hash table to avoid duplicate Go const definitions.
12683
12684 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12685
12686         * Makefile.in (LIBDEPS): Add libcommon.a.
12687         (LIBS): Likewise.
12688         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12689         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12690         pretty-print.o and version.o.
12691         (OBJS-libcommon): New.
12692         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12693         (BACKEND): Add libcommon.a.
12694         (MOSTLYCLEANFILES): Likewise.
12695         (libcommon.a): New.
12696         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12697         (cpp$(exeext)): Likewise.
12698         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12699         pretty-print.o and input.o.
12700         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12701         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12702         (errors.o): Remove.
12703         (mips-tfile): Don't explicitly use version.o.
12704         (mips-tdump): Likewise.
12705         (gcov.o): Depend on $(DIAGNOSTIC_H).
12706         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12707         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12708         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12709         * gcov-dump.c: Include intl.h and diagnostic.h.
12710         (main): Initialize diagnostics.
12711         * gcov.c: Include diagnostic.h.
12712         (fnotice): Remove.
12713         (main): Initialize diagnostics.
12714         * lto-wrapper.c: Include diagnostic.h.
12715         (main): Initialize diagnostics.
12716
12717 2011-05-20  Michael Matz  <matz@suse.de>
12718
12719         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12720
12721 2011-05-20  Michael Matz  <matz@suse.de>
12722             Richard Guenther  <rguenther@suse.de>
12723
12724         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12725         use lto_streamer_cache_append directly instead of returning a VEC.
12726         (preload_common_node): Remove.
12727         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12728         track seen nodes.
12729         (lto_streamer_cache_create): Call lto_preload_common_nodes.
12730
12731 2011-05-20  Richard Guenther  <rguenther@suse.de>
12732
12733         PR tree-optimization/49079
12734         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12735         MEM_REFs correctly for the trailing array access detection.
12736         Special case constants the same way as decls for overall size
12737         constraining.
12738
12739 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
12740
12741         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12742         argument expansion.
12743
12744 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12745
12746         PR tree-optimization/49073
12747         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12748         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12749         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12750
12751 2011-05-20  Richard Guenther  <rguenther@suse.de>
12752
12753         PR middle-end/48849
12754         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12755         of pointer types the same way the middle-end does.
12756
12757 2011-05-20  Richard Guenther  <rguenther@suse.de>
12758
12759         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12760         or pointer-to chains.  Delay all fixup to uniquify_nodes.
12761
12762 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
12763
12764         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12765         (fma4_fmaddsub): Likewise
12766
12767 2011-05-19  Jan Hubicka  <jh@suse.cz>
12768
12769         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12770         (GIMPLE_TYPE_PAIR_SIZE): New macro.
12771         (type_pair_cache): New static var.
12772         (lookup_type_pair): Use fixed sized custom hash; make inline.
12773         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12774         calls of lookup_type_pair.
12775         (print_gimple_types_stats): Remove cache stats.
12776         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12777         and gtc_ob.
12778
12779 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
12780
12781         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12782         when TARGET_RDRND is active.
12783         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12784         Generate dummy SImode target register when target is NULL.
12785
12786 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12787
12788         * config/arm/arm-fpus.def: New.
12789         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12790         arm-fpus.def.
12791         * config/arm/arm-tables.opt: Regenerate.
12792         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12793         (arm_option_override): Don't decode FPU name to string here.
12794         * config/arm/arm.opt (mfpu=): Use Enum.
12795         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12796         Update dependencies.
12797
12798 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12799
12800         * collect2.c: Include diagnostic.h.
12801         (fatal_perror, fatal, error, fancy_abort): Remove.
12802         (main): Set progname.  Call xmalloc_set_program_name and
12803         diagnostic_initialize.
12804         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12805         scan_libraries, resolve_lib_name): Call fatal_error instead of
12806         fatal and fatal_perror.
12807         * collect2.h (error, fatal, fatal_perror): Don't declare.
12808         * tlink.c: Include diagnostic-core.h.
12809         (recompile_files): Call fatal_error instead of fatal_perror.
12810         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12811         pretty-print.o and input.o.
12812         (collect2.o, tlink.o): Update dependencies.
12813
12814 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12815
12816         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12817
12818 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12819
12820         PR target/40483
12821         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12822         COMDAT group syntax, both SPARC and x86 variants.
12823         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12824         * configure: Regenerate.
12825         * config/sol2.h (TARGET_SOLARIS): Define.
12826         (PUSHSECTION_FORMAT): Remove.
12827         (SECTION_NAME_FORMAT): Define.
12828         * config/sol2.c: Include hashtab.h.
12829         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12830         expansion, using SECTION_NAME_FORMAT.
12831         (solaris_comdat_htab): New variable.
12832         (struct comdat_entry): Define.
12833         (comdat_hash): New function.
12834         (comdat_eq): New function.
12835         (solaris_elf_asm_comdat_section): New function.
12836         (solaris_define_comdat_signature): New function.
12837         (solaris_code_end): New function.
12838         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12839         (solaris_code_end): Declare.
12840         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12841         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12842         solaris_code_end.
12843         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12844         Remove ATTRIBUTE_UNUSED.
12845         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12846         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12847         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12848         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12849         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12850         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12851         (PUSHSECTION_FORMAT): Remove.
12852         (SECTION_NAME_FORMAT): Redefine.
12853
12854 2011-05-19  Kai Tietz  <ktietz@redhat.com>
12855
12856         * tree-cfg.c (verify_gimple_assign_binary): Barf on
12857         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12858         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12859
12860 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
12861             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12862
12863         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12864
12865 2011-05-19  Richard Guenther  <rguenther@suse.de>
12866
12867         PR middle-end/48985
12868         * tree-object-size.c (addr_object_size): If the pointed-to
12869         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12870
12871 2011-05-19  Richard Guenther  <rguenther@suse.de>
12872
12873         * gimple.c (gimple_types_compatible_p_1): Compare names of
12874         the types themselves.
12875         (iterative_hash_gimple_type): And hash them that way.
12876         (gimple_register_type_1): If we register a main variant properly
12877         initialize the leader to ourselves.
12878
12879 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12880
12881         PR target/45098
12882         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12883         get_loop_invariant_expr_id.
12884         (get_loop_invariant_expr_id): Use get_expr_id.
12885         (parm_decl_cost): New function.
12886         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12887         Improve bound cost estimation.  Use different inv_expr_id for elim and
12888         express cases.
12889
12890 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12891
12892         PR target/45098
12893         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12894         cost_base.cost == 0.
12895
12896 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12897
12898         PR target/49002
12899         * config/i386/sse.md
12900         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12901         load cast.
12902
12903 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12904
12905         PR tree-optimization/49039
12906         * tree-vrp.c (extract_range_from_binary_expr): For
12907         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12908         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
12909
12910 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12911
12912         PR target/45098
12913         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
12914
12915 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
12916
12917         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
12918         (*tls_global_dynamic_64): Ditto.
12919         (*tls_local_dynamic_base_32_gnu): Ditto.
12920         (*tls_local_dynamic_base_64): Ditto.
12921         (tls_initial_exec_64_sun): Ditto.
12922
12923 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
12924
12925         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12926         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
12927         bf592-none.
12928         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
12929         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
12930         * config/bfin/bfin.c (bfin_cpus): Add bf592.
12931         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12932         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
12933         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12934         * config/bfin/elf.h (LIB_SPEC): Add bf592.
12935
12936 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
12937
12938         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
12939         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
12940         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
12941         target_thread_pointer, arm_structure_size_boundary, struct
12942         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
12943         struct abi_name, arm_all_abis): Remove.
12944         (arm_option_override) Don't process most enumerated option values here.
12945         Don't process target_fpe_name here.  Work with integer not string for
12946         structure size boundary; use separate diagnostics for each case.
12947         * config/arm/arm.h (enum float_abi_type, enum
12948         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
12949         to arm-opts.h.
12950         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
12951         arm_structure_size_boundary): Remove.
12952         * config/arm/arm.opt (mabi=): Use Enum and Init.
12953         (arm_abi_type): New Enum and EnumValue entries.
12954         (mfloat-abi=): Use Enum and Init.
12955         (float_abi_type): New Enum and EnumValue entries.
12956         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
12957         (mfp16-format=): Use Enum and Init.
12958         (arm_fp16_format_type): New Enum and EnumValue entries.
12959         (mstructure-size-boundary=): Use UInteger and Init.
12960         (mtp=): Use Enum and Init.
12961         (arm_tp_type): New Enum and EnumValue entries.
12962
12963 2011-05-18  Richard Guenther  <rguenther@suse.de>
12964
12965         PR tree-optimization/49018
12966         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
12967         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
12968         gimple_has_side_effects.
12969
12970 2011-05-18  Richard Guenther  <rguenther@suse.de>
12971
12972         * gimple.c (gimple_register_type_1): New function, split out from ...
12973         (gimple_register_type): ... here.  Avoid infinite recursion.
12974
12975 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12976
12977         PR tree-optimization/41881
12978         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12979         reduction_chains along with a macro for its access.
12980         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
12981         (destroy_loop_vec_info): Free reduction chains.
12982         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
12983         (vect_is_slp_reduction): New function.
12984         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
12985         (vect_create_epilog_for_reduction): Support SLP reduction chains.
12986         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
12987         definition types for reduction chains.
12988         (vect_supported_load_permutation_p): Don't allow permutations for
12989         reduction chains.
12990         (vect_analyze_slp_instance): Support reduction chains.
12991         (vect_analyze_slp): Try to build SLP instance from reduction chains.
12992         (vect_get_constant_vectors):  Handle reduction chains.
12993         (vect_schedule_slp_instance): Mark the first statement of the
12994         reduction chain as reduction.
12995
12996 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12997
12998         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
12999         names for group elements access.
13000         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13001         reduction chains as well.  Remove data reference and interleaving
13002         related words from the fields names.
13003         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13004         elements access.
13005         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13006         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13007         vect_update_interleaving_chain, vect_same_range_drs,
13008         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13009         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13010         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13011         vect_analyze_group_access, vect_analyze_data_ref_access,
13012         vect_create_data_ref_ptr, vect_transform_strided_load,
13013         vect_record_strided_load_vectors): Likewise.
13014         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13015         vect_model_load_cost, vectorizable_store, vectorizable_load,
13016         vect_remove_stores, new_stmt_vec_info): Likewise.
13017         * tree-vect-slp.c (vect_build_slp_tree,
13018         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13019
13020 2011-05-18  Richard Guenther  <rguenther@suse.de>
13021
13022         PR middle-end/48989
13023         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13024         operand verification.
13025         (verify_gimple_assign_binary): Likewise.
13026         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13027         to non-1-precision BOOLEAN_TYPEs.
13028
13029 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13030
13031         PR target/45098
13032         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13033
13034 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13035
13036         PR tree-optimization/49000
13037         * tree-ssa.c (execute_update_addresses_taken): Call
13038         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13039         be rewritten and decl has been marked for renaming, reset
13040         the debug stmt.
13041
13042 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13043
13044         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13045         enum_opts_set when testing if attributes have set -mfpmath=.
13046
13047 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13048
13049         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13050
13051 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13052
13053         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13054         info->entry with 0
13055         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13056         id.transform_lang_insert_block with NULL.
13057
13058 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13059
13060         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13061         (output_fp_compare): Change args 3 and 4 to bool.
13062         (ix86_expand_call): Change arg 6 to bool.
13063         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13064         (ix86_attr_length_vex_default): Change arg 3 to bool.
13065         * config/i386/i386.md: Update all uses.
13066         * config/i386/i386.c: Ditto.
13067         (ix86_flags_dependent): Change return type to bool.
13068
13069 2011-05-17  Richard Guenther  <rguenther@suse.de>
13070
13071         * gimple.c (type_hash_pair_compare): Fix comparison.
13072
13073 2011-05-17  Richard Guenther  <rguenther@suse.de>
13074
13075         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13076         case some more, fix final hash value of the non-singleton case.
13077
13078 2011-05-17  Richard Guenther  <rguenther@suse.de>
13079
13080         PR bootstrap/49013
13081         Revert
13082         2011-05-16  Richard Guenther  <rguenther@suse.de>
13083
13084         * gimple.c (gimple_types_compatible_p_1): Use names of the
13085         type itself, not its main variant.
13086         (iterative_hash_gimple_type): Likewise.
13087
13088 2011-05-17  Richard Guenther  <rguenther@suse.de>
13089
13090         * gimple.c (gimple_register_canonical_type): Use the main-variant
13091         leader for computing the canonical type.
13092
13093 2011-05-17  Nick Clifton  <nickc@redhat.com>
13094
13095         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13096         moves.
13097
13098         * config/rx/rx.md: Add peephole to remove redundant extensions
13099         after loads.
13100         (bitset_in_memory): Use rx_restricted_mem_operand.
13101         (bitinvert_in_memory): Likewise.
13102         (bitclr_in_memory): Likewise.
13103
13104 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13105             Nick Clifton  <nickc@redhat.com>
13106
13107         * config/rx/rx.md: Add peepholes to match a register move followed
13108         by a comparison of the moved register.  Replace these with an
13109         addition of zero that does both actions in one instruction.
13110
13111 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13112
13113         PR target/48986
13114         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13115         predicate to allow CONST_INT.
13116         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13117
13118 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13119
13120         * opts-common.c (opt_enum_arg_to_value): New.
13121         * opts.h (opt_enum_arg_to_value): Declare.
13122         * config/i386/i386.opt (fpmath): Remove.
13123         (mfpmath=): Use Enum, Init and Save.
13124         (fpmath_unit): New Enum and EnumValue entries.
13125         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13126         name for function fpmath state.
13127         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13128         * config/i386/i386.c: Include diagnostic.h.
13129         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13130         (ix86_target_string): Take enum fpmath_unit value instead of string.
13131         (ix86_debug_options): Update call to ix86_target_string.
13132         (ix86_option_override_internal): Don't process fpmath strings here.
13133         (x86_function_specific_save, ix86_function_specific_restore):
13134         Don't handle fpmath state specially.
13135         (ix86_function_specific_print): Pass fpmath state to
13136         ix86_target_string instead of printing in this function.
13137         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13138         Handle enum attributes.
13139         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13140         (ix86_valid_target_attribute_tree): Update option_strings
13141         handling.  Handle fpmath as enum option.
13142         (ix86_can_inline_p): Update field names for function fpmath state.
13143         (ix86_expand_builtin): Update call to ix86_target_string.
13144         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13145         (ix86_fpmath): Remove.
13146         * config/i386/t-i386 (i386.o): Update dependencies.
13147
13148 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13149
13150         PR preprocessor/48677
13151         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13152         from decoded_options[0], not from itself.
13153
13154 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13155
13156         * config/i386/constraints.md (z): New constraint.
13157         * config/i386/i386.c (c): New mode attribute.
13158         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13159         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13160         constraint for operand 0.
13161         (*call_vzeroupper): Ditto.
13162         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13163         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13164         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13165         Use "lzm" constraint for operand 0.
13166         (*call_pop_vzeroupper): Ditto.
13167         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13168         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13169         constraint for operand 0.
13170         (*sibcall_vzeroupper): Ditto.
13171         (*sibcall_rex64_ms_sysv): Ditto.
13172         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13173         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13174         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13175         (*sibcall_pop_vzeroupper): Ditto.
13176         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13177         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13178         mode iterator.  Use "<c>zm" constraint for operand 1.
13179         (*call_value_vzeroupper): Ditto.
13180         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13181         for operand 1.
13182         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13183         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13184         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13185         (*call_value_pop_vzeroupper): Ditto.
13186         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13187         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13188         mode iterator.  Use "Uz" constraint for operand 1.
13189         (*sibcall_value_vzeroupper): Ditto.
13190         (*sibcall_value_rex64_ms_sysv): Ditto.
13191         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13192         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13193         constraint for operand 1.
13194         (*sibcall_value_pop_vzeroupper): Ditto.
13195         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13196         and "z" constraint for operand 2.
13197         (*tls_global_dynamic_32_gnu): Ditto.
13198         (*tls_local_dynamic_base_32_gnu): Ditto.
13199         (*tls_local_dynamic_base_64): Ditto.
13200         (*tls_local_dynamic_32_once): Ditto.
13201         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13202         Update all callers.
13203         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13204
13205 2011-05-16  Richard Guenther  <rguenther@suse.de>
13206
13207         * gimple.c (gimple_types_compatible_p_1): Use names of the
13208         type itself, not its main variant.
13209         (iterative_hash_gimple_type): Likewise.
13210
13211 2011-05-16  Richard Guenther  <rguenther@suse.de>
13212
13213         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13214         always visit pointer target and function result and argument types.
13215
13216 2011-05-16  Jason Merrill  <jason@redhat.com>
13217
13218         PR c++/48999
13219         * tree-inline.c (copy_statement_list): Put back recursion.
13220
13221 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13222
13223         PR target/27663
13224         PR target/41076
13225         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13226         * config/avr/avr.md ("*ior<mode>qi.byte0",
13227         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13228
13229 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13230
13231         PR target/45099
13232         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13233         register is needed for a function argument.
13234
13235 2011-05-16  Richard Guenther  <rguenther@suse.de>
13236
13237         * gimple.c (struct type_hash_pair): New type.
13238         (type_hash_pair_compare): New function.
13239         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13240
13241 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13242
13243         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13244
13245 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13246
13247         * config/i386/i386.md (floating point move splitters): Fix
13248         usage of standard_80387_constant_p.
13249         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13250
13251 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13252
13253         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13254
13255 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13256
13257         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13258         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13259         (tree_ssa_lim_finalize): Likewise.
13260
13261 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
13262
13263         * config/i386/constraint.md (Yd, Yx): New register constraints.
13264         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
13265         Yd conditional register constraint.
13266         (*movtf_internal): Use standard_sse_constant_opcode.
13267         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
13268         Yx conditional register constraint.
13269         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
13270         Yd conditional register constraint.  Use standard_sse_constant_p to
13271         check for valid SSE constants and call standard_sse_constant_opcode to
13272         output SSE insn.
13273         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13274         constants and call standard_sse_constant_opcode to output SSE insn.
13275         * config/i386/i386.c (ix86_option_ovverride_internal): Set
13276         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
13277         optimize_size is set.
13278         (standard_sse_constant_opcode): Output conditional AVX insn templates.
13279
13280 2011-05-14  Tobias Burnus  <burnus@net-b.de>
13281
13282         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13283
13284 2011-05-13  Martin Jambor  <mjambor@suse.cz>
13285
13286         * ipa-prop.c (ipa_cst_from_jfunc): New function.
13287         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13288         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13289         (evaluate_conditions_for_ipcp_clone): Removed.
13290         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13291         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13292         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13293
13294 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13295
13296         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13297         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13298         lieu of MAY_HAVE_DEBUG_STMTS.
13299         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13300         debug statements if !MAY_HAVE_DEBUG_STMTS.
13301
13302 2011-05-13  Martin Thuresson  <martint@google.com>
13303
13304         PR gcov-profile/47793
13305         * libgcov.c (gcov_exit): Support relative profile paths.
13306         * doc/invoke.texi (-fprofile-dir): Update for above change.
13307
13308 2011-05-13  Richard Guenther  <rguenther@suse.de>
13309
13310         * gimple.c (gimple_canonical_types_compatible_p): Do not use
13311         type-pair caching, do not compare hashes.
13312
13313 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
13314
13315         PR middle-end/48965
13316         * tree-cfg.c (edge_to_cases_cleanup): Return true.
13317         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13318
13319 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13320
13321         * gimplify.c (gimplify_expr): Make sure operand is boolified.
13322         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13323         compatible type for TRUTH_NOT_EXPR.
13324
13325 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13326
13327         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13328         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
13329         can_create_pseudo_p ().
13330
13331 2011-05-13  Richard Guenther  <rguenther@suse.de>
13332
13333         PR lto/48978
13334         * gimple.c (iterative_hash_gimple_type): Revert change in
13335         pointer target and function result and argument hashing.
13336
13337 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
13338
13339         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13340         (*movxf_internal_nointeger): Ditto.
13341         (*movdf_internal_rex64): Ditto.
13342         (*movdf_internal): Ditto.
13343         (*movdf_internal_nointeger): Ditto.
13344         (*movsf_internal): Ditto.
13345         (sincos splitters): Use can_create_pseudo ().
13346
13347 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
13348
13349         * config/i386/i386-opts.h: New.
13350         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13351         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13352         ix86_section_threshold): Remove.
13353         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
13354         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13355         OPT_mbranch_cost_.
13356         (ix86_option_override_internal): Don't decode strings for options
13357         other than -march=, -mtune= and -mfpmath=.  Don't allow for
13358         __attribute__ uses in remaining diagnostics for options with
13359         string arguments.  Don't check for integer arguments being negative.
13360         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13361         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13362         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13363         ix86_branch_cost, ix86_section_threshold): Remove.
13364         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13365         HeaderInclude.
13366         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13367         but not Var.
13368         (masm=): Use Enum and Init.
13369         (asm_dialect): New Enum and EnumValue entries.
13370         (mbranch-cost=): Use UInteger.
13371         (mlarge-data-threshold=): Use UInteger and Init.
13372         (mcmodel=): Use Enum and Init.
13373         (cmodel): New Enum and EnumValue entries.
13374         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13375         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13376         mregparm=): Use UInteger.
13377         (mstringop-strategy=): Use Enum and Init.
13378         (stringop_alg): New Enum and EnumValue entries.
13379         (mtls-dialect=): Use Enum and Init.
13380         (tls_dialect): New Enum and EnumValue entries.
13381         (mabi=): Use Enum and Init.
13382         (calling_abi): New Enum and EnumValue entries.
13383         (mveclibabi=): Use Enum and Init.
13384         (ix86_veclibabi): New Enum and EnumValue entries.
13385
13386 2011-05-13  Nick Clifton  <nickc@redhat.com>
13387
13388         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13389         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13390
13391 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13392
13393         PR middle-end/48984
13394         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13395         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13396         (gimple_boolify): Check for cast for boolean_type_node instead for
13397         BOOLEAN_TYPE.
13398
13399 2011-05-13  Richard Guenther  <rguenther@suse.de>
13400
13401         PR tree-optimization/48172
13402         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13403         multiplying by number of iterations for equal step.
13404         (vect_create_cond_for_alias_checks): Likewise.
13405
13406 2011-05-13  Andreas Schwab  <schwab@redhat.com>
13407
13408         * configure.ac: Use AS_HELP_STRING throughout.
13409         * configure: Regenerate.
13410
13411 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13412
13413         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13414         (ix86_emit_restore_regs_using_mov): Likewise.
13415         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13416
13417 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13418
13419         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13420         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13421         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13422         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13423         RTX_OK_FOR_OLO10_P): ...here.
13424         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13425         SYMBOLIC_CONST.
13426
13427 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13428
13429         * gimplify.c (gimple_boolify): Re-boolify expression
13430         arguments even if expression type is of kind BOOLEAN_TYPE.
13431         (gimplify_boolean_expr): Removed.
13432         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13433         and XOR. Additional take care that we keep expression's type.
13434         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13435         of TRUTH_AND|OR|XOR_EXPR.
13436
13437 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13438
13439         PR tree-optimization/48975
13440         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13441         on all bbs here and free and clear ifc_bbs at the end.
13442
13443 2011-05-12  Richard Guenther  <rguenther@suse.de>
13444
13445         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13446         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13447         until after simple checks.
13448         (gimple_types_compatible_p): Likewise.
13449         (iterative_hash_gimple_type): Always hash pointer targets
13450         and function return and argument types.
13451         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13452         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13453         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13454         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13455         completely in the simple compare section.
13456         (gimple_register_canonical_type): Query the cache again after
13457         registering.
13458
13459 2011-05-12  Richard Guenther  <rguenther@suse.de>
13460
13461         PR tree-optimization/48172
13462         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13463         the number of iterations from the segment size calculation.
13464         (vect_create_cond_for_alias_checks): Adjust.
13465
13466 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13467
13468         PR debug/48967
13469         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13470         if validate_subreg fails.
13471
13472 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13473
13474         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13475         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13476         early.
13477
13478 2011-05-12  DJ Delorie  <dj@redhat.com>
13479
13480         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13481         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13482         created builtin into rx_builtins array.
13483         (rx_builtin_decl): New function.
13484         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13485
13486 2011-05-12  DJ Delorie  <dj@redhat.com>
13487             Nick Clifton  <nickc@redhat.com>
13488
13489         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13490         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13491         (rx_is_legitimate_address): Add pre-decrement and post-increment
13492         addressing in HImode and QImode.  Fix test for out of range
13493         REG+INT addressing.
13494         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13495         (rx_align_for_label): Test label before extracting its usage count.
13496         (rx_adjust_insn_lengths): Fix selection of insn codes.
13497         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13498
13499 2011-05-11  Jason Merrill  <jason@redhat.com>
13500
13501         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13502
13503 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13504
13505         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13506         reindent the subsequent block.
13507
13508 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13509             Paul Pluzhnikov  <ppluzhnikov@google.com>
13510
13511         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13512         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13513         * config.in: Add LINKER_HASH_STYLE.
13514         * configure.ac: Add --with-linker-hash-style.
13515         * configure: Regenerate.
13516
13517 2011-05-11  Richard Guenther  <rguenther@suse.de>
13518
13519         PR middle-end/48964
13520         * gimple.c (iterative_hash_canonical_type): Fix typo.
13521
13522 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13523
13524         * config/i386/i386.c (legitimize_tls_address)
13525         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13526         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13527         __tls_get_addr symbol reference here.  Update call to
13528         gen_tls_global_dynamic_{32,64} for added arguments.
13529         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13530         expanders directly for TARGET_GNU2_TLS.  Determine
13531         __tls_get_addr symbol reference here.  Update call to
13532         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13533         unique UNSPEC REG_EQUIV to libcall block.
13534         (ix86_tls_get_addr): Declare static.
13535         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13536         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13537         Do not determine pic and __tls_get_addr symbol reference here. Do not
13538         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13539         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13540         (tls_global_dynamic_64): Add operand 2.  Do not determine
13541         __tls_get_addr symbol reference here.  Do not call
13542         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13543         (tls_local_dynamic_base64): Ditto for operand 1.
13544
13545 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13546
13547         * function.c (expand_function_start): Initialize stack_check_probe_note
13548         only if the generic stack checking mechanism is used.
13549
13550 2011-05-11  Richard Guenther  <rguenther@suse.de>
13551
13552         PR tree-optimization/15256
13553         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13554         (A & B) | C, combine (A op CST1) op CST2.
13555         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13556         visit assigns that have uses.
13557
13558 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13559
13560         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13561         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13562         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13563         (unpack_value_fields): Adjust for renaming.
13564         (lto_input_ts_type_tree_pointers): Split into...
13565         (lto_input_ts_type_common_tree_pointer): ...this and...
13566         (lto_input_ts_type_non_common_tree_pointers): ...this.
13567         (lto_input_tree_pointers): Adjust for above split.
13568         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13569         (pack_ts_type_common_value_fields): ...this.  Update comment.
13570         (lto_output_ts_type_tree_pointers): Split into...
13571         (lto_output_ts_type_common_tree_pointers): ...this and...
13572         (lto_output_ts_type_non_common_tree_pointers): ...this.
13573         (lto_output_tree_pointers): Adjust for above split.
13574         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13575         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13576         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13577         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13578         Define.
13579         (struct tree_type): Split into...
13580         (struct tree_type_common: ...this and...
13581         (struct tree_type_with_lang_specific): ...this and...
13582         (struct tree_type_non_common): ...this.  Adjust accessor macros
13583         accordingly.
13584         (TYPE_VALUES_RAW): Define.
13585         (union tree_node): Update for above changes.
13586         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13587         TS_TYPE_NON_COMMON.
13588         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13589         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13590         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13591         * treestructu.def (TS_TYPE): Remove.
13592         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13593         Define.
13594
13595 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13596
13597         PR debug/48159
13598         * tree-ssa.c (reset_debug_uses): New function.
13599         * tree-flow.h (reset_debug_uses): New prototype.
13600         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13601         * tree-loop-distribution.c (generate_loops_for_partition): Call
13602         reset_debug_uses on the stmts that will be removed.  Keep around
13603         all debug stmts, don't count them as bits in partition bitmap.
13604         (generate_builtin): Don't count debug stmts or labels as bits in
13605         partition bitmap.
13606
13607 2011-05-11  Richard Guenther  <rguenther@suse.de>
13608
13609         * gimple.c (gimple_type_hash_1): Merge with ...
13610         (gimple_type_hash): ... this.
13611         (gtc_visit): Remove mode parameter and simplify accordingly.
13612         (gimple_types_compatible_p_1): Likewise.
13613         (gimple_types_compatible_p): Likewise.
13614         (iterative_hash_gimple_type): Likewise.
13615         (visit): Likewise.
13616         (gimple_type_eq): Adjust.
13617
13618 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13619
13620         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13621         enters the branch create an anti edge in the opposite direction
13622         to prevent the creation of reg-moves.
13623         * modulo-sched.c: Adjust comment to reflect the fact we are
13624         scheduling closing branch.
13625         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13626         (stage_count): New field in struct partial_schedule.
13627         (calculate_stage_count): New function.
13628         (normalize_sched_times): Rename to reset_sched_times and handle
13629         incrementing the sched time of the nodes by a constant value
13630         passed as parameter.
13631         (duplicate_insns_of_cycles): Skip closing branch.
13632         (sms_schedule_by_order): Schedule closing branch.
13633         (ps_insn_find_column): Handle closing branch.
13634         (sms_schedule): Call reset_sched_times and adjust the code to
13635         support scheduling of the closing branch.
13636         (ps_insert_empty_row): Update calls to normalize_sched_times
13637         and rotate_partial_schedule functions.
13638
13639 2011-05-11  Richard Guenther  <rguenther@suse.de>
13640
13641         PR middle-end/48953
13642         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13643
13644 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
13645
13646         * opts.c (finish_options): Move warning settings from process_options.
13647         * toplev.c (process_options): Move warning settings to finish_options.
13648
13649 2011-05-11  Richard Guenther  <rguenther@suse.de>
13650
13651         PR tree-optimization/18041
13652         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13653         (simplify_bitwise_binary): ... this.  Handle operand conversions
13654         by applying them to the result instead.
13655         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
13656
13657 2011-05-11  Richard Guenther  <rguenther@suse.de>
13658
13659         * gimple.c (gimple_canonical_types_compatible_p): Split out
13660         from gimple_types_compatible_p and friends.  Do not recurse
13661         to pointed-to types.
13662         (gimple_canonical_type_eq): Use it.
13663         (iterative_hash_canonical_type): Split out from
13664         iterative_hash_gimple_type and friends.  Do not recurse
13665         to pointed-to types.
13666         (gimple_canonical_type_hash): Use it, allocate the hash here.
13667
13668 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13669
13670         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13671         recognizing doloop.
13672
13673 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13674
13675         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13676         instead of PREV_INSN.
13677
13678 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13679
13680         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13681         * loop-doloop.c (doloop_condition_get): Likewise.
13682         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13683         (doloop_end): New.
13684         * config/arm/arm.md (*addsi3_compare0): Remove "*".
13685
13686 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13687
13688         * tree.def (CASE_LABEL_EXPR): Add an operand.
13689         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13690
13691 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13692
13693         * c-decl.c (c_override_global_bindings_to_false): Remove.
13694         (global_bindings_p): Don't check
13695         c_override_global_bindings_to_false.
13696         * c-tree.h (c_override_global_bindings_to_false): Remove.
13697         * c-typeck.c (composite_type): Don't set
13698         c_override_global_bindings_to_false.
13699
13700 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13701
13702         PR target/48857, 48495
13703         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13704         (VSX_MODE): Ditto.
13705         (VSX_MOVE_MODE): Ditto.
13706         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13707         VSX vector types.  Add V2DImode.
13708         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13709         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13710         (MODES_TIEABLE_P): Ditto.
13711
13712         * config/rs6000/rs6000.c (rs6000_emit_move): Use
13713         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13714         VSX_VECTOR_MODE.
13715         (init_cumulative_args): Ditto.
13716         (rs6000_function_arg_boundary): Ditto.
13717         (rs6000_function_arg_advance_1): Ditto.
13718         (rs6000_function_arg): Ditto.
13719         (rs6000_function_ok_for_sibcall): Ditto.
13720         (emit_frame_save): Ditto.
13721         (rs6000_function_value): Ditto.
13722         (rs6000_libcall_value): Ditto.
13723
13724 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13725
13726         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13727         i386/darwin-lib.h to $libgcc_tm_file.
13728         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13729
13730 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13731
13732         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13733
13734 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13735
13736         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13737         * config/rs6000/rs6000-tables.opt: New file (generated).
13738         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13739         rs6000/rs6000-tables.opt to extra_options.
13740         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13741         * config/rs6000/rs6000.c (rs6000_select): Remove.
13742         (processor_target_table): Move contents to rs6000-cpus.def.
13743         (darwin_rs6000_override_options): Check
13744         global_options_set.x_rs6000_cpu_index instead of
13745         rs6000_select[1].string.
13746         (rs6000_option_override_internal): Likewise.
13747         (rs6000_handle_option): Don't assert that global structures are in
13748         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
13749         (rs6000_default_cpu): New variable.
13750         (rs6000_file_start): Set it instead of local default_cpu.  Check
13751         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13752         global_options_set.x_rs6000_tune_index instead of rs6000_select.
13753         (rs6000_darwin_file_start): Check rs6000_default_cpu and
13754         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13755         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13756         rs6000_select): Remove.
13757         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13758         Remove.
13759         (mcpu=, mtune=): Use Var, Init, Enum and Save.
13760         * config/rs6000/t-rs6000
13761         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13762         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13763         global_options_set.x_rs6000_cpu_index instead of
13764         rs6000_select[1].string.
13765         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13766         global_options_set.x_rs6000_cpu_index instead of
13767         rs6000_select[1].string.
13768
13769 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13770
13771         * config.gcc (libgcc_tm_file): Define instead of including files
13772         from ../../libgcc/config/ in tm_file.
13773         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13774         * configure: Regenerate.
13775         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13776         libgcc_tm.h, cs-libgcc_tm.h): New.
13777         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13778         (clean): Remove libgcc_tm.h.
13779         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13780         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13781         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13782
13783 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
13784
13785         PR target/48896
13786         * config/avr/avr.c (avr_ret_register): Return unsigned int
13787         instead of int.
13788         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13789         it to avr_libcall_value.
13790         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13791         expand_expr.
13792         (avr_expand_binop_builtin): Ditto.
13793         (avr_expand_unop_builtin): Ditto.
13794
13795 2011-05-10  DJ Delorie  <dj@redhat.com>
13796
13797         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13798         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13799         * config/rx/rx.c (rx_align_for_label): Add label and
13800         uses_threshold parameters.  Do not align when the label is not
13801         used enough.
13802         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13803
13804 2011-05-10  Richard Guenther  <rguenther@suse.de>
13805
13806         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13807         a series of conversions and apply foldings similar to what
13808         fold-const does.
13809         (tree_ssa_forward_propagate_single_use_vars): Call it.
13810
13811 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
13812
13813         PR tree-optimization/48611
13814         PR tree-optimization/48794
13815         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13816         referenced from RESX or EH_DISPATCH arguments.
13817
13818         PR debug/48928
13819         * dfp.c (decimal_to_decnumber): Handle conversion from
13820         dconst{1,2,m1,half}.
13821
13822 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13823
13824         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13825         for !flag_prefer_avx128.
13826         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13827
13828 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13829
13830         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13831         (fold_ternary_loc): Use expr_location_or.
13832
13833 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13834
13835         PR debug/48853
13836         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13837         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13838         Pmode and mem_mode is not VOIDmode.
13839
13840 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
13841
13842         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13843         TYPE_QUAL_RESTRICT): Convert to enum.
13844
13845 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13846
13847         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13848         (const_pow2_1_to_8_operand): Ditto.
13849         (const_pow2_1_to_128_operand): Ditto.
13850         (const_pow2_1_to_32768_operand): Ditto.
13851         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13852         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
13853         in insn constraint to check integer value of operand 3.
13854         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13855
13856         (PINSR_MODE): New mode iterator.
13857         (sse2p4_1): New mode attribute.
13858         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13859         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13860         iterator.  Use const_int_operand instead of
13861         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
13862         exact_log2 in insn constraint to check integer value of operand 3.
13863
13864 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13865
13866         * config/i386/sse.md (blendbits): Remove mode attribute.
13867         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13868         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13869         Check integer value of operand 3 in insn constraint.
13870
13871 2011-05-09  Richard Guenther  <rguenther@suse.de>
13872
13873         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13874         for diagnostics.
13875         (lto_symtab_merge): Likewise.  Do not register types here.
13876         (lto_symtab_merge_decls_2): Likewise.
13877         (lto_symtab_merge_decls_1): Likewise.
13878         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13879         * gimple.c (enum gtc_mode): Declare.
13880         (gimple_types_compatible_p): Make static.
13881
13882 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13883
13884         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13885         temporary register to match Pmode.
13886
13887 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13888
13889         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13890         and *vec_concatv4si_1_avx.
13891
13892 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13893
13894         PR rtl-optimization/48927
13895         * ira-conflicts.c (commutative_constraint_p): Use
13896         recog_data.alternative_enabled_p to disable alternatives where
13897         "enabled" attribute is false.
13898         (get_dup_num): Ditto.
13899         * ira-lives.c (single_reg_class): Ditto.
13900         (ira_implicitly_set_insn_hard_regs): Ditto.
13901
13902 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13903
13904         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13905         (dataflow_set_preserve_mem_locs): Likewise.
13906
13907 2011-05-09  Philipp Thomas  <pth@suse.de>
13908
13909         * config/mep/mep.c (mep_validate_vliw): Syntax description
13910         should not be translated.
13911
13912 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
13915         * config/mips/mips-tables.opt: New file (generated).
13916         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
13917         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
13918         MIPS_ARCH_OPTION_NATIVE): Define.
13919         * config/mips/mips.c (mips_cpu_info_table): Move contents to
13920         mips-cpus.def.
13921         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
13922         mips_parse_cpu): Remove.
13923         (mips_cpu_info_from_opt, mips_default_arch): New.
13924         (mips_handle_option): Don't assert that global structures are in
13925         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
13926         (mips_option_override): Use new variables and functions to set
13927         state of these options.  Use strcmp to check for individual CPU names.
13928         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
13929         definition.
13930         * config/mips/mips.opt (march=): Use ToLower and Enum.
13931         (mips): Use ToLower, Enum and Var.
13932         (mtune=): Use ToLower and Enum.
13933         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
13934
13935 2011-05-08  Jan Hubicka  <jh@suse.cz>
13936
13937         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
13938         Arrange type pairs to be UID ordered.
13939         (gimple_lookup_type_leader): Make inline.
13940
13941 2011-05-09  Nick Clifton  <nickc@redhat.com>
13942
13943         PR target/48899
13944         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
13945         PROCESSOR_DEFAULT.
13946
13947         PR target/48897
13948         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
13949         variable 's'.
13950
13951 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
13952
13953         * combine.c (simplify_comparison): Abstract out parts into...
13954         (simplify_compare_const): ... new function.
13955         (try_combine): Generalize parallel arithmetic/compare combining
13956         to call simplify_compare_const() and CANONICALIZE_COMPARE().
13957
13958 2011-05-08  Jan Hubicka  <jh@suse.cz>
13959
13960         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
13961         (cgraph_create_virtual_clone): Call hooks once virtual clone
13962         is finished.
13963         * cgraph.h (cgraph_clone_node): Update prototype.
13964         * ipa-cp.c (ipcp_estimate_growth): Use
13965         estimate_ipcp_clone_size_and_time.
13966         * ipa-inline-transform.c (clone_inlined_nodes): Update.
13967         * lto-cgraph.c (input_node): Update.
13968         * ipa-inline.c (recursive_inlining): Update.
13969         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
13970         (evaluate_conditions_for_known_args): Break out from ...
13971         (evaluate_conditions_for_edge): ... here.
13972         (evaluate_conditions_for_ipcp_clone): New function.
13973         (inline_node_duplication_hook): Update clone summary based
13974         on parameter map.
13975         (estimate_callee_size_and_time): Rename to ...
13976         (estimate_node_size_and_time): take NODE instead of EDGE;
13977         take POSSIBLE_TRUTHS as argument.
13978         (estimate_callee_size_and_time): Update.
13979         (estimate_ipcp_clone_size_and_time): New function.
13980         (do_estimate_edge_time): Update.
13981
13982 2011-05-08  Richard Guenther  <rguenther@suse.de>
13983
13984         PR middle-end/48908
13985         PR middle-end/48905
13986         * expmed.c (expand_shift_1): Compute adjusted constant shift
13987         amount manually.
13988
13989 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13990
13991         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
13992
13993 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13994
13995         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
13996
13997 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13998
13999         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14000
14001 2011-05-07  Jan Hubicka  <jh@suse.cz>
14002
14003         * ipa-inline-transform.c (inline_call): Account when program size
14004         decreases.
14005         * ipa-inline.c (relative_time_benefit): New function.
14006         (edge_badness): Reorganize to be power 2 based; fix thinko when
14007         computing badness for negative growth; update comments to match
14008         reality; better dumps.
14009
14010 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14011
14012         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14013         type to bool and adjust comment.
14014         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14015         (fold_mathfn_compare): Remove calls to global_bindings_p.
14016         (fold_inf_compare): Likewise.
14017         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14018         * c-tree.h (global_bindings_p): Adjust prototype.
14019         * c-decl.c (global_bindings_p): Return bool and simplify.
14020
14021 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14022
14023         PR tree-optimization/48837
14024         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14025         when accumulator transformation is performed.
14026
14027 2011-05-06  Jan Hubicka  <jh@suse.cz>
14028
14029         * i386.h (ix86_tune_indices): Add
14030         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14031         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14032         * i386.c (initial_ix86_tune_features): Add
14033         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14034         (software_prefetching_beneficial_p): Remove predicate.
14035         (ix86_option_override_internal): Use new macro.
14036
14037 2011-05-06  Jan Hubicka  <jh@suse.cz>
14038
14039         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14040
14041 2011-05-06  Jan Hubicka  <jh@suse.cz>
14042
14043         * cgraph.c (cgraph_add_thunk): Create real function node instead
14044         of alias node; finalize it and mark needed/reachale; arrange visibility
14045         to be right and add it into the corresponding same comdat group list.
14046         (dump_cgraph_node): Dump thunks.
14047         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14048         cgraph_function_with_gimple_body_p,
14049         cgraph_first_function_with_gimple_body,
14050         cgraph_next_function_with_gimple_body): New functions.
14051         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14052         New macros.
14053         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14054         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14055         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14056         devirtualization when optimizing.
14057         (verify_cgraph_node): Verify thunks.
14058         (cgraph_analyze_function): Analyze thunks.
14059         (cgraph_mark_functions_to_output): Output thunks only in combination
14060         with function they are assigned to.
14061         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14062         alias into normal node.
14063         (assemble_thunks): New functoin.
14064         (cgraph_expand_function): Use it.
14065         * lto-cgraph.c (lto_output_node): Stream thunks.
14066         (input_overwrite_node): Stream in thunks.
14067         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14068         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14069         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14070         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14071         (inline_analyze_function): Do not care about thunk jump functions.
14072         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14073         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14074         cgraph_function_with_gimple_body_p.
14075         * passes.c (do_per_function_toporder): Use
14076         cgraph_function_with_gimple_body_p.
14077         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14078         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14079         (function_called_by_processed_nodes_p): Likewise.
14080
14081 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14082
14083         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14084         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14085         entries.
14086         (mabi=): Replace with separate entries for mabi=altivec,
14087         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14088         mabi=ieeelongdouble and mabi=ibmlongdouble.
14089         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14090         check for -mabi=spe without SPE ABI support here.
14091         (rs6000_handle_option): Replace OPT_mabi_ handling with
14092         OPT_mabi_altivec and OPT_mabi_spe handling.
14093
14094 2011-05-06  Cary Coutant  <ccoutant@google.com>
14095
14096         * dwarf2out.c (contains_subprogram_definition): New function.
14097         (should_move_die_to_comdat): Call it.
14098
14099 2011-05-06  Jeff Law  <law@redhat.com>
14100
14101         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14102         remove_ctrl_stmt_and_useless_edges.
14103         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14104         (fixup_template_block, thread_single_edge): Likewise.
14105         (mark_threaded_blocks): Use THREAD_TARGET.
14106
14107 2011-05-06  Alan Modra  <amodra@gmail.com>
14108
14109         PR target/48900
14110         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14111         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14112
14113 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14114
14115         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14116         constraint modifier to "r".
14117
14118 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14119
14120         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14121         fall through for OPT_mcmodel_.
14122
14123 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14124
14125         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14126         instruction sizes.
14127         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14128
14129 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14130
14131         PR target/47930
14132         * config/arm/arm.opt (marm): Document it.
14133         (mthumb): Reject negative variant.
14134
14135 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14136
14137         PR target/48898
14138         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14139         Fix typo in "ccvt" variable name.
14140
14141 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14142
14143         PR target/48895
14144         * config/vms/vms-ar.c (main): Remove cwd variable.
14145
14146 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14147
14148         PR debug/48902
14149         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14150
14151 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14152
14153         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14154         * gimplify.c (gimplify_switch_expr): Likewise.
14155         * omp-low.c (expand_omp_sections): Likewise.
14156         * tree-eh.c (lower_try_finally_switch): Likewise.
14157         (lower_eh_dispatch): Likewise.
14158         * tree.h (build_case_label): Declare.
14159         * tree.c (build_case_label): Define.
14160
14161 2011-05-05  Jason Merrill  <jason@redhat.com>
14162
14163         PR c++/40975
14164         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14165         (copy_statement_list): Don't recurse.
14166         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14167         STATEMENT_LIST.
14168
14169 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14170
14171         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14172         through from -mfpu= handling.
14173         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14174
14175 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14176
14177         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14178         POST_MODIFY.
14179
14180 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14181
14182         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14183         for 11.31.
14184         (hppa[12]*-*-hpux11*): Ditto.
14185         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14186         * config/ia64/hpux-unix2003.h: New.
14187         * config/pa/pa-hpux1131.opt: New.
14188         * config/pa/pa-hpux1131.h: New.
14189         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14190         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14191         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14192
14193 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14194
14195         PR debug/48853
14196         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14197         instead of mode as 3rd argument to recursive call.
14198         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14199         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14200         VOIDmode.
14201         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14202         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14203         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14204         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14205
14206 2011-05-05  Julian Brown  <julian@codesourcery.com>
14207
14208         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14209         parenthesis in D-register case.
14210
14211 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14212
14213         * opt-functions.awk (var_type_struct): Handle Enum options.
14214         * optc-gen.awk: Don't check range of variables of character type.
14215         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14216         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14217         rs6000_sdata_name, rs6000_explicit_options): Remove.
14218         (rs6000_option_override_internal): Check for -malign-power here.
14219         Use global_options_set instead of rs6000_explicit_options.
14220         (rs6000_parse_fpu_option): Remove.
14221         (rs6000_handle_option): Access variables via opts and opts_set
14222         pointers.  Use error_at and warning_at.  Add fall-through
14223         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14224         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14225         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14226         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14227         here.  Don't use rs6000_parse_fpu_option.
14228         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14229         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14230         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14231         (mrecip=): Use Var.
14232         (mspe): Use Var and Save.
14233         (mtraceback=): Use Enum and Var.
14234         (rs6000_traceback_type): New Enum and EnumValue entries.
14235         (mfloat-gprs=): Use Enum, Var and Save.
14236         (rs6000_float_gprs): New Enum and EnumValue entries.
14237         (mlong-double-): use Var and Save.
14238         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14239         (malign-): Use Enum and Var.
14240         (rs6000_alignment_flags): New Enum and EnumValue entries.
14241         (mfpu=): Use Enum.
14242         (fpu_type_t): New Enum and EnumValue entries.
14243         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14244         global_options_set instead of rs6000_explicit_options.
14245         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14246         global_options_set instead of rs6000_explicit_options.
14247         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14248         global_options_set instead of rs6000_explicit_options.
14249         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14250         global_options_set instead of rs6000_explicit_options.
14251         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14252         global_options_set instead of rs6000_explicit_options.
14253         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14254         global_options_set instead of rs6000_explicit_options.
14255         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14256         definition.
14257         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14258         global_options_set instead of rs6000_explicit_options.
14259         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14260         (rs6000_cmodel): New Enum and EnumValue entries.
14261         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14262         global_options_set instead of rs6000_explicit_options.
14263         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14264         (mtls-size=): Use Enum and Var.
14265         (rs6000_tls_size): New Enum and EnumValue entries.
14266
14267 2011-05-05  Michael Matz  <matz@suse.de>
14268
14269         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14270         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14271         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14272         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14273         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14274         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14275         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14276         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14277         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14278         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14279         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14280         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14281         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14282         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14283         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14284         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14285
14286 2011-05-05  Richard Guenther  <rguenther@suse.de>
14287
14288         * expmed.c (expand_variable_shift): Rename to ...
14289         (expand_shift_1): ... this.  Take an expanded shift amount.
14290         For rotates recurse directly not building trees for the shift amount.
14291         (expand_variable_shift): Wrap around expand_shift_1.
14292         (expand_shift): Adjust.
14293
14294 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14295
14296         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14297
14298 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14299
14300         * tree.h (get_pending_sizes): Remove prototype.
14301         (put_pending_size): Likewise.
14302         (put_pending_sizes): Likewise.
14303         * stor-layout.c (pending_sizes): Delete.
14304         (get_pending_sizes): Likewise.
14305         (put_pending_size): Likewise.
14306         (put_pending_sizes): Likewise.
14307         (variable_size): Do not call put_pending_size and tidy up.
14308         * function.h (struct function): Remove dont_save_pending_sizes_p.
14309         * lto-streamer-in.c (input_function): Do not stream it.
14310         * lto-streamer-out.c (output_function): Likewise.
14311         * tree-inline.c (initialize_cfun): Do not copy it.
14312         * c-decl.c (store_parm_decls): Do not set it.
14313         * omp-low.c (create_task_copyfn): Likewise.
14314         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14315
14316 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
14317
14318         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14319         conditions.
14320         (*movdf_internal): Ditto.
14321         (*movdf_internal_nointeger): Ditto.
14322         (*movsf_internal): Ditto.
14323
14324 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14325
14326         * c-decl.c (finish_decl): Don't call get_pending_sizes.
14327         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
14328         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
14329         (c_variable_size): Remove.
14330         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
14331         call put_pending_sizes.
14332         (get_parm_info): Add parameter expr.  Use it to set
14333         arg_info->pending_sizes.
14334         (store_parm_decls): Use arg_info->pending_sizes instead or calling
14335         get_pending_sizes.
14336         * c-parser.c (c_parser_parms_declarator): Update call to
14337         c_parser_parms_list_declarator.
14338         (c_parser_parms_list_declarator): Take parameter expr.  Update
14339         call to push_parm_decl.  Update recursive call.  Don't call
14340         get_pending_sizes.  Update calls to get_parm_info.
14341         (c_parser_objc_method_definition): Update calls to
14342         c_parser_objc_method_decl and objc_start_method_definition.
14343         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14344         (c_parser_objc_method_decl): Add parameter expr.  Update call to
14345         grokparm.
14346         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14347         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14348         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14349
14350 2011-05-05  Michael Hope  <michael.hope@linaro.org>
14351
14352         PR pch/45979
14353         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14354         __ARM_EABI__ hosts.
14355
14356 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14357
14358         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14359         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14360         (spu_output_mi_thunk): New function.
14361
14362 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14363
14364         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14365         targetm.asm_out.print_operand.
14366         * config/sol2.c: Include target.h.
14367
14368 2011-05-04  Jan Hubicka  <jh@suse.cz>
14369
14370         * ipa-inline.c (reset_edge_caches): New function.
14371         (update_caller_keys): Add check_inlinablity_for; do not
14372         reset edge caches; remove now unnecesary loop.
14373         (update_callee_keys): Add comments; reset node_growth_cache of callee.
14374         (update_all_callee_keys): Likewise.
14375         (inline_small_functions): Sanity check cache; update code
14376         recomputing it.
14377
14378 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
14379
14380         PR rtl-optimization/47612
14381         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14382         as the last insn of the sequence to be moved.
14383
14384 2011-05-04  Tobias Burnus  <burnus@net-b.de>
14385
14386         PR fortran/48864
14387         * doc/invoke.texi (Ofast): Document that it
14388         enables Fortran's -fno-protect-parens.
14389
14390 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14391
14392         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14393
14394 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14395
14396         * stor-layout.c (variable_size): Do not issue errors.
14397
14398 2011-05-04  Richard Guenther  <rguenther@suse.de>
14399
14400         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14401         for array-ref indices.
14402         (tree_coverage_counter_addr): Likewise.
14403         (build_fn_info_type): Use size_int for index types.
14404         (build_gcov_info): Likewise.
14405
14406 2011-05-04  Richard Guenther  <rguenther@suse.de>
14407
14408         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14409         to build_int_cst.
14410         * c-typeck.c (really_start_incremental_init): Use bitsize_int
14411         for constructor indices.
14412         (push_init_level): Likewise.
14413
14414 2011-05-04  Richard Guenther  <rguenther@suse.de>
14415
14416         * explow.c (promote_mode): Move variable declarations before code.
14417
14418 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14419
14420         * tree.h (build_function_type_array): Declare.
14421         (build_varargs_function_type_array): Declare.
14422         (build_function_type_vec, build_varargs_function_type_vec): Define.
14423         * tree.c (build_function_type_array_1): New function.
14424         (build_function_type_array): New function.
14425         (build_varargs_function_type_array): New function.
14426
14427 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14428
14429         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14430         before setting STMT_VINFO_TYPE.
14431
14432 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14433
14434         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14435         instead of spu_pass_by_reference.
14436
14437 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14438
14439         * calls.c (emit_library_call_value_1): Invoke
14440         promote_function_mode hook on libcall arguments.
14441         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14442         argument being NULL.
14443         * targhooks.c (default_promote_function_mode): Lisewise.
14444         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14445         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14446
14447         * doc/tm.texi: Document that TYPE argument might be NULL.
14448
14449 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14450
14451         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14452
14453 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14454
14455         From Bernd Schmidt
14456         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14457
14458 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14459
14460         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14461         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14462         Move ...
14463         * mips-tfile.c: ... here.
14464         Don't include coretypes.h, tm.h, filenames.h.
14465         (saber_stop): Remove definition and all calls.
14466         [__SABER__]: Remove.
14467         (__LINE__): Remove default.
14468         (Size_t, Ptrdiff_t): Remove definitions.
14469         Replace by size_t, ptrdiff_t.
14470         [!MIPS_DEBUGGING_INFO]: Remove.
14471         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14472         (progname): Add const.
14473         (STATIC): Remove.
14474         Replace all uses by static.
14475         (ALIGN_SYMTABLE_OFFSET): Remove default.
14476         * mips-tdump.c: Don't include coretypes.h, tm.h.
14477         Remove !MIPS_IS_STAB guard.
14478         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14479         $(TM_H), filenames.h dependencies.
14480         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14481
14482 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14483
14484         From Jie Zhang
14485         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14486         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14487
14488 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14489
14490         From Bernd Schmidt
14491         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14492         account and save/restore RETS.
14493         (PROFILE_BEFORE_PROLOGUE): Define.
14494         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14495         the push insn to use predecrement.
14496
14497 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14498
14499         From Jie Zhang
14500         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14501
14502 2011-05-04  Nick Clifton  <nickc@redhat.com>
14503
14504         * config/mn10300/mn10300.c: Include cfgloop.h.
14505         (DUMP): New macro.
14506         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14507         Lcc or a FLcc insn into the instruction stream.
14508         (mn10300_block_contains_call): New function.  Returns true if the
14509         given basic block contains a CALL insn.
14510         (mn10300_loop_contains_call_insn): New function.  Returns true if
14511         the given loop contains a CALL insn.
14512         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14513         to use the SETLB and Lcc or FLcc insns.
14514         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14515         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14516         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14517         disable the SETLB optimization.
14518         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14519         __SETLB__ or __NO_SETLB__.
14520         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14521         (movsf_internal): Handle MDR register.
14522         (cmpsi): Make visible.
14523         (setlb): New pattern.
14524         (Lcc): New pattern.
14525         (FLcc): New pattern.
14526
14527 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14528
14529         PR target/48860
14530         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14531         for reg<->xmm moves.
14532         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14533         (vec_concatv2di_rex64_sse): Ditto.
14534         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14535         (*vec_extractv2di_1_rex64): Ditto.
14536
14537         Revert:
14538         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14539
14540         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14541         reg<->xmm moves.
14542         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14543
14544 2011-05-04  Richard Guenther  <rguenther@suse.de>
14545
14546         * tree.h (int_const_binop): Remove notrunc argument.
14547         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14548         create integer constants that are properly truncated.
14549         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14550         (const_binop): Remove zero notrunc argument to int_const_binop.
14551         (size_binop_loc): Likewise.
14552         (fold_div_compare): Likewise.
14553         (maybe_canonicalize_comparison_1): Likewise.
14554         (fold_comparison): Likewise.
14555         (fold_binary_loc): Likewise.
14556         (multiple_of_p): Likewise.
14557         * expr.c (store_constructor): Likewise.
14558         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14559         (maybe_fold_stmt_addition): Likewise.
14560         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14561         * stor-layout.c (layout_type): Likewise.
14562         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14563         * tree-sra.c (build_ref_for_offset): Likewise.
14564         (build_user_friendly_ref_for_offset): Likewise.
14565         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14566         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14567         * tree-ssa-loop-niter.c (inverse): Likewise.
14568         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14569         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14570         * tree-switch-conversion.c (check_range): Likewise.
14571         (build_constructors): Likewise.
14572         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14573         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14574         (extract_range_from_assert): Likewise.
14575         (vrp_int_const_binop): Likewise.
14576         (extract_range_from_binary_expr): Likewise.
14577         (extract_range_from_unary_expr): Likewise.
14578         (check_array_ref): Likewise.
14579         (find_case_label_range): Likewise.
14580         (simplify_div_or_mod_using_ranges): Likewise.
14581         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14582         comparing case labels for merging.
14583
14584 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14585
14586         * dwarf2out.c (debug_str_hash_forced): Removed.
14587         (gen_label_for_indirect_string): Removed.
14588         (get_debug_string_label): Removed.
14589         (AT_string_form): Generate label directly.
14590         (output_indirect_string): Test indirect_string_node for
14591         DW_FORM_strp instead of checking label and refcount.
14592         (prune_indirect_string): Removed.
14593         (prune_unused_types): Don't check debug_str_hash_forced or
14594         call prune_indirect_string.
14595
14596 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14597
14598         PR other/48093
14599         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14600
14601 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14602
14603         PR debug/47994
14604         PR debug/47919
14605         * combine.c (try_combine): Skip debug insns at m_split tests.
14606
14607 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14608
14609         PR42288
14610         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14611         when info_section_emitted.
14612
14613 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14614
14615         * config/mips/mips-opts.h: New.
14616         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14617         to mips-opts.h.
14618         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14619         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14620         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
14621         via opts pointer.
14622         * config/mips/mips.h (enum mips_code_readable_setting): Move to
14623         mips-opts.h.
14624         (mips_abi, mips_code_readable): Don't declare.
14625         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14626         (mabi=): Use Enum and Var.
14627         (mips_abi): New Enum and EnumValue entries.
14628         (mcode-readable=): Use Enum and Var.
14629         (mips_code_readable_setting): New Enum and EnumValue entries.
14630         (mr10k-cache-barrier=): Use Enum and Var.
14631         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14632
14633 2011-05-03  Jan Hubicka  <jh@suse.cz>
14634
14635         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14636         replace hash by pointer map.
14637         (cgraph_node_set_element_def, cgraph_node_set_element,
14638         const_cgraph_node_set_element, varpool_node_set_element_def,
14639         varpool_node_set_element, const_varpool_node_set_element): Remove.
14640         (free_cgraph_node_set, free_varpool_node_set): New function.
14641         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14642         * tree-emutls.c: Free varpool node set.
14643         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14644         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14645         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14646         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14647         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14648         Move here from ipa.c; implement using pointer_map
14649         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14650         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14651         debug_cgraph_node_set, varpool_node_set_new,
14652         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14653         dump_varpool_node_set, debug_varpool_node_set):
14654         Move to ipa-uitls.c.
14655         * passes.c (ipa_write_summaries): Update.
14656
14657 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14658
14659         From Mike Frysinger:
14660         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14661         bf542/bf544/bf547/bf548/bf549.
14662
14663 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14664
14665         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14666
14667 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14668
14669         From Bernd Schmidt:
14670         * config/bfin/bfin.md (MOVCC): New mode_macro.
14671         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14672         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
14673         comments from generated assembly.
14674
14675 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14676
14677         From Bernd Schmidt
14678         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14679         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14680         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14681         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14682         * config/bfin/lib1funcs.asm (___muldi3): New function.
14683
14684 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14685
14686         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14687         build_function_type_list instead of build_function_type.
14688         Rearrange initialization of `args' to do so.
14689
14690 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14691
14692         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14693         instead of build_function_type.
14694
14695 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14696
14697         * config/rs6000/rs6000.c (spe_init_builtins): Call
14698         build_function_type_list instead of build_function_type.
14699         (paired_init_builtins, altivec_init_builtins): Likewise.
14700         (builtin_function_type): Likewise.
14701
14702 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14703
14704         * config/sh/sh.c (sh_media_init_builtins): Call
14705         build_function_type_list instead of build_function_type.
14706
14707 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14708
14709         * config/sparc/sparc.c (sparc_file_end): Call
14710         build_function_type_list instead of build_function_type.
14711
14712 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14713
14714         * config/alpha/alpha.c (alpha_init_builtins): Call
14715         build_function_type_list instead of build_function_type.
14716
14717 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14718
14719         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14720         build_function_type_list instead of build_function_type.
14721
14722 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14723
14724         * config/iq2000/i2000.c (iq2000_init_builtins): Call
14725         build_function_type_list instead of build_function_type.
14726         Delete `endlink' variable.
14727
14728 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14729
14730         * config/avr/avr.c (avr_init_builtins): Call
14731         build_function_type_list instead of build_function_type.
14732
14733 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14734
14735         * config/picochip/picochip.c (picochip_init_builtins): Call
14736         build_function_type_list instead of build_function_type.
14737         Delete `endlink' variable.
14738
14739 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14740
14741         * config/bfin/bfin.c (bfin_init_builtins): Call
14742         build_function_type_list instead of build_function_type.
14743
14744 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14745
14746         From Bernd Schmidt
14747         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14748         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
14749
14750 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14751
14752         From Jie Zhang:
14753         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14754         libbffastfp overrides libgcc when -mfast-fp.
14755
14756 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14757
14758         Originally from Bernd Schmidt
14759         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14760         * config/bfin/bfin.c (override_options): Test it and error if
14761         TARGET_FDPIC.
14762
14763 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14764
14765         Originally From Bernd Schmidt
14766         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14767         FD-PIC.
14768
14769 2011-05-03  Jeff Law  <law@redhat.com>
14770
14771         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14772         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14773         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14774         than accessing AUX field directly.  Free the AUX field before
14775         clearing it.
14776         (thread_block, thread_through_loop_header): Likewise.
14777         (thread_single_edge, mark_threaded_blocks): Likewise.
14778         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
14779         (register_jump_thread): Do not attempt to thread to a NULL edge.
14780
14781 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14782
14783         * function.c (init_function_start): Call decide_function_section.
14784         * varasm.c (decide_function_section): New function.
14785         (assemble_start_function): When not using
14786         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14787         or first_function_block_is_cold.
14788         * rtl.h (decide_function_section): Declare.
14789
14790 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14791             Jakub Jelinek  <jakub@redhat.com>
14792
14793         PR target/48774
14794         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14795         only succeed if req_mode is the same as set_mode.
14796
14797 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14798
14799         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14800         * genemit.c (gen_exp): Handle RETURN.
14801         * emit-rtl.c (verify_rtx_sharing): Likewise.
14802         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14803         * rtl.c (copy_rtx): RETURN is shared.
14804         * rtl.h (enum global_rtl_index): Add GR_RETURN.
14805         (ret_rtx): New.
14806         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14807         * config/s390/s390.c (s390_emit_epilogue): Likewise.
14808         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14809         * config/cris/cris.c (cris_expand_return): Likewise.
14810         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14811         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14812         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14813         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14814         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14815         Likewise.
14816         * config/v850/v850.c (expand_epilogue): Likewise.
14817         * config/bfin/bfin.c (bfin_expand_call): Likewise.
14818         * config/arm/arm.md (epilogue): Likewise.
14819         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14820         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14821         variable to ret_reg.
14822
14823 2011-05-03  Richard Guenther  <rguenther@suse.de>
14824
14825         PR lto/48846
14826         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14827         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14828         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14829
14830 2011-05-03  Richard Guenther  <rguenther@suse.de>
14831
14832         * c-decl.c (grokdeclarator): Instead of looking at
14833         TREE_OVERFLOW check if the constant fits in the index type.
14834
14835 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14836
14837         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14838         (vec_store_lanes<mode><mode>): Likewise.
14839
14840 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14841
14842         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14843         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14844         convert_optab_index values.
14845         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14846         * genopinit.c (optabs): Initialize the new optabs.
14847         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14848         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14849         (expand_STORE_LANES): New functions.
14850         * tree.h (build_array_type_nelts): Declare.
14851         * tree.c (build_array_type_nelts): New function.
14852         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14853         (vect_model_load_cost): Likewise.
14854         (vect_store_lanes_supported, vect_load_lanes_supported)
14855         (vect_record_strided_load_vectors): Declare.
14856         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14857         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14858         (vect_transform_strided_load): Split out statement recording into...
14859         (vect_record_strided_load_vectors): ...this new function.
14860         * tree-vect-stmts.c (create_vector_array, read_vector_array)
14861         (write_vector_array, create_array_ref): New functions.
14862         (vect_model_store_cost): Add store_lanes_p argument.
14863         (vect_model_load_cost): Add load_lanes_p argument.
14864         (vectorizable_store): Try to use store-lanes functions for
14865         interleaved stores.
14866         (vectorizable_load): Likewise load-lanes and loads.
14867         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14868         to vect_model_store_cost.
14869         (vect_build_slp_tree): Likewise vect_model_load_cost.
14870
14871 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14872
14873         * hooks.h (hook_bool_mode_uhwi_false): Declare.
14874         * hooks.c (hook_bool_mode_uhwi_false): New function.
14875         * target.def (array_mode_supported_p): New hook.
14876         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14877         * doc/tm.texi: Regenerate.
14878         * stor-layout.c (mode_for_array): New function.
14879         (layout_type): Use it.
14880         * config/arm/arm.c (arm_array_mode_supported_p): New function.
14881         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14882
14883 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
14884
14885         PR target/48723
14886         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14887         for -fstack-check if the size to allocate is negative.
14888
14889 2011-05-02  Lawrence Crowl  <crowl@google.com>
14890
14891         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14892         (timevar_cond_start): New for starting a timer only when it is not
14893         already running.
14894         (timevar_cond_stop): New for stopping a timer when it was not already
14895         running.
14896
14897         * timevar.c (timevar_stop): Enable start/stop timers to start again.
14898         (timevar_cond_start): New as above.
14899         (timevar_cond_stop): New as above.
14900
14901         * timevar.def: Add start/stop timers for compiler phases,
14902         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14903         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14904         and TV_PHASE_FINALIZE.
14905         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14906         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14907         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14908         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14909         Make unused TV_OVERLOAD into a start/stop timer.
14910
14911         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
14912         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
14913         to indicate that they are start/stop timers.
14914
14915         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
14916         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
14917         Move initialization to do_compile.
14918         (do_compile): Add initialization from above.
14919         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
14920
14921         * c-decl.c (c_write_global_declarations): Add start/stop of
14922         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
14923
14924         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
14925         or TV_PARSE_INLINE, as appropriate.
14926         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
14927         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
14928
14929 2011-05-02  Jason Merrill  <jason@redhat.com>
14930
14931         PR c++/40975
14932         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
14933
14934 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
14935
14936         PR c/35445
14937         * c-decl.c (finish_decl): Only create a composite if the types are
14938         compatible.
14939
14940 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14941
14942         * config/fr30/fr30-protos.h (Mmode): Don't define.
14943         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
14944         definition where used.
14945         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
14946         define.  Expand definitions where used.
14947         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
14948         Expand definitions where used.
14949         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
14950         rx_function_arg, rx_function_arg_advance,
14951         rx_function_arg_boundary): Expand definitions of those macros.
14952         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
14953         definition where used.
14954
14955 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14956
14957         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14958         reg<->xmm moves.
14959         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
14960         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
14961         with *movv2sf_internal_rex64_avx.
14962         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
14963         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
14964         Use %v prefix in insn mnemonic to handle TARGET_AVX.
14965         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
14966         "vex" in "prefix" attribute calculation.
14967         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
14968
14969 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
14970
14971         PR target/47951
14972         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
14973         inputs match the output.
14974
14975 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
14976
14977         PR target/47955
14978         * config/m68k/m68k.c (m68k_expand_prologue): Set
14979         current_function_static_stack_size.
14980
14981 2011-05-02   Jan Hubicka  <jh@suse.cz>
14982
14983         * lto-streamer.c (lto_streamer_cache_insert_1,
14984         lto_streamer_cache_lookup, lto_streamer_cache_create,
14985         lto_streamer_cache_delete): Use pointer map instead of hashtable.
14986         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
14987
14988 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14989
14990         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
14991         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
14992         config/m68k/t-opts: New files.
14993         * config/m68k/m68k-tables.opt: New file (generated).
14994         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
14995         extra_options and m68k/t-opts to tmake_file.
14996         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
14997         (all_isas): Initialize using m68k-isas.def.
14998         (all_microarchs): Initialize using m68k-microarchs.def.
14999         (m68k_find_selection): Remove.
15000         (m68k_handle_option): Don't assert that global structures are in
15001         use.  Use error_at.  Access variables via opts pointer.  Don't
15002         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15003         directly for -m68020-40 and -m68020-60.
15004         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15005         m68k_tune_entry here.
15006         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15007         to m68k-opts.h.
15008         (m68k_library_id_string): Remove declaration.
15009         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15010         (m68k_library_id_string): New Variable.
15011         (march=, mcpu=, mtune=): Use Enum and Var.
15012
15013 2011-05-02  Richard Guenther  <rguenther@suse.de>
15014
15015         * varasm.c (output_constructor_regular_field): Compute zero-based
15016         index with double-ints.  Make sure to ICE instead of producing
15017         wrong code.
15018         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15019         in asserts.  Properly use a signed type.
15020
15021 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15022
15023         * config/i386/sse.md (V): New mode iterator.
15024         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15025         TARGET_SSE2.
15026         (V_256): Rename from AVX256MODE.
15027         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15028         condition to all users.
15029         (VF1): Ditto.
15030         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15031         condition to all users.
15032         (VF_128): Make V4SF mode unconditional.
15033         (VF_256): Rename from AVX256MODEF2P.
15034         (VI4F_128): Rename from SSEMODE4S.
15035         (VI8F_128): Rename from SSEMODE2D.
15036         (VI4F_256): Rename from AVX256MODE8P.
15037         (VI8F_256): Rename from AVX256MODE4P.
15038         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15039         (ssescalarmodesuffix): Remove SF and DF modes.
15040         (SSEMODE124): Remove.
15041         (SSEMODE1248): Ditto.
15042         (SSEMODEF2P): Ditto.
15043         (AVXMODEF2P): Ditto.
15044         (AVXMODEFDP): Ditto.
15045         (AVXMODEFSP): Ditto.
15046         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15047         unconditional.
15048         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15049         unconditional.
15050         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15051         xop_pcmov_<mode>256.  Use V mode iterator.
15052
15053         Adjust RTX patterns globally for renamed mode attributes.
15054
15055 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15056
15057         * haifa-sched.c (sched_emit_insn): Emit insn before first
15058         non-scheduled insn.  Inform back-end about new insn.  Add
15059         new insn to scheduled_insns list.
15060
15061 2011-05-02  Richard Guenther  <rguenther@suse.de>
15062
15063         PR tree-optimization/48822
15064         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15065         (process_scc): Indicate which iteration we start.
15066
15067 2011-05-02  Jan Hubicka  <jh@suse.cz>
15068
15069         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15070         (lto_section_overrun): New.
15071         * lto-section-out.c (append_block): Rename to ...
15072         (lto_append_block): ... this one; export.
15073         (lto_output_1_stream): Move lto lto-streamer.h
15074         (lto_output_data_stream): Update.
15075         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15076         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15077         functions.
15078
15079 2011-05-02  Richard Guenther  <rguenther@suse.de>
15080
15081         * tree.c (tree_code_counts): New global array.
15082         (record_node_allocation_statistics): Count individual tree codes.
15083         (dump_tree_statistics): Dump individual code stats.
15084
15085 2011-05-01  Jan Hubicka  <jh@suse.cz>
15086
15087         * ipa-inline.c (caller_growth_limits): Fix thinko when
15088         looking for largest stack frame.
15089         * ipa-inline.h (dump_inline_summary): Declare.
15090         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15091         on stack usage.
15092         (dump_inline_summary): Export.
15093         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15094
15095 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15096
15097         * reginfo.c (memory_move_cost): Change rclass argument type form
15098         'enum reg_class' to reg_class_t.
15099         * reload.h (memory_move_cost): Update prototype.
15100         * postreload.c reload_cse_simplify_set): Change type dclass var to
15101         reg_class_t.
15102         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15103         Update prototype.
15104         (ira_allocate_and_set_costs): Change aclass argument type form
15105         'enum reg_class' to reg_class_t.
15106         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15107         Change aclass argument type to reg_class_t.
15108         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15109         to reg_class_t.
15110         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15111         memory_move_cost call.
15112
15113         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15114         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15115         Change type tmp var to reg_class_t.
15116
15117 2011-04-30  Jan Hubicka  <jh@suse.cz>
15118
15119         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15120         inlining into function with flatten attribute.
15121         (want_inline_small_function_p): Be more realistic about inlining
15122         cold calls where callee size grows.
15123
15124 2011-04-30  Jan Hubicka  <jh@suse.cz>
15125
15126         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15127         flags.
15128
15129 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15130
15131         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15132         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15133         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15134         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15135         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15136         (print_operand): Rename to...
15137         (sparc_print_operand): ...this. Make static. Adjust
15138         sparc_print_operand function call.
15139         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15140         functions.
15141
15142 2011-04-30  Jan Hubicka  <jh@suse.cz>
15143
15144         PR middle-end/48752
15145         * ipa-inline.c (early_inliner): Disable when doing late
15146         addition of function.
15147
15148 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15149
15150         * dwarf2out.c (get_address_mode): New inline.
15151         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15152         if not dwarf_strict emit
15153         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15154         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15155         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15156         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15157         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15158         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15159         mem_loc_descriptor callers.
15160         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15161         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15162         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15163         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15164         (base_types): New variable.
15165         (get_base_type_offset, calc_base_type_die_sizes,
15166         base_type_for_mode, mark_base_types, base_type_cmp,
15167         move_marked_base_types): New functions.
15168         (calc_die_sizes): Assert that die_offset is 0 or equal to
15169         next_die_offset.
15170         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15171         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15172         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15173         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15174         (gen_subprogram_die): Don't give up on call site parameters
15175         with non-integral or large integral modes.  Adjust
15176         mem_loc_descriptor callers.
15177         (prune_unused_types): Call prune_unused_types_mark on base_types
15178         vector entries.
15179         (resolve_addr): Call mark_base_types.
15180         (dwarf2out_finish): Call move_marked_base_types.
15181
15182         PR tree-optimization/48809
15183         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15184         type.
15185         (gen_inbound_check): Don't compute index_expr - range_min in utype
15186         again, instead reuse SSA_NAME initialized in build_arrays.
15187         Remove two useless gsi_for_stmt calls.
15188
15189 2011-04-29  Jeff Law  <law@redhat.com>
15190
15191         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15192
15193 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15194
15195         * cgraph.h (cgraph_postorder): Remove declaration.
15196         * ipa-utils.h (ipa_free_postorder_info): Declare.
15197         (ipa_reverse_postorder): Likewise.
15198         * cgraphunit.c: Include ipa-utils.h.
15199         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15200         * ipa-inline.c: Include ipa-utils.h.
15201         (ipa_inline): Update call to ipa_reverse_postorder.
15202         * ipa-pure-const.c (propagate_pure_const): Update call to
15203         ipa_reduced_postorder and ipa_print_order.  Call
15204         ipa_free_postorder_info to clean up.
15205         (propagate_nothrow): Likewise.
15206         * ipa-reference.c (propagate): Removed a useless call to
15207         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15208         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15209         * ipa.c: Include ipa-utils.h.
15210         (ipa_profile): Update call to ipa_reverse_postorder.
15211         (cgraph_postorder): Moved to...
15212         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15213         (ipa_utils_print_order): Renamed to ipa_print_order.
15214         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15215         comments.
15216         (ipa_free_postorder_info): New function.
15217         * passes.c: Include ipa-utils.h.
15218         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15219         (ipa_write_summaries): Likewise.
15220         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15221         (cgraphunit.o): Likewise.
15222         (ipa.o): Likewise.
15223         (ipa-inline.o): Likewise.
15224
15225 2011-04-29  Jan Hubicka  <jh@suse.cz>
15226
15227         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15228         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15229         * ipa-inline.h (clause_t): Turn into unsigned int.
15230         * ipa-inline-analysis.c (add_clause): Do more simplification.
15231         (and_predicates): Shortcut more cases.
15232         (predicates_equal_p): Move forward; check that clauses are properly
15233         ordered.
15234         (or_predicates): Shortcut more cases.
15235         (edge_execution_predicate): Rewrite as...
15236         (set_cond_stmt_execution_predicate): ... this function; handle
15237         __builtin_constant_p.
15238         (set_switch_stmt_execution_predicate): New .
15239         (compute_bb_predicates): New.
15240         (will_be_nonconstant_predicate): Update TODO.
15241         (estimate_function_body_sizes): Use compute_bb_predicates
15242         and free them later, always try to estimate if stmt is constant.
15243         (estimate_time_after_inlining, estimate_size_after_inlining):
15244         Gracefully handle optimized out edges.
15245         (read_predicate): Fix off by one error.
15246
15247 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15248
15249         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15250
15251 2011-04-27  Xinliang David Li  <davidxl@google.com>
15252
15253         * tree-profile.c (init_ic_make_global_vars): Set
15254         tls attribute on ic vars.
15255         * coverage.c (coverage_end_function): Initialize
15256         function_list with zero.
15257
15258 2011-04-29  Richard Guenther  <rguenther@suse.de>
15259
15260         * builtins.c (fold_builtin_classify_type): Use integer_type_node
15261         for the type of the result.
15262         (fold_builtin_isascii): Likewise.
15263         (fold_builtin_toascii): Use integer_type_node where appropriate.
15264         (fold_builtin_logb): Likewise.
15265         (fold_builtin_frexp): Likewise.
15266         (fold_builtin_strstr): Likewise.
15267         (fold_builtin_strpbrk): Likewise.
15268         (fold_builtin_fputs): Likewise.
15269         (fold_builtin_sprintf): Likewise.
15270         (fold_builtin_snprintf): Likewise.
15271         (fold_builtin_printf): Likewise.
15272         (do_mpfr_remquo): Use a proper type for the assigned constant.
15273         (do_mpfr_lgamma_r): Likewise.
15274         * dwarf2out.c (resolve_one_addr): Use size_int.
15275         * except.c (init_eh): Likewise.
15276         (assign_filter_values): Use integer_type_node for filter values.
15277         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15278         indices.
15279         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15280         for EH region numbers.
15281         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15282         for the shift amount.
15283
15284 2011-04-29  Richard Guenther  <rguenther@suse.de>
15285
15286         * expr.h (expand_shift): Rename to ...
15287         (expand_variable_shift): ... this.
15288         (expand_shift): Take a constant shift amount.
15289         * expmed.c (expand_shift): Rename to ...
15290         (expand_variable_shift): ... this.
15291         (expand_shift): New wrapper around expand_variable_shift.
15292         * expr.c (convert_move, emit_group_load_1, emit_group_store,
15293         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15294         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15295         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15296         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15297         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15298         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15299         emit_store_flag_1, emit_store_flag): Likewise.
15300         * builtins.c (expand_builtin_signbit): Likewise.
15301         * calls.c (load_register_parameters): Likewise.
15302         * function.c (assign_parm_setup_block): Likewise.
15303         * lower-subreg.c (resolve_shift_zext): Likewise.
15304         * optabs.c (widen_bswap, expand_abs_nojump,
15305         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15306         * spu/spu.c (spu_expand_extv): Likewise.
15307         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15308
15309 2011-04-29  Richard Guenther  <rguenther@suse.de>
15310
15311         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15312         for the remapped region number.
15313         * predict.c (build_predict_expr): Use integer_type_node for the
15314         predict kind.
15315         * fold-const.c (fold_binary_loc): Use integer_type_node for
15316         the shift amount.  Use a proper type for the PLUS_EXPR operand.
15317
15318 2011-04-29  Michael Matz  <matz@suse.de>
15319
15320         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15321         other trees that just builtins.
15322         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15323
15324 2011-04-29  Richard Guenther  <rguenther@suse.de>
15325
15326         * tree-nested.c (get_trampoline_type): Use size_int.
15327         (get_nl_goto_field): Likewise.
15328         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15329         for all indexes.
15330         (lower_eh_constructs_2): Likewise.
15331         (lower_resx): Likewise.
15332         (lower_eh_dispatch): Likewise.
15333         * tree-mudflap.c (mf_build_string): Use size_int.
15334         (mudflap_register_call): Use integer_type_node for the flag.
15335         (mudflap_enqueue_constant): Use size_int.
15336         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15337         instead of rebuilding it.
15338
15339 2011-04-29  Richard Guenther  <rguenther@suse.de>
15340
15341         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15342         Handle OBJ_TYPE_REF.
15343         (find_func_aliases_for_call): Use it more consistently.
15344
15345 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
15346
15347         * haifa-sched.c (last_nondebug_scheduled_insn): New.
15348         (rank_for_schedule): Use it.
15349         (schedule_block): Set it.
15350
15351 2011-04-28  David Li  <davidxl@google.com>
15352
15353         * tree.c (crc32_string): Use crc32_byte.
15354         (crc32_byte): New function.
15355         * tree.h (crc32_byte): New function.
15356         * gcov.c (read_graph_file): Handle new cfg_cksum.
15357         (read_count_file): Ditto.
15358         * profile.c (instrument_values): Ditto.
15359         (get_exec_counts): Ditto.
15360         (read_profile_edge_counts): Ditto.
15361         (compute_branch_probabilities): Ditto.
15362         (compute_value_histograms): Ditto.
15363         (branch_prob): Ditto.
15364         (end_branch_prob): Ditto.
15365         * coverage.c (read_counts_file): Ditto.
15366         (get_coverage_counts): Ditto.
15367         (tree_coverage_counter_addr): Ditto.
15368         (coverage_checksum_string): Ditto.
15369         (coverage_begin_output): Ditto.
15370         (coverage_end_function): Ditto.
15371         (build_fn_info_type): Ditto.
15372         (build_fn_info_value): Ditto.
15373         * libgcov.c (gcov_exit): Ditto.
15374         * gcov-dump.c (tag_function): Ditto.
15375         (compute_checksum): Remove.
15376
15377 2011-04-29  Alan Modra  <amodra@gmail.com>
15378
15379         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15380         unspec plus offset.  Tidy macho code.
15381
15382 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15383
15384         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15385         node instead of a decl.  Update all callers.
15386         * cgraph.h: Update declaration.
15387
15388 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
15389
15390         PR tree-optimization/48765
15391         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15392         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15393         to indicate if loop aware SLP is being used.  Scan the statements
15394         and update the vectorization factor according to the type of
15395         vectorization before statement analysis.
15396         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15397         pass it to vect_analyze_loop_operations.
15398         (vectorizable_reduction): Set number of copies to 1 in case of pure
15399         SLP statement.
15400         * tree-vect-stmts.c (vectorizable_conversion,
15401         vectorizable_assignment, vectorizable_shift,
15402         vectorizable_operation, vectorizable_type_demotion,
15403         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15404         Likewise.
15405         (vectorizable_condition): Move the check that it is not SLP
15406         vectorization before the number of copies check.
15407         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15408         to vectorize the loop using SLP.
15409
15410 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
15411
15412         PR middle-end/48597
15413         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15414         inline asm.
15415
15416 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15417
15418         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15419         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15420         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15421         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15422         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15423         linux*.h headers.
15424         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15425         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15426         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15427         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15428         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15429         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15430         REG_NAME.
15431         * config/i386/linux.h (REG_NAME): Don't define.
15432         * config/i386/linux64.h (REG_NAME): Don't define.
15433         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15434         Undefine before defining.
15435
15436 2011-04-28  Jan Hubicka  <jh@suse.cz>
15437
15438         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15439         nonconstant_names array.
15440         (estimate_function_body_sizes): Build nonconstant_names array; handle
15441         BUILT_IN_CONSTANT_P.
15442
15443 2011-04-28  Richard Guenther  <rguenther@suse.de>
15444
15445         PR bootstrap/48804
15446         Revert
15447         2011-04-28  Richard Guenther  <rguenther@suse.de>
15448
15449         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15450         as late as possible.
15451
15452 2011-04-28  Richard Guenther  <rguenther@suse.de>
15453
15454         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15455         (debug_constraint): Do it here.
15456         (dump_constraints): And here.
15457         (rewrite_constraints): And here.
15458         (dump_constraint_edge): Remove.
15459         (dump_constraint_graph): Rewrite to produce DOT output.
15460         (solve_constraints): Build succ graph as late as possible.
15461         Dump constraint graphs before and after solving.
15462
15463 2011-04-28  Richard Guenther  <rguenther@suse.de>
15464
15465         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15466         New function split out from ...
15467         (find_func_aliases): ... here.  Call it.
15468         (find_func_aliases_for_call): Likewise.
15469
15470 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15471
15472         * internal-fn.h (internal_fn_name_array): Declare.
15473         (internal_fn_flags_array): Likewise.
15474
15475 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15476
15477         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15478         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15479         Move from sse.md.
15480         (ssemodefsuffix): Remove.
15481         (ssevecmodesuffix): New mode attribute.
15482         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15483         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15484         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15485         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15486         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15487         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15488         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15489         ssemodesuffix mode attribute.
15490         (float splitters): Use ssevecmodesuffix mode attribute.
15491         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15492         (sseinsmode): Rename from avxvecmode.
15493         (avxsizesuffix): Rename from avxmodesuffix.
15494         (sseintvecmode): Rename from avxpermvecmode.
15495         (ssedoublevecmode): Rename from ssedoublesizemode.
15496         (ssehalfvecmode): Rename from avxhalfvecmode.
15497         (ssescalarmode): Rename from avxscalarmode.
15498         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15499         templates for ssemodesuffix mode attribute.
15500         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15501         mode attribute.
15502
15503         Adjust RTX patterns globally for renamed mode attributes.
15504
15505 2011-04-27  Jan Hubcika  <jh@suse.cz>
15506
15507         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15508         * ipa-inline-analysis.c: Include alloc-pool.h.
15509         (edge_predicate_pool): New.
15510         (trye_predicate_p): New function
15511         (false_predicate_p): New function.
15512         (add_clause): Sanity check that false clauses are "optimized";
15513         never add clauses to predicate that is already known to be false.
15514         (and_predicate): Use flase_predicate_p.
15515         (evaulate_predicate): Rename to ...
15516         (evaluate_predicate): ... this one; update all callers; assert
15517         that false is not listed among possible truths.
15518         (dump_predicate): Use true_predicate_p.
15519         (account_size_time): Use false_predicate_p.
15520         (evaulate_conditions_for_edge): Rename to ...
15521         (evaluate_conditions_for_edge) ... this one.
15522         (edge_set_predicate): New function.
15523         (inline_edge_duplication_hook): Duplicate edge predicates.
15524         (inline_edge_removal_hook): Free edge predicates.
15525         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15526         (dump_inline_summary): Update.
15527         (estimate_function_body_sizes): Set edge predicates.
15528         (estimate_calls_size_and_time): Handle predicates.
15529         (estimate_callee_size_and_time): Update.
15530         (remap_predicate): Add toplev_predicate; update comment.
15531         (remap_edge_predicates): New function.
15532         (inline_merge_summary): Compute toplev predicate; update.
15533         (read_predicate): New function.
15534         (read_inline_edge_summary): Use it.
15535         (inline_read_section): Likewise.
15536         (write_predicate): New function.
15537         (write_inline_edge_summary): Use it.
15538         (inline_write_summary): Likewise.
15539         (inline_free_summary): Free alloc pool and edge summary vec.
15540
15541 2011-04-27  Richard Guenther  <rguenther@suse.de>
15542
15543         * tree-ssa-structalias.c (changed_count): Remove.
15544         (changed): Use a bitmap.
15545         (unify_nodes): Adjust.
15546         (do_sd_constraint): Likewise.
15547         (do_ds_constraint): Likewise.
15548         (do_complex_constraint): Likewise.
15549         (solve_graph): Likewise.
15550
15551 2011-04-27  Jan Hubicka  <jh@suse.cz>
15552
15553         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15554
15555 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15556
15557         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15558         (avx_vperm2f128_*_operand): Ditto.
15559         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15560         Use avx_vpermilp_parallel in insn condition.
15561         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15562         Use avx_vperm2f128_parallel in insn condition.
15563
15564 2011-04-27  Richard Guenther  <rguenther@suse.de>
15565
15566         * Makefile.in (tree-ssa-structalias.o): Remove
15567         gt-tree-ssa-structalias.h dependency.
15568         (GTFILES): Remove tree-ssa-structalias.c.
15569         * tree.c (allocate_decl_uid): New function.
15570         (make_node_stat): Use it.
15571         (copy_node_stat): Likewise.
15572         * tree.h (allocate_decl_uid): Declare.
15573         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15574         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15575         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15576         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15577         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15578         (struct heapvar_map): Likewise.
15579         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15580         heapvar_insert): Likewise.
15581         (make_heapvar_for): Rename to ...
15582         (make_heapvar): ... this.  Simplify.
15583         (fake_var_decl_obstack): New global var.
15584         (build_fake_var_decl): New function.
15585         (make_constraint_from_heapvar): Adjust.
15586         (handle_lhs_call): Likewise.
15587         (create_function_info_for): Likewise.
15588         (intra_create_variable_infos): Likewise.
15589         (init_alias_vars): Allocate fake_var_decl_obstack.
15590         (init_alias_heapvars, delete_alias_heapvars): Remove.
15591         (compute_points_to_sets): Do not call init_alias_heapvars.
15592         (ipa_pta_execute): Likewise.
15593         (delete_points_to_sets): Free fake_var_decl_obstack.
15594
15595 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15596
15597         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15598         (si_from_UTItype, si_to_UTItype): New functions.
15599         (__udivmodti4): Use them to implement type-punning.
15600         * config/spu/multi3.c (union qword_TItype): New data type.
15601         (si_from_TItype, si_to_TItype): New functions.
15602         (__multi3): Use them to implement type-punning.
15603
15604 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15605
15606         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15607
15608 2011-04-27  Jan Hubicka  <jh@suse.cz>
15609
15610         * ipa-prop.c (function_insertion_hook_holder): New holder.
15611         (ipa_add_new_function): New function.
15612         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15613         Register/deregister holder.
15614
15615 2011-04-27  Richard Guenther  <rguenther@suse.de>
15616
15617         PR tree-optimization/48772
15618         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15619
15620 2011-04-27  Richard Guenther  <rguenther@suse.de>
15621
15622         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15623         TARGET_MEM_REF handling.
15624
15625 2011-04-27  Nick Clifton  <nickc@redhat.com>
15626
15627         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15628         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15629         (REG_CLASS_NAMES): Likewise.
15630         (REG_CLASS_CONTENTS): Likewise.
15631         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15632         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15633         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
15634         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
15635         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
15636         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15637         duplicate register classes.
15638         (frv_class_likely_spilled_p): Likewise.
15639         (frv_register_move_cost): Likewise.
15640
15641         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15642         end of the regno_reg_class array.
15643
15644 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
15645
15646         PR c/48742
15647         * c-typeck.c (build_binary_op): Don't wrap arguments if
15648         int_operands is true.
15649
15650 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
15651
15652         PR target/48767
15653         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15654         targetm.calls.must_pass_in_stack for void type.
15655
15656 2011-04-26  Jan Hubicka  <jh@suse.cz>
15657
15658         * cgraphbuild.c (build_cgraph_edges): Update call
15659         of cgraph_create_edge and cgraph_create_indirect_edge.
15660         * cgraph.c (cgraph_create_edge_including_clones,
15661         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15662         cgraph_update_edges_for_call_stmt_node): Do not take nest
15663         argument; do not initialize call_stmt_size/time.
15664         (dump_cgraph_node): Do not dump nest.
15665         (cgraph_clone_edge): Do not take loop_nest argument;
15666         do not propagate it; do not clone call_stmt_size/time.
15667         (cgraph_clone_node): Likewise.
15668         (cgraph_create_virtual_clone): Update.
15669         * cgraph.h (struct cgraph_edge): Remove
15670         call_stmt_size/call_stmt_time/loop_nest.
15671         (cgraph_create_edge, cgraph_create_indirect_edge,
15672         cgraph_create_edge_including_clones, cgraph_clone_node): Update
15673         prototype.
15674         * tree-emutls.c (gen_emutls_addr): Update.
15675         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15676         loop_nest; handle indirect calls, too.
15677         (clone_inlined_nodes): Do not care about updating inline summaries.
15678         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15679         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15680         stream call_stmt_size/call_stmt_time/loop_nest.
15681         * ipa-inline.c (edge_badness): Update.
15682         (ipa_inline): dump summaries after inlining.
15683         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15684         New.
15685         (inline_edge_summary): New function.
15686         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15687         (inline_edge_removal_hook): Handle edge summaries.
15688         (inline_edge_duplication_hook): New hook.
15689         (inline_summary_alloc): Alloc hooks.
15690         (initialize_growth_caches): Do not register removal hooks.
15691         (free_growth_caches); Do not free removal hook.
15692         (dump_inline_edge_summary): New function.
15693         (dump_inline_summary): Use it.
15694         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15695         (inline_update_callee_summaries): New function.
15696         (inline_merge_summary): Use it.
15697         (do_estimate_edge_time, do_estimate_edge_growth): Update.
15698         (read_inline_edge_summary): New function.
15699         (inline_read_section): Use it.
15700         (write_inline_edge_summary): New function.
15701         (inline_write_summary): Use it.
15702         (inline_free_summary): Free edge new holders.
15703         * tree-inline.c (copy_bb): Update.
15704
15705 2011-04-26  Jason Merrill  <jason@redhat.com>
15706
15707         * tree-eh.c (lower_try_finally_switch): Create the label along with
15708         the CASE_LABEL_EXPR.
15709
15710 2011-04-26  David S. Miller  <davem@davemloft.net>
15711             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15712
15713         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15714         * configure: Regenerate.
15715
15716 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15717
15718         PR target/48258
15719         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15720         reduction.
15721         (VEC_reduc): New code iterator and splitters for vector reduction.
15722         (VEC_reduc_name): Ditto.
15723         (VEC_reduc_rtx): Ditto.
15724         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15725         (reduc_<VEC_reduc_name>_v4sf): Ditto.
15726
15727         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15728         support for extracting SF on VSX.
15729
15730         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15731         generating xscvspdp.
15732         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15733         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15734         double add, minimum, maximum vector reduction.
15735         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15736         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15737         optimize double vector reduction.
15738         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15739
15740 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
15741
15742         * config/fr30/fr30.h (inhibit_libc): Don't define.
15743         * config/m32r/m32r-protos.h: Correct comment.
15744         * config/v850/v850.h (GHS_default_section_names,
15745         GHS_current_section_names): Use tree, not union tree_node *.
15746
15747 2011-04-26  Xinliang David Li  <davidxl@google.com>
15748
15749         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15750         * c-family/c-opts.c (c_common_handle_option): Set
15751         warn_maybe_uninitialized.
15752         * opts.c (common_handle_option): Ditto.
15753         * common.opt:  New option.
15754         * tree-ssa.c (warn_uninit): Add one more parameter.
15755         (warn_uninitialized_var): Pass warning code.
15756         * tree-flow.h: Interface change.
15757
15758 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15759
15760         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15761         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15762         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15763
15764 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15765
15766         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15767         * config/mips/mips.opt (mmips-tfile): Remove.
15768
15769         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15770         mips-tdump reference to ...
15771         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
15772         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15773         reference by Tru64 UNIX.
15774
15775 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
15776
15777         PR debug/48768
15778         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15779         is error_mark_node, set value to NULL.
15780
15781         PR tree-optimization/48734
15782         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15783         if return value from maybe_fold_*_comparsions isn't something
15784         the code is prepared to handle.
15785
15786 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
15787
15788         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15789         mode check.
15790         (ext_QIreg_nomode_operands): Remove.
15791         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15792         (*andsi_1): Ditto.
15793         (*andhi_1): Ditto.
15794
15795 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
15796
15797         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15798
15799 2011-04-26  Richard Guenther  <rguenther@suse.de>
15800
15801         * c-typeck.c (build_unary_op): Do not expand array-refs via
15802         pointer arithmetic.  Only adjust qualifiers for function types.
15803
15804 2011-04-26  Richard Guenther  <rguenther@suse.de>
15805
15806         PR middle-end/48694
15807         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15808         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15809         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
15810         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15811
15812 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
15813
15814         * doc/extend.texi: Document __underlying_type.
15815
15816 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
15817
15818         * config/rs6000/titan.md (automata_option "progress"): Remove.
15819
15820 2011-04-25  Jeff Law  <law@redhat.com>
15821
15822         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15823
15824 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15825
15826         * system.h (ENUM_BITFIELD): Remove.
15827
15828 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
15829             Eric Botcazou  <ebotcazou@adacore.com>
15830
15831         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15832         for STORE_FLAG_VALUE==-1 case.
15833
15834 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
15835
15836         PR target/43804
15837         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15838         LEGITIMATE_PIC_OPERAND_P.
15839
15840 2011-04-24  Jan Hubicka  <jh@suse.cz>
15841
15842         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15843         WPA hack.
15844         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15845         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15846         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15847         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15848         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15849         Sanity check predicate length.
15850         (remap_predicate): Likewise; sanity check jump functions.
15851         (inline_read_section, inline_write_summary): Sanity check
15852         predicate length.
15853
15854 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15855
15856         PR other/48748
15857         * doc/extend.texi (Type Traits): Document __is_standard_layout,
15858         __is_literal_type, and __is_trivial; update throughout about
15859         possibly cv-qualified void types.
15860
15861 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15862
15863         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15864         testsuite and make it version agnostic.
15865
15866 2011-04-22  Jan Hubicka  <jh@suse.cz>
15867
15868         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15869
15870 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
15871
15872         PR c/48685
15873         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15874         to VOID_TYPE even around MODIFY_EXPR.
15875
15876 2011-04-22  Mike Stump  <mikestump@comcast.net>
15877
15878         * gensupport.c (read_md_rtx): Fix typo in comment.
15879         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15880         comment.
15881
15882 2011-04-22  Jan Hubicka  <jh@suse.cz>
15883
15884         * gengtype.c (open_base_files): Add ipa-inline.h include.
15885         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15886         ipa-prop.c; update all uses.
15887         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15888         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15889         merge summary of inlined function into former caller.
15890         * ipa-inline.c (max_benefit): Remove.
15891         (edge_badness): Compensate for removal of benefits.
15892         (update_caller_keys): Use
15893         reset_node_growth_cache/reset_edge_growth_cache.
15894         (update_callee_keys): Likewise.
15895         (update_all_callee_keys): Likewise.
15896         (inline_small_functions): Do not collect max_benefit; do not reset
15897         estimated_growth; call free_growth_caches and initialize_growth_caches.
15898         * ipa-inline.h (struct condition, type clause_t, struct predicate,
15899         struct size_time_entry): New structures.
15900         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15901         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15902         and estimated_growth.
15903         (edge_growth_cache_entry): New structure.
15904         (node_growth_cache, edge_growth_cache): New global vars.
15905         (estimate_growth): Turn into inline.
15906         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15907         initialize_growth_caches, free_growth_caches): Declare.
15908         (estimate_edge_growth): Rewrite.
15909         (estimate_edge_time): Implement as inline cache lookup.
15910         (reset_node_growth_cache, reset_edge_growth_cache): New inline
15911         functions.
15912         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
15913         (NUM_CONDITIONS): New constant.
15914         (predicate_conditions): New enum.
15915         (IS_NOT_CONSTANT): New constant.
15916         (edge_removal_hook_holder): New var.
15917         (node_growth_cache, edge_growth_cache): New global vars.
15918         (true_predicate, single_cond_predicate, false_predicate,
15919         not_inlined_predicate, add_condition, add_clause, and_predicates,
15920         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
15921         dump_clause, dump_predicate, account_size_time,
15922         evaulate_conditions_for_edge): New functions.
15923         (inline_summary_alloc): Move to heap.
15924         (inline_node_removal_hook): Clear condition and entry vectors.
15925         (inline_edge_removal_hook): New function.
15926         (initialize_growth_caches, free_growth_caches): New function.
15927         (dump_inline_summary): Update.
15928         (edge_execution_predicate): New function.
15929         (will_be_nonconstant_predicate): New function.
15930         (estimate_function_body_sizes): Compute BB and constantness predicates.
15931         (compute_inline_parameters): Do not clear estimated_growth.
15932         (estimate_edge_size_and_time): New function.
15933         (estimate_calls_size_and_time): New function.
15934         (estimate_callee_size_and_time): New function.
15935         (remap_predicate): New function.
15936         (inline_merge_summary): New function.
15937         (do_estimate_edge_time): New function based on...
15938         (estimate_edge_time): ... this one.
15939         (do_estimate_edge_growth): New function.
15940         (do_estimate_growth): New function based on....
15941         (estimate_growth): ... this one.
15942         (inline_analyze_function): Analyze after deciding on jump functions.
15943         (inline_read_section): New function.
15944         (inline_read_summary): Use it.
15945         (inline_write_summary): Write all the new data.
15946         * ipa-prop.c (ipa_get_param_decl_index): Export.
15947         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
15948         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
15949         Declare.
15950         (ipa_get_lattice): Move here from ipa-cp.c
15951         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
15952         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
15953         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
15954         cgraph_edge_inlinable_p): Remove.
15955         * cgraphunit.c: Include ipainline.h
15956         (cgraph_process_new_functions): Update call of
15957         compute_inline_parameters.
15958
15959 2011-04-22  Richard Guenther  <rguenther@suse.de>
15960
15961         * tree.c (build_int_cst): Properly create canonicalized integer
15962         constants.
15963         (build_int_cst_type): Remove scary comments.
15964
15965 2011-04-22  Xinliang David Li  <davidxl@google.com>
15966
15967         * toplev.c (process_options): Enable -Werror=coverage-mismatch
15968         by default when -Wno-error is not specified.
15969         * opts-global.c (decode_options): Remove call to
15970         control_warning_options.
15971
15972 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15973
15974         PR tree-optimization/48717
15975         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
15976         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
15977
15978 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
15979
15980         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
15981         definition where used.
15982
15983 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15984
15985         PR c/48716
15986         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
15987         TREE_STATIC variables declared inside of some OpenMP construct.
15988
15989 2011-04-22  Martin Jambor  <mjambor@suse.cz>
15990
15991         PR middle-end/48585
15992         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
15993
15994 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
15995
15996         PR c/36750
15997         * c-typeck.c (pop_init_level): Do not warn about initializing
15998         with ` = {0}'.
15999
16000 2011-04-22  Alan Modra  <amodra@gmail.com>
16001
16002         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16003         when returning call_cookie.
16004         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16005         pointers, to functions with no more vector args than the current
16006         function, and some non-local calls for ABI_V4.
16007         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16008         sibcall_nonlocal_aix64): Combine to ..
16009         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16010         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16011         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16012         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16013         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16014         operand.
16015         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16016         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16017         sibcall_value_symbolic_64): Delete.
16018
16019 2011-04-21  Xinliang David Li  <davidxl@google.com>
16020
16021         * cgraph.h: Remove pid.
16022         * cgraph.c: Remove pid.
16023         * value-prof.c (init_node_map): New function.
16024         (del_node_map): New function.
16025         (find_func_by_funcdef_no): New function.
16026         (gimple_ic_transform): Call new function.
16027         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16028         * function.c (get_last_funcdef_no): New function.
16029         * function.h (get_last_funcdef_no): New function.
16030         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16031         to libgcov function.
16032         (tree-profiling): Call node map init and delete function.
16033
16034 2011-04-21  Ian Lance Taylor  <iant@google.com>
16035
16036         * godump.c (go_format_type): Use exported Go name for anonymous
16037         field name.
16038
16039 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16040
16041         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16042         Call builtin_function_type_list instead of builtin_function_type.
16043         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16044
16045 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16046
16047         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16048         build_function_type_list instead of build_function_type.
16049         Delete variable `endlink'.
16050
16051 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16052
16053         * config/s390/s390.c (s390_init_builtins): Call
16054         build_function_type_list instead of build_function_type.
16055
16056 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16057
16058         * config/ia64/ia64.c (ia64_init_builtins): Call
16059         build_function_type_list instead of builtin_function_type.
16060
16061 2011-04-21  Easwaran Raman  <eraman@google.com>
16062
16063         * cfgexpand.c (stack_var): Remove OFFSET...
16064         (add_stack_var): ...and its reference here...
16065         (expand_stack_vars): ...and here.
16066         (stack_var_cmp): Sort by descending order of size.
16067         (partition_stack_vars): Change heuristic.
16068         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16069         (dump_stack_var_partition): Add newline after each partition.
16070
16071 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16072             Jeff Law  <law@redhat.com>
16073
16074         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16075         * gengtype.c (matching_file_name_substitute): Likewise.
16076
16077 2011-04-21  Richard Guenther  <rguenther@suse.de>
16078
16079         PR lto/48703
16080         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16081
16082 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16083
16084         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16085
16086 2011-04-21  Richard Guenther  <rguenther@suse.de>
16087
16088         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16089         file name.
16090
16091 2011-04-21  Richard Guenther  <rguenther@suse.de>
16092
16093         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16094         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16095         Use DECL_P, not SSA_VAR_P.
16096         (ptr_derefs_may_alias_p): Likewise.
16097         (ptr_deref_may_alias_ref_p_1): Likewise.
16098         (decl_refs_may_alias_p): Likewise.
16099         (refs_may_alias_p_1): Likewise.
16100         (ref_maybe_used_by_call_p_1): Likewise.
16101         (call_may_clobber_ref_p_1): Likewise.
16102         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16103         are either MEM_REF or TARGET_MEM_REF.
16104         (indirect_refs_may_alias_p): Likewise.
16105         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16106         for MEM_EXPR of indirect calls.
16107
16108 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16109
16110         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16111         (dst_file_info_struct): Remove flen field.
16112         (lookup_filename): Remove code that set flen field.
16113
16114 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16115
16116         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16117
16118 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16119
16120         PR target/48708
16121         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16122         vec_extract and vec_concat for non-SSE4_1 targets.
16123
16124 2011-04-21  Richard Guenther  <rguenther@suse.de>
16125
16126         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16127         return statements.
16128
16129 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16130
16131         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16132         undefine.
16133         (FILE): Don't undefine.
16134
16135 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16136
16137         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16138         struct rtx_def *.
16139         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16140         struct rtx_def *.
16141         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16142         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16143         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16144         rtx_def *.
16145         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16146         definitions where used.
16147         * config/microblaze/microblaze.h (struct microblaze_args): Use
16148         rtx, not struct rtx_def *.
16149         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16150         rtx_def *.
16151         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16152         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16153         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16154         not struct rtx_def *.
16155         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16156         struct rtx_def *.
16157         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16158         rtx_def *.
16159         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16160
16161 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16162
16163         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16164         operand_equal_p to compare DR_BASE_ADDRESSes.
16165         (vect_check_interleaving): Likewise.
16166
16167 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16168
16169         PR target/46329
16170         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16171         for all Neon struct constants.
16172
16173 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16174
16175         * target.def (legitimate_constant_p): New hook.
16176         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16177         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16178         * doc/tm.texi: Regenerate.
16179         * hooks.h (hook_bool_mode_rtx_true): Declare.
16180         * hooks.c (hook_bool_mode_rtx_true): Define.
16181         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16182         * calls.c (precompute_register_parameters): Replace uses of
16183         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16184         (emit_library_call_value_1): Likewise.
16185         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16186         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16187         * ira-costs.c (scan_one_insn): Likewise.
16188         * recog.c (general_operand, immediate_operand): Likewise.
16189         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16190         * reload1.c (init_eliminable_invariants): Likewise.
16191
16192         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16193         mode argument.
16194         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16195         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16196         argument.
16197         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16198         * config/alpha/predicates.md (input_operand): Update call to
16199         alpha_legitimate_constant_p.
16200
16201         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16202         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16203         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16204         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16205         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16206         (arm_legitimate_constant_p): New functions.
16207         (arm_cannot_force_const_mem): Make static.
16208
16209         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16210
16211         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16212         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16213         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16214         instead of bfin_legitimate_constant_p.
16215         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16216         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16217
16218         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16219
16220         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16221
16222         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16223         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16224         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16225         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16226
16227         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16228         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16229         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16230
16231         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16232         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16233         * config/i386/i386.c (legitimate_constant_p): Rename to...
16234         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16235         argument.
16236         (ix86_cannot_force_const_mem): Update accordingly.
16237         (ix86_legitimate_address_p): Likewise.
16238         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16239         * config/i386/i386.md: Update commentary.
16240
16241         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16242         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16243         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16244         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16245
16246         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16247
16248         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16249         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16250         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16251         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
16252
16253         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16254         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16255         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16256
16257         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16258         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16259         (m32r_legitimate_constant_p): New function.
16260
16261         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16262         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16263         LEGITIMATE_CONSTANT_P.
16264         (LEGITIMATE_CONSTANT_P): Delete.
16265         * config/m68k/m68k.c (m68k_expand_prologue): Call
16266         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16267         (m68k_legitimate_constant_p): New function.
16268         * config/m68k/m68k.md: Update comments.
16269
16270         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16271         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16272         (mcore_legitimate_constant_p): New function.
16273
16274         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16275         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16276         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16277         Add a mode argument.
16278         (mep_legitimate_address): Update accordingly.
16279         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16280
16281         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16282         Delete.
16283         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16284         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16285         static.  Check OP's mode for VOIDmode.
16286         (microblaze_legitimate_constant_p): New function.
16287         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16288
16289         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16290         * config/mips/mips.c (mips_legitimate_constant_p): New function.
16291         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16292         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16293         * config/mips/predicates.md: Update comments.
16294
16295         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16296         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16297         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16298         (mmix_legitimate_constant_p): Make static, return a bool, and take
16299         a mode argument.
16300         (mmix_print_operand_address): Update accordingly.
16301
16302         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16303         Delete.
16304         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16305         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16306         static.  Add a mode argument.
16307         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16308
16309         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16310
16311         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16312         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16313         (pa_legitimate_constant_p): New function.
16314
16315         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16316
16317         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16318         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16319         (pdp11_legitimate_constant_p): New function.
16320
16321         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16322         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16323         (rs6000_legitimate_constant_p): New function.
16324
16325         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16326         (rx_legitimate_constant_p): ...this.
16327         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16328         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16329         (rx_legitimate_constant_p): ...this.
16330         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16331         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16332
16333         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16334         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16335         * config/s390/s390.c (legitimate_constant_p): Rename to...
16336         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
16337         and add a mode argument.
16338         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16339
16340         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16341
16342         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16343         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16344         (sh_legitimate_constant_p): New function.
16345
16346         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16347         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16348         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16349         (legitimate_constant_p): Rename to...
16350         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
16351         argument.
16352         (constant_address_p): Update accordingly.
16353
16354         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16355         argument and return a bool.
16356         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16357         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16358         (spu_legitimate_constant_p): Add a mode argument and return a bool.
16359         (spu_rtx_costs): Update accordingly.
16360         * config/spu/predicates.md (vec_imm_operand): Likewise.
16361
16362         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16363
16364         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16365         * config/v850/v850.c (v850_legitimate_constant_p): New function.
16366         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16367
16368         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16369         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16370         * config/vax/vax.c (legitimate_constant_p): Likewise.
16371
16372         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16373         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16374         (xtensa_legitimate_constant_p): New function.
16375
16376 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16377
16378         * target.def (cannot_force_const_mem): Add a mode argument.
16379         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16380         * doc/tm.texi: Regenerate.
16381         * hooks.h (hook_bool_mode_rtx_false): Declare.
16382         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16383         (hook_bool_mode_const_rtx_true): Likewise.
16384         (hook_bool_mode_rtx_false): New function.
16385         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16386         to be non-VOID.  Update call to cannot_force_const_mem.
16387         (find_reloads): Update accordingly.
16388         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16389         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16390         argument.
16391         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16392         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16393         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16394         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16395         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16396         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16397         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16398         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16399         (m68k_cannot_force_const_mem): ...this new function.
16400         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16401         argument.
16402         (mips_const_insns, mips_legitimize_const_move): Update calls.
16403         (mips_secondary_reload_class): Likewise.
16404         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16405         (pa_cannot_force_const_mem): ...this new function.
16406         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16407         (rs6000_cannot_force_const_mem): ...this new function.
16408         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16409         argument.
16410         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16411         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16412         to...
16413         (xtensa_cannot_force_const_mem): ...this new function.
16414
16415 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16416
16417         * config/mips/mips.c (mips16_build_function_stub): Call
16418         build_function_type_list instead of build_function_type.
16419         (mips16_build_call_stub): Likewise.
16420
16421 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16422
16423         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16424         instead of build_function_type.
16425
16426 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16427
16428         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16429         instead of build_function_type.
16430
16431 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16432
16433         PR target/48678
16434         * config/i386/i386.md (insv): Change operand 0 constraint to
16435         "register_operand".  Change operand 1 and 2 constraint to
16436         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16437         * config/i386/sse.md (sse4_1_pinsrb): Export.
16438         (sse2_pinsrw): Ditto.
16439         (sse4_1_pinsrd): Ditto.
16440         (sse4_1_pinsrq): Ditto.
16441         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16442         * config/i386/i386.c (ix86_expand_pinsr): New.
16443
16444 2011-04-20  Easwaran Raman  <eraman@google.com>
16445
16446         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16447         containing union type only with -fstrict-aliasing.
16448
16449 2011-04-20  Jim Meyering  <meyering@redhat.com>
16450
16451         Remove useless if-before-free tests.
16452         * calls.c (expand_call, save_area): Likewise.
16453         * cfgcleanup.c (try_forward_edges): Likewise.
16454         * collect2.c (collect_execute): Likewise.
16455         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16456         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16457         * coverage.c (coverage_checksum_string): Likewise.
16458         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16459         * cselib.c (cselib_init): Likewise.
16460         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16461         (df_set_clean_cfg): Likewise.
16462         * function.c (free_after_compilation): Likewise.
16463         * gcc.c (do_spec_1, main): Likewise.
16464         * gcov.c (create_file_names): Likewise.
16465         * gensupport.c (identify_predicable_attribute): Likewise.
16466         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16467         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16468         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16469         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16470         * ipa-pure-const.c (local_pure_const): Likewise.
16471         * ipa-reference.c (propagate): Likewise.
16472         * ira-costs.c (free_ira_costs): Likewise.
16473         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16474         * matrix-reorg.c (mat_free): Likewise.
16475         * prefix.c (get_key_value): Likewise.
16476         * profile.c (compute_value_histograms): Likewise.
16477         * reload1.c (free_reg_equiv): Likewise.
16478         * sched-deps.c (free_deps): Likewise.
16479         * sel-sched-ir.c (fence_clear): Likewise.
16480         * sese.c (set_rename, if_region_set_false_region): Likewise.
16481         * tree-data-ref.c (free_rdg): Likewise.
16482         * tree-eh.c (lower_try_finally): Likewise.
16483         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16484         * tree-ssa-live.c (delete_var_map): Likewise.
16485         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16486         * tree-ssa-pre.c (phi_trans_add): Likewise.
16487
16488 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16489
16490         PR tree-optimization/48611
16491         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16492         beyond ERT_MUST_NOT_THROW region.
16493
16494 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16495
16496         * config/mips/mips.opt (mfix-24k): New.
16497         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16498         * config/mips/mips.md (length): Increase by 4 for stores if
16499         fixing 24K errata.
16500         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16501         all noreorder if fixing 24K errata.
16502         * doc/invoke.texi: Document mfix-24k.
16503
16504 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16505
16506         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16507         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16508
16509 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16510
16511         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16512         (const_ok_for_op): ... to here.
16513
16514 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16515
16516         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16517         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16518
16519 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16520
16521         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16522
16523 2011-04-20  Richard Guenther  <rguenther@suse.de>
16524
16525         PR tree-optimization/47892
16526         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16527         are if-convertible.
16528
16529 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16530
16531         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16532
16533 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16534
16535         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16536
16537 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16538
16539         PR target/18145
16540
16541         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16542         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16543         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16544         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16545         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16546
16547         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16548         New prototype.
16549
16550         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16551         (avr_asm_named_section, avr_asm_output_aligned_common,
16552         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16553         New functions to update...
16554         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16555         (avr_asm_init_sections): Overwrite section callbacks for
16556         data_section, bss_section.
16557         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16558         from here to...
16559         (avr_file_end): ...here.
16560
16561 2011-04-20  Richard Guenther  <rguenther@suse.de>
16562
16563         PR middle-end/48695
16564         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16565         objects and types here.  Adjust for their offset before comparing.
16566
16567 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16568
16569         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16570         statement per copy.
16571
16572 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16573
16574         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16575         (GIMPLE_H): Include $(INTERNAL_FN_H).
16576         (OBJS-common): Add internal-fn.o.
16577         (internal-fn.o): New rule.
16578         * internal-fn.def: New file.
16579         * internal-fn.h: Likewise.
16580         * internal-fn.c: Likewise.
16581         * gimple.h: Include internal-fn.h.
16582         (GF_CALL_INTERNAL): New gf_mask.
16583         (gimple_statement_call): Put fntype into a union with a new
16584         internal_fn field.
16585         (gimple_build_call_internal): Declare.
16586         (gimple_build_call_internal_vec): Likewise.
16587         (gimple_call_same_target_p): Likewise.
16588         (gimple_call_internal_p): New function.
16589         (gimple_call_internal_fn): Likewise.
16590         (gimple_call_fntype): Return null for internal calls.
16591         (gimple_call_set_fntype): Assert that the function is not internal.
16592         (gimple_call_set_fn): Likewise.
16593         (gimple_call_set_fndecl): Likewise.
16594         (gimple_call_set_internal_fn): New function.
16595         (gimple_call_addr_fndecl): Handle null functions.
16596         (gimple_call_return_type): Likewise null types.
16597         * gimple.c (gimple_build_call_internal_1): New function.
16598         (gimple_build_call_internal): Likewise.
16599         (gimple_build_call_internal_vec): Likewise.
16600         (gimple_call_same_target_p): Likewise.
16601         (gimple_call_flags): Handle calls to internal functions.
16602         (gimple_call_fnspec): New function.
16603         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16604         (gimple_has_side_effects): Handle null functions.
16605         (gimple_rhs_has_side_effects): Likewise.
16606         (gimple_call_copy_skip_args): Handle calls to internal functions.
16607         * cfgexpand.c (expand_call_stmt): Likewise.
16608         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16609         * gimple-fold.c (gimple_fold_call): Handle null functions.
16610         (gimple_fold_stmt_to_constant_1): Don't fold
16611         calls to internal functions.
16612         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16613         functions.
16614         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16615         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16616         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16617         (do_warn_unused_result): Likewise.
16618         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16619         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16620         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16621         the target of a call.
16622         (initialize_hash_element): Update accordingly.
16623         (hashable_expr_equal_p): Use gimple_call_same_target_p.
16624         (iterative_hash_hashable_expr): Handle calls to internal functions.
16625         (print_expr_hash_elt): Likewise.
16626         * tree-ssa-pre.c (can_value_number_call): Likewise.
16627         (eliminate): Handle null functions.
16628         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16629         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16630         (find_func_aliases): Likewise.
16631         * value-prof.c (gimple_ic_transform): Likewise.
16632         (gimple_indirect_call_to_profile): Likewise.
16633         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16634         * lto-streamer-out.c (output_gimple_stmt): Likewise.
16635
16636 2011-04-19  Jan Hubicka  <jh@suse.cz>
16637
16638         * ipa-inline-transform.c (save_inline_function_body): Add comments.
16639         * ipa-inline.c (inline_small_functions): Compute summaries first,
16640         populate heap later.
16641
16642 2011-04-19  Jan Hubicka  <jh@suse.cz>
16643
16644         * cgraph.h (save_inline_function_body): Remove.
16645         * ipa-inline-transform.c: New file, broke out of...
16646         * ipa-inline.c: ... this one; Update toplevel comment.
16647         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16648         make global.
16649         (update_noncloned_frequencies): Move to ipa-inline-transform.c
16650         (cgraph_mark_inline_edge): Rename to inline_call; move to
16651         ipa-inline-transform.c.
16652         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16653         move to ipa-inline-transform.c
16654         (recursive_inlining, inline_small_functions, flatten_function,
16655         ipa_inline, inline_always_inline_functions,
16656         early_inline_small_functions): Update.
16657         (inline_transform): Move to ipa-inline-transform.c.
16658         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16659         Declare.
16660         * Makefile.in (ipa-inline-transform.o): New file.
16661         * cgraphunit.c (save_inline_function_body): Move to
16662         ipa-inline-transform.c
16663
16664 2011-04-19  DJ Delorie  <dj@redhat.com>
16665
16666         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16667         registers if we already know there aren't any.
16668         (m32c_emit_epilogue): Don't emit a barrier here.
16669         (m32c_emit_eh_epilogue): Likewise.
16670         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16671         operands at expand time.
16672         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16673         int" wchar type.
16674         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16675         duplicates.  Provide aliases instead.
16676         * config/m32c/prologue.md (eh_return): Emit a barrier here.
16677         (eh_epilogue): Add a "(return)" here as a hint to other parts of
16678         the compiler.
16679
16680 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
16681
16682         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16683         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16684         (general_or_i64_p, sparc_register_move_cost): New function.
16685
16686 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16687
16688         * doc/install.texi (Configuration, --enable-threads): Remove mach.
16689         Add lynx, mipssde.  Sort table.
16690
16691 2011-04-19  Xinliang David Li  <davidxl@google.com>
16692
16693         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16694         not negative.
16695
16696 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
16697
16698         PR target/48678
16699         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16700         is a SUBREG with non-MODE_INT mode inside of it.
16701
16702 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16703
16704         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16705         also according to actual contants.
16706         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16707         (gimple_fold_call): Use it.
16708         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16709
16710 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16711
16712         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16713         non-pointer assignments.
16714
16715 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16716
16717         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16718         account anc_offset and otr_type from the indirect edge info.
16719         * ipa-prop.c (get_ancestor_addr_info): New function.
16720         (compute_complex_ancestor_jump_func): Assignment analysis moved to
16721         get_ancestor_addr_info, call it.
16722         (ipa_note_param_call): Do not initialize information about polymorphic
16723         calls, return the indirect call graph edge.  Remove the last
16724         parameter, adjust all callers.
16725         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16726         parameters.  Initialize polymorphic information in the indirect edge.
16727
16728 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16729
16730         PR lto/48148
16731         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16732         the types if they have different enumeration identifiers.
16733
16734 2011-04-19  Jan Hubicka  <jh@suse.cz>
16735
16736         * cgraph.h (cgraph_optimize_for_size_p): Declare.
16737         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16738         * predict.c (cgraph_optimize_for_size_p): Break out from ...
16739         (optimize_function_for_size_p) ... here.
16740
16741 2011-04-19  Richard Guenther  <rguenther@suse.de>
16742
16743         PR lto/48207
16744         * tree.c (free_lang_data): Do not reset the decl-assembler-name
16745         langhook.
16746
16747 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16748
16749         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16750         if DECL_NO_INLINE_WARNING_P is set on the function.
16751
16752 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
16753
16754         PR fortran/47976
16755         * reload1.c (inc_for_reload): Return void. All callers changed.
16756         (emit_input_reload_insns): Don't try to delete previous output
16757         reloads to a register, or record spill_reg_store for autoincs.
16758
16759 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
16760
16761         * gengtype.h: Updated copyright year.
16762         (struct input_file_st): Add inpisplugin field.
16763         (type_fileloc): New function.
16764         * gengtype.c
16765         (write_typed_struct_alloc_def): Add gcc_assert.
16766         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16767         (write_typed_alloc_defns): Don't output for plugin files.
16768         (input_file_by_name): Clear inpisplugin field.
16769         (main): Set inpisplugin field for plugin files.
16770
16771 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
16772
16773         * gengtype-state.c (string_eq): New.
16774         (read_state): Use string_eq instead of strcmp when creating the
16775         state_ident_tab.
16776
16777 2011-04-19  Wei Guozhi  <carrot@google.com>
16778
16779         PR target/47855
16780         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16781         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16782         linkage.
16783         * config/arm/constraints.md (Uu): New constraint.
16784         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16785
16786 2011-04-19  Tristan Gingold  <gingold@adacore.com>
16787
16788         * config.gcc (-*-*-*vms): Added.
16789         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16790         definitions moved.
16791         * config/vms/vms-ld.c: New file.
16792         * config/vms/vms-ar.c: New file.
16793         * config/vms/t-vmsnative: New file.
16794
16795 2011-04-18  Xinliang David Li  <davidxl@google.com>
16796
16797         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16798
16799 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16800
16801         PR middle-end/48661
16802         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16803         if TREE_TYPE (v) is non-NULL.
16804
16805         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16806         gimple_get_virt_mehtod_for_binfo.
16807         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16808         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16809         callers.
16810         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16811
16812 2011-04-18  Michael Matz  <matz@suse.de>
16813             Steve Ellcey  <sje@cup.hp.com>
16814
16815         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16816         use its mode as source mode if it isn't VOIDmode.
16817
16818 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
16819
16820         * doc/passes.texi: Fill crossref nodes.
16821
16822 2011-04-18  Jim Meyering  <meyering@redhat.com>
16823
16824         Fix doubled-word typos in comments and strings
16825         * config/alpha/vms-unwind.h: s/for for/for/
16826         * config/arm/unwind-arm.h: Likewise.
16827         * config/microblaze/microblaze.c: Likewise.
16828         * config/sh/constraints.md: s/in in/in/
16829         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16830
16831 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
16832
16833         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16834         (AVX_FLOAT_MODE_P): Ditto.
16835         (AVX128_VEC_FLOAT_MODE_P): Ditto.
16836         (AVX256_VEC_FLOAT_MODE_P): Ditto.
16837         (AVX_VEC_FLOAT_MODE_P): Ditto.
16838         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16839         (UNSPEC_MASKSTORE): Ditto.
16840         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16841         Merge from <sse>_movmsk<ssemodesuffix> and
16842         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
16843         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
16844         iterator.
16845         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16846         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16847         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16848
16849 2011-04-18  Jan Hubicka  <jh@suse.cz>
16850
16851         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16852
16853         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16854         (want_inline_function_called_once_p): Break out the logic from
16855         ipa_inline.
16856         (edge_badness): Ensure that profile is not misupdated.
16857         (lookup_recursive_calls): Prioritize by call frequencies.
16858         (inline_small_functions): Move program size estimates here;
16859         actually process whole queue even when unit growth has been
16860         met. (to properly compute inline_failed reasons and for the
16861         case unit size decrease.) Revisit comments on recursive inlining.
16862         (ipa_inline): Remove unit summary code; first inline hot calls
16863         of functions called once, cold calls next.
16864         (order, nnodes): Remove unused variables.
16865         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16866         (GTFILES): Remove ipa-inline.c
16867         * sel-sched.c (fill_insns): Silence uninitialized var warning.
16868
16869 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16870
16871         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16872
16873 2011-04-18  Jie Zhang  <jie@codesourcery.com>
16874             Richard Earnshaw  <rearnsha@arm.com>
16875
16876         * arm.c (neon_builtin_type_bits): Remove.
16877         (typedef enum neon_builtin_mode): New.
16878         (T_MAX): Don't define.
16879         (typedef enum neon_builtin_datum): Remove bits, codes[],
16880         num_vars and base_fcode.  Add mode, code and fcode.
16881         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16882         VAR10): Change accordingly.
16883         (neon_builtin_data[]): Change accordingly
16884         (arm_init_neon_builtins): Change accordingly.
16885         (neon_builtin_compare): Remove.
16886         (locate_neon_builtin_icode): Remove.
16887         (arm_expand_neon_builtin): Change accordingly.
16888
16889         * arm.h (enum arm_builtins): Move to ...
16890         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16891
16892         * arm.c (arm_builtin_decl): Declare.
16893         (TARGET_BUILTIN_DECL): Define.
16894         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16895         (arm_builtin_decls[]): New.
16896         (arm_init_neon_builtins): Store builtin declarations in
16897         arm_builtin_decls[].
16898         (arm_init_tls_builtins): Likewise.
16899         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
16900         (arm_builtin_decl): New.
16901
16902 2011-04-18  Richard Guenther  <rguenther@suse.de>
16903
16904         * tree.c (upper_bound_in_type): Build properly canonicalized
16905         INTEGER_CSTs.
16906         (lower_bound_in_type): Likewise.
16907
16908 2011-04-18  Richard Guenther  <rguenther@suse.de>
16909
16910         * gimple.h (gimple_call_addr_fndecl): New function.
16911         (gimple_call_fndecl): Use it.
16912         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
16913         for direct calls.
16914         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
16915         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
16916
16917 2011-04-18  Richard Guenther  <rguenther@suse.de>
16918
16919         PR middle-end/48650
16920         * tree.c (build_string): STRING_CST is now derived from tree_typed.
16921
16922 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16923
16924         PR lto/48492
16925         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
16926         DECL_IN_CONSTANT_POOL without RTL.
16927
16928 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
16929             Ira Rosen  <ira.rosen@linaro.org>
16930
16931         PR target/48252
16932         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
16933         to match neon_vzip/vuzp/vtrn_internal.
16934         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
16935         outputs explicitly dependent on both inputs.
16936         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16937
16938 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16939
16940         PR tree-optimization/48616
16941         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
16942         whether the shift is by scalar or vector based on whether all SLP
16943         scalar stmts have the same rhs.
16944
16945 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
16946
16947         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
16948         memory operands.
16949
16950 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
16951
16952         PR target/43700
16953         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
16954         registers.
16955
16956 2011-04-17  Jan Hubicka  <jh@suse.cz>
16957
16958         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
16959         * cgrpahunit.c (cgraph_finalize_function): Do not set
16960         finalized_by_frontend.
16961         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16962         finalized_by_frontend.
16963
16964 2011-04-17  Jan Hubicka  <jh@suse.cz>
16965
16966         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
16967         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
16968         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
16969         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
16970         method.
16971         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
16972         gimple-fold.c
16973         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
16974
16975 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16976
16977         PR lto/48538
16978         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
16979         is non-null before accessing it.
16980         (input_cgraph): Remove trailing spaces.
16981
16982 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16983
16984         * params.def (sms-min-sc): New param flag.
16985         * modulo-sched.c (sms_schedule): Use it.
16986         * doc/invoke.texi (sms-min-sc): Document it.
16987
16988 2011-04-17  Jan Hubicka  <jh@suse.cz>
16989
16990         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
16991         present, also set gimple_call_set_cannot_inline.
16992         * ipa-inline.c: Update toplevel comment.
16993         (MAX_TIME): Remove.
16994         (cgraph_clone_inlined_nodes): Fix linebreaks.
16995         (cgraph_check_inline_limits): Restructure to ...
16996         (caller_growth_limits): ... this one; be more tolerant
16997         on growth in nested inline chains; add explanatory comment;
16998         fix stack accounting thinko introduced by previous patch.
16999         (cgraph_default_inline_p): Remove.
17000         (report_inline_failed_reason): New function.
17001         (can_inline_edge_p): New function.
17002         (can_early_inline_edge_p): New function.
17003         (leaf_node_p): Move upwards in file.
17004         (want_early_inline_function_p): New function.
17005         (want_inline_small_function_p): New function.
17006         (want_inline_self_recursive_call_p): New function.
17007         (cgraph_edge_badness): Rename to ...
17008         (edge_badness) ... this one; fix linebreaks.
17009         (update_edge_key): Update call of edge_baddness; add
17010         detailed dump about queue updates.
17011         (update_caller_keys): Use can_inline_edge_p and
17012         want_inline_small_function_p.
17013         (cgraph_decide_recursive_inlining): Rename to...
17014         (recursive_inlining): Use can_inline_edge_p and
17015         want_inline_self_recursive_call_p; simplify and remove no longer
17016         valid FIXME.
17017         (cgraph_set_inline_failed): Remove.
17018         (add_new_edges_to_heap): Use can_inline_edge_p and
17019         want_inline_small_function_p.
17020         (cgraph_decide_inlining_of_small_functions): Rename to ...
17021         (inline_small_functions): ... this one; cleanup; use
17022         can/want predicates; cleanup debug ouput; work edges till fibheap
17023         is exhausted and do not stop once unit growth is reached; remove
17024         later loop processing remaining edges.
17025         (cgraph_flatten): Rename to ...
17026         (flatten_function): ... this one; use can_inline_edge_p
17027         and can_early_inline_edge_p predicates.
17028         (cgraph_decide_inlining): Rename to ...
17029         (ipa_inline): ... this one; remove unreachable nodes before
17030         inlining functions called once; simplify the pass.
17031         (cgraph_perform_always_inlining): Rename to ...
17032         (inline_always_inline_functions): ... this one; use
17033         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17034         (cgraph_decide_inlining_incrementally): Rename to ...
17035         (early_inline_small_functions): ... this one; simplify
17036         using new predicates; cleanup; make dumps prettier.
17037         (cgraph_early_inlining): Rename to ...
17038         (early_inliner): newer inline regular functions into always-inlines;
17039         fix updating of call stmt summaries.
17040         (pass_early_inline): Update for new names.
17041         (inline_transform): Fix formating.
17042         (gate_cgraph_decide_inlining): Rename to ...
17043         (pass_ipa_inline): ... this one.
17044         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17045         * ipa-inline-analysis.c (dump_inline_summary): Update.
17046         (compute_inline_parameters): Do not compute disregard_inline_limits;
17047         look for mismatching arguments.
17048         (estimate_growth): Fix handlig of non-trivial self recursion.
17049         (inline_read_summary): Do not read info->disregard_inline_limits.
17050         (inline_write_summary): Do not write info->disregard_inline_limits.
17051         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17052         and move all checks into can_inline_edge_p predicate; re-enable code
17053         comparing optimization levels.
17054         (expand_call_inline): Do not test inline_forbidden_into_p.
17055         * Makefile.in (ipa-inline.o): Update arguments.
17056
17057 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17058
17059         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17060
17061 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17062
17063         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17064
17065 2011-04-17  Michael Matz  <matz@suse.de>
17066
17067         PR tree-optimization/48622
17068         PR lto/48645
17069         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17070         in same order as they're written.
17071
17072 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17073
17074         * config/pa/predicates.md: Reorganize and simplify predicates.
17075         Eliminate duplicate code checks.
17076         (arith_operand): Rename to arith14_operand
17077         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17078         * config/pa/pa.md: Use renamed operands.
17079         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17080         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17081         arith11_operand, adddi3_operand, indexed_memory_operand,
17082         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17083         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17084         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17085         move_dest_operand, move_src_operand, prefetch_cc_operand,
17086         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17087         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17088         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17089         div_operand, int5_operand, movb_comparison_operator,
17090         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17091         arith_double_operand, ireg_operand, lhs_lshift_operand,
17092         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17093         integer_store_memory_operand): Likewise.
17094         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17095         (integer_store_memory_operand, read_only_operand,
17096         function_label_operand, borx_reg_operand,
17097         non_hard_reg_operand): Likewise.
17098         (eq_neq_comparison_operator): Delete unused operator.
17099         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17100         function_label_operand.
17101         (emit_move_sequence): Likewise.
17102
17103 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17104
17105         * config/i386/sse.md (sseunpackmode): New mode attribute.
17106         (ssepackmode): Ditto.
17107         (vec_pack_trunc_<mode>): Macroize expander from
17108         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17109         (vec_unpacks_lo_<mode>): Macroize expander from
17110         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17111         (vec_unpacks_hi_<mode>): Macroize expander from
17112         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17113         (vec_unpacku_lo_<mode>): Macroize expander from
17114         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17115         (vec_unpacku_hi_<mode>): Macroize expander from
17116         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17117         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17118         ix86_expand_sse4_unpack.
17119         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17120
17121 2011-04-16  Jan Hubicka  <jh@suse.cz>
17122
17123         * cgraphbuild.c: Include ipa-inline.h.
17124         (reset_inline_failed): Use initialize_inline_failed.
17125         * cgraph.c: Include ipa-inline.h.
17126         (cgraph_create_node_1): Do not initialize estimated_growth.
17127         (initialize_inline_failed): More to ipa-inline-analysis.c
17128         (dump_cgraph_node): Do not dump inline flags.
17129         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17130         and disregard_inline_limits flags.
17131         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17132         time, size, estimated_growth.
17133         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17134         Update.
17135         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17136         DECL_DISREGARD_INLINE_LIMITS.
17137         (cgraph_analyze_function): Do not initialize
17138         node->local.disregard_inline_limits.
17139         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17140         inlinable, versionable and disregard_inline_limits.
17141         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17142         cgraph_check_inline_limits, cgraph_default_inline_p,
17143         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17144         add_new_edges_to_heap): Update.
17145         (cgraph_decide_inlining_of_small_function): Update; set
17146         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17147         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17148         cgraph_decide_inlining_incrementally): Update.
17149         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17150         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17151         time, size and estimated_growth parameters.
17152         (estimate_edge_growth): Update.
17153         (initialize_inline_failed): Declare.
17154         * ipa-split.c: Include ipa-inline.h
17155         (execute_split_functions): Update.
17156         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17157         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17158         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17159         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17160         estimated_growth to INT_MIN.
17161         (inline_node_duplication_hook): Likewise.
17162         (dump_inline_summary): Dump new fields.
17163         (compute_inline_parameters): Update.
17164         (estimate_edge_time, estimate_time_after_inlining,
17165         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17166         inline_write_summary):
17167         (initialize_inline_failed): Move here from cgraph.c.
17168         * tree-sra.c: Include ipa-inline.h.
17169         (ipa_sra_preliminary_function_checks): Update.
17170         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17171         ipa-inline.h.
17172
17173 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17174
17175         * config/i386/sse.md (V16): New mode iterator.
17176         (VI1, VI8): Ditto.
17177         (AVXMODEQI, AVXMODEDI): Remove.
17178         (sse2, sse3): New mode attribute.
17179         (mov<mode>): Use V16 mode iterator.
17180         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17181         (push<mode>1): Use V16 mode iterator.
17182         (movmisalign<mode>): Ditto.
17183         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17184         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17185         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17186         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17187         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17188         avx_movdqu<avxmodesuffix>.
17189         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17190         *avx_movdqu<avxmodesuffix>.
17191         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17192         avx_lddqu<avxmodesuffix>.
17193         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17194         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17195         avx_movnt<AVXMODEDI:mode>.
17196         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17197         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17198
17199 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17200
17201         PR target/48629
17202         * haifa-sched.c (prune_ready_list, schedule_block): Use
17203         sched_pressure_p rather than flag_sched_pressure.
17204
17205 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17206
17207         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17208         cgraph_get_node instead of cgraph_get_create_node.
17209
17210 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17211
17212         * cfgexpand.c (expand_debug_expr): Use
17213         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17214
17215 2011-04-15  Michael Matz  <matz@suse.de>
17216
17217         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17218         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17219         * function.c (gimplify_parameters): Ditto.
17220         * gimplify.c (gimplify_vla_decl): Ditto.
17221
17222         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17223         (gimple_call_set_alloca_for_var): New inline function.
17224         (gimple_call_alloca_for_var_p): Ditto.
17225         * gimple.c (gimple_build_call_from_tree): Remember
17226         CALL_ALLOCA_FOR_VAR_P state.
17227         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17228
17229         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17230         calls if they were for VLA objects.
17231
17232 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17233
17234         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17235         of ADR_EXPRs.
17236
17237 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17238
17239         PR middle-end/48601
17240         * tree-emutls.c (lower_emutls_function_body): Call
17241         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17242         result is non-NULL.
17243
17244 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17245
17246         * c-decl.c (detect_field_duplicates): Call
17247         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17248
17249 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17250
17251         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17252         * gimple.c (gimple_asm_clobbers_memory_p): Define.
17253         * ipa-pure-const.c (check_stmt): Call it.
17254         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17255
17256 2011-04-15  Richard Guenther  <rguenther@suse.de>
17257
17258         PR tree-optimization/48290
17259         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17260         Properly decide inhibiting propagation based on the valueized
17261         operand.  Do loop-closed SSA form preserving here ...
17262         (init_copy_prop): ... not here.
17263
17264 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17265
17266         PR target/48612
17267         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17268         (*ieee_smax<mode>3): Likewise.
17269
17270 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17271
17272         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17273         Replace match_operand with match_dup for the third operand in
17274         these expanders.
17275
17276 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17277
17278         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17279         to track processing of conditionals.  Update all callers.
17280         (try_combine, simplify_if_then_else): Update.
17281
17282 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17283
17284         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17285         -fsched-pressure.
17286
17287 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
17288
17289         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17290         instead of match_operand for operand 3.
17291
17292 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
17293
17294         * recog.h (insn_operand_data): Add an "allows_mem" field.
17295         * genoutput.c (output_operand_data): Initialize it.
17296         * optabs.c (maybe_legitimize_operand_same_code): New function.
17297         (maybe_legitimize_operand): Use it when matching the original
17298         op->value.
17299
17300 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17301
17302         * gimplify.c: Fix issues in comments throughout.
17303         (voidify_wrapper_expr): Fix long line.
17304         (build_stack_save_restore): Likewise.
17305         (gimplify_loop_expr): Likewise.
17306         (gimplify_compound_lval): Likewise.
17307         (gimplify_init_ctor_eval): Likewise.
17308         (gimplify_modify_expr_rhs): Likewise.
17309         (omp_notice_threadprivate_variable): Likewise.
17310
17311 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17312
17313         * cfgexpand.c (expand_call_stmt): Convert the function type to the
17314         original one if this is not a builtin function.
17315
17316 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
17317
17318         PR target/48605
17319         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17320         offset it as needed based on top 2 bits in operands[3], change
17321         MEM mode to SFmode and mask those 2 bits away from operands[3].
17322
17323 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17324
17325         * c-parser.c (c_parser_objc_protocol_definition): Updated for
17326         change from objc_declare_protocols() to objc_declare_protocol().
17327
17328 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
17329
17330         * config/i386/sse.md (sse4_1): New mode attribute.
17331         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17332         avx_blend<ssemodesuffix><avxmodesuffix> and
17333         sse4_1_blend<ssemodesuffix> using VF mode iterator.
17334         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17335         avx_blendv<ssemodesuffix><avxmodesuffix> and
17336         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17337         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17338         avx_dp<ssemodesuffix><avxmodesuffix> and
17339         sse4_1_dp<ssemodesuffix> using VF mode iterator.
17340         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17341         (sse4_1_packusdw): Merge with *avx_packusdw.
17342         (sse4_1_pblendvb): Merge with *avx_pblendvb.
17343         (sse4_1_pblendw): Merge with *avx_pblendw.
17344         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17345         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17346         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17347         VF mode iterator.
17348         (sse4_1_round<ssescalarmodesuffix>): Merge with
17349         *avx_round<ssescalarmodesuffix>.
17350         (aesenc): Merge with *avx_aesenc.
17351         (aesenclast): Merge with *avx_aesenclast.
17352         (aesdec): Merge with *avx_aesdec.
17353         (aesdeclast): Merge with *avx_aesdeclast.
17354         (pclmulqdq): Merge with *pclmulqdq.
17355         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17356         New predicate.
17357         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17358
17359 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
17360
17361         PR middle-end/48608
17362         * cfgexpand.c (get_decl_align_unit): Renamed to ...
17363         (align_local_variable): This.  Update DECL_ALIGN.
17364         (add_stack_var): Updated.
17365         (expand_one_stack_var): Likewise.
17366
17367 2011-04-14  Richard Guenther  <rguenther@suse.de>
17368
17369         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17370         Remove.
17371         (dse_initialize_block_local_data, dse_leave_block,
17372         record_voperand_set, get_stmt_uid): Likewise.
17373         (dse_possible_dead_store_p): Allow any kind of killing stmt.
17374         (dse_optimize_stmt): Remove voperand set handling code.
17375         Simplify and improve to handle any kind of killing stmt.
17376         (dse_record_phi): Remove.
17377         (dse_enter_block): Simplify.
17378         (tree_ssa_dse): Likewise.
17379         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17380
17381 2011-04-14  Jan Hubicka  <jh@suse.cz>
17382
17383         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17384         * cgraph.h (struct inline_summary): Move to ipa-inline.h
17385         (cgraph_local_info): Remove inline_summary.
17386         * ipa-cp.c: Include ipa-inline.h.
17387         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17388         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17389         accesor.
17390         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17391         (input_overwrite_node): Do not set inline summary.
17392         (input_node): Do not stream inline summary.
17393         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17394         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17395         growth; we do not have inline parameters computed for that anyway.
17396         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17397         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17398         (inline_summary_t): New type and VECtor.
17399         (debug_inline_summary, dump_inline_summaries): Declare.
17400         (inline_summary): Use VOCtor.
17401         (estimate_edge_growth): Kill hack computing call stmt size directly.
17402         * lto-section-in.c (lto_section_name): Add inline section.
17403         * ipa-inline-analysis.c: Include lto-streamer.h
17404         (node_removal_hook_holder, node_duplication_hook_holder): New holders
17405         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17406         (inline_summary_vec): Define.
17407         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17408         dump_inline_summaries): New functions.
17409         (estimate_function_body_sizes): Properly compute size/time of outgoing
17410         calls.
17411         (compute_inline_parameters): Alloc inline_summary; do not compute
17412         size/time of incomming calls.
17413         (estimate_edge_time): Avoid missing time summary hack.
17414         (inline_read_summary): Read inline summary info.
17415         (inline_write_summary): Write inline summary info.
17416         (inline_free_summary): Free all hooks and inline summary vector.
17417         * lto-streamer.h: Add LTO_section_inline_summary section.
17418         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17419         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17420
17421 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17422
17423         * tree-vectorizer.h (vect_strided_store_supported): Add a
17424         HOST_WIDE_INT argument.
17425         (vect_strided_load_supported): Likewise.
17426         (vect_permute_store_chain): Return void.
17427         (vect_transform_strided_load): Likewise.
17428         (vect_permute_load_chain): Delete.
17429         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17430         count argument.  Check that the count is a power of two.
17431         (vect_strided_load_supported): Likewise.
17432         (vect_permute_store_chain): Return void.  Update after above changes.
17433         Assert that the access is supported.
17434         (vect_permute_load_chain): Likewise.
17435         (vect_transform_strided_load): Return void.
17436         * tree-vect-stmts.c (vectorizable_store): Update calls after
17437         above interface changes.
17438         (vectorizable_load): Likewise.
17439         (vect_analyze_stmt): Don't check for strided powers of two here.
17440
17441 2011-04-14  Richard Guenther  <rguenther@suse.de>
17442
17443         PR tree-optimization/48590
17444         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17445         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17446         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17447         BUILT_IN_STACK_SAVE.
17448         * tree-ssa-dce.c (propagate_necessity): Handle
17449         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17450
17451 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17452
17453         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17454         objc_declare_class.
17455
17456 2011-04-14  Richard Guenther  <rguenther@suse.de>
17457
17458         * tree.h (get_object_alignment_1): Declare.
17459         * builtins.c (get_object_alignment_1): Split out worker from ...
17460         (get_object_alignment): ... here.
17461         * fold-const.c (get_pointer_modulus_and_residue): Use
17462         get_object_alignment_1.
17463
17464 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17465
17466         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17467         type parameter.
17468         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17469         parameter.  Generalise code to handle arrays as well as vectors.
17470         (vect_setup_realignment): Update accordingly.
17471         * tree-vect-stmts.c (vectorizable_store): Likewise.
17472         (vectorizable_load): Likewise.
17473
17474 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17475
17476         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17477         within the per-copy loop.
17478
17479 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17480
17481         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17482         in the dump file.
17483
17484 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17485
17486         * doc/options.texi (Negative): Explicitly mention that the
17487         Negative chain must be circular.
17488
17489 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17490
17491         * function.h (block_chainon): Declare.
17492         * function.c (block_chainon): Define.
17493
17494 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17495             Eric Weddington  <eric.weddington@atmel.com>
17496             Georg-Johann Lay  <avr@gjlay.de>
17497
17498         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17499         New Includes
17500         (avr_init_builtins, avr_expand_builtin,
17501         avr_expand_delay_cycles, avr_expand_unop_builtin,
17502         avr_expand_binop_builtin ): New functions.
17503         (avr_builtin_id): New enum
17504         (struct avr_builtin_description): New struct
17505         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17506         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17507
17508         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17509         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17510         UNSPECV_DELAY_CYCLES): new enumeration values
17511         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17512         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17513         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17514         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17515         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17516         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17517         "fmulsu"): New insns
17518
17519         * config/avr/avr-c.c: fix line endings
17520         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17521         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17522         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17523         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17524         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17525
17526         * doc/extend.texi (AVR Built-in Functions): New node
17527         (Target Builtins): Add documentation of AVR
17528         built-in functions.
17529
17530 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17531
17532         PR target/44643
17533         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17534         alone. Error if non-const data has attribute progmem.
17535
17536 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17537
17538         * tree.h (struct tree_constructor): Include tree_typed instead of
17539         tree_common.
17540         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17541         TS_TYPED instead of TS_COMMON.
17542
17543 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17544
17545         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17546         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17547         (sse2_psadbw): Merge with *avx_psadbw.
17548         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17549         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17550         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17551         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17552         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17553         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17554         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17555         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17556         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17557         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17558         (ssse3_palignrti): Merge with *avx_palignrti.
17559
17560 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17561
17562         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17563         * tree-ssanames.c (fini_ssanames): VEC_free it.
17564         (make_ssa_name_fn): Update for VECness of free_ssanames.
17565         (release_ssa_name, release_dead_ssa_names): Likewise.
17566         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17567         tree_common.
17568         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17569         TS_TYPED instead of TS_COMMON.
17570
17571 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17572
17573         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17574         statistics_counter_event.
17575         * tree-ssa-copyrename.c (stats): Define.
17576         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17577         statistics_counter_event.
17578         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17579         (bswap_stats, widen_mul_stats): Define.
17580         (insert_reciprocals): Increment rdivs_inserted.
17581         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17582         rfuncs_inserted.  Add calls to statistics_counter_event.
17583         (execute_cse_sincos_1): Increment inserted.
17584         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17585         statistics_counter_event.
17586         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17587         of bswap_stats.  Add calls to statistics_counter_event.
17588         (convert_mult_to_widen): Increment widen_mults_inserted.
17589         (convert_plusminus_to_widen): Increment maccs_inserted.
17590         (convert_mult_to_fma): Increment fmas_inserted.
17591         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17592         calls to statistics_counter_event.
17593
17594 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17595
17596         PR rtl-optimization/48455
17597         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17598         `temp_costs->mem_cost'.
17599
17600 2011-04-13  Jan Hubicka  <jh@suse.cz>
17601
17602         * ipa-inline.h: New file.
17603         * ipa-inline-analysis.c: New file. Broken out of ...
17604         * ipa-inline.c: ... this file; update toplevel comment;
17605         include ipa-inline.h
17606         (inline_summary): Move to ipa-inline.h
17607         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17608         ipa-inline-analysis.c.
17609         (cgraph_estimate_time_after_inlining): Rename to
17610         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17611         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17612         to estimate_edge_growth.
17613         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17614         rename to estimate_size_after_inlining.
17615         (cgraph_mark_inline_edge): Update for new naming convention.
17616         (cgraph_check_inline_limits): Likewise.
17617         (cgraph_edge_badness): Likewise.
17618         (cgraph_decide_recursive_inlining): Likewise.
17619         (cgraph_decide_inlining_of_small_functions): Likewise.
17620         (cgraph_decide_inlining_incrementally): Likewise.
17621         (cgraph_estimate_growth): Rename to estimate_growth; move to
17622         ipa-inline-analysis.c.
17623         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17624         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17625         (compute_inline_parameters): Likewise.
17626         (compute_inline_parameters_for_current): Likewise.
17627         (pass_inline_parameters): Likewise.
17628         (inline_indirect_intraprocedural_analysis): Likewise.
17629         (analyze_function): Rename to inline_analyze_function; likewise.
17630         (add_new_function): Move to ipa-inline-analysis.c.
17631         (inline_generate_summary): Likewise.
17632         (inline_read_summary): Likewise.
17633         (inline_write_summary): Likewise.
17634         * Makefile.in (ipa-inline-analysis.c): New file.
17635
17636 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17637
17638         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17639         * configure: Regenerate.
17640
17641 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17642
17643         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17644         instead of tree_common.
17645         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17646         Likewise.
17647         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17648         TS_TYPED rather than TS_COMMON.
17649         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17650
17651 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
17652
17653         PR target/45263
17654         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17655         r20 around calls of __tablejump_elpm__
17656
17657 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17658
17659         PR middle-end/48591
17660         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17661         NULL.
17662         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17663
17664 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
17665
17666         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17667         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17668         (cfi_vec): New typedef.
17669         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17670         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17671         (cie_cfi_vec): New static variable.
17672         (cie_cfi_head): Delete.
17673         (add_cfi): Accept a cfi_vec * as first argument. All callers and
17674         declaration changed. Use vector rather than list operations.
17675         (new_cfi): Don't initialize the dw_cfi_next field.
17676         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17677         rather than list operations.
17678         (lookup_cfa): Use vector rather than list operations.
17679         (output_cfis): New argument upto. Accept a cfi_vec rather than
17680         a dw_cfi_ref list head as argument. All callers changed.
17681         Iterate over the vector using upto as a maximum index.
17682         (output_all_cfis): New static function.
17683         (output_fde): Use vector rather than list operations. Use the
17684         new upto argument for output_cfis rather than manipulating a
17685         list.
17686         (dwarf2out_begin_prologue): Change initializations to match
17687         new struct members.
17688         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17689         from the vector length rather than searching for the end of a list.
17690         Use output_all_cfis.
17691         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17692
17693 2011-04-13  Nick Clifton  <nickc@redhat.com>
17694
17695         * config/rx/rx.md (movmemsi): Do not use this pattern when
17696         volatile pointers are involved.
17697
17698 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17699
17700         * config/i386/sse.md (pinsrbits): Remove.
17701         (sse2_packsswb): Merge with *avx_packsswb.
17702         (sse2_packssdw): Merge with *avx_packssdw.
17703         (sse2_packuswb): Merge with *avx_packuswb.
17704         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17705         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17706         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17707         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17708         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17709         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17710         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17711         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17712         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17713         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17714         (sse2_loadld): Merge with *avx_loadld.
17715         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17716         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17717         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17718         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17719         (vec_concatv2di): Merge with *vec_concatv2di_avx.
17720
17721 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
17722
17723         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17724         calling TREE_CHAIN.
17725         * print-tree.c (print_node): Likewise.
17726         * tree-inline.c (copy_tree_r): Likewise.
17727         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17728         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17729         instead of TS_COMMON.
17730         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17731         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17732         (copy_node_stat): Zero TREE_CHAIN only if necessary.
17733         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17734         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17735         ...and these...
17736         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17737         * tree.h: ...here.
17738         (TREE_CHAIN): Check for a TS_COMMON structure.
17739         (TREE_TYPE): Check for a TS_TYPED structure.
17740
17741 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
17742
17743         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17744         cgraph_get_create_node instead of cgraph_node.
17745
17746 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17747
17748         * c-parser.c (c_parser_initelt): Updated call to
17749         objc_build_message_expr.
17750         (c_parser_postfix_expression): Likewise.
17751
17752 2011-04-12  Kai Tietz  <ktietz@redhat.com>
17753
17754         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17755         MASK_MS_BITFIELD_LAYOUT bit.
17756
17757 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17758
17759         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17760         assert it is always true.
17761         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17762         moves.
17763
17764 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17765
17766         * c-parser.c (c_lex_one_token): Rewritten conditional used when
17767         compiling Objective-C to be more efficient.
17768
17769 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
17770
17771         * opts-common.c (decode_cmdline_options_to_array): Remove variable
17772         argv_copied.
17773
17774 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17775
17776         * recog.h, genoutput.c, optabs.c: Revert last patch.
17777
17778 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17779
17780         PR target/48090
17781         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17782
17783 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17784
17785         * recog.h (insn_operand_data): Add an "allows_mem" field.
17786         * genoutput.c (output_operand_data): Initialize it.
17787         * optabs.c (maybe_legitimize_operand_same_code): New function.
17788         (maybe_legitimize_operand): Use it when matching the original
17789         op->value.
17790
17791 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17792
17793         * genpreds.c (process_define_predicate): Move most processing
17794         to gensupport.c.  Continue to validate the expression.
17795         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17796         (process_define_predicate): Move processing to gensupport.c.
17797         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17798         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17799         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
17800         argument.
17801         (valid_predicate_name_p): New function, split out from old
17802         genpreds.c:process_define_predicate.
17803         (process_define_predicate): New function, combining code from
17804         old genpreds.c and genrecog.c functions.
17805         (process_rtx): Call it for DEFINE_PREDICATE and
17806         DEFINE_SPECIAL_PREDICATE.
17807
17808 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17809
17810         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17811         size of a '%A' memory reference.
17812         (T_DREG, T_QREG): New neon_builtin_type_bits.
17813         (arm_init_neon_builtins): Assert that the load and store operands
17814         are neon_struct_operands.
17815         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17816         (NEON_ARG_MEMORY): New builtin_arg.
17817         (neon_dereference_pointer): New function.
17818         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17819         Handle NEON_ARG_MEMORY.
17820         (arm_expand_neon_builtin): Update after above interface changes.
17821         Use NEON_ARG_MEMORY for loads and stores.
17822         * config/arm/predicates.md (neon_struct_operand): New predicate.
17823         * config/arm/iterators.md (V_two_elem): Tweak formatting.
17824         (V_three_elem): Use BLKmode for accesses that have no associated mode.
17825         (V_four_elem): Tweak formatting.
17826         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17827         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17828         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17829         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17830         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17831         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17832         (neon_vst4<mode>): Replace pointer operand with a memory operand.
17833         Use %A in the output template.
17834         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17835         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17836         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17837         the width of the memory access.  Remove post-increment.
17838         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17839
17840 2011-04-12  Nick Clifton  <nickc@redhat.com>
17841
17842         * config/v850/v850.c (expand_prologue): Do not use the CALLT
17843         instruction for interrupt handlers if the target is the basic V850
17844         architecture.
17845         (expand_epilogue): Likewise.
17846
17847 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17848
17849         PR rtl-optimization/48549
17850         * combine.c (propagate_for_debug): Also stop after BB_END of
17851         this_basic_block.  Process LAST and just stop processing after it.
17852         (combine_instructions): If last_combined_insn has been deleted,
17853         set last_combined_insn to its PREV_INSN.
17854
17855 2011-04-12  Richard Guenther  <rguenther@suse.de>
17856
17857         PR tree-optimization/46076
17858         * gimple.h (struct gimple_statement_call): Add fntype field.
17859         (gimple_call_fntype): Adjust.
17860         (gimple_call_set_fntype): New function.
17861         * gimple.c (gimple_build_call_1): Set the call function type.
17862         * gimplify.c (gimplify_call_expr): Preserve the function
17863         type the frontend used for the call.
17864         (gimplify_modify_expr): Likewise.
17865         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17866         function type.
17867         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17868         function type.
17869         * tree-ssa.c (useless_type_conversion_p): Function pointer
17870         conversions are useless.
17871
17872 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17873
17874         * cgraph.h (cgraph_node): Remove function declaration.
17875         (cgraph_create_node): Declare.
17876         (cgraph_get_create_node): Likewise.
17877         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17878         Updated all callers.
17879         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17880         the decl does not already exist.  Call cgraph_get_create_node instead
17881         of cgraph_node.
17882         (cgraph_get_create_node): New function.
17883         (cgraph_same_body_alias): Update comment.
17884         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17885         assert it does not return NULL.
17886         (cgraph_update_edges_for_call_stmt): Likewise.
17887         (cgraph_clone_edge): Likewise.
17888         (cgraph_create_virtual_clone): Likewise.
17889         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17890         instead of cgraph_node.
17891         (cgraph_add_new_function): Call cgraph_create_node or
17892         cgraph_get_create_node instead of cgraph_node.
17893         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17894         instead of cgraph_node.
17895         (record_eh_tables): Likewise.
17896         (mark_address): Likewise.
17897         (mark_load): Likewise.
17898         (build_cgraph_edges): Call cgraph_get_create_node instead
17899         of cgraph_node.
17900         (rebuild_cgraph_edges): Likewise.
17901         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17902         instead of cgraph_node.
17903         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17904         cgraph_node.
17905         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17906         cgraph_create_node instead of cgraph_node.
17907         * c-decl.c (finish_function): Call cgraph_get_create_node instead
17908         of cgraph_node.
17909         * lto-cgraph.c (input_node): Likewise.
17910         * lto-streamer-in.c (input_function): Likewise.
17911         * varasm.c (mark_decl_referenced): Likewise.
17912         (assemble_alias): Likewise.
17913
17914 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17915
17916         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
17917         instead of cgraph_node and assert it does not return NULL.
17918         * lto-streamer-in.c (lto_read_body): Likewise.
17919         * omp-low.c (new_omp_context): Likewise.
17920         (create_task_copyfn): Likewise.
17921         * tree-emutls.c (lower_emutls_function_body): Likewise.
17922         * matrix-reorg.c (transform_allocation_sites): Likewise.
17923
17924 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17925
17926         PR c/48552
17927         * c-typeck.c (build_asm_expr): Error out on attempts to use
17928         void type outputs or inputs for constraints that allow reg or
17929         don't allow memory.
17930
17931 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
17932             Richard Earnshaw  <rearnsha@arm.com>
17933
17934         PR target/48250
17935         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
17936         to use sign-magnitude offsets. Reject unsupported unaligned
17937         cases. Add detailed description in comments.
17938         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
17939         condition from TARGET_32BIT to TARGET_ARM.
17940
17941 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
17942
17943         * tree.h (struct typed_tree): New.
17944         (struct tree_common): Include it instead of tree_base.
17945         (TREE_TYPE): Update for new location of type field.
17946         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
17947         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
17948         (union tree_node): Add typed field.
17949         * treestruct.def (TS_TYPED): New.
17950         * lto-streamer.c (check_handled_ts_structures): Handle it.
17951         * tree.c (MARK_TS_TYPED): New macro.
17952         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
17953
17954 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
17955
17956         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
17957         (force_nonfallthru): Do not alter the loop nest if no basic block
17958         was created.
17959
17960 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17961
17962         * config/i386/sse.md (VI): New mode iterator.
17963         (SSEMODEI): Remove.
17964         (AVX256MODEI): Ditto.
17965         (AVXMODEF4P): Ditto.
17966         (avxvecpsmode): Ditto.
17967         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
17968         (sse2_andnot<mode>3): New expander.
17969         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
17970         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
17971         (<any_logic:code><mode>3): Use VI mode iterator.
17972         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
17973         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
17974         (*andnottf3): Handle AVX three-operand constraints.
17975         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
17976
17977 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17978             Robert Millan  <rmh@gnu.org>
17979
17980         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
17981         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
17982         GNU_USER_DYNAMIC_LINKER64): Define.
17983         (REG_NAME): Don't undefine.
17984         (MD_UNWIND_SUPPORT): Undefine.
17985         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
17986         (REG_NAME): Don't undefine.
17987         (MD_UNWIND_SUPPORT): Undefine.
17988         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
17989
17990 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17991
17992         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
17993         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
17994
17995 2011-04-11  Xinliang David Li  <davidxl@google.com>
17996
17997         * value-profile.c (check_ic_target): New function.
17998         (gimple_ic_transform): Sanity check indirect call target.
17999         * gimple-low.c (gimple_check_call_args): Interface change.
18000         (gimple_check_call_matching_types): New function.
18001         * tree-inline.c (tree_can_inline_p): Call new function.
18002
18003 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18004
18005         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18006         tree-pretty-print.h & realmpfr.h.
18007
18008 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18009
18010         PR middle-end/48464
18011         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18012         (setup_allocno_and_important_classes): Ditto.
18013
18014 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18015
18016         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18017         GNU_USER_DYNAMIC_LINKER.
18018         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18019         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18020         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18021         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18022         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18023         GNU_USER_TARGET_OS_CPP_BUILTINS.
18024         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18025         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18026         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18027         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18028         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18029         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18030         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18031         GNU_USER_TARGET_OS_CPP_BUILTINS.
18032         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18033         GNU_USER_DYNAMIC_LINKER.
18034         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18035         GNU_USER_TARGET_OS_CPP_BUILTINS.
18036         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18037         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18038         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18039         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18040         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18041         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18042         GNU_USER_DYNAMIC_LINKER64): Remove.
18043         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18044         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18045         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18046         GNU_USER_DYNAMIC_LINKER.
18047         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18048         GNU_USER_TARGET_OS_CPP_BUILTINS.
18049         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18050         GNU_USER_TARGET_OS_CPP_BUILTINS.
18051         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18052         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18053         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18054         GNU_USER_TARGET_OS_CPP_BUILTINS.
18055         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18056         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18057         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18058         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18059         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18060         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18061         GNU_USER_DYNAMIC_LINKER.
18062         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18063         GNU_USER_TARGET_OS_CPP_BUILTINS.
18064         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18065         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18066         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18067         GNU_USER_DYNAMIC_LINKER.
18068         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18069         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18070         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18071         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18072         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18073         GNU_USER_DYNAMIC_LINKER.
18074         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18075         GNU_USER_DYNAMIC_LINKERN32.
18076         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18077         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18078         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18079         GNU_USER_DYNAMIC_LINKER32.
18080         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18082         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18083         GNU_USER_DYNAMIC_LINKER.
18084         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18085         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18086         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18088         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18089         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18090         GNU_USER_DYNAMIC_LINKER32.
18091         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18092         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18093         GNU_USER_DYNAMIC_LINKER.
18094         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18095         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18096         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18097         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18098         GNU_USER_DYNAMIC_LINKER64.
18099         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18100         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18101         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18102         GNU_USER_DYNAMIC_LINKER.
18103         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18104         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18105         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18106         GNU_USER_DYNAMIC_LINKER.
18107         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18108         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18109         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18110         GNU_USER_DYNAMIC_LINKER32.
18111         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18112         GNU_USER_DYNAMIC_LINKER64.
18113         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18114         GNU_USER_DYNAMIC_LINKER64.
18115         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18116         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18117         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18118         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18119         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18120
18121 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18122
18123         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18124         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18125         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18126         GNU_USER_DYNAMIC_LINKER.
18127         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18128         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18129         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18130         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18131         GNU_USER_DYNAMIC_LINKER64.
18132         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18133         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18134         GNU_USER_LINK_EMULATION.
18135         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18136         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18137         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18138         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18139         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18140         CPP_SPEC, CC1_SPEC): Remove.
18141         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18142         (GNU_USER_DYNAMIC_LINKER): Define.
18143         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18144         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18145         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18146         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18147         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18148         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18149         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18150         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18151         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18152         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18153         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18154         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18155         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18156         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18157         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18158         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18159         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18160         GNU_USER_DYNAMIC_LINKER.
18161         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18162         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18163         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18164         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18165         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18166         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18167         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18168         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18169         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18170         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18171
18172 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18173
18174         PR target/9601
18175         PR target/11772
18176         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18177         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18178         comment.
18179         (ix86_is_msabi_thiscall): Removed.
18180         (ix86_is_type_thiscall): Likewise.
18181         (ix86_get_callcvt): New function.
18182         (ix86_comp_type_attributes): Simplify check.
18183         (ix86_function_regparm): Use ix86_get_callcvt for calling
18184         convention attribute checks.
18185         (ix86_return_pops_args): Likewise.
18186         (ix86_static_chain): Likewise.
18187         (x86_this_parameter): Likewise.
18188         (x86_output_mi_thunk): Likewise.
18189         (ix86_function_type_abi): Optimize check for types without attributes.
18190         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18191         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18192         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18193         by flag-values.
18194         (IX86_BASE_CALLCVT): Helper macro.
18195         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18196         Use ix86_get_callcvt for calling convention attribute checks and avoid
18197         symbol-decoration for stdcall in TARGET_RTD case.
18198         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18199         Likewise.
18200         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18201         for declaration.
18202
18203 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18204
18205         * config/i386/sse.md (VI_128): New mode iterator.
18206         (VI12_128): Rename from SSEMODE12.
18207         (VI14_128): Rename from SSEMODE14.
18208         (VI124_128): New mode iterator.
18209         (VI24_128): Rename from SSEMODE248.
18210         (VI248_128): Rename from SSEMODE248.
18211         (SSEMODE124C8): Remove.
18212         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18213         (*sse2_<plusminus_insn><mode>3): Merge with
18214         *avx_<plusminus_insn><mode>3.
18215         (*mulv8hi3): Merge with *avx_mulv8hi3.
18216         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18217         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18218         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18219         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18220         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18221         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18222         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18223         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18224         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18225         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18226         (*<smaxmin:code>v8hi3): Ditto.
18227         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18228         (*<smaxmin:code>v16qi3): Ditto.
18229         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18230         (*sse2_eq<mode>3): Ditto.
18231         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18232         (*sse2_gt<mode>3): Ditto.
18233         (vcondv2di): Split out of vcond<mode>.
18234         (vconduv2di): Split out of vcondu<mode>.
18235
18236 2011-04-11  Richard Guenther  <rguenther@suse.de>
18237
18238         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18239         before calling tree_low_cst.
18240
18241 2011-04-11  Richard Guenther  <rguenther@suse.de>
18242
18243         * stor-layout.c (layout_type): Compute all array index size operations
18244         in the original type.
18245         (initialize_sizetypes): Add comment.
18246         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18247
18248 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18249
18250         * common.opt (Tbss=, Tdata=, Ttext=): New options.
18251
18252 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18253
18254         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18255         of cgraph_node, handle NULL return value.
18256         (cgraph_global_info): Likewise.
18257         (cgraph_rtl_info): Likewise.
18258         * tree-inline.c (estimate_num_insns): Likewise.
18259         * gimplify.c (unshare_body): Likewise.
18260         (unvisit_body): Likewise.
18261         (gimplify_body): Likewise.
18262         * predict.c (optimize_function_for_size_p): Likewise.
18263         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18264         (call_may_clobber_ref_p_1): Likewise.
18265         * varasm.c (function_section_1): Likewise.
18266         (assemble_start_function): Likewise.
18267
18268 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18269
18270         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18271         of cgraph_node.
18272         * final.c (rest_of_clean_state): Likewise.
18273         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18274         * passes.c (pass_init_dump_file): Likewise.
18275         (execute_all_ipa_transforms): Likewise.
18276         (function_called_by_processed_nodes_p): Likewise.
18277         * predict.c (maybe_hot_frequency_p): Likewise.
18278         (probably_never_executed_bb_p): Likewise.
18279         (compute_function_frequency): Likewise.
18280         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18281         (unnest_nesting_tree_1): Likewise.
18282         (lower_nested_functions): Likewise.
18283         * tree-optimize.c (execute_fixup_cfg): Likewise.
18284         (tree_rest_of_compilation): Likewise.
18285         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18286         * tree-sra.c (ipa_early_sra): Likewise.
18287         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18288         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18289         * ipa.c (record_cdtor_fn): Likewise.
18290         * ipa-inline.c (cgraph_early_inlining): Likewise.
18291         (compute_inline_parameters_for_current): Likewise.
18292         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18293         * ipa-pure-const.c (local_pure_const): Likewise.
18294         * ipa-split.c (split_function): Likewise.
18295         (execute_split_functions): Likewise.
18296         * cgraphbuild.c (build_cgraph_edges): Likewise.
18297         (rebuild_cgraph_edges): Likewise.
18298         (cgraph_rebuild_references): Likewise.
18299         (remove_cgraph_callee_edges): Likewise.
18300         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18301         (verify_cgraph_node): Likewise.
18302         (cgraph_analyze_functions): Likewise.
18303         (cgraph_preserve_function_body_p): Likewise.
18304         (save_inline_function_body): Likewise.
18305         (save_inline_function_body): Likewise.
18306         * tree-inline.c (copy_bb): Likewise.
18307         (optimize_inline_calls): Likewise.
18308
18309 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18310
18311         PR tree-optimization/48195
18312         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18313         ipa_check_create_edge_args.
18314         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18315         ipa_check_create_edge_args.
18316         * ipa-inline.c (inline_generate_summary): Do not call
18317         ipa_check_create_node_params and ipa_check_create_edge_args.
18318         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18319         ipa_check_create_edge_args.
18320
18321 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
18322
18323         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18324         instead of loop.
18325         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18326         * function.c (record_hard_reg_sets): Likewise.
18327         * ira.c (compute_regs_asm_clobbered): Likewise.
18328         * sched-deps.c (sched_analyze_1): Likewise.
18329         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18330
18331 2011-04-09  Xinliang David Li  <davidxl@google.com>
18332
18333         PR tree-optimization/PR48484
18334         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18335         has_valid_pred lazily
18336
18337 2011-04-09  Duncan Sands  <baldrick@free.fr>
18338
18339         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18340
18341 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18342
18343         * combine.c (combine_validate_cost): Adjust comments.  Set registered
18344         cost of I0 to zero at the end, if any.
18345
18346 2011-04-08  Xinliang David Li  <davidxl@google.com>
18347
18348         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18349         to insane profile data.
18350
18351 2011-04-08  Xinliang David Li  <davidxl@google.com>
18352
18353         * ipa-cp.c (ipcp_update_profiling): Correct
18354          negative scale factor due to insane profile data.
18355
18356 2011-04-08  Xinliang David Li  <davidxl@google.com>
18357
18358         * final.c (dump_basic_block_info): New function.
18359         (final): Dump basic block.
18360         (final_scan_insn): Remove old dump.
18361
18362 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18363
18364         PR target/47829
18365         * config.gcc (i386-*-freebsd): Disable unwind table generation for
18366         crtbegin/crtend.
18367
18368 2011-04-08  Michael Matz  <matz@suse.de>
18369
18370         PR middle-end/48389
18371         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18372         functions.
18373         (rebuild_jump_labels): Call rebuild_jump_labels_1.
18374         * rtl.h (rebuild_jump_labels_chain): Declare.
18375         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18376         insns inserted on edges.
18377
18378 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
18379
18380         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18381         * config/arm/arm-arches.def: New.
18382         * config/arm/arm-opts.h: New.
18383         * config/arm/genopt.sh: New.
18384         * config/arm/arm-tables.opt: New (generated).
18385         * config/arm/arm.c (arm_handle_option, arm_target_help,
18386         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18387         (all_architectures): Get most table contents from arm-arches.def.
18388         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18389         arm_selected_tune here.
18390         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18391         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18392         (march=, mcpu=, mtune=): Use Enum and Var.
18393         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18394         (arm.o): Update dependencies.
18395
18396 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
18397
18398         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18399         of header_file.
18400         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18401         (write_typed_alloc_defns): Likewise.
18402         (main): Calls write_typed_alloc_defns with output_header.
18403
18404 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
18405
18406         PR inline-asm/48435
18407         * ira-color.c (setup_profitable_hard_regs): Add comments.
18408         Don't take prohibited hard regs into account.
18409         (setup_conflict_profitable_regs): Rename to
18410         get_conflict_profitable_regs.
18411         (check_hard_reg_p): Check prohibited hard regs.
18412
18413 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
18414
18415         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18416         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18417         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18418
18419 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18420
18421         PR target/48366
18422         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18423         move from floating point to shift amount register.
18424         (emit_move_sequence): Remove secondary reload support for floating
18425         point to shift amount amount register copies.
18426         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18427         amount register copies.
18428         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18429         register, return false if mode isn't a scalar integer mode.
18430         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18431
18432 2011-04-08  Richard Guenther  <rguenther@suse.de>
18433
18434         * gimple.c (gimple_call_flags): Remove kludge.
18435
18436 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18437
18438         * sel-sched.c (sel_region_init): Move call to
18439         sel_setup_region_sched_flags after setup_current_loop_nest.
18440
18441 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18442
18443         PR rtl-optimization/48272
18444         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18445         init_insn_reg_pressure_info.  Adjust a caller.
18446         * sched-int.h (init_insn_reg_pressure_info): Declare.
18447         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18448         when sched-pressure is enabled.
18449
18450 2011-04-08  Richard Guenther  <rguenther@suse.de>
18451
18452         * gimple.c (gimple_set_modified): Do not queue calls to
18453         MODIFIED_NORETURN_CALLS here ...
18454         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18455
18456 2011-04-08  Richard Guenther  <rguenther@suse.de>
18457
18458         PR lto/48467
18459         * toplev.c (lang_dependent_init): Do not open asm_out_file
18460         in WPA mode, nor perform debug machinery initialization.
18461         (finalize): Do not unlink asm_out_file in WPA mode.
18462
18463 2011-04-08  Richard Guenther  <rguenther@suse.de>
18464
18465         * gimple.h (gimple_call_fntype): New function.
18466         (gimple_call_return_type): Use it.
18467         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18468         * gimple-low.c (gimple_check_call_args): Likewise.
18469         * gimple.c (gimple_call_flags): Likewise.
18470         (gimple_call_arg_flags): Likewise.
18471         (gimple_call_return_flags): Likewise.
18472         * tree-cfg.c (verify_gimple_call): Likewise.
18473         (do_warn_unused_result): Likewise.
18474         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18475         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18476
18477 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18478
18479         PR rtl-optimization/48235
18480         * sel-sched.c (code_motion_process_successors): Recompute the last
18481         insn in basic block if control flow changed.
18482         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18483         Update condition for ilist_remove.
18484
18485 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18486
18487         PR rtl-optimization/48302
18488         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18489         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18490         it to record added preheader blocks.
18491         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18492         on to sel_add_loop_preheaders.
18493         (sel_region_init): Move call to setup_current_loop_nest after
18494         sel_init_bbs.
18495
18496 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18497
18498         PR target/48273
18499         * cfgloop.h (loop_has_exit_edges): New helper.
18500         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18501         non-clonable.
18502         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18503         that have no exit edges.
18504
18505 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18506
18507         PR rtl-optimization/48442
18508         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18509         all callers.  Adjust assert.
18510
18511 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18512
18513         PR tree-optimization/48377
18514         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18515         is_packed to true even for types with smaller TYPE_ALIGN than
18516         TYPE_SIZE.
18517
18518 2011-04-08  Richard Guenther  <rguenther@suse.de>
18519
18520         PR bootstrap/48513
18521         * doc/tm.texi: Re-generate.
18522
18523 2011-04-08  Wei Guozhi  <carrot@google.com>
18524
18525         PR target/47855
18526         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18527         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18528         * config/arm/arm.md (*push_multi): Change the length computation to
18529         call a C function.
18530
18531 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18532
18533         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18534         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18535         * doc/tm.texi: Regenerate.
18536         * system.h (ASM_OUTPUT_BSS): Poison.
18537         * varasm.c (asm_output_bss): Remove function.
18538         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18539
18540         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18541         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18542         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18543         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18544         Likewise.
18545         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18546         Likewise.
18547         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18548         Likewise.
18549         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18550
18551 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18552
18553         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18554         EnumValue lines.
18555
18556 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18557
18558         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18559         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18560         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18561         OPT_mcpu32.
18562         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18563         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18564         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18565         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18566         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18567         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18568         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18569         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18570         options.  Don't map other m68k options manually.  Don't handle
18571         old-style options as canonical.
18572         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18573         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18574
18575 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18576
18577         * basic-block.h (force_nonfallthru): Move to...
18578         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18579         (force_nonfallthru): ...here.
18580         * cfghooks.c (force_nonfallthru): New function.
18581         * cfgrtl.c (force_nonfallthru): Rename into...
18582         (rtl_force_nonfallthru): ...this.
18583         (commit_one_edge_insertion): Do not set AUX field.
18584         (commit_edge_insertions): Do not discover new basic blocks.
18585         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18586         (cfg_layout_rtl_cfg_hooks): Likewise.
18587         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18588         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18589         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18590
18591 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18592
18593         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18594         Remove macros.
18595
18596 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18597
18598         * config/i386/sse.md: Update copyright year.
18599         (avxcvtvecmode): Remove.
18600         (sse_movhlps): Merge with *avx_movhlps.
18601         (sse_movlhps): Merge with *avx_movlhps.
18602         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18603         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18604         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18605         (sse_loadhps): Merge with *avx_loadhps.
18606         (sse_storelps): Merge with *avx_storelps.
18607         (sse_loadlps): Merge with *avx_loadlps.
18608         (sse_movss): Merge with *avx_movss.
18609         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18610         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18611         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18612         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18613         (vec_set<mode>_0): Ditto.
18614         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18615         (sse4_1_insertps): Merge with *avx_insertps.
18616         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18617         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18618         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18619         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18620         (sse2_storehpd): Merge with *avx_storehpd.
18621         (sse2_loadhpd): Merge with *avx_loadhpd.
18622         (sse2_loadlpd): Merge with *avx_loadlpd.
18623         (sse2_movsd): Merge with *avx_movsd.
18624         (*vec_concatv2df): Merge with *vec_concatv2df.
18625
18626 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
18627
18628         PR debug/48343
18629         * combine.c (combine_instructions): Add last_combined_insn,
18630         update it if insn is after it, pass it to all try_combine calls.
18631         (try_combine): Add last_combined_insn parameter, pass it instead of
18632         i3 to propagate_for_debug.
18633
18634 2011-04-07  Nick Clifton  <nickc@redhat.com>
18635
18636         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18637         to handle MDR <-> data register transfers.
18638         (movhi_internal): Likewise.
18639
18640 2011-04-07  Alan Modra  <amodra@gmail.com>
18641
18642         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18643         previous stack info.
18644
18645 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18646
18647         PR target/43920
18648         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
18649         flow_find_cross_jump.  Swap variables to implement backward replacement.
18650         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18651
18652 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18653
18654         PR target/43920
18655         * cfgcleanup.c (walk_to_nondebug_insn): New function.
18656         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
18657         and bb2.
18658         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18659         src1 or src2.  Redirect edges to the last basic block.  Update
18660         frequency and count on multiple basic blocks in case of fallthru.
18661
18662 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18663
18664         PR target/43920
18665         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18666         function.
18667         (old_insns_match_p): Change return type.  Replace return false/true
18668         with return dir_none/dir_both.  Use can_replace_by.
18669         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
18670         direction from dir_p.  Register replacement direction in dir, last_dir
18671         and afterlast_dir.  Handle new return type of old_insns_match_p using
18672         merge_dir.  Return replacement direction in dir_p.
18673         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18674         return type of old_insns_match_p.
18675         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18676         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18677         flow_find_cross_jump.
18678         * basic-block.h (enum replace_direction): New type.
18679         (flow_find_cross_jump): Add parameter to declaration.
18680
18681 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18682
18683         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18684         (AVXMODEDCVTPS2DQ): Ditto.
18685         (VEC_FLOAT_MODE): Ditto.
18686         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
18687         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18688         (<any_logic:code><mode>3): Use VF mode iterator.
18689         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18690         Use VF mode iterator.
18691         (copysign<mode>3): Use VF mode iterator.
18692         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
18693         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18694         (*<any_logic:code><MODEF:mode>3): Merge with
18695         *avx_<any_logic:code><MODEF:mode>3.
18696         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18697         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18698         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18699         (avx_cvtdq2ps<avxmodesuffix>): Remove.
18700         (sse2_cvtdq2ps): Use %v modifier.
18701         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18702         (avx_cvtps2dq<avxmodesuffix>): Remove.
18703         (sse2_cvtps2dq): Use %v modifier.
18704         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18705         (avx_cvttps2dq<avxmodesuffix>): Remove.
18706         (sse2_cvttps2dq): Use %v modifier.
18707         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18708         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18709         (sse2_cvtsd2siq): Fix insn template.
18710         (sse2_cvtsd2siq_2): Ditto.
18711         (sse2_cvttsd2siq): Ditto.
18712         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18713         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18714
18715 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18716
18717         * gcov-io.c: Use GCC Runtime Library Exception.
18718
18719 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
18720
18721         PR debug/48466
18722         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18723         as base_reg whatever register reg has been eliminated to, instead
18724         of hardcoding STACK_POINTER_REGNUM.
18725
18726 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18727
18728         * doc/tm.texi.in: Document C target hooks as separate from general
18729         target hooks.
18730         * doc/tm.texi: Regenerate.
18731         * genhooks.c (struct hook_desc): Add docname field.
18732         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
18733         docname field.
18734         (hook_array): Include c-target.def.
18735         (emit_documentation): Use docname field in output.
18736         (emit_init_macros): Take docname argument.  Only emit definitions
18737         for hooks matching docname.
18738         (main): Expect additional arguments in all cases.  Pass argument
18739         to emit_init_macros.
18740         * target.def: Move initial macro definitions and comments to
18741         target-hooks-macros.h.
18742         (gcc_targetcm): Move to c-family/c-target.def.
18743         * target.h (targetcm): Move declaration to c-family/c-target.h.
18744         * targhooks.c (default_handle_c_option): Move to
18745         c-family/c-opts.c.
18746         * targhooks.h (default_handle_c_option): Move declaration to
18747         c-family/c-common.h.
18748         * target-hooks-macros.h: New file.
18749         * config.gcc (target_has_targetcm): Define and use to add to
18750         c_target_objs and cxx_target_objs.
18751         * config/default-c.c: New file.
18752         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18753         of target.h and target-def.h.
18754         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18755         (darwin_objc_construct_string, darwin_cfstring_ref_p,
18756         darwin_check_cfstring_format_arg): Make static.
18757         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18758         TARGET_STRING_OBJECT_REF_TYPE_P,
18759         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18760         * config/darwin-protos.h (darwin_objc_construct_string,
18761         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18762         declare.
18763         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18764         TARGET_STRING_OBJECT_REF_TYPE_P,
18765         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18766         * config/t-darwin (darwin-c.o): Update dependencies.
18767         * system.h (TARGET_HAS_TARGETCM): Poison.
18768         * Makefile.in (TARGET_H): Update.
18769         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18770         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18771         (default-c.o): New target.
18772         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18773         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18774         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
18775         c-target.def.
18776         (build/genhooks.o): Update dependencies.
18777
18778 2011-04-06  Richard Guenther  <rguenther@suse.de>
18779
18780         * ipa-inline.c (enum inlining_mode): Remove.
18781         (cgraph_flatten): Use some other token.
18782         (cgraph_edge_early_inlinable_p): New function, split out from ...
18783         (cgraph_perform_always_inlining): New function, split out from ...
18784         (cgraph_decide_inlining_incrementally): ... here.
18785         (cgraph_mark_inline_edge): Adjust.
18786         (cgraph_early_inlining): Re-structure.
18787         (pass_early_inline): Require SSA form.
18788
18789 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
18790             Julian Brown  <julian@codesourcery.com>
18791             Mark Shinwell  <shinwell@codesourcery.com>
18792
18793         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18794         LO_REGS only for Thumb-1.
18795         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18796         be used in short instructions when optimising for size on Thumb-2.
18797
18798 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18799
18800         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18801         associated with user returns to be preserved.
18802
18803 2011-04-06  Tristan Gingold  <gingold@adacore.com>
18804
18805         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18806         symbol_queue_size, DBXOUT_DECR_NESTING,
18807         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18808         if XCOFF_DEBUGGING_INFO.
18809
18810 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18811
18812         * config/i386/i386.md (attribute isa): New.
18813         (attribute enabled): New.
18814         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18815         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18816         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18817         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18818         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18819         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18820         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18821         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18822
18823         * config/i386/sse.md (VF): New mode iterator.
18824         (VF1): Ditto.
18825         (VF2): Ditto.
18826         (VF_128): Ditto.
18827         (SSEMODEF4): Remove.
18828         (attribute sse): Handle V8SF and V4DF modes.
18829         (<absneg:code><mode>2): Use VF mode iterator.
18830         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
18831         mode iterator.
18832         (<plusminus_insn><mode>3): Use VF mode iterator.
18833         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18834         Use VF mode iterator.
18835         (<sse>_vm<plusminus_insn><mode>3): Merge with
18836         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
18837         (mul<mode>3): Use VF mode iterator.
18838         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
18839         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
18840         mode iterator.
18841         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18842         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18843         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
18844         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
18845         mode iterator.
18846         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18847         Use VF1 mode iterator.
18848         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18849         (sqrt<VF2:mode>2): New expander.
18850         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18851         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18852         and sqrtv2df2.  Use VF mode iterator.
18853         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
18854         mode iterator.
18855         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18856         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18857         Use VF1 mode iterator.
18858         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18859         (<smaxmin:code><mode>3): Use VF mode iterator.
18860         (*<smaxmin:code><mode>3_finite): Merge with
18861         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
18862         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18863         (<sse>_vm<smaxmin:code><mode>2): Merge with
18864         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
18865         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
18866         mode iterator.
18867         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
18868         mode iterator.
18869         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18870         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18871         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18872         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18873         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
18874         VF mode iterator.
18875         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18876         Use VF_128 mode iterator.
18877         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
18878         mode iterator.
18879         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
18880         VF_128 mode iterator.
18881         (vcond<mode>): Use VF mode iterator.
18882         * config/i386/predicates.md (sse_comparison_operator): Merge with
18883         avx_comparison_float_operator.  Do not declare as special_predicate.
18884         * config/i386/i386.c (struct builtin_description): Update for renamed
18885         compare patterns.
18886         (ix86_expand_args_builtin): Ditto.
18887         (ix86_expand_sse_compare_mask): Ditto.
18888
18889 2011-04-06  Richard Guenther  <rguenther@suse.de>
18890
18891         * tree-inline.c (estimate_num_insns): For calls simply account
18892         for all passed arguments and a used return value.
18893
18894 2011-04-06  Richard Guenther  <rguenther@suse.de>
18895
18896         PR tree-optimization/47663
18897         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18898         call_stmt_time fields.
18899         (cgraph_edge_inlinable_p): Declare.
18900         (cgraph_edge_recursive_p): New inline function.
18901         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18902         (cgraph_clone_edge): Copy it.
18903         * ipa-inline.c (cgraph_estimate_edge_time): New function.
18904         Account for call stmt time.
18905         (cgraph_estimate_time_after_inlining): Take edge argument.
18906         (cgraph_estimate_edge_growth): Account call stmt size.
18907         (cgraph_estimate_size_after_inlining): Take edge argument.
18908         (cgraph_mark_inline_edge): Adjust.
18909         (cgraph_check_inline_limits): Likewise.
18910         (cgraph_recursive_inlining_p): Remove.
18911         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
18912         (cgraph_decide_recursive_inlining): Take edge argument and
18913         adjust.
18914         (cgraph_decide_inlining_of_small_functions): Do not avoid
18915         diags for recursive inlining here.
18916         (cgraph_flatten): Adjust.
18917         (cgraph_decide_inlining_incrementally): Likewise.
18918         (estimate_function_body_sizes): Remove call cost handling.
18919         (compute_inline_parameters): Initialize caller edge call costs.
18920         (cgraph_estimate_edge_growth): New function.
18921         (cgraph_estimate_growth): Use it.
18922         (cgraph_edge_badness): Likewise.
18923         (cgraph_check_inline_limits): Take an edge argument.
18924         (cgraph_decide_inlining_of_small_functions): Adjust.
18925         (cgraph_decide_inlining): Likewise.
18926         * tree-inline.c (estimate_num_insns): Only account for call
18927         return value if it is used.
18928         (expand_call_inline): Avoid diagnostics on recursive inline
18929         functions here.
18930         * lto-cgraph.c (lto_output_edge): Output edge call costs.
18931         (input_edge): Input edge call costs.
18932
18933 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18934
18935         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
18936
18937 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18938
18939         * doc/invoke.texi (Spec Files): Fix typo.
18940
18941 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18942
18943         * profile.c (branch_prob): Move declaration of local variable.  Remove
18944         obsolete ??? comment.  Expand the location explicitly instead of using
18945         the LOCATION_FILE and LOCATION_LINE macros.
18946
18947 2011-04-06  Wei Guozhi  <carrot@google.com>
18948
18949         PR target/47855
18950         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
18951         (arm_cond_branch): Likewise.
18952         (arm_cond_branch_reversed): Likewise.
18953         (arm_jump): Likewise.
18954         (push_multi): Likewise.
18955         * config/arm/constraints.md (Py): New constraint.
18956
18957 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18958
18959         PR bootstrap/48471
18960         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
18961         Move these...
18962         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
18963         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
18964         #ifdef DBX_DEBUGGING_INFO.
18965
18966 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
18967
18968         PR bootstrap/48403
18969         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
18970         if old and new states differ.
18971
18972 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18973
18974         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
18975         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
18976         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18977         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
18978         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
18979         mcfv4e): Use Alias.
18980         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
18981         ColdFire options to -mcpu= options.
18982
18983 2011-04-05  Jeff Law  <law@redhat.com>
18984
18985         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
18986         check if BB is a successor of LOOP->header and return
18987         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
18988
18989 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18990
18991         * cprop.c (struct reg_use): Remove.
18992         (reg_use_table): Make an array of RTX.
18993         (find_used_regs, constprop_register, local_cprop_pass,
18994         bypass_block): Simplify users of reg_use_table.
18995         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
18996         on one of the uses found by find_used_regs.
18997
18998 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18999
19000         PR bootstrap/48469
19001         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19002         declaration.
19003
19004 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19005
19006         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19007         as an rtx.
19008         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19009
19010 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19011
19012         PR middle-end/48441
19013         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19014
19015 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19016
19017         * combine.c: Include obstack.h.
19018         (struct insn_link): Define.
19019         (uid_log_links): Adjust type.
19020         (FOR_EACH_LOG_LINK): New macro.
19021         (insn_link_obstack): Declare.
19022         (alloc_insn_link): Define.
19023         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19024         type of link variables.
19025         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19026         (try_combine, record_promoted_values, distribute_notes): Likewise.
19027         (distribute_links): Likewise.  Tweak prototype.
19028         (clear_log_links): Delete.
19029         (adjust_for_new_dest): Call alloc_insn_link.
19030         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19031
19032 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19033
19034         * gcse.c (modify_mem_list): Convert to an array of VECs.
19035         (canon_modify_mem_list, compute_transp): Tweak formatting.
19036         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19037         (load_killed_in_block_p): Likewise.
19038         (record_last_mem_set_info): Likewise.
19039         (clear_modify_mem_tables): Likewise.
19040
19041 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19042
19043         PR middle-end/48461
19044         * function.c (emit_use_return_register_into_block): Only define if
19045         HAVE_return.
19046
19047 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19048
19049         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19050
19051 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19052
19053         * config/rx/rx-opts.h: New.
19054         * config/rx/rx.c (rx_cpu_type): Remove.
19055         (rx_handle_option): Don't assert that global structures are in
19056         use.  Access variables via opts pointer.  Defer most handling of
19057         OPT_mint_register_.  Use error_at.
19058         (rx_option_override): Handle deferred OPT_mint_register_ here.
19059         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19060         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19061         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19062         (rx_cpu_types): New Enum and EnumValue entries.
19063         (mint-register=): Use Defer and use Var accordingly.
19064
19065 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19066
19067         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19068         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19069         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19070         Move these...
19071         (debug_free_queue, debug_nesting, symbol_queue_index):
19072         ...and these...
19073         * dbxout.c: ...to here.  Make static.
19074
19075 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19076
19077         * gcse.c (modify_pair): Define.  Define a VEC of it.
19078         (canon_modify_mem_list): Convert to an array of VECs.
19079         (free_insn_expr_list_list): Delete.
19080         (clear_modify_mem_tables): Call VEC_free instead.
19081         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19082         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19083         (canon_list_insert, compute_transp): Likewise.
19084
19085 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19086
19087         PR target/43920
19088         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19089         for size.
19090
19091 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19092
19093         PR target/43920
19094         * function.c (emit_use_return_register_into_block): New function.
19095         (thread_prologue_and_epilogue_insns): Use
19096         emit_use_return_register_into_block.
19097
19098 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19099
19100         PR target/43920
19101         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19102         insn.
19103
19104 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19105
19106         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19107
19108 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19109
19110         * config/arm/arm.md (define_constants for unspec): Replace with
19111         define_c_enum.
19112         (define_constants for unspecv): Replace with define_c_enum.
19113         * config/arm/neon.md (define_constants for unspec): Replace with
19114         define_c_enum.
19115
19116 2011-04-04  Richard Henderson  <rth@redhat.com>
19117
19118         PR bootstrap/48400
19119         * dwarf2out.c (output_line_info): Always emit line info from
19120         at least one section.
19121         (dwarf2out_init): Create text_section_line_info here ...
19122         (set_cur_line_info_table): ... not here.
19123
19124 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19125
19126         PR target/48380
19127         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19128         not called.
19129
19130         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19131
19132 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19133
19134         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19135         (expr_equiv_p): Remove.
19136         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19137         (hash_scan_set): Update call to insert_set_in_table.
19138         (dump_hash_table): Dump <dest, src> pair.
19139         (lookup_set): Simplify.  Lookup <dest, src> pair.
19140         (compute_transp): Remove, fold heavily simplified code into...
19141         (compute_local_properties): ...here.  Expect COMP and TRANSP
19142         unconditionally.
19143         (find_avail_set): Take set directly from struct expr.
19144         (find_bypass-set): Likewise.
19145         (bypass_block): Likewise.
19146         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19147
19148         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19149         checks on form of COND from find_implicit_sets to here.
19150         (find_implicit_sets): Cleanup control flow. Split critical edges
19151         if it exposes implicit sets.  Allocate/resize implicit_sets as
19152         necessary.
19153         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19154         changed something.  Run df_analyze after find_implicit_sets if any
19155         edges were split.  Do not allocate implicit_sets here.
19156
19157         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19158         (gcse_obstack): Renamed to cprop_obstack.
19159         (GNEW, GNEWVEC, GNEWVAR): Remove.
19160         (gmalloc): Remove.
19161         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19162         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19163         (gcse_alloc): Likewise, and rename to cprop_alloc.
19164         (alloc_gcse_men, free_gcse_mem): Remove.
19165         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19166         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19167         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19168
19169         * cprop.c (oprs_not_set_p): Remove.
19170         (mark_set, mark_clobber): Remove.
19171         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19172         (reg_not_set_p): New function.
19173         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19174         (cprop_insn): Likewise.
19175         (cprop_jump): Use FOR_EACH_EDGE.
19176
19177 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19178
19179         PR bootstrap/48403
19180         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19181         (rank_for_schedule): Use scheduled_insns vector instead of
19182         last_scheduled_insn.
19183         (ok_for_early_queue_removal): Likewise.
19184         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19185         we have a dbg_cnt.
19186         (choose_ready): Likewise.
19187         (commit_schedule): Use VEC_iterate.
19188         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19189         a dbg_cnt, use it and ensure the first insn is in the ready list.
19190         (haifa_sched_init): Allocate scheduled_insns.
19191         (sched_extend_ready_list): Don't allocate it; reserve space.
19192         (haifa_sched_finish): Free it.
19193
19194 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19195
19196         * optc-gen.awk: Always remove type from Variable entry before
19197         recording in var_seen.
19198
19199 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19200
19201         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19202         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19203         call to tidy_fallthru_edges.
19204
19205 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19206
19207         * doc/options.texi (ToLower): Document.
19208         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19209         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19210         * opts.h (cl_option): Add cl_tolower field.
19211         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19212         arguments with lowercase strings.
19213         * config/rx/rx.opt (mcpu=): Add ToLower.
19214         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19215         argument.
19216
19217 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19218
19219         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19220
19221 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19222
19223         * config/vax/vax.c: Include reload.h.
19224
19225 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19226
19227         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19228         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19229         (sparc_preferred_reload_class): New function.
19230
19231 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19232
19233         PR debug/48401
19234         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19235         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19236
19237 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19238
19239         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19240         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19241
19242 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19243
19244         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19245         (ASM_OUTPUT_ALIGNED_BSS): Define.
19246
19247 2011-04-03  Michael Matz  <matz@suse.de>
19248
19249         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19250         and next_slot members.
19251         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19252         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19253         (lto_streamer_cache_append): Declare.
19254         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19255         unsigned index, remove offset parameter, ensure that we append
19256         or update existing entries.
19257         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19258         parameter, update next_slot for append.
19259         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19260         parameter.
19261         (lto_streamer_cache_insert_at): Likewise.
19262         (lto_streamer_cache_append): New function.
19263         (lto_streamer_cache_lookup): Use unsigned index.
19264         (lto_streamer_cache_get): Likewise.
19265         (lto_record_common_node): Don't test tree_node_can_be_shared.
19266         (preload_common_node): Adjust call to lto_streamer_cache_insert.
19267         (lto_streamer_cache_delete): Don't free offsets member.
19268         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19269         (lto_output_string_with_length): Use lto_output_data_stream.
19270         (lto_output_tree_header): Remove ix parameter, don't write it.
19271         (lto_output_builtin_tree): Likewise.
19272         (lto_write_tree): Adjust callers to above, don't track and write
19273         offset, write unsigned index.
19274         (output_unreferenced_globals): Don't emit all global vars.
19275         (write_global_references): Use unsigned indices.
19276         (lto_output_decl_state_refs): Likewise.
19277         (write_symbol): Likewise.
19278         * lto-streamer-in.c (lto_input_chain): Move earlier.
19279         (input_function): Use unsigned index.
19280         (input_alias_pairs): Don't read and then ignore all global vars.
19281         (lto_materialize_tree): Remove ix_p parameter, don't read index,
19282         don't pass it back, use lto_streamer_cache_append.
19283         (lto_register_var_decl_in_symtab): Use unsigned index.
19284         (lto_register_function_decl_in_symtab): Likewise.
19285         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19286         index.
19287         (lto_get_builtin_tree): Don't read index, use
19288         lto_streamer_cache_append.
19289         (lto_read_tree): Adjust call to lto_materialize_tree.
19290
19291         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19292         don't use function calls in arguments to MIN.
19293
19294         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19295         twice.
19296
19297         * gimple.c (gimple_type_leader_entry): Mark deletable.
19298
19299 2011-04-03  Alan Modra  <amodra@gmail.com>
19300
19301         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19302
19303 2011-04-03  Michael Matz  <matz@suse.de>
19304
19305         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19306         an integer.
19307         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19308
19309 2011-04-03  Michael Matz  <matz@suse.de>
19310
19311         * cgraphbuild.c (record_reference): Canonicalize constructor values.
19312         * gimple-fold.c (canonicalize_constructor_val): Accept being called
19313         without function context.
19314         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19315         current_function_decl and cfun.
19316
19317 2011-04-03  Michael Matz  <matz@suse.de>
19318
19319         * tree.c (decl_init_priority_insert): Don't create entry for
19320         default priority.
19321         (decl_fini_priority_insert): Ditto.
19322         (fields_compatible_p, find_compatible_field): Remove.
19323         * tree.h (fields_compatible_p, find_compatible_field): Remove.
19324         * gimple.c (gimple_compare_field_offset): Adjust block comment.
19325
19326 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
19327
19328         * combine.c (try_combine): Remove useless local variable.
19329
19330 2011-04-03  Richard Guenther  <rguenther@suse.de>
19331             Ira Rosen  <ira.rosen@linaro.org>
19332
19333         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19334         non-variable offsets and compare the remaining bases of the two
19335         accesses instead of looking for exact same data-ref.
19336
19337 2011-04-02  Kai Tietz  <ktietz@redhat.com>
19338
19339         PR target/48416
19340         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19341
19342         * i386.c (ix86_is_msabi_thiscall): New helper function.
19343         (ix86_is_type_thiscall): New helper function.
19344         (ix86_comp_type_attributes): Handle thiscall for method-functions
19345         special.
19346         (init_cumulative_args): Likewise.
19347         (find_drap_reg): Likewise.
19348         (ix86_static_chain): Likewise.
19349         (x86_this_parameter): Likewise.
19350         (x86_output_mi_thunk): Likewise.
19351
19352 2011-04-01  Olivier Hainque  <hainque@adacore.com>
19353             Nicolas Setton  <setton@adacore.com>
19354             Eric Botcazou  <ebotcazou@adacore.com>
19355
19356         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19357         (add_gnat_descriptive_type_attribute): New function.
19358         (gen_array_type_die): Call it.
19359         (gen_enumeration_type_die): Likewise.
19360         (gen_struct_or_union_type_die): Likewise.
19361         (modified_type_die): Likewise.
19362         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19363         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19364         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19365
19366 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19367
19368         PR bootstrap/48148
19369         * dwarf2out.c (resolve_addr): Don't call force_decl_die
19370         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19371
19372         Revert:
19373         2011-03-17  Richard Guenther  <rguenther@suse.de>
19374
19375         PR bootstrap/48148
19376         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19377         origin for decls in other ltrans units.
19378         (input_varpool_node): Likewise.
19379
19380 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19381
19382         PR middle-end/48335
19383         * expr.c (expand_assignment): Handle all possibilities
19384         if TO_RTX is CONCAT.
19385         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19386         (store_split_bit_field): If SUBREG_REG (op0) or
19387         op0 itself has smaller mode than word, return it
19388         for offset 0 and const0_rtx for out-of-bounds stores.
19389         If word is const0_rtx, skip it.
19390
19391 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
19392
19393         * config/h8300/h8300.c (print_operand_address): Rename to...
19394         (h8300_print_operand_address): ...this. Make static. Adjust comments.
19395         Call h8300_print_operand and h8300_print_operand_address instead of
19396         print_operand and print_operand_address. Declare.
19397         (print_operand): Renake to...
19398         (h8300_print_operand): ...this. Make static. Adjust comments.
19399         Call h8300_print_operand instead of print_operand. Declare.
19400         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19401         (h8300_register_move_cost): Likewise.
19402         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19403         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19404         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19405         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19406         * config/h8300/h8300-protos.h (print_operand): Delete.
19407         (print_operand_address): Delete.
19408
19409 2011-04-01  Richard Henderson  <rth@redhat.com>
19410
19411         PR 48400
19412         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19413         in strict mode before dwarf4.  Re-order tests to early out
19414         before switching sections.
19415
19416 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19417
19418         * config/h8300/constraints.md: New file.
19419         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19420         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19421         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19422         * config/h8300/predicates.md (bit_operand): Likewise.
19423         (incdec_operand): Use satisfies_constraint_M and
19424         satisfies_constraint_O.  Don't use C code block.
19425         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19426         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19427         (compute_mov_length): Use satisfies_constraint_G.
19428         (fix_bit_operand): Use satisfies_constraint_U.
19429         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19430         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19431         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19432         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19433         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19434         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19435         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19436         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19437         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19438         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19439         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19440         (EXTRA_MEMORY_CONSTRAINT): Delete.
19441
19442 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19443             Michael Meissner  <meissner@linux.vnet.ibm.com>
19444
19445         PR target/48262
19446         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19447         operands, as per the specifications.
19448
19449         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19450         (vec_extract_evenv4sf): Ditto.
19451         (vec_extract_evenv8hi): Ditto.
19452         (vec_extract_evenv16qi): Ditto.
19453         (vec_extract_oddv4si): Ditto.
19454
19455 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19456
19457         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19458         high_pc attribute if the CU has no associated code. Only output
19459         DW_AT_entry_pc for CU if not generating strict dwarf and
19460         dwarf_version < 4.
19461
19462 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19463
19464         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19465         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19466         out of ...
19467         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19468         * final.c (final_start_function): Call the new function rather
19469         than using a NULL argument for dwarf2out_frame_debug.
19470
19471         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19472         that contains the prologue.
19473
19474         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19475         changed.  Print it in debugging output.
19476
19477         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19478
19479         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19480         Split most of the code into...
19481         (begin_move_insn): ... here.  New function.
19482         (ebb_sched_info): Add a pointer to it.
19483         * haifa-sched.c (scheduled_insns): New static variable.
19484         (sched_extend_ready_list): Allocate it.
19485         (schedule_block): Use it to record the order of scheduled insns.
19486         Perform RTL changes to move insns only after all scheduling
19487         decisions have been made.
19488         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19489         begin_move_insn field.
19490         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19491         * sched-int.h (struct haifa_sched_info): Remove second argument
19492         from begin_schedule_ready hook.  Add new member begin_move_insn.
19493         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19494         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19495
19496         * haifa-sched.c (prune_ready_list): New function, broken out of
19497         schedule_block.
19498         (schedule_block): Use it.
19499
19500 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19501
19502         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19503
19504 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19505
19506         * config.gcc (*-*-mingw*): Allow as option the
19507         posix threading model.
19508         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19509         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19510         definition.
19511         (CPP_SPEC): Add pthread/no-pthread handling.
19512         (LIB_SPEC): Likewise.
19513         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19514         (LIB_SPEC): Likewise.
19515         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19516         flag to pass -pthread option for shared libgcc build.
19517         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19518         for shared libgcc build.
19519         * config/i386/t-mingw-pthread: New file.
19520         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19521         New define to enable use of library pthread by default.
19522         * config/i386/mingw.opt (pthread): New driver option.
19523         (no-pthread): New driver option.
19524         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19525         * config/i386/mingw-w64.opt: Likewise.
19526
19527 2011-04-01  Gary Funck  <gary@intrepid.com>
19528
19529         * c-decl.c (grokdeclarator): Fix formatting.
19530
19531 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19532
19533         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19534         instead of n_operands.
19535         (set_storage_via_setmem): Likewise.
19536         * optabs.c (maybe_gen_insn): Likewise.
19537         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19538         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19539         (mips_expand_builtin_direct): Likewise.
19540         * config/spu/spu.c (expand_builtin_args): Likewise.
19541
19542 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19543
19544         * recog.h (insn_data_d): Add n_generator_args.
19545         * genoutput.c (data): Likewise.
19546         (output_insn_data): Print it.
19547         (max_opno, num_dups): Delete.
19548         (scan_operands): Just fill in "d->operand[...]".
19549         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19550
19551 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19552
19553         * gensupport.h (pattern_stats): New structure.
19554         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19555         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19556         (max_operand_1, max_operand_vec): Delete.
19557         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19558
19559 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19560
19561         * emit-rtl.c (emit_pattern_after_setloc): New function.
19562         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19563         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19564         (emit_pattern_after): New function.
19565         (emit_insn_after, emit_jump_insn_after): Call it.
19566         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19567         (emit_pattern_before_setloc): New function.
19568         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19569         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19570         Likewise.
19571         (emit_pattern_before): New function.
19572         (emit_insn_before, emit_jump_insn_before): Call it.
19573         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19574
19575 2011-03-31  Richard Henderson  <rth@redhat.com>
19576
19577         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19578         (dw_separate_line_info_entry): Remove.
19579         (enum dw_line_info_opcode): New.
19580         (dw_line_info_entry): Use it.
19581         (dw_line_info_table, dw_line_info_table_p): New.
19582         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19583         (line_info_table, line_info_label_num): Remove.
19584         (line_info_table_in_use): Remove.
19585         (separate_line_info_table): Remove.
19586         (separate_line_info_table_allocated): Remove.
19587         (separate_line_info_table_in_use): Remove.
19588         (LINE_INFO_TABLE_INCREMENT): Remove.
19589         (line_info_label_num): New.
19590         (cur_line_info_table): New.
19591         (text_section_line_info, cold_text_section_line_info): New.
19592         (separate_line_info): New.
19593         (SEPARATE_LINE_CODE_LABEL): Remove.
19594         (print_dwarf_line_table): Remove.
19595         (debug_dwarf): Don't dump it.
19596         (output_one_line_info_table): New.
19597         (output_line_info): Use it.
19598         (new_line_info_table): New.
19599         (set_cur_line_info_table): New.
19600         (dwarf2out_switch_text_section): Use it.
19601         (dwarf2out_begin_function): Likewise.
19602         (push_dw_line_info_entry): New.
19603         (dwarf2out_source_line): Rewrite for new line info tables.
19604         (dwarf2out_init): Remove dead initailizations.
19605
19606 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19607
19608         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19609         various flags.
19610         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19611         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19612         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19613         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19614         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19615         * opt-functions.awk (flag_init, switch_bit_fields): New.
19616         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19617         generate CL_MISSING_OK or CL_SAVE.
19618         * optc-gen.awk: Update to generate bit-field output as well as
19619         flags field.
19620         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19621         bit-field instead of CL_REJECT_DRIVER flag.
19622         * opts-common.c (generate_canonical_option,
19623         decode_cmdline_option): Use bit-fields instead of CL_* flags.
19624         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19625         instead of CL_REJECT_NEGATIVE flag.
19626         * toplev.c (print_switch_values): Use cl_report bit-field instead
19627         of CL_REPORT flag.
19628
19629 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19630
19631         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19632         a zero minimum index only if it is redundant.
19633
19634 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19635
19636         PR rtl-optimization/48381
19637         * ira-color.c (assign_hard_reg): Use hard reg set intersection
19638         instead of ira_class_hard_reg_index for calculating conflicting
19639         hard registers.
19640
19641 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
19642
19643         * cprop.c: Clean up hash table building.
19644         (reg_avail_info): Remove.
19645         (oprs_available_p): Remove.
19646         (record_last_reg_set_info): Remove.
19647         (record_last_set_info): Remove.
19648         (reg_available_p): New function.
19649         (gcse_constant_p): Do not treat unfolded conditions as constants.
19650         (make_set_regs_unavailable): New function.
19651         (hash_scan_set): Simplify with new reg_available_p.
19652         (compute_hash_table_work): Traverse insns stream only once.
19653         Do not compute reg_avail_info. Traverse insns in reverse order.
19654         Record implicit sets after recording explicit sets from the block.
19655
19656 2011-03-31  Michael Matz  <matz@suse.de>
19657
19658         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19659
19660 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
19661
19662         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19663         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19664         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19665         (h8300_mode_dependent_address_p): New function.
19666         (h8300_get_index): Make static.
19667
19668 2011-03-31  Jeff Law  <law@redhat.com>
19669
19670         * reload1.c (elimination_effects): Fix typo in recent change.
19671
19672         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19673         typo potentially leading to null pointer dereference.
19674
19675         * caller-save.c (new_saved_hard_reg): Eliminate return value.
19676         (setup_save_areas): Corresponding changes to avoid useless
19677         assignments.
19678
19679         * jump.c (reversed_comparison_code_parts): Avoid successive return
19680         statements when REVERSE_CONDITION is defined.
19681
19682         * expr.c (expand_assignment): Avoid useless assignments.
19683         (expand_expr_real_1): Likewise.
19684         (expand_expr_real_2): Avoid useless statements.
19685
19686         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19687
19688         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19689
19690         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19691         statements.
19692
19693         * stmt.c (expand_expr_stmt): Avoid useless assignment.
19694
19695 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19696
19697         PR target/47109
19698         * doc/tm.texi.in (TARGET_VERSION): Remove.
19699         * doc/tm.texi: Regenerate.
19700         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19701         * collect2.c (main): Don't use TARGET_VERSION.
19702         * mips-tdump.c (main): Don't use TARGET_VERSION.
19703         * mips-tfile.c (main): Don't use TARGET_VERSION.
19704         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19705         * config/rs6000/vxworksae.h: Remove.
19706         * config/alpha/alpha.h (TARGET_VERSION): Remove.
19707         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19708         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19709         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19710         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19711         * config/arm/arm.h (TARGET_VERSION): Remove.
19712         * config/arm/coff.h (TARGET_VERSION): Remove.
19713         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19714         * config/arm/elf.h (TARGET_VERSION): Remove.
19715         * config/arm/freebsd.h (TARGET_VERSION): Remove.
19716         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19717         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19718         * config/arm/pe.h (TARGET_VERSION): Remove.
19719         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19720         * config/arm/semi.h (TARGET_VERSION): Remove.
19721         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19722         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19723         * config/arm/vxworks.h (TARGET_VERSION): Remove.
19724         * config/avr/avr.h (TARGET_VERSION): Remove.
19725         * config/bfin/bfin.h (TARGET_VERSION): Remove.
19726         * config/fr30/fr30.h (TARGET_VERSION): Remove.
19727         * config/frv/frv.h (TARGET_VERSION): Remove.
19728         * config/h8300/h8300.h (TARGET_VERSION): Remove.
19729         * config/i386/cygwin.h (TARGET_VERSION): Remove.
19730         * config/i386/darwin.h (TARGET_VERSION): Remove.
19731         * config/i386/darwin64.h (TARGET_VERSION): Remove.
19732         * config/i386/djgpp.h (TARGET_VERSION): Remove.
19733         * config/i386/freebsd.h (TARGET_VERSION): Remove.
19734         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19735         * config/i386/gnu.h (TARGET_VERSION): Remove.
19736         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19737         * config/i386/i386elf.h (TARGET_VERSION): Remove.
19738         * config/i386/linux.h (TARGET_VERSION): Remove.
19739         * config/i386/linux64.h (TARGET_VERSION): Remove.
19740         * config/i386/lynx.h (TARGET_VERSION): Remove.
19741         * config/i386/mingw32.h (TARGET_VERSION): Remove.
19742         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19743         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19744         * config/i386/netware.h (TARGET_VERSION): Remove.
19745         * config/i386/nto.h (TARGET_VERSION): Remove.
19746         * config/i386/openbsd.h (TARGET_VERSION): Remove.
19747         * config/i386/vxworks.h (TARGET_VERSION): Remove.
19748         * config/ia64/elf.h (TARGET_VERSION): Remove.
19749         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19750         * config/ia64/hpux.h (TARGET_VERSION): Remove.
19751         * config/ia64/linux.h (TARGET_VERSION): Remove.
19752         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19753         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19754         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19755         * config/lm32/lm32.h (TARGET_VERSION): Remove.
19756         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19757         * config/m32c/m32c.h (TARGET_VERSION): Remove.
19758         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19759         * config/m32r/m32r.h (TARGET_VERSION): Remove.
19760         * config/m68k/linux.h (TARGET_VERSION): Remove.
19761         * config/m68k/m68k.h (TARGET_VERSION): Remove.
19762         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19763         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19764         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19765         * config/mep/mep.h (TARGET_VERSION): Remove.
19766         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19767         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19768         * config/mips/iris6.h (MACHINE_TYPE): Remove.
19769         * config/mips/linux.h (TARGET_VERSION): Remove.
19770         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19771         * config/mips/vxworks.h (TARGET_VERSION): Remove.
19772         * config/mmix/mmix.h (TARGET_VERSION): Remove.
19773         * config/mn10300/linux.h (TARGET_VERSION): Remove.
19774         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19775         * config/pa/pa.h (TARGET_VERSION): Remove.
19776         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19777         * config/picochip/picochip.h (TARGET_VERSION): Remove.
19778         * config/rs6000/aix.h (TARGET_VERSION): Remove.
19779         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19780         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19781         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19782         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19783         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19784         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19785         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19786         * config/rs6000/linux.h (TARGET_VERSION): Remove.
19787         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19788         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19789         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19790         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19791         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19792         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19793         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19794         * config/s390/linux.h (TARGET_VERSION): Remove.
19795         * config/s390/s390.h (TARGET_VERSION): Remove.
19796         * config/s390/tpf.h (TARGET_VERSION): Remove.
19797         * config/score/score.h (TARGET_VERSION): Remove.
19798         * config/sh/linux.h (TARGET_VERSION): Remove.
19799         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19800         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19801         * config/sh/sh.h (TARGET_VERSION): Remove.
19802         * config/sh/sh64.h (TARGET_VERSION): Remove.
19803         * config/sh/superh.h (TARGET_VERSION): Remove.
19804         * config/sh/vxworks.h (TARGET_VERSION): Remove.
19805         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19806         * config/sparc/linux.h (TARGET_VERSION): Remove.
19807         * config/sparc/linux64.h (TARGET_VERSION): Remove.
19808         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19809         TARGET_NAME32, TARGET_NAME): Remove.
19810         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19811         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19812         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19813         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19814         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19815         * config/spu/spu.h (TARGET_VERSION): Remove.
19816         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19817         * config/v850/v850.h (TARGET_VERSION): Remove.
19818         * config/vax/linux.h (TARGET_VERSION): Remove.
19819         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19820         * config/xtensa/elf.h (TARGET_VERSION): Remove.
19821         * config/xtensa/linux.h (TARGET_VERSION): Remove.
19822
19823 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19824
19825         PR target/48142
19826         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19827         frame-related from frame-unrelated adjustments to the stack pointer.
19828
19829 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
19830
19831         * common.opt (fdebug-types-section): Move earlier.
19832         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19833
19834 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
19835
19836         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19837         var.
19838
19839 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
19840
19841         * tree.h (CASE_CHAIN): Define.
19842         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19843         (gimple_redirect_edge_and_branch): Likewise.
19844
19845 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19846
19847         PR middle-end/48367
19848         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19849         calculation.
19850
19851 2011-03-30  Jeff Law  <law@redhat.com>
19852
19853         * PR bootstrap/48371
19854         * reload1.c (reload): Fix botch in last change.
19855
19856         * reload.h (struct reload): Fix typo introduced in last change.
19857
19858 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19859
19860         * config/arm/arm.opt (mhard-float, msoft-float): Mark
19861         Undocumented.  Remove help text.
19862         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19863         -mhard-float.
19864
19865 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19866
19867         * doc/options.texi (NegativeAlias): Document.
19868         (Alias): Mention NegativeAlias.
19869         * opt-functions.awk: Handle NegativeAlias.
19870         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19871         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19872         * opts.h (CL_NEGATIVE_ALIAS): Define.
19873         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19874         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19875         OPT_mspe_.
19876         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19877         Alias entries.
19878         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19879         mno-spe and mno-isel instead of mspe=no and -misel=no.
19880
19881 2011-03-29  Mark Wielaard  <mjw@redhat.com>
19882
19883         * common.opt (fdebug-types-section): New flag.
19884         * doc/invoke.texi: Document new -fno-debug-types-section flag.
19885         * dwarf2out.c (use_debug_types): New define.
19886         (struct die_struct): Mark die_id with GTY desc use_debug_types.
19887         (print_die): Guard output of type unit signatures using
19888         use_debug_types.
19889         (build_abbrev_table): Replace assert of dwarf_version >= 4
19890         with assert on use_debug_types.
19891         (size_of_die): Likewise.
19892         (unmark_dies): Likewise.
19893         (value_format): Decide AT_ref_external form on use_debug_types.
19894         (output_die): Replace dwarf_version version check guard with
19895         use_debug_types where appropriate.
19896         (modified_type_die): Likewise.
19897         (gen_reference_type_die): Likewise.
19898         (dwarf2out_start_source_file): Likewise.
19899         (dwarf2out_end_source_file): Likewise.
19900         (prune_unused_types_walk_attribs): Likewise.
19901         (dwarf2out_finish): Likewise.
19902
19903 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19904
19905         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19906
19907 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19908
19909         PR rtl-optimization/48332
19910         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
19911         mode of input operand N and modeN to its actual mode.
19912
19913 2011-03-30  Jeff Law  <law@redhat.com>
19914
19915         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
19916         define accessor macro.
19917         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
19918         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
19919         (reg_equiv_init): Likewise.
19920         (reg_equivs_size): New variable.
19921         (reg_equiv_init_size): Remove.
19922         (allocate_initial_values): Move prototype to here from....
19923         * integrate.h (allocate_initial_values): Remove prototype.
19924         * integrate.c: Include reload.h.
19925         (allocate_initial_values): Corresponding changes.
19926         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
19927         (fix_reg_equiv_init, no_equiv): Corresponding changes.
19928         (update_equiv_regs): Corresponding changes.
19929         (ira): Corresponding changes.
19930         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
19931         (push_secondary_reload): Corresponding changes.
19932         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
19933         (make_memloc, find_reloads_address): Corresponding changes.
19934         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
19935         (find_reloads_address_1): Corresponding changes.
19936         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
19937         (refers_to_regno_for_reload_p): Corresponding changes.
19938         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
19939         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
19940         * reload1.c: Include ggc.h.
19941         (grow_reg_equivs): New function.
19942         (replace_pseudos_in, reload): Corresponding changes.
19943         (calculate_needs_all_insns, alter_regs): Corresponding changes.
19944         (eliminate_regs_1, elimination_effects): Corresponding changes.
19945         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
19946         (delete_output_reload): Likewise.
19947         * caller-save.c (mark_referenced_regs): Corresponding changes.
19948         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
19949         * frv/predicates.md (frv_load_operand): Corresponding changes.
19950         * microblaze/microblaze.c (double_memory_operand): Corresponding
19951         changes.
19952         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
19953         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
19954         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
19955         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
19956         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
19957         changes.
19958         * pa/pa.c (emit_move_sequence): Corresponding changes.
19959         * vax/vax.c (nonindexed_address_p): Corresponding changes.
19960
19961 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19962
19963         PR target/47551
19964         * config/arm/arm.c (coproc_secondary_reload_class): Handle
19965         structure modes.  Don't check neon_vector_mem_operand for
19966         vector or structure modes.
19967
19968 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19969             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19970
19971         PR target/43590
19972         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
19973         operand 1 and reshuffle the operands to match.
19974         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
19975
19976 2011-03-30  Christian Schüler  <cschueler@gmx.de>
19977
19978         PR driver/48208
19979         * config/c.opt (F): Added 'Driver' to -F option.
19980
19981         PR driver/48260
19982         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
19983           handler function.
19984         * config/darwin.opt: Added '-arch' option.
19985
19986 2011-03-30  Nick Clifton  <nickc@redhat.com>
19987
19988         * config/rx/rx.md: Add peepholes and patterns to combine
19989         extending loads and simple arithmetic instructions.
19990         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
19991         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
19992         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
19993         modes to use pre-decrement and post-increment addressing.
19994         (rx_is_restricted_memory_address): Add range checking of REG+INT
19995         addresses.
19996         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
19997         (rx_memory_move_cost): Adjust cost of stores.
19998         (rx_adjust_insn_length): New function.
19999
20000 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20001
20002         PR c/48305
20003         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20004         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20005         matching arg00/arg01 types.
20006
20007 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20008
20009         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20010         last_location to UNKNOWN_LOCATION.
20011
20012 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20013
20014         PR target/48349
20015         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20016         FLOAT_SSE_REGS.
20017
20018 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20019             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20020
20021         PR bootstrap/48337
20022         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20023         Init(PROCESSOR_V7).
20024         (sparc_cpu): Likewise.
20025         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20026         PROCESSOR_V7.
20027
20028 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20029
20030         PR target/48336
20031         PR middle-end/48342
20032         PR rtl-optimization/48345
20033         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20034         hard regs for given mode from profitable regs when doing secondary
20035         allocation.
20036
20037 2011-03-29  Jeff Law  <law@redhat.com>
20038
20039         PR bootstrap/48327
20040         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20041         do_not_duplicate field.
20042         (lookup_redirection_data): Corresponding changes.
20043         (create_duplicates): Always create a template block.
20044         (redirect_edges): Remove code which reused the original block
20045         when it was going to become unreachable code.
20046         (thread_block): Don't set do_not_duplicate field.
20047
20048 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20049
20050         * lto-opts.c (register_user_option_p, lto_register_user_option):
20051         Make type argument unsigned.
20052         * lto-streamer.h (lto_register_user_option): Make type argument
20053         unsigned.
20054         * opth-gen.awk: Make CL_* macros unsigned.
20055         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20056         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20057         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20058         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20059         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20060         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20061         (find_opt): Make lang_mask argument unsigned.
20062
20063 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20064
20065         PR rtl-optimization/48331
20066         PR rtl-optimization/48334
20067         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20068         for any used algorithm.
20069
20070 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20071
20072         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20073         to parent_max.
20074
20075 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20076
20077         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20078         (alpha_option_override): Don't set alpha_sr_alias_set.
20079         (emit_frame_store_1): Use gen_frame_mem rather than calling
20080         set_mem_alias_set.
20081         (alpha_expand_epilogue): Ditto.
20082
20083 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20084
20085         PR tree-optimization/48290
20086         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20087         vectorization, check that relevant phis in the basic block after
20088         the inner loop are really inner loop's exit phis.
20089
20090 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20091
20092         PR debug/48190
20093         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20094         (cached_dw_loc_list_def): New structure.
20095         (cached_dw_loc_list): New typedef.
20096         (cached_dw_loc_list_table): New variable.
20097         (cached_dw_loc_list_table_hash): New function.
20098         (cached_dw_loc_list_table_eq): Likewise.
20099         (add_location_or_const_value_attribute): Take a bool cache_p.
20100         Cache the list when the parameter is true.
20101         (gen_formal_parameter_die): Update caller.
20102         (gen_variable_die): Likewise.
20103         (dwarf2out_finish): Likewise.
20104         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20105         while generating debug info for the decl.
20106         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20107         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20108         (resolve_addr): Cache the result of resolving a chain of
20109         location lists.
20110
20111 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20112
20113         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20114         conflict object hard regset nodes have intersecting hard reg sets.
20115
20116         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20117         after regstat_init_n_sets_and_refs.
20118
20119         * ira.c: Add more comments at the top.
20120         (setup_stack_reg_pressure_class, setup_pressure_classes):
20121         Add comments how we compute the register pressure classes.
20122         (setup_allocno_and_important_classes): Add more comments.
20123         (setup_class_translate_array, reorder_important_classes)
20124         (setup_reg_class_relations): Add comments.
20125
20126         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20127         start of the file.
20128
20129         * ira-color.c: Add 2011 to the Copyright line.
20130         (assign_hard_reg):  Add more comments.
20131         (improve_allocation): Ditto.
20132
20133         * ira-costs.c: Add 2011 to the Copyright line.
20134         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20135         comments.
20136         (setup_regno_cost_classes_by_mode): Ditto.
20137
20138         Initial patches from ira-improv branch:
20139
20140         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20141
20142         * ira-build.c (ira_create_object): Remove initialization of
20143         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20144         (ira_create_allocno): Remove initialization of
20145         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20146         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20147         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20148         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20149         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20150         Initialize ALLOCNO_ADD_DATA.
20151         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20152         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20153         ALLOCNO_REG.
20154         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20155         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20156
20157         * ira.c (ira_reallocate): Remove.
20158         (setup_pressure_classes): Call
20159         ira_init_register_move_cost_if_necessary.  Use
20160         ira_register_move_cost instead of ira_get_register_move_cost.
20161         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20162         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20163
20164         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20165         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20166         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20167         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20168         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20169         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20170         Fix formatting.
20171         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20172         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20173         (struct allocno_color_data): New.
20174         (allocno_color_data_t): New typedef.
20175         (allocno_color_data): New definition.
20176         (ALLOCNO_COLOR_DATA): New macro.
20177         (struct object_color_data): New.
20178         (object_color_data_t): New typedef.
20179         (object_color_data): New definition.
20180         (OBJECT_COLOR_DATA): New macro.
20181         (update_copy_costs, calculate_allocno_spill_cost): Call
20182         ira_init_register_move_cost_if_necessary.  Use
20183         ira_register_move_cost instead of ira_get_register_move_cost.
20184         (move_spill_restore, update_curr_costs): Ditto.
20185         (allocno_spill_priority): Make it inline.
20186         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20187         (struct coalesce_data, coalesce_data_t): New.
20188         (allocno_coalesce_data): New definition.
20189         (ALLOCNO_COALESCE_DATA): New macro.
20190         (merge_allocnos, coalesced_allocno_conflict_p): Use
20191         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20192         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20193         (coalesce_allocnos): Ditto.
20194         (setup_coalesced_allocno_costs_and_nums): Ditto.
20195         (collect_spilled_coalesced_allocnos): Ditto.
20196         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20197         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20198         (coalesce_spill_slots): Ditto.
20199         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20200         free allocno_coalesce_data.
20201
20202         * ira-conflicts.c: Fix formatting.
20203         (process_regs_for_copy): Call
20204         ira_init_register_move_cost_if_necessary.  Use
20205         ira_register_move_cost instead of ira_get_register_move_cost.
20206         (build_object_conflicts): Optimize.
20207
20208         * ira-costs.c (record_reg_classes): Optimize.  Call
20209         ira_init_register_move_cost_if_necessary.  Use
20210         ira_register_move_cost, ira_may_move_in_cost, and
20211         ira_may_move_out_cost instead of ira_get_register_move_cost and
20212         ira_get_may_move_cost.
20213         (record_address_regs): Ditto.
20214         (scan_one_insn): Optimize.
20215         (find_costs_and_classes): Optimize.
20216         (process_bb_node_for_hard_reg_moves): Call
20217         ira_init_register_move_cost_if_necessary.  Use
20218         ira_register_move_cost instead of ira_get_register_move_cost.
20219
20220         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20221         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20222         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20223         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20224         definitions.
20225         (ira_initiate_emit_data, ira_finish_emit_data)
20226         (create_new_allocno): New functions.
20227         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20228         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20229         Use ira_register_move_cost instead of ira_get_register_move_cost.
20230
20231         * ira-int.h: Fix some comments.
20232         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20233         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20234         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20235         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20236         add_data.
20237         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20238         bitfield after mode.  Make hard_regno a short int.  Make
20239         hard_regno short.  Remove first_coalesced_allocno and
20240         next_coalesced_allocno.  Move mem_optimized_dest_p,
20241         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20242         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20243         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20244         temp, colorable_p.  Add new member add_data.
20245         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20246         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20247         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20248         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20249         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20250         (ALLOCNO_ADD_DATA): New macro.
20251         (ira_emit_data_t): New typedef.
20252         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
20253         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20254         from struct ira_allocno.
20255         (ALLOCNO_EMIT_DATA): New macro.
20256         (ira_allocno_emit_data, allocno_emit_reg): New.
20257         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20258         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20259         (OBJECT_ADD_DATA): New macro.
20260         (ira_reallocate): Remove.
20261         (ira_initiate_emit_data, ira_finish_emit_data): New.
20262         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20263         (ira_init_register_move_cost_if_necessary): New.
20264         (ira_object_conflict_iter_next): Merge into
20265         ira_object_conflict_iter_cond.
20266         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20267
20268         * ira-live.c (process_single_reg_class_operands): Call
20269         ira_init_register_move_cost_if_necessary.  Use
20270         ira_register_move_cost instead of ira_get_register_move_cost.
20271
20272         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20273
20274         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20275
20276         * ira-costs.c: Fix formatting.
20277         (cost_classes, cost_classes_num): Remove.
20278         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20279         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20280         (cost_classes_del, cost_classes_htab): New.
20281         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20282         (initiate_regno_cost_classes, setup_cost_classes): New.
20283         (setup_regno_cost_classes_by_aclass): New.
20284         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20285         (record_reg_classes): Use regno_cost_classes instead of
20286         cost_classes.  Move checking opposite operand up.
20287         (record_address_regs): Use regno_cost_classes
20288         instead of cost_classes.
20289         (scan_one_insn): Ditto.  Use always general register.
20290         (print_allocno_costs): Use regno_cost_classes instead of
20291         cost_classes.
20292         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
20293         (find_costs_and_classes): Set up cost classes for each registers.
20294         Use also their mode for this.  Use regno_cost_classes instead of
20295         cost_classes.
20296         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20297         cost_classes.
20298         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20299         (ira_costs, ira_set_pseudo_classes): Call
20300         initiate_regno_cost_classes and finish_regno_cost_classes.
20301
20302         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20303
20304         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20305
20306         * target.def (ira_cover_classes): Remove.
20307
20308         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20309
20310         * doc/tm.texi.in: Ditto.
20311
20312         * ira-conflicts.c: Remove mentioning cover classes from the file.
20313         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
20314         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
20315
20316         * targhooks.c (default_ira_cover_classes): Remove.
20317
20318         * targhooks.h (default_ira_cover_classes): Ditto.
20319
20320         * haifa-sched.c: Remove mentioning cover classes from the file.
20321         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20322         ira_pressure_classes and ira_pressure_classes_num instead of
20323         ira_reg_class_cover_size and ira_reg_class_cover.  Use
20324         sched_regno_pressure_class instead of sched_regno_cover_class.
20325         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20326         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20327
20328         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
20329         classes from the file.
20330         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20331         (struct object_hard_regs, struct object_hard_regs_node): New.
20332         (struct ira_object): New members profitable_hard_regs,
20333         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20334         (struct ira_allocno): Rename cover_class to aclass.  Rename
20335         cover_class_cost and updated_cover_class_cost to class_cost and
20336         updated_class_cost.  Remove splay_removed_p and
20337         left_conflict_size.  Add new members colorable_p.
20338         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20339         (ALLOCNO_COLORABLE_P): New macro.
20340         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20341         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20342         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20343         (OBJECT_...): Rename parameter C to O.
20344         (OBJECT_PROFITABLE_HARD_REGS): New macro.
20345         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20346         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20347         (struct target_ira_int): New members x_ira_max_memory_move_cost,
20348         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20349         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20350         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20351         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
20352         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
20353         x_ira_reg_class_subunion.
20354         (ira_max_memory_move_cost, ira_max_register_move_cost)
20355         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20356         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20357         (ira_important_class_nums, ira_reg_class_superunion): New macros.
20358         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20359         (ira_reg_class_union): Rename to ira_reg_class_subunion.
20360         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20361         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20362         (ira_tune_allocno_costs_and_cover_classes): Rename to
20363         ira_tune_allocno_costs.
20364         (ira_debug_hard_regs_forest): New.
20365         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20366         (ira_object_conflict_iter_next): Fix comments.
20367         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20368         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20369         cover_class to aclass.
20370         (ira_allocate_and_accumulate_costs): Ditto.
20371         (ira_allocate_and_set_or_copy_costs): Ditto.
20372
20373         * opts.c (decode_options): Remove ira_cover_class check.
20374
20375         * ira-color.c: Remove mentioning cover classes from the file.  Use
20376         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20377         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20378         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20379         (splay-tree.h): Remove include.
20380         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20381         before copy_freq_compare_func.
20382         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20383         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20384         New definitions.
20385         (hard_regs_roots, hard_regs_node_vec): Ditto.
20386         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20387         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20388         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20389         (create_new_object_hard_regs_node): Ditto.
20390         (add_new_object_hard_regs_node_to_forest): Ditto.
20391         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20392         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20393         Ditto.
20394         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20395         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20396         (remove_unused_object_hard_regs_nodes): Ditto.
20397         (enumerate_object_hard_regs_nodes): Ditto.
20398         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20399         (object_hard_regs_subnode_t): Ditto.
20400         (struct object_hard_regs_subnode): Ditto.
20401         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20402         (setup_object_hard_regs_subnode_index): Ditto.
20403         (get_object_hard_regs_subnodes_num): Ditto.
20404         (form_object_hard_regs_nodes_forest): Ditto.
20405         (finish_object_hard_regs_nodes_tree): Ditto.
20406         (finish_object_hard_regs_nodes_forest): Ditto.
20407         (allocnos_have_intersected_live_ranges_p): Rename to
20408         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20409         (pseudos_have_intersected_live_ranges_p): Rename to
20410         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20411         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20412         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20413         (update_copy_costs): Remove assert.  Skip cost update if the hard
20414         reg does not belong the class.
20415         (assign_hard_reg): Process only profitable hard regs.
20416         (uncolorable_allocnos_num): Make it scalar.
20417         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20418         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20419         and ira_reg_class_max_nregs.
20420         (bucket_allocno_compare_func): Check frequency first.
20421         (sort_bucket): Add compare function as a parameter.
20422         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20423         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20424         (push_allocno_to_stack): Rewrite for checking new allocno
20425         colorability.
20426         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20427         (push_only_colorable): Pass new parameter to sort_bucket.
20428         (push_allocno_to_spill): Remove.
20429         (allocno_spill_priority_compare): Make it inline and rewrite.
20430         (splay_tree_allocate, splay_tree_free): Remove.
20431         (allocno_spill_sort_compare): New function.
20432         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20433         build and use splay tree.  Choose first allocno in uncolorable
20434         allocno bucket to spill.  Remove setting spill cost.
20435         (all_conflicting_hard_regs): Remove.
20436         (setup_allocno_available_regs_num): Check only profitable hard
20437         regs.  Print info about hard regs nodes.
20438         (setup_allocno_left_conflicts_size): Remove.
20439         (put_allocno_into_bucket): Don't call
20440         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20441         (improve_allocation): New.
20442         (color_allocnos): Call setup_profitable_hard_regs,
20443         form_object_hard_regs_nodes_forest, improve_allocation,
20444         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20445         (print_loop_title): Use pressure classes.
20446         (color_allocnso): Ditto.
20447         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20448         and allocnos_for_spilling.
20449         (ira_sort_regnos_for_alter_reg): Don't setup members
20450         {first,next}_coalesced_allocno.
20451         (color): Remove allocating and freeing removed_splay_allocno_vec.
20452         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20453         prohibited_class_mode_regs.
20454
20455         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20456         formatting.
20457         (update_allocno_pressure_excess_length): Use pressure classes.
20458         (inc_register_pressure, dec_register_pressure): Check for pressure
20459         class.
20460         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20461         pressure class.  Use ira_reg_class_nregs instead of
20462         ira_reg_class_max_nregs.
20463         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20464         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20465         (single_reg_class): Use ira_reg_class_nregs instead of
20466         ira_reg_class_max_nregs.
20467         (process_bb_node_lives): Use pressure classes.
20468
20469         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20470         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20471         (change_loop): Use pressure classes.
20472         (modify_move_list): Call ira_set_allocno_class instead of
20473         ira_set_allocno_cover_class.
20474
20475         * ira-build.c: Remove mentioning cover classes from the file.  Use
20476         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20477         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20478         ALLOCNO_UPDATED_CLASS_COST instead of
20479         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20480         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20481         (ira_create_allocno): Remove initialization of
20482         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20483         ALLOCNO_COLORABLE_P.
20484         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20485         Update conflict regs for the objects.
20486         (create_cap_allocno): Remove assert.  Don't propagate
20487         ALLOCNO_AVAILABLE_REGS_NUM.
20488         (ira_free_allocno_costs): New function.
20489         (finish_allocno): Change a part of code into call of
20490         ira_free_allocno_costs.
20491         (low_pressure_loop_node_p): Use pressure classes.
20492         (object_range_compare_func): Don't compare classes.
20493         (setup_min_max_conflict_allocno_ids): Ditto.
20494
20495         * loop-invariant.c: Remove mentioning cover classes from the file.
20496         Use ira_pressure_classes and ira_pressure_classes_num instead of
20497         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20498         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20499         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20500         Use reg_allocno_class instead of reg_cover_class.
20501         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20502         STACK_REG_COVER_CLASS.
20503         (get_regno_cover_class): Rename to get_regno_pressure_class.
20504         (move_loop_invariants): Initialize and finalize regstat.
20505
20506         * ira.c: Remove mentioning cover classes from the file.  Add
20507         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20508         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20509         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20510         setup_class_subset_and_memory_move_costs.
20511         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20512         (setup_cover_and_important_classes): Rename to
20513         setup_allocno_and_important_classes.
20514         (setup_class_translate_array): New.
20515         (setup_class_translate): Call it for allocno and pressure classes.
20516         (cover_class_order): Rename to allocno_class_order.
20517         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20518         of ira_class_translate.
20519         (reorder_important_classes): Set up ira_important_class_nums.
20520         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20521         (print_class_cover): Rename to print_classes.  Add parameter.
20522         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20523         Print pressure classes too.
20524         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20525         setup_reg_subclasses.
20526         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20527         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20528         (setup_prohibited_class_mode_regs): Use
20529         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20530         (clarify_prohibited_class_mode_regs): New function.
20531         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20532         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20533         (ira_init_once): Initialize them.
20534         (free_register_move_costs): Process them.
20535         (ira_init): Move calls of find_reg_classes and
20536         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20537         Call clarify_prohibited_class_mode_regs.
20538         (ira_no_alloc_reg): Remove.
20539         (too_high_register_pressure_p): Use pressure classes.
20540
20541         * sched-deps.c: Remove mentioning cover classes from the file.
20542         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20543         ira_pressure_classes and ira_pressure_classes_num instead of
20544         ira_reg_class_cover_size and ira_reg_class_cover.
20545         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20546         sched_regno_pressure_class instead of sched_regno_cover_class.
20547         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20548         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20549
20550         * ira.h: Add 2010 to Copyright.
20551         (ira_no_alloc_reg): Remove external.
20552         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20553         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20554         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20555         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20556         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20557         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20558         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20559         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20560         x_ira_no_alloc_regs.
20561         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20562         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20563         ira_allocno_classes_num and ira_allocno_classes.
20564         (ira_class_translate): Rename to ira_allocno_class_translate.
20565         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20566         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20567         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20568         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20569         (ira_no_alloc_regs): New.
20570
20571         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20572         classes from the file.  Use ALLOCNO_CLASS instead of
20573         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20574         ALLOCNO_COVER_CLASS_COST.
20575         (regno_cover_class): Rename to regno_aclass.
20576         (record_reg_classes): Use ira_reg_class_subunion instead of
20577         ira_reg_class_union.
20578         (record_address_regs): Check overflow.
20579         (scan_one_insn): Ditto.
20580         (print_allocno_costs): Print total mem cost fore regional allocation.
20581         (print_pseudo_costs): Use REG_N_REFS.
20582         (find_costs_and_classes): Use classes intersected with them on the
20583         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20584         ira_reg_class_union.  Use ira_allocno_class_translate and
20585         regno_aclass instead of ira_class_translate and regno_cover_class.
20586         Modify code for finding regno_aclass.  Setup preferred classes for
20587         the next pass.
20588         (setup_allocno_cover_class_and_costs): Rename to
20589         setup_allocno_class_and_costs.  Use regno_aclass instead of
20590         regno_cover_class.  Use ira_set_allocno_class instead of
20591         ira_set_allocno_cover_class.
20592         (init_costs, finish_costs): Use regno_aclass instead of
20593         regno_cover_class.
20594         (ira_costs): Use setup_allocno_class_and_costs instead of
20595         setup_allocno_cover_class_and_costs.
20596         (ira_tune_allocno_costs_and_cover_classes): Rename to
20597         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20598         by processing objects.  Use ira_reg_class_max_nregs instead of
20599         ira_reg_class_nregs.
20600
20601         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20602
20603         * sched-int.h: Remove mentioning cover classes from the file.
20604         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20605
20606         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20607         classes from the file.
20608         (struct reg_pref): Rename coverclass into allocnoclass.
20609         (reg_cover_class): Rename to reg_allocno_class.
20610
20611         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20612
20613         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20614
20615         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20616
20617         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20618
20619         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20620
20621         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20622
20623         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20624
20625         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20626
20627         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20628
20629         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20630
20631         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20632         (i386_ira_cover_classes): Ditto.
20633
20634         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20635
20636         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20637
20638         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20639
20640         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20641
20642         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20643
20644         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20645
20646         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20647         (mips_ira_cover_classes): Ditto.
20648
20649         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20650
20651         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20652
20653         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20654
20655         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20656
20657         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20658
20659         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20660         (IRA_COVER_CLASSES_VSX): Ditto.
20661
20662         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20663         (rs6000_ira_cover_classes): Ditto.
20664
20665         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20666
20667         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20668
20669         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20670
20671         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20672
20673         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20674
20675         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20676
20677         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20678
20679         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20680
20681         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20682
20683         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20684
20685 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
20686
20687         PR debug/48253
20688         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20689         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20690         dw_fde_unlikely_section_end_label, cold_in_std_section,
20691         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20692         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20693         fields.
20694         (output_fde): Use dw_fde_second_{begin,end} if second is
20695         true, otherwise dw_fde_{begin,end}.
20696         (output_call_frame_info): Test dw_fde_second_begin != NULL
20697         instead of dw_fde_switched_sections.
20698         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20699         fields, initialize new fields.  Initialize in_std_section
20700         unconditionally from the first partition.
20701         (dwarf2out_end_epilogue): Don't override dw_fde_end when
20702         dw_fde_second_begin is non-NULL.
20703         (dwarf2out_switch_text_section): Stop initializing removed
20704         dw_fde_struct fields, initialize new fields, initialize
20705         also dw_fde_end here.  Set dw_fde_switch_cfi even when
20706         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
20707         (struct var_loc_list_def): Add last_before_switch field.
20708         (arange_table, arange_table_allocated, arange_table_in_use,
20709         ARANGE_TABLE_INCREMENT, add_arange): Removed.
20710         (size_of_aranges): Count !in_std_section and !second_in_std_section
20711         hunks in fdes, instead of looking at arange_table_in_use.
20712         (output_aranges): Add aranges_length argument, don't call
20713         size_of_aranges here.  Instead of using aranges_table*
20714         emit ranges for fdes when !in_std_section resp.
20715         !second_in_std_section.
20716         (dw_loc_list): Break ranges crossing section switch.
20717         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
20718         use dw_fde_second_end instead of dw_fde_end as end of last range.
20719         (gen_subprogram_die): Don't call add_arange.  Use
20720         dw_fde_{begin,end} for first partition and if switched
20721         section dw_fde_second_{begin,end} for the second.
20722         (var_location_switch_text_section_1,
20723         var_location_switch_text_section): New functions.
20724         (dwarf2out_begin_function): Initialize cold_text_section even
20725         when function_section () isn't text_section.
20726         (prune_unused_types): Don't walk arange_table.
20727         (dwarf2out_finish): Don't needlessly test
20728         flag_reorder_blocks_and_partition when testing cold_text_section_used.
20729         If info_section_emitted, call size_of_aranges and if it indicates
20730         non-empty .debug_aranges, call output_aranges with the computed
20731         size.  Stop using removed dw_fde_struct fields, use
20732         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20733         for second.
20734
20735         PR debug/48203
20736         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20737         create ENTRY_VALUE if incoming or address of incoming's MEM
20738         is a hard REG.
20739         * dwarf2out.c (mem_loc_descriptor): Don't emit
20740         DW_OP_GNU_entry_value of DW_OP_fbreg.
20741         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20742         on ENTRY_VALUE is able to find the canonical parameter VALUE.
20743         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20744         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20745         ENTRY_VALUE_EXPs.
20746         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20747         is a REG_P or MEM_P with REG_P address, compute hash directly
20748         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20749         (preserve_only_constants): Don't clear VALUES forwaring
20750         ENTRY_VALUE to some other VALUE.
20751
20752 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
20753
20754         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20755         instead of GEN_INT.
20756
20757 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20758
20759         * cfgexpand.c (expand_gimple_cond): Always set the source location and
20760         block before expanding the statement.
20761         (expand_gimple_stmt_1): Likewise.  Set them here...
20762         (expand_gimple_stmt): ...and not here.  Tidy.
20763         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20764         unknown.
20765
20766 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20767
20768         * Makefile.in: New rule for cprop.o.
20769         * gcse.c: Move constant/copy propagation to cprop.c.
20770         (compute_local_properties): Only handle expression tables.
20771         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20772         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20773         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20774         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20775         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20776         compute_cprop_data, find_used_regs, try_replace_reg,
20777         find_avail_set, cprop_jump, constprop_register, cprop_insn,
20778         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20779         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20780         find_bypass_set, reg_killed_on_edge, bypass_block,
20781         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20782         execute_rtl_cprop, pass_rtl_cprop): Move to...
20783         * cprop.c: ...here.  New file, constant/copy propagation for RTL
20784         moved from gcse.c to here with minor cleanups in duplicated code.
20785
20786 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
20787
20788         * config/i386/i386.c (flag_opts): Fix a typo in
20789         -mavx256-split-unaligned-store.
20790
20791 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20792
20793         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20794         LIBCALL_VALUE): Remove macros.
20795         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20796         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20797         (h8300_function_value, h8300_libcall_value,
20798         h8300_function_value_regno_p): New functions.
20799
20800 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20801
20802         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20803
20804 2011-03-28  Jeff Law  <law@redhat.com>
20805
20806         * tree-ssa-threadupdate.c (redirect_edges): Call
20807         create_edge_and_update_destination_phis as needed.
20808         (create_edge_and_update_destination_phis): Accept new BB argument.
20809         All callers updated.
20810         (thread_block): Do not update the profile when threading around
20811         intermediate blocks.
20812         (thread_single_edge): Likewise.
20813         (determine_bb_domination_status): If BB is not a successor of the
20814         loop header, return NONDOMINATING.
20815         (register_jump_thread): Note when we register a jump thread around
20816         an intermediate block.
20817         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20818         (thread_across_edge): Use it.
20819
20820 2011-03-28  Tristan Gingold  <gingold@adacore.com>
20821
20822         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20823         when for_return is 2.
20824
20825 2011-03-28  Jeff Law  <law@redhat.com>
20826
20827         * var-tracking.c (canonicalize_values_mark): Delete unused
20828         lhs assignment.
20829         (canonicalize_values_star, set_variable_part): Likewise.
20830         (clobber_variable_part, delete_variable_part): Likewise.
20831
20832 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20833
20834         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20835
20836 2011-03-28  Martin Jambor  <mjambor@suse.cz>
20837
20838         * tree-inline.c (expand_call_inline): Do not check that destination
20839         node is analyzed.
20840         (optimize_inline_calls): Assert that destination node is analyzed.
20841         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20842         not call tree_lowering_passes.
20843         * cgraph.h (cgraph_analyze_function): Declare.
20844         * cgraphunit.c (cgraph_analyze_function): Make public.
20845
20846 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
20847
20848         * config/sparc/sparc-opts.h: New.
20849         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20850         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20851         (sparc_option_override): Store processor_type enumeration rather
20852         than string in cpu_default.  Remove name and enumeration from
20853         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
20854         without using sparc_select.  Use target_flags_explicit instead of
20855         fpu_option_set.
20856         * config/sparc/sparc.h (enum processor_type): Move to
20857         sparc-opts.h.
20858         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20859         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20860         HeaderInclude entry.
20861         (mcpu=, mtune=): Use Var and Enum.
20862         (sparc_processor_type): New Enum and EnumValue entries.
20863
20864 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20865             Iain Sandoe  <iains@gcc.gnu.org>
20866
20867         PR target/48245
20868         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20869
20870 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20871
20872         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20873         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20874         Insert new statements at it in lieu of STMT.
20875         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20876         * tree-vect-stmts.c (vectorizable_store): Likewise.
20877         (vectorizable_load): Likewise.
20878
20879 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
20880
20881         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20882         (divtf3): Ditto.
20883         (multf3): Ditto.
20884         (subtf3): Ditto.
20885
20886 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20887
20888         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20889         unaligned 256bit load/store.
20890         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20891         (*avx_movdqu<avxmodesuffix>): Likewise.
20892
20893 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20894
20895         PR target/48288
20896         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20897         * config/pa/pa.md (iordi3): Use new predicate in expander.
20898         (iorsi3): Likewise.
20899
20900 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
20901
20902         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20903         FUNCTION_VALUE_REGNO_P): Remove macros.
20904         * config/mips/mips-protos.h (mips_function_value): Remove.
20905         * config/mips/mips.c (mips_function_value): Rename to...
20906         (mips_function_value_1): ... this. Make static.  Handle receiving
20907         the function type in 'fn_decl_or_type' argument.
20908         (mips_function_value, mips_libcall_value,
20909         mips_function_value_regno_p): New function.
20910         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20911         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20912
20913 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20914
20915         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
20916         and -mavx256-split-unaligned-store.
20917         (ix86_option_override_internal): Split 32-byte AVX unaligned
20918         load/store by default.
20919         (ix86_avx256_split_vector_move_misalign): New.
20920         (ix86_expand_vector_move_misalign): Use it.
20921
20922         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
20923         -mavx256-split-unaligned-store.
20924
20925         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
20926         256bit load/store.  Generate unaligned store on misaligned memory
20927         operand.
20928         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
20929         256bit load/store.
20930         (*avx_movdqu<avxmodesuffix>): Likewise.
20931
20932         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
20933         -mavx256-split-unaligned-store.
20934
20935 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20936
20937         PR target/38598
20938         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
20939         Update commentary.
20940
20941 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20942
20943         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
20944         opno arguments with an expand_operand.  Use create_input_operand.
20945         (mips_prepare_builtin_target): Delete.
20946         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
20947         functions.
20948         (mips_expand_builtin_direct): Use create_output_operand and
20949         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
20950         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
20951         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
20952
20953 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
20954
20955         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
20956         function.
20957         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20958
20959 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20960
20961         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
20962         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
20963         basic blocks and call commit_edge_insertions directly.
20964         (fixup_abnormal_edges): Move from here to...
20965         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
20966         on the edges and return whether some have actually been inserted.
20967         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
20968         compensation code.
20969
20970 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
20971
20972         PR rtl-optimization/48144
20973         * sel-sched-ir.c (merge_history_vect): Factor out from ...
20974         (merge_expr_data): ... here.
20975         (av_set_intersect): Rename to av_set_code_motion_filter.
20976         Update all callers.  Call merge_history_vect when an expression
20977         is found in both sets.
20978         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
20979
20980 2011-03-26  Alan Modra  <amodra@gmail.com>
20981
20982         * config/rs6000/predicates.md (word_offset_memref_op): Handle
20983         cmodel medium addresses.
20984         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
20985         64-bit gpr loads and stores.
20986         (rs6000_secondary_reload_ppc64): New function.
20987         * config/rs6000/rs6000-protos.h: Declare it.
20988         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
20989
20990 2011-03-26  Alan Modra  <amodra@gmail.com>
20991
20992         PR target/47487
20993         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
20994         GNU Go in traceback table.
20995
20996 2011-03-25  Richard Henderson  <rth@redhat.com>
20997
20998         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20999         if there are exactly 6 operands.
21000         (set_storage_via_setmem): Similarly.
21001
21002 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21003
21004         * collect2.c (write_c_file_stat): Handle backslash
21005         as right-hand directory separator.
21006         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21007         checking just for slash.
21008         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21009         instead of checking for trailing slash.
21010         * gcc.c (record_temp_file): Use filename_cmp instead
21011         of strcmp.
21012         (do_spec_1): Likewise.
21013         (replace_outfile_spec_function): Likewise.
21014         (is_directory): Use filename_ncmp instead of strncmp.
21015         (print_multilib_info): Likewise.
21016         * gcov.c (find_source): Use filename_cmp instead
21017         instead of strcmp.
21018         (make_gcov_file_name): Fix order of slash/backslash
21019         checks.
21020         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21021         (add_standard_paths): Likewise.
21022         * mips-tfile.c (saber_stop): Handle backslash.
21023         * prefix.c (update_path): Use filename_ncmp instead of
21024         strncmp.
21025         * profile.c (output_location): Use filename_cmp instead
21026         of strcmp.
21027         * read-md.c (handle_toplevel_file): Handle backslash.
21028         * tlink.c (frob_extension):  Likewise.
21029         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21030         strcmp.
21031         * tree-dump.c (dequeue_and_dump): Handle backslash.
21032         * tree.c (get_file_function_name): Likewise.
21033         * gengtype.c (read_input_list): Likewise.
21034         (get_file_realbasename): Likewise.
21035         (get_output_file_with_visibility): Use filename_cmp
21036         instead of strcmp.
21037
21038 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21039
21040         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21041         case to VFPv1.
21042
21043 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21044
21045         * fold-const.c (expr_location_or): New function.
21046         (fold_truth_not_expr): Call it.
21047
21048 2011-03-25  Jeff Law  <law@redhat.com>
21049
21050         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21051         va_end.
21052         * c-family/c-common.c (def_fn_type): Likewise.
21053         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21054         * emit-rtl.c (gen_rtvec): Likewise.
21055         * lto/lto-lang.c (def_fn_type): Likewise.
21056
21057 2011-03-25  Richard Guenther  <rguenther@suse.de>
21058
21059         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21060         also generate copies.
21061         (fini_copy_prop): Handle constant values properly.
21062
21063 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21064
21065         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21066         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21067         (hash_loc_operands, compare_loc_operands): Handle
21068         DW_OP_GNU_entry_value.
21069
21070 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21071
21072         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21073         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21074         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21075         comment and use macro TARGET_64BIT_MS_ABI instead.
21076         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21077         and change default behavior for 32-bit MS_ABI.
21078         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21079         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21080         32-bit, too.
21081         (ix86_cfun_abi): Likewise.
21082         (ix86_maybe_switch_abi): Adjust comment.
21083         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21084         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21085         instead of checking for SYSV_ABI.
21086         (ix86_nsaved_sseregs): Likewise.
21087         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21088         to 16 bytes.
21089         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21090         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21091         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21092         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21093         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21094
21095 2011-03-25  Richard Guenther  <rguenther@suse.de>
21096
21097         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21098         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21099         (verify_gimple): Remove.
21100         * tree-cfg.c (verify_gimple_call): Merge verification
21101         from verify_stmts.
21102         (verify_gimple_phi): Merge verification from verify_stmts.
21103         (verify_gimple_label): New function.
21104         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21105         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21106         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21107         (verify_stmts): Rename to verify_gimple_in_cfg.
21108         (verify_gimple_in_cfg): New function.
21109         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21110         * tree-ssa.c (verify_ssa): Likewise.
21111         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21112
21113 2011-03-25  Richard Guenther  <rguenther@suse.de>
21114
21115         * passes.c (init_optimization_passes): Add FRE pass after
21116         early SRA.
21117
21118 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21119             Andrew Stubbs  <ams@codesourcery.com>
21120
21121         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21122         for Cortex-A8.
21123         (arm_movdi_vfp_cortexa8): New pattern.
21124         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21125         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21126         instructions when tuning for Cortex-A8.  Set attribute "arch".
21127         * config/arm/arm.md: Move include arm-tune.md up a bit.
21128         (define_attr "arch"): Add "onlya8" and "nota8" values.
21129         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21130
21131 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21132
21133         PR bootstrap/48282
21134         Revert:
21135         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21136
21137         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21138         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21139         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21140         * passes.c (init_optimization_passes): Move
21141         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21142
21143 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21144
21145         * c-typeck.c (comptypes_internal): Replace target
21146         hook call of comp_type_attributes by version in tree.c file.
21147         * gimple.c (gimple_types_compatible_p_1): Likewise.
21148         * tree-ssa.c (useless_type_conversion_p): Likewise.
21149         * tree.c (build_type_attribute_qual_variant): Likewise.
21150         (attribute_value_equal): New static helper function.
21151         (comp_type_attributes): New function.
21152         (merge_attributes): Use attribute_value_equal for comparison.
21153         (attribute_list_contained): Likewise.
21154         * tree.h (comp_type_attributes): New prototype.
21155
21156 2011-03-25  Richard Guenther  <rguenther@suse.de>
21157
21158         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21159         of complex types at -O0.
21160         (verify_gimple_assign_binary): Likewise.
21161         (verify_gimple_assign_ternary): Likewise.
21162
21163 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21164
21165         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21166         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21167
21168 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21169
21170         PR debug/48041
21171         * dwarf2out.c (output_abbrev_section): Only write table when
21172         abbrev_die_table_in_use > 1.
21173
21174 2011-02-24  Richard Henderson  <rth@redhat.com>
21175
21176         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21177         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21178         (alpha_expand_unaligned_load_words): Use extql.
21179         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21180         (emit_insxl): Handle all modes for consistency.
21181
21182 2011-02-24  Richard Henderson  <rth@redhat.com>
21183
21184         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21185         (alpha_expand_unaligned_load): Likewise.
21186         (alpha_expand_unaligned_store): Likewise.
21187         (alpha_expand_unaligned_load_words): Likewise.
21188         (alpha_expand_unaligned_store_words): Likewise.
21189         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21190         (alpha_split_lock_test_and_set_12): Likewise.
21191         (print_operand, alpha_fold_builtin_extxx): Likewise.
21192         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21193         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21194         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21195         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21196         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21197         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21198         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21199         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21200         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21201         (extwl, extll, extql): Similarly.
21202         (inswh, inslh, insqh): Similarly.
21203         (mskbl, mskwl, mskll, mskql): Similarly.
21204         (mskwh, msklh, mskqh): Similarly.
21205
21206 2011-02-24  Richard Henderson  <rth@redhat.com>
21207
21208         * config/alpha/alpha.md (attribute isa): Add er, ner.
21209         (attribute enabled): Handle them.
21210         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21211
21212 2011-02-24  Richard Henderson  <rth@redhat.com>
21213
21214         * config/alpha/alpha.md (attribute isa): Add vms.
21215         (attribute enabled): Handle it.
21216         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21217         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21218         (*movtf): Rename from *movtf_internal for consistency.
21219         (*movsi): Merge with *movsi_nt_vms.
21220         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21221         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21222         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21223         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21224
21225 2011-02-24  Richard Henderson  <rth@redhat.com>
21226
21227         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21228         (extendqisi2, extendhisi2): Likewise.
21229         (extendqidi2): Simplify BWX/non-BWX expansions.
21230         (extendhidi2): Similarly.
21231
21232 2011-02-24  Richard Henderson  <rth@redhat.com>
21233
21234         * config/alpha/alpha.md (attribute isa): New.
21235         (attribute enabled): New.
21236         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21237         (zero_extendqisi2, zero_extendqidi2): Similarly.
21238         (zero_extendhisi2, zero_extendhidi2): Similarly.
21239         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21240
21241 2011-02-24  Richard Henderson  <rth@redhat.com>
21242
21243         * config/alpha/predicates.md (input_operand): Revert last change;
21244         update comment to mention 32-bit VMS rather than Windows.
21245
21246 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21247
21248         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21249         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21250         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21251         * passes.c (init_optimization_passes): Move
21252         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21253
21254 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21255
21256         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21257
21258 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21259
21260         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21261         correctly.
21262
21263 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
21264
21265         PR debug/48204
21266         * simplify-rtx.c (simplify_const_unary_operation): Call
21267         real_convert when changing mode class with FLOAT_EXTEND.
21268
21269 2011-03-24  Nick Clifton  <nickc@redhat.com>
21270
21271         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21272         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21273         * config/rx/rx.c (rx_option_override): Set align_jumps,
21274         align_loops and align_labels if not set by the user.
21275         (rx_align_for_label): New function.
21276         (rx_max_skip_for_label): New function.
21277         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21278         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21279         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21280         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21281         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21282
21283 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21284
21285         PR rtl-optimization/48263
21286         * optabs.c (expand_binop_directly): Reinstate convert_modes code
21287         and original commutative_p handling.  Use maybe_gen_insn.
21288
21289 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21290
21291         * reload.c (find_reloads_subreg_address): Add address_reloaded
21292         parameter and return true there if the full address has been
21293         reloaded.
21294         (find_reloads_toplev): Pass address_reloaded flag.
21295         (find_reloads_address_1): Don't use address_reloaded parameter.
21296
21297 2011-03-24  Jeff Law  <law@redhat.com>
21298
21299         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21300         unused variable "ann".
21301         (remove_unused_locals): Likewise.
21302
21303         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21304         statement.
21305
21306         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21307         after it is freed.
21308
21309 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21310
21311         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21312         for invalid symbolic addresses.
21313         (s390_secondary_reload): Don't use s390_check_symref_alignment for
21314         larl operands.
21315
21316 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21317
21318         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21319         the argument in calls to fold_truth_not_expr.
21320
21321 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21322
21323         * tree.c (record_node_allocation_statistics): New function.
21324         (make_node_stat, copy_node_stat, build_string): Call it.
21325         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21326         (build1_stat, build_omp_clause): Likewise.
21327
21328 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21329
21330         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21331         last commit.
21332
21333 2011-03-24  Richard Guenther  <rguenther@suse.de>
21334
21335         PR tree-optimization/48271
21336         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21337         blocks that still exist.
21338
21339 2011-03-24  Richard Guenther  <rguenther@suse.de>
21340
21341         PR tree-optimization/48270
21342         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21343         not free datarefs before ddrs.
21344
21345 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21346
21347         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21348         from the address built for a reference with variable offset.
21349
21350 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21351
21352         PR target/48237
21353         * config/i386/i386.md (*movdf_internal_rex64): Do not split
21354         alternatives that can be handled with movq or movabsq insn.
21355         (*movdf_internal): Disable for !TARGET_64BIT.
21356         (*movdf_internal_nointeger): Ditto.
21357         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21358
21359 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21360
21361         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21362         (FUNCTION_ARG_ADVANCE): Likewise.
21363         * tm.texi.in: Change references to them to hook references.
21364         * tm.texi: Regenerate.
21365         * targhooks.c (default_function_arg): Eliminate check for target macro.
21366         (default_function_incoming_arg): Likewise.
21367         (default_function_arg_advance): Likewise.
21368         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21369         (function_arg_advance): Likewise.
21370         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21371
21372 2011-03-24  Richard Guenther  <rguenther@suse.de>
21373
21374         PR middle-end/48269
21375         * tree-object-size.c (addr_object_size): Do not double-account
21376         for MEM_REF offsets.
21377
21378 2011-03-24  Diego Novillo  <dnovillo@google.com>
21379
21380         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21381         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21382         (lto_input_data_block): Move from lto-opts.c.  Make extern.
21383         Update all users.
21384         (lto_input_string): Rename from input_string.  Make extern.
21385         Update all users.
21386         * lto-streamer-out.c (lto_output_string_with_length): Rename from
21387         output_string_with_length.
21388         Output 0 to indicate a non-NULL string.  Update all callers to
21389         not emit 0.
21390         (lto_output_string): Rename from output_string.  Make extern.
21391         Update all users.
21392         (lto_output_decl_state_streams): Make extern.
21393         (lto_output_decl_state_refs): Make extern.
21394         * lto-streamer.h (lto_input_string): Declare.
21395         (lto_input_data_block): Declare.
21396         (lto_output_string): Declare.
21397         (lto_output_string_with_length): Declare.
21398         (lto_output_decl_state_streams): Declare.
21399         (lto_output_decl_state_refs): Declare.
21400
21401 2011-03-24  Richard Guenther  <rguenther@suse.de>
21402
21403         PR tree-optimization/46562
21404         * tree.c (build_invariant_address): New function.
21405         * tree.h (build_invariant_address): Declare.
21406         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21407         a renamed function moved ...
21408         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21409         Take valueization callback parameter.
21410         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21411         * gimple-fold.h: New file.
21412         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21413         (ccp_fold, fold_const_aggregate_ref,
21414         fold_ctor_reference, fold_nonarray_ctor_reference,
21415         fold_array_ctor_reference, fold_string_cst_ctor_reference,
21416         get_base_constructor): Move ...
21417         * gimple-fold.c: ... here.
21418         (gimple_fold_stmt_to_constant_1): New function
21419         split out from ccp_fold.  Take a valueization callback parameter.
21420         Valueize all operands.
21421         (gimple_fold_stmt_to_constant): New wrapper function.
21422         (fold_const_aggregate_ref_1): New function split out from
21423         fold_const_aggregate_ref.  Take a valueization callback parameter.
21424         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21425         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21426         invariant POINTER_PLUS_EXPRs to invariant form.
21427         (vn_valueize): New function.
21428         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21429         * tree-vrp.c (vrp_valueize): New function.
21430         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21431         to fold statements to constants.
21432         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21433         function declarations.
21434         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21435         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21436
21437 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21438
21439         * config/h8300/predicates.md (jump_address_operand): Fix register
21440         mode check.
21441
21442 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21443
21444         * doc/invoke.texi (max-stores-to-sink): Document.
21445         * params.h (MAX_STORES_TO_SINK): Define.
21446         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21447         if either vectorization or if-conversion is disabled.
21448         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21449         tree-vect-data-refs.c vect_equal_offsets.
21450         (dr_equal_offsets_p): New function.
21451         (find_data_references_in_bb): Remove static.
21452         * tree-data-ref.h (find_data_references_in_bb): Declare.
21453         (dr_equal_offsets_p): Likewise.
21454         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21455         (vect_drs_dependent_in_basic_block): Update calls to
21456         vect_equal_offsets.
21457         (vect_check_interleaving): Likewise.
21458         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21459         (cond_if_else_store_replacement): Rename to...
21460         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21461         documentation.
21462         (cond_if_else_store_replacement): New function.
21463         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21464         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21465
21466 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21467
21468         PR target/46934
21469         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21470         to subtract lower bound instead of GEN_INT().
21471
21472 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21473
21474         PR other/48179
21475         PR other/48221
21476         PR other/48234
21477         * doc/extend.texi (Alignment): Move section to match order in TOC.
21478         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21479         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21480
21481 2011-03-23  Jeff Law  <law@redhat.com>
21482
21483         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21484         before removing the edge.
21485
21486         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21487         it may have been freed by redirect_branch_edge or
21488         redirect_edge_succ_nodup.
21489
21490 2011-03-23  Richard Guenther  <rguenther@suse.de>
21491
21492         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21493         (check_va_list_escapes): Likewise.
21494         (check_all_va_list_escapes): Likewise.
21495
21496 2011-03-23  Richard Guenther  <rguenther@suse.de>
21497
21498         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21499         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21500         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21501         (alias.o): Likewise.
21502         (ipa-type-escape.o): Remove.
21503         (ipa-struct-reorg.o): Likewise.
21504         (GTFILES): Remove ipa-struct-reorg.c.
21505         * alias.c: Do not include ipa-type-escape.h.
21506         * tree-ssa-alias.c: Likewise.
21507         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21508         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21509         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21510         and ipa-type-escape passes.
21511         * tree-pass.h (pass_ipa_type_escape): Remove.
21512         (pass_ipa_struct_reorg): Likewise.
21513         * ipa-struct-reorg.h: Remove.
21514         * ipa-struct-reorg.c: Likewise.
21515         * ipa-type-escape.h: Likewise.
21516         * ipa-type-escape.c: Likewise.
21517         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21518         (--param struct-reorg-cold-struct-ratio): Likewise.
21519         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21520         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21521         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21522
21523 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21524
21525         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21526         cpu attribute value.
21527         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21528         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21529         * config/s390/s390.c (processor_flags_table): New constant array.
21530         (s390_handle_arch_option): Remove.
21531         (s390_handle_option): Remove s390_handle_arch_option invocations
21532         and OPT_mwarn_framesize_ handling.
21533         (s390_option_override): Remove s390_handle_arch_option invocation.
21534         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21535         warnings.
21536         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21537         * config/s390/s390.opt (s390_tune, s390_arch)
21538         (march=): Replace s390_arch_option enum and values with
21539         processor_type.  Set variable name to s390_arch.  Set
21540         initialization value.
21541         (mtune=): Replace s390_arch_option with processor_type.  Set
21542         variable name to s390_tune.  Set initialization value.
21543
21544 2011-03-23  Julian Brown  <julian@codesourcery.com>
21545
21546         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21547         accesses which are not naturally aligned.
21548
21549 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21550
21551         PR target/47553
21552         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21553
21554 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21555
21556         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21557         parameter from "int" to "enum insn_code".
21558         (expand_operand_type): New enum.
21559         (expand_operand): New structure.
21560         (create_expand_operand): New function.
21561         (create_fixed_operand, create_output_operand): Likewise
21562         (create_input_operand, create_convert_operand_to): Likewise.
21563         (create_convert_operand_from, create_address_operand): Likewise.
21564         (create_integer_operand): Likewise.
21565         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21566         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21567         (expand_insn, expand_jump_insn): Likewise.
21568         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21569         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21570         (expand_movstr, expand_builtin___clear_cache): Likewise.
21571         (expand_builtin_lock_release): Likewise.
21572         * explow.c (allocate_dynamic_stack_space): Likewise.
21573         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21574         and use the default handling in that case.
21575         * expmed.c (check_predicate_volatile_ok): Delete.
21576         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21577         (emit_cstore): Likewise.
21578         * expr.c (emit_block_move_via_movmem): Likewise.
21579         (set_storage_via_setmem, expand_assignment): Likewise.
21580         (emit_storent_insn, try_casesi): Likewise.
21581         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21582         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21583         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21584         (expand_twoval_unop, expand_twoval_binop): Likewise.
21585         (expand_unop_direct, emit_indirect_jump): Likewise.
21586         (emit_conditional_move, vector_compare_rtx): Likewise.
21587         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21588         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21589         (expand_sync_lock_test_and_set): Likewise.
21590         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21591         (emit_unop_insn): Likewise.
21592         (expand_copysign_absneg): Change icode to an insn_code.
21593         (create_convert_operand_from_type): New function.
21594         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21595         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21596         (expand_insn, expand_jump_insn): Likewise.
21597         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21598         than const_int_operand for operand 2.
21599
21600 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21601
21602         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21603         if possible.
21604
21605 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21606
21607         * emit-rtl.c (emit_pattern_before_noloc): New function.
21608         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21609         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21610         (emit_pattern_after_noloc): New function.
21611         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21612         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21613
21614 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21615
21616         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21617         (__ffsDI2): Likewise.
21618
21619 2011-03-22  Richard Henderson  <rth@redhat.com>
21620
21621         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21622         of !TARGET_ABI_OPEN_VMS.
21623         (alpha_trampoline_init, alpha_start_function): Likewise.
21624         (alpha_expand_epilogue, alpha_file_start): Likewise.
21625         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21626         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21627         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21628         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21629         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21630
21631 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21632
21633         * config/s390/s390-opts.h: New.
21634         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21635         s390_arch_flags, s390_warn_framesize, s390_stack_size,
21636         s390_stack_guard): Remove.
21637         (s390_handle_arch_option): Return void.  Take enum
21638         s390_arch_option value instead of string and searching array.
21639         (s390_handle_option): Don't assert that global structures are in
21640         use.  Access variables via opts pointer.  Use error_at.  Don't use
21641         sscanf for -mstack-guard= or -mstack-size=.  Update call to
21642         s390_handle_arch_option.
21643         (s390_option_override): Update call to s390_handle_arch_option.
21644         (s390_emit_prologue): Use %d format for s390_stack_size in
21645         diagnostic.  Use %wd for HOST_WIDE_INT.
21646         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21647         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21648         * config/s390/s390.opt (config/s390/s390-opts.h): New
21649         HeaderInclude entry.
21650         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21651         s390_arch_flags, s390_warn_framesize): New Variable entries.
21652         (s390_arch_option): New Enum and EnumValue entries.
21653         (march=): Use Enum instead of Var.
21654         (mstack-guard=, mstack-size=): Use UInteger and Var.
21655         (mtune=): Use Enum.
21656
21657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21658
21659         * config/score/score.c (score_handle_option): Don't assert that
21660         global structures are in use.  Access target_flags via opts
21661         pointer.  Use value of -march= option to determine target_flags
21662         settings.
21663         * config/score/score.opt (march=): Use Enum.
21664         (score_arch): New Enum and EnumValue entries.
21665
21666 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21667
21668         * config/mep/mep.c (option_mtiny_specified): Remove.
21669         (mep_option_override): Move register handling for -mivc2 from
21670         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
21671         instead of option_mtiny_specified.
21672         (mep_handle_option): Access target_flags via opts pointer.  Don't
21673         assert that global structures are in use.  Defer part of -mivc2
21674         handling and move it to mep_option_override.
21675         * config/mep/mep.opt (IVC2): New Mask entry.
21676         (mivc2): Use Var and Defer instead of Mask.
21677
21678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21679
21680         * config/v850/v850-opts.h: New.
21681         * config/v850/v850.c (small_memory): Replace with
21682         small_memory_physical_max array.  Make that array static const.
21683         (v850_handle_memory_option): Take integer value of argument.  Take
21684         gcc_options pointer, option text and location.  Return void.
21685         Update for changes to small memory structures.
21686         (v850_handle_option): Access target_flags via opts pointer.  Don't
21687         assert that global structures are in use.  Update calls to
21688         v850_handle_memory_option.
21689         (v850_encode_data_area): Update references to small memory settings.
21690         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21691         (enum small_memory_type): Move to v850-opts.h.
21692         * config/v850/v850.opt (config/v850/v850-opts.h): New
21693         HeaderInclude entry.
21694         (small_memory_max): New Variable entry.
21695         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
21696         (mtda, mzda): Likewise.
21697
21698 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21699
21700         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21701         pointer.  Don't assert that global structures are in use.
21702
21703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21704
21705         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21706         via opts pointer.  Don't assert that global structures are in use.
21707
21708 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21709
21710         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21711         (munix=93): Use Var.
21712         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21713         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21714         * config/pa/pa-opts.h: New.
21715         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21716         (pa_handle_option): Don't assert that global structures are in
21717         use.  Access target_flags via opts pointer.  Don't handle
21718         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21719         OPT_munix_98 here.
21720         (pa_option_override): Handle deferred OPT_mfixed_range_.
21721
21722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21723
21724         * config/mn10300/mn10300-opts.h: New.
21725         * config/mn10300/mn10300.c (mn10300_processor,
21726         mn10300_tune_string): Remove.
21727         (mn10300_handle_option): Don't assert that global structures are
21728         in use.  Access mn10300_processor via opts pointer.  Don't handle
21729         OPT_mtune_ here.
21730         * config/mn10300/mn10300.h (enum processor_type): Move to
21731         mn10300-opts.h.
21732         (mn10300_processor): Remove.
21733         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21734         HeaderInclude entry.
21735         (mn10300_processor): New Variable entry.
21736         (mtune=): Use Var.
21737
21738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21739
21740         * config/microblaze/microblaze.c: Don't include opts.h.
21741         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21742         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21743         (mno-clearbss): Use Var and Warn.
21744
21745 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21746
21747         * config/m32r/m32r-opts.h: New.
21748         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21749         (m32r_handle_option): Don't assert that global structures are in
21750         use.  Access target_flags and m32r_cache_flush_func via opts
21751         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
21752         OPT_mno_flush_trap here.
21753         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21754         include of m32r-opts.h.
21755         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21756         HeaderInclude entry.
21757         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21758         (mmodel=): Use Enum and Var.
21759         (m32r_model): New Enum and EnumValue entries.
21760         (mno-flush-trap): Use Var.
21761         (msdata=): Use Enum and Var.
21762         (m32r_sdata): New Enum and EnumValue entries.
21763
21764 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21765
21766         * config/m32c/m32c.c: Don't include opts.h.
21767         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21768         m32c_handle_option): Remove.
21769         (m32c_option_override): Check global_options_set.x_target_memregs
21770         instead of target_memregs_set.
21771         * config/m32c/m32c.h (target_memregs): Remove.
21772         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21773         variable.
21774
21775 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21776
21777         * config/iq2000/iq2000-opts.h: New.
21778         * config/iq2000/iq2000.c: Don't include opts.h.
21779         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21780         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21781         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21782         HeaderInclude entry.
21783         (iq2000_tune): New Variable entry.
21784         (march=): Add comment.  Use Enum.
21785         (iq2000_arch): New Enum and EnumValue entries.
21786         (mcpu=): Use Enum and Var.
21787         (iq2000_tune): New Enum and EnumValue entries.
21788
21789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21790
21791         * config/ia64/ia64-opts.h: New.
21792         * config/ia64/ia64.c (ia64_tune): Remove.
21793         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21794         here.  Use error_at.
21795         (ia64_option_override): Handle deferred OPT_mfixed_range_.
21796         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21797         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21798         HeaderInclude entry.
21799         (ia64_tune): New Variable entry.
21800         (mfixed-range=): Use Defer and Var.
21801         (mtune=): Use Enum and Var.
21802         (ia64_tune): New Enum and EnumValue entries.
21803
21804 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21805
21806         * config/frv/frv-opts.h: New.
21807         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21808         frv-opts.h.
21809         (frv_cpu_type): Remove.
21810         * config/frv/frv.c: Don't include opts.h.
21811         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21812         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21813         (frv_cpu_type): New Variable entry.
21814         (frv_cpu): New Enum and EnumValue entries.
21815
21816 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21817
21818         * config/cris/cris.c (cris_handle_option): Access target_flags via
21819         opts pointer.  Don't assert that global structures are in use.
21820         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21821         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21822
21823 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21824
21825         * config/bfin/bfin-opts.h: New.
21826         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21827         bfin_si_revision, bfin_workarounds): Remove.
21828         (bfin_cpus): Make static const.
21829         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21830         not bfin_lib_id_given.
21831         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
21832         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21833         pointer. Use error_at.  Don't assert that global structures are in use.
21834         * config/bfin/bfin.h: Include bfin-opts.h.
21835         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21836         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21837         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21838         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21839         entries.
21840
21841 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21842
21843         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21844         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21845         or -msoft-float here.
21846         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21847         -msoft-float and -mhard-float.
21848         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21849         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21850         msoft-float.
21851         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21852         -msoft-float.
21853         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21854         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21855         not mhard-float.
21856         (LIBGCC_SPEC): Don't handle -msoft-float.
21857         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21858         -mhard-float.
21859         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21860         msoft-float.
21861         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21862         -mfloat-abi=*, not -msoft-float and -mhard-float.
21863         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21864         -msoft-float.
21865         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21866         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21867         mhard-float and msoft-float.
21868         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21869         mfloat-abi=soft in comments, not mhard-float and msoft-float.
21870         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21871         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21872         mhard-float.
21873         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21874         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21875         msoft-float.
21876         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21877         not mhard-float.
21878         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21879         not msoft-float.
21880
21881 2011-03-22  Richard Henderson  <rth@redhat.com>
21882
21883         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21884         TARGET_ABI_WINDOWS_NT.
21885         (alpha_output_function_end_prologue): Likewise.
21886         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21887         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21888         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21889         (trap, *movsi_nt_vms): Likewise.
21890         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21891         (*tablejump_osf_nt_internal): Remove.
21892         * config/alpha/predicates.md (input_operand): Only test Pmode.
21893
21894 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21895
21896         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21897         via opts pointer.  Use error_at.  Don't assert that global
21898         structures are in use.
21899
21900 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21901
21902         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21903         (ix86_handle_option): Access ix86_isa_flags and
21904         ix86_isa_flags_explicit via opts pointer.  Don't assert that
21905         global structures are in use.
21906         (ix86_function_specific_save, ix86_function_specific_restore):
21907         Update ix86_isa_flags_explicit field name.
21908         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21909         (ix86_isa_flags_explicit): Rename TargetSave entry to
21910         x_ix86_isa_flags_explicit.
21911
21912 2011-03-22  Richard Henderson  <rth@redhat.com>
21913
21914         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
21915         (alpha_option_override, direct_return): Likewise.
21916         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
21917         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
21918         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
21919         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21920         (alpha_expand_epilogue, alpha_end_function): Likewise.
21921         (alpha_init_libfuncs): Likewise.
21922         (struct machine_function): Remove unicosmk members.
21923         (print_operand) ['t']: Remove.
21924         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
21925         unicosmk_output_module_name, unicosmk_output_common,
21926         current_section_align, unicosmk_output_text_section_asm_op,
21927         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
21928         unicosmk_section_type_flags, unicosmk_unique_section,
21929         unicosmk_asm_named_section, unicosmk_insert_attributes,
21930         unicosmk_output_align, unicosmk_defer_case_vector,
21931         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
21932         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
21933         unicosmk_output_ssib, unicosmk_add_call_info_word,
21934         unicosmk_extern_head, unicosmk_output_default_externs,
21935         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
21936         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
21937         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
21938         * config/alpha/alpha-protos.h: Update.
21939         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
21940         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
21941         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
21942         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
21943         (*mulsi_se, mulvsi3): Likewise.
21944         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
21945         (*divmodsi_internal, call, call_value, realign): Likewise.
21946         (moddi3, umoddi3): Likewise; remove duplicate expander.
21947         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
21948         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
21949         (*movdi_nofix): Remove r/U alternative.
21950         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
21951         * config/alpha/constraints.md ("U"): Remove.
21952         * config/alpha/predicates.md (call_operand"): Don't test
21953         TARGET_ABI_UNICOSMK.
21954
21955 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21956
21957         * target.def (handle_option): Take gcc_options and
21958         cl_decoded_option pointers and location_t.
21959         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
21960         * doc/tm.texi: Regenerate.
21961         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
21962         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
21963         * lto-opts.c (lto_reissue_options): Generate option structure for
21964         targetm.handle_option call.
21965         * opts.c (target_handle_option): Update call to
21966         targetm.handle_option.  Remove assertions about values now passed
21967         down to hook.
21968         * targhooks.c (default_target_handle_option): New.
21969         * targhooks.h (default_target_handle_option): Declare.
21970         * config/alpha/alpha.c: Include opts.h.
21971         (alpha_handle_option): Update to new hook interface.
21972         * config/arm/arm.c: Include opts.h.
21973         (arm_handle_option): Update to new hook interface.
21974         * config/arm/t-arm (arm.o): Update dependencies.
21975         * config/bfin/bfin.c: Include opts.h.
21976         (bfin_handle_option): Update to new hook interface.
21977         * config/cris/cris.c: Include opts.h.
21978         (cris_handle_option): Update to new hook interface.
21979         * config/frv/frv.c: Include opts.h.
21980         (frv_handle_option): Update to new hook interface.
21981         * config/i386/i386.c: Include opts.h.
21982         (ix86_handle_option): Update to new hook interface.
21983         (ix86_valid_target_attribute_inner_p): Generate option structure
21984         for call to ix86_handle_option.
21985         * config/i386/t-i386 (i386.o): Update dependencies.
21986         * config/ia64/ia64.c: Include opts.h.
21987         (ia64_handle_option): Update to new hook interface.
21988         * config/ia64/t-ia64 (ia64.o): Update dependencies.
21989         * config/iq2000/iq2000.c: Include opts.h.
21990         (iq2000_handle_option): Update to new hook interface.
21991         * config/m32c/m32c.c: Include opts.h.
21992         (m32c_handle_option): Update to new hook interface.
21993         * config/m32r/m32r.c: Include opts.h.
21994         (m32r_handle_option): Update to new hook interface.
21995         * config/m68k/m68k.c: Include opts.h.
21996         (m68k_handle_option): Update to new hook interface.
21997         * config/mep/mep.c: Include opts.h.
21998         (mep_handle_option): Update to new hook interface.
21999         * config/microblaze/microblaze.c: Include opts.h.
22000         (microblaze_handle_option): Update to new hook interface.
22001         * config/mips/mips.c: Include opts.h.
22002         (mips_handle_option): Update to new hook interface.
22003         * config/mn10300/mn10300.c: Include opts.h.
22004         (mn10300_handle_option): Update to new hook interface.
22005         * config/pa/pa.c: Include opts.h.
22006         (pa_handle_option): Update to new hook interface.
22007         * config/pdp11/pdp11.c: Include opts.h.
22008         (pdp11_handle_option): Update to new hook interface.
22009         * config/rs6000/rs6000.c: Include opts.h.
22010         (rs6000_handle_option): Update to new hook interface.
22011         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22012         * config/rx/rx.c: Include opts.h.
22013         (rx_handle_option): Update to new hook interface.
22014         * config/s390/s390.c: Include opts.h.
22015         (s390_handle_option): Update to new hook interface.
22016         * config/score/score.c: Include opts.h.
22017         (score_handle_option): Update to new hook interface.
22018         * config/sh/sh.c: Include opts.h.
22019         (sh_handle_option): Update to new hook interface.
22020         * config/sparc/sparc.c: Include opts.h.
22021         (sparc_handle_option): Update to new hook interface.
22022         * config/v850/v850.c: Include opts.h.
22023         (v850_handle_option): Update to new hook interface.
22024
22025 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22026
22027         * gcc.c (driver_unknown_option_callback): Only permit and save
22028         unknown -Wno- options.
22029         (driver_wrong_lang_callback): Save options directly instead of via
22030         driver_unknown_option_callback.
22031
22032 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22033
22034         * combine.c (simplify_set): Try harder to find the best CC mode when
22035         simplifying a nested COMPARE on the RHS.
22036
22037 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22038
22039         * config/alpha/gnu.h: Remove.
22040         * config/arc: Remove directory.
22041         * config/arm/netbsd.h: Remove.
22042         * config/arm/t-pe: Remove.
22043         * config/crx: Remove directory.
22044         * config/i386/netbsd.h: Remove.
22045         * config/m68hc11: Remove directory.
22046         * config/m68k/uclinux-oldabi.h: Remove.
22047         * config/mcore/mcore-pe.h: Remove.
22048         * config/mcore/t-mcore-pe: Remove.
22049         * config/netbsd-aout.h: Remove.
22050         * config/rs6000/gnu.h: Remove.
22051         * config/sh/sh-symbian.h: Remove.
22052         * config/sh/symbian-base.c: Remove.
22053         * config/sh/symbian-c.c: Remove.
22054         * config/sh/symbian-cxx.c: Remove.
22055         * config/sh/symbian-post.h: Remove.
22056         * config/sh/symbian-pre.h: Remove.
22057         * config/sh/t-symbian: Remove.
22058         * config/svr3.h: Remove.
22059         * config/vax/netbsd.h: Remove.
22060         * config.build: Don't handle i[34567]86-*-pe.
22061         * config.gcc: Remove handling of deprecations for most deprecated
22062         targets.
22063         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22064         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22065         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22066         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22067         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22068         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22069         Remove cases.
22070         * config.host: Don't handle i[34567]86-*-pe.
22071         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22072         (ASM_SPEC32): Don't handle -mcall-gnu.
22073         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22074         -mcall-gnu.
22075         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22076         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22077         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22078         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22079         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22080         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22081         conditional on SYMBIAN.
22082         * configure.ac: Don't handle powerpc*-*-gnu*.
22083         * configure: Regenerate.
22084         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22085         * doc/install-old.texi (m6811, m6812): Don't mention.
22086         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22087         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22088         (m68k-uclinuxoldabi): Don't mention.
22089         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22090         Remove.
22091         (-mcall-gnu): Remove.
22092         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22093         families): Remove constraint documentation.
22094
22095 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22096
22097         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22098         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22099         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22100
22101 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22102
22103         PR target/48226
22104         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22105         vector when peeking at the next token for vector, don't expand the
22106         keywords.
22107
22108 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22109
22110         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22111         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22112         * config/avr/avr.c (init_cumulative_args)
22113         (avr_function_arg_advance): Use it.
22114         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22115         sibcall epilogues.
22116         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22117         (avr_function_ok_for_sibcall): ...this new function.
22118         (avr_lookup_function_attribute1): New static Function.
22119         (avr_naked_function_p, interrupt_function_p)
22120         (signal_function_p, avr_OS_task_function_p)
22121         (avr_OS_main_function_p): Use it.
22122         * config/avr/avr.md ("sibcall", "sibcall_value")
22123         ("sibcall_epilogue"): New expander.
22124         ("*call_insn", "*call_value_insn"): New insn.
22125         ("call_insn", "call_value_insn"): Remove
22126         ("call", "call_value", "epilogue"): Change expander to handle
22127         sibling calls.
22128
22129 2011-03-21  Nick Clifton  <nickc@redhat.com>
22130
22131         * doc/invoke.texi (Overall Options): Move closing brace to end of
22132         options list.
22133         (Optimization Options): Add missing @gol.
22134         (Directory Options): Likewise.
22135         (i386 and x86-64 Options): Likewise.
22136         (RS6000 and PowerPC Options): Likewise.
22137         (i386 and x86-64 Windows Options): Likewise.
22138         (V850 Options): Add text missing from descriptions.
22139
22140 2011-03-22  Richard Henderson  <rth@redhat.com>
22141
22142         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22143         (avr_incoming_return_addr_rtx): New.
22144         (emit_push_byte): New.
22145         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22146         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22147         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22148         (emit_pop_byte): New.
22149         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22150         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22151         (INCOMING_RETURN_ADDR_RTX): New.
22152         (INCOMING_FRAME_SP_OFFSET): New.
22153         (ARG_POINTER_CFA_OFFSET): New.
22154         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22155         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22156         (pophi): Remove.
22157
22158         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22159
22160 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22161
22162         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22163         (FUNCTION_ARG_ADVANCE): Likewise.
22164         * tm.texi.in: Change references to them to hook references.
22165         * tm.texi: Regenerate.
22166         * targhooks.c (default_function_arg): Eliminate check for target
22167         macro.
22168         (default_function_incoming_arg): Likewise.
22169         (default_function_arg_advance): Likewise.
22170         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22171         (function_arg_advance): Likewise.
22172         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22173
22174 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22175
22176         * tree.c (build_call_1): New function.
22177         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22178
22179 2011-03-22  Richard Guenther  <rguenther@suse.de>
22180
22181         PR tree-optimization/48228
22182         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22183         for single-arg PHIs.
22184
22185 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22186
22187         PR rtl-optimization/48143
22188         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22189         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22190         sse2_cvtps2pd): Likewise.
22191
22192 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22193
22194         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22195
22196 2011-03-22  Richard Guenther  <rguenther@suse.de>
22197
22198         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22199         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22200         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22201         and REALIGN_LOAD_EXPR.
22202         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22203         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22204         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22205         DOT_PROD_EXPR case ...
22206         (expand_expr_real_2): ... here.
22207         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22208         and REALIGN_LOAD_EXPR.
22209         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22210         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22211         (vect_create_epilog_for_reduction): Likewise.
22212         (vectorizable_reduction): Likewise.
22213         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22214         * tree-vect-stmts.c (vectorizable_load): Likewise.
22215
22216 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22217
22218         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22219
22220 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22221
22222         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22223         handling for PLTOFF/GOTOFF.
22224
22225 2011-03-22  Nick Clifton  <nickc@redhat.com>
22226
22227         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22228         trailing backslash from the end of the macro definition.
22229
22230 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22231
22232         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22233         and PLT unspecs.
22234
22235 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22236
22237         * expr.h (prepare_operand): Move to...
22238         * optabs.h (prepare_operand): ...here and change the insn code
22239         parameter from "int" to "enum insn_code".
22240         (insn_operand_matches): Declare.
22241         * expr.c (init_expr_target): Use insn_operand_matches.
22242         (compress_float_constant): Likewise.
22243         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22244         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22245         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22246         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22247         Likewise.
22248         (gen_cond_trap): Likewise.
22249         (prepare_operand): Likewise.  Change icode to an insn_code.
22250         (insn_operand_matches): New function.
22251         * reload.c (find_reloads_address_1): Use insn_operand_matches.
22252         * reload1.c (gen_reload): Likewise.
22253         * targhooks.c (default_secondary_reload): Likewise.
22254
22255 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22256
22257         * config/alpha/alpha.md (unspec): New define_c_enum.
22258         (unspecv): Ditto.
22259
22260 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22261
22262         PR debug/48214
22263         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22264         between a call and its CALL_ARG_LOCATION note.
22265
22266 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
22267
22268         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22269
22270 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22271
22272         PR c/42544
22273         PR c/48197
22274         * c-common.c (shorten_compare): If primopN is first sign-extended
22275         to opN and then zero-extended to result type, set primopN to opN.
22276
22277 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
22278
22279         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22280         for barrier handlers.
22281
22282 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22283
22284         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22285         UNSPEC constants to be in the unspec enumeration, and redefine
22286         all UNSPECV constants to be in the unspecv enumeration, so that
22287         dumps print which unspec/unspec_volatile this is.
22288         * config/rs6000/vector.md (UNSPEC_*): Ditto.
22289         * config/rs6000/paired.md (UNSPEC_*): Ditto.
22290         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22291         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22292         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22293
22294         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22295         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22296         UNSPECV_LWSYNC, since these are used as unspec_volatile.
22297         * config/rs6000/sync.md (isync, lwsync): Ditto.
22298
22299 2011-03-21  Richard Guenther  <rguenther@suse.de>
22300
22301         * params.def (lto-min-partition): Fix typo.
22302
22303 2011-03-21  Richard Guenther  <rguenther@suse.de>
22304
22305         PR c/47939
22306         * c-decl.c (grokdeclarator): Drop to the main variant only
22307         for array types.  Drop flag_gen_aux_info check.
22308
22309 2011-03-21  Richard Guenther  <rguenther@suse.de>
22310
22311         PR translation/47911
22312         * params.def (lto-partitions): Fix typo.
22313         (lto-min-partition): Fix wording.
22314
22315 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
22316
22317         * config/rs6000/t-freebsd: Remove duplication from file.
22318
22319 2011-03-21  Richard Guenther  <rguenther@suse.de>
22320
22321         PR middle-end/47661
22322         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22323
22324 2011-03-21  Richard Guenther  <rguenther@suse.de>
22325
22326         PR lto/48210
22327         * params.def (lto-partitions): Require at least 1 partition.
22328
22329 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22330
22331         * gthr-solaris.h: Remove.
22332         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22333         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22334         (LIB_SPEC): Likewise.
22335         * config/sol2.opt (threads): Remove.
22336         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22337         (sparc*-*-solaris2*): Likewise.
22338         * configure.ac (enable_threads): Enable solaris support.
22339         * configure: Regenerate.
22340         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22341         * doc/install.texi (Configuration, --enable-threads=lib): Remove
22342         solaris.
22343
22344 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22345
22346         * config.gcc: Obsolete *-*-solaris2.8*.
22347         * doc/install.texi (Specific, *-*-solaris2*): Document it.
22348
22349 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22350
22351         PR bootstrap/48135
22352         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22353         reference.  Solaris 8 perl works.
22354
22355 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22356
22357         PR bootstrap/48135
22358         * doc/install.texi (Prerequisites): Move jar etc. up.
22359         Explain support library version requirements.
22360
22361 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22362
22363         PR bootstrap/48135
22364         * doc/install.texi (Prerequisites): Move Perl to build
22365         requirements.  Always necessary on Solaris 2 with Sun ld.
22366
22367 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22368
22369         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22370         binutils 2.21.
22371         (Specific, i?86-*-solaris2.[89]): Likewise.
22372         (Specific, i?86-*-solaris2.10): Likewise.
22373         (Specific, mips-sgi-irix6): Likewise.
22374         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22375         Update for binutils 2.21.
22376
22377 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22378
22379         * configure.ac (gcc_cv_lto_plugin): Fix typo.
22380         Allow -fuse-linker-plugin for non-default plugin linker.
22381         * configure: Regenerate.
22382
22383 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22384
22385         PR bootstrap/48167
22386         * gengtype.c (files_rules): Added rule for cp/parser.h.
22387
22388 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22389
22390         PR target/48213
22391         * config/s390/s390.c (s390_delegitimize_address): Don't call
22392         lowpart_subreg if orig_x has BLKmode.
22393
22394 2011-03-21  Kai Tietz  <ktietz@redhat.com>
22395
22396         PR target/12171
22397         * doc/plugins.texi: Adjust documentation for plugin register_callback.
22398         * tree.h (attribute_spec): Add new member affects_type_identity.
22399         * attribs.c (empty_attribute_table): Adjust attribute_spec
22400         initializers.
22401         * config/alpha/alpha.c: Likewise.
22402         * config/arc/arc.c: Likewise.
22403         * config/arm/arm.c: Likewise.
22404         * config/avr/avr.c: Likewise.
22405         * config/bfin/bfin.c: Likewise.
22406         * config/crx/crx.c: Likewise.
22407         * config/darwin.h: Likewise.
22408         * config/h8300/h8300.c: Likewise.
22409         * config/i386/cygming.h: Likewise.
22410         * config/i386/i386.c: Likewise.
22411         * config/ia64/ia64.c: Likewise.
22412         * config/m32c/m32c.c: Likewise.
22413         * config/m32r/m32r.c: Likewise.
22414         * config/m68hc11/m68hc11.c: Likewise.
22415         * config/m68k/m68k.c: Likewise.
22416         * config/mcore/mcore.c: Likewise.
22417         * config/mep/mep.c: Likewise.
22418         * config/microblaze/microblaze.c: Likewise.
22419         * config/mips/mips.c: Likewise.
22420         * config/rs6000/rs6000.c: Likewise.
22421         * config/rx/rx.c: Likewise.
22422         * config/sh/sh.c: Likewise.
22423         * config/sol2.h: Likewise.
22424         * config/sparc/sparc.c: Likewise.
22425         * config/spu/spu.c: Likewise.
22426         * config/stormy16/stormy16.c: Likewise.
22427         * config/v850/v850.c: Likewise.
22428
22429 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22430
22431         * simplify-rtx.c (simplify_binary_operation_1): Handle
22432         (xor (and A B) C) case when B and C are both constants.
22433
22434 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22435
22436         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22437
22438 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22439
22440         PR bootstrap/48168
22441         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22442
22443 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22444
22445         PR rtl-optimization/48156
22446         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22447         assume df and df_lr are not NULL.
22448
22449 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22450
22451         PR debug/48023
22452         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22453         between a call and its CALL_ARG_LOCATION note.
22454
22455 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22456
22457         PR debug/48178
22458         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22459         between a call and its corresponding CALL_ARG_LOCATION note.
22460
22461 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22462
22463         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22464         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22465         * haifa-sched.c (setup_ref_regs): Ditto.
22466         * caller-save.c (add_used_regs_1): Ditto.
22467         * dse.c (look_for_hardregs): Ditto.
22468         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22469         * sched-rgn.c (check_live_1): Ditto.
22470
22471 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22472
22473         * c-decl.c (diagnose_mismatched_decls): Give an error for
22474         redefining a typedef with variably modified type.
22475
22476 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22477
22478         * c-decl.c (grokfield): Don't allow typedefs for structures or
22479         unions with no tag by default.
22480         * doc/extend.texi (Unnamed Fields): Update.
22481
22482 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22483
22484         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22485         Rewrite using indirect functions.
22486         (lwp_slwpcb): Ditto.
22487         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22488         (avx_vinsertf128<mode>): Ditto.
22489
22490 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22491
22492         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22493         unspecs.
22494
22495 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22496
22497         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22498         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22499
22500 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22501
22502         PR rtl-optimization/48170
22503         * gcse.c (hoist_code): Remove bogus asserts.
22504
22505 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22506
22507         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22508         computation for prologue/epilogue.
22509
22510 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22511
22512         * Makefile.in (check-consistency): Remove.
22513
22514 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22515
22516         PR debug/48176
22517         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22518         arange_table_in_use is 0, but either text_section_used or
22519         cold_text_section_used is true.  Don't call it if
22520         !info_section_emitted.
22521
22522 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22523
22524         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22525         FUNCTION_VALUE_REGNO_P): Remove.
22526         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22527         Remove.
22528         * config/avr/avr.c (avr_ret_register): Make static inline.
22529         (avr_function_value_regno_p): New function.
22530         (avr_libcall_value): Make static. Add 'func' argument.
22531         (avr_function_value): Make static. Rename 'func' argument to
22532         'fn_decl_or_type', forward it to avr_libcall_value. Call
22533         avr_ret_register function instead of RET_REGISTER macro.
22534         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22535
22536 2011-03-18  Jason Merrill  <jason@redhat.com>
22537
22538         PR c++/23372
22539         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22540
22541 2011-03-18  Richard Guenther  <rguenther@suse.de>
22542
22543         * doc/install.texi (--enable-gold): Remove.
22544         (--with-plugin-ld): Document.
22545         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22546
22547 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22548
22549         PR middle-end/47790
22550         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22551         again after expansion changes.
22552
22553 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22554
22555         * combine.c (try_combine): Do simplification only call of
22556         subst() on i2 even when i1 is present. Update comments.
22557
22558 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22559
22560         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22561         and UNSPEC_PCREL_SYMOFF.
22562
22563 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22564
22565         * config/s390/s390.md: Use define_c_enum for the unspec constant
22566         definitions.
22567
22568 2011-03-18  Richard Henderson  <rth@redhat.com>
22569             Jakub Jelinek  <jakub@redhat.com>
22570
22571         PR bootstrap/48161
22572         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22573         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22574
22575 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22576
22577         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22578         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22579         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22580         Change return type to bool.
22581         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22582
22583 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22584
22585         PR debug/48163
22586         * var-tracking.c (prepare_call_arguments): If CALL target
22587         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22588         pc instead of looking it up using cselib_lookup and use
22589         Pmode for it if x has VOIDmode.
22590         * dwarf2out.c (gen_subprogram_die): If also both first and
22591         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22592
22593         PR debug/48163
22594         * function.c (assign_parms): For data.passed_pointer parms
22595         use MEM of data.entry_parm instead of data.entry_parm itself
22596         as DECL_INCOMING_RTL.
22597         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22598         also when passed and declared mode is the same, DECL_RTL
22599         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22600         a MEM too.
22601
22602 2011-03-16  Jeff Law  <law@redhat.com>
22603
22604         PR rtl-optimization/37273
22605         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22606         handle them like argument loads from stack slots.  Do not double
22607         count memory for memory constants and argument loads from stack slots.
22608
22609 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22610
22611         PR debug/48160
22612         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22613
22614 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22615
22616         PR target/48171
22617         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22618
22619 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22620
22621         PR bootstrap/48153
22622         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22623         if dwarf_strict.
22624         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22625         Clear call_arg_locations and call_arg_loc_last always.
22626
22627         PR middle-end/48152
22628         * var-tracking.c (prepare_call_arguments): If argument needs to be
22629         passed by reference, adjust argtype and mode.
22630
22631 2011-03-17  Richard Guenther  <rguenther@suse.de>
22632
22633         PR middle-end/48134
22634         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22635         a value make sure to fold the statement.
22636
22637 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
22638
22639         PR target/43872
22640         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22641         return condition with !cfun->calls_alloca.
22642
22643 2011-03-17  Richard Guenther  <rguenther@suse.de>
22644
22645         PR bootstrap/48148
22646         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22647         origin for decls in other ltrans units.
22648         (input_varpool_node): Likewise.
22649
22650 2011-03-17  Richard Guenther  <rguenther@suse.de>
22651
22652         PR middle-end/48165
22653         * tree-object-size.c (compute_object_offset): Properly return
22654         the offset operand of MEM_REFs as sizetype.
22655
22656 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22657
22658         PR rtl-optimization/48141
22659         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22660         * dse.c: Include params.h.
22661         (active_local_stores_len): New variable.
22662         (add_wild_read, dse_step1): Clear it when setting active_local_stores
22663         to NULL.
22664         (record_store, check_mem_read_rtx): Decrease it when removing
22665         from the chain.
22666         (scan_insn): Likewise.  Increase it when adding to chain, if it
22667         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22668         set active_local_stores to NULL before the addition.
22669         * Makefile.in (dse.o): Depend on $(PARAMS_H).
22670
22671         PR rtl-optimization/48141
22672         * dse.c (record_store): If no positions are needed in an insn
22673         that cannot be deleted, at least unchain it from active_local_stores.
22674
22675 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
22676
22677         PR debug/47510
22678         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22679         (lookup_type_die_strip_naming_typedef): ... here.
22680         (get_context_die): Use it.
22681         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22682         the anonymous struct named by the naming typedef.
22683
22684 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22685
22686         PR target/48154
22687         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22688         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22689
22690 2011-03-16  Jeff Law  <law@redhat.com>
22691
22692         * tree-vrp.c (identify_jump_threads): Slightly simplify type
22693         check for operands of conditional.  Allow type to be a pointer.
22694
22695 2011-03-16  Richard Guenther  <rguenther@suse.de>
22696
22697         PR tree-optimization/48149
22698         * fold-const.c (fold_binary_loc): Fold
22699         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22700
22701 2011-03-16  Richard Guenther  <rguenther@suse.de>
22702
22703         PR tree-optimization/26134
22704         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22705         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22706         (non_rewritable_mem_ref_base): Handle complex type component
22707         accesses, constrain offsets for vector and complex extracts
22708         more properly.
22709
22710 2011-03-16  Richard Guenther  <rguenther@suse.de>
22711
22712         PR tree-optimization/48146
22713         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22714         operands avoiding the need for renaming.
22715
22716 2011-03-16  Richard Guenther  <rguenther@suse.de>
22717
22718         * gimple-fold.c (maybe_fold_reference): Open-code relevant
22719         constant folding.  Move MEM_REF canonicalization first.
22720         Rely on fold_const_aggregate_ref for initializer folding.
22721         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22722
22723 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22724
22725         PR middle-end/48136
22726         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22727         arg0/arg1 or their arguments are always fold converted to matching
22728         types.
22729
22730         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22731         to nargs.
22732
22733 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22734
22735         PR lto/46944
22736         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22737         Handle in-tree gold.
22738         (ld_vers): Extract binutils version for gold.
22739         (gcc_cv_ld_hidden): Handle gold here.
22740         (gcc_cv_lto_plugin): Determine level of linker plugin support.
22741         * configure: Regenerate.
22742         * config.in: Regenerate.
22743         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22744         -fuse-linker-plugin otherwise.
22745         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
22746         (LINK_COMMAND_SPEC): Use it.
22747         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22748
22749 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22750
22751         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22752         * calls.c: Remove debug.h include.
22753         (emit_call_1): Don't call virtual_call_token debug hook.
22754         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22755         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22756         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22757         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22758         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22759         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22760         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22761         dwarf2out_virtual_call): Remove.
22762         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22763         copy_call_info and virtual_call hooks.
22764         (dwarf2out_init): Don't initialize vcall_insn_table,
22765         debug_dcall_section and debug_vcall_section.
22766         (prune_unused_types): Don't mark nodes from dcall_table.
22767         (dwarf2out_finish): Don't output dcall or vcall tables.
22768         * final.c (final_scan_insn): Don't call direct_call or
22769         virtual_call debug hooks.
22770         * debug.h (struct gcc_debug_hooks): Remove direct_call,
22771         virtual_call_token, copy_call_info and virtual_call hooks.
22772         (debug_nothing_uid): Remove prototype.
22773         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22774         copy_call_info and virtual_call hooks.
22775         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22776         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22777         * debug.c (do_nothing_debug_hooks): Likewise.
22778         (debug_nothing_uid): Remove.
22779         * doc/invoke.texi (-fenable-icf-debug): Remove.
22780         * common.opt (-fenable-icf-debug): Likewise.
22781
22782         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22783         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22784         call's MEM.  Handle functions returning aggregate through a hidden
22785         first pointer.  For virtual calls add clobbered pc to call arguments
22786         chain.
22787         * dwarf2out.c (gen_subprogram_die): Emit
22788         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22789         can't be emitted.
22790
22791         PR debug/45882
22792         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22793         * rtl.h (ENTRY_VALUE_EXP): Define.
22794         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22795         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22796         * print-rtl.c (print_rtx): Likewise.
22797         * gengtype.c (adjust_field_rtx_def): Likewise.
22798         * var-tracking.c (vt_add_function_parameter): Adjust
22799         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22800         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22801         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22802         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22803         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22804
22805         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22806         Call var_location debug hook even on CALL_INSNs.
22807         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22808         * rtl.def (ENTRY_VALUE): New.
22809         * dwarf2out.c: Include cfglayout.h.
22810         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22811         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22812         (struct call_arg_loc_node): New type.
22813         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22814         tail_call_site_count): New variables.
22815         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22816         DW_TAG_GNU_call_site_parameter.
22817         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22818         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22819         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22820         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22821         and DW_AT_GNU_all_source_call_sites.
22822         (mem_loc_descriptor): Handle ENTRY_VALUE.
22823         (add_src_coords_attributes): Don't add enything if
22824         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22825         (dwarf2out_abstract_function): Save and clear call_arg_location,
22826         call_site_count and tail_call_site_count around dwarf2out_decl call.
22827         (gen_call_site_die): New function.
22828         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22829         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22830         (dwarf2out_function_decl): Clear call_arg_locations,
22831         call_arg_loc_last, set call_site_count and tail_call_site_count
22832         to -1 and free block_map.
22833         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22834         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
22835         followed by any real instructions.
22836         (dwarf2out_begin_function): Set call_site_count and
22837         tail_call_site_count to 0.
22838         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22839         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22840         attempt to force a DIE for it and worst case remove the attribute.
22841         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22842         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22843         the decl itself.
22844         * var-tracking.c: Include tm_p.h.
22845         (vt_stack_adjustments): For calls call note_register_arguments.
22846         (argument_reg_set): New variable.
22847         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22848         ensure the VALUE is resolved.
22849         (call_arguments): New variable.
22850         (prepare_call_arguments): New function.
22851         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22852         (struct expand_loc_callback_data): Add ignore_cur_loc field.
22853         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22854         always use the best expression.
22855         (vt_expand_loc): Add ignore_cur_loc argument.
22856         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22857         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22858         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22859         note for all calls.
22860         (vt_add_function_parameter): Use cselib_lookup_from_insn.
22861         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22862         argument.  Don't call cselib_preserve_only_values and
22863         cselib_reset_table.
22864         (note_register_arguments): New function.
22865         (vt_initialize): Compute argument_reg_set.  Call
22866         vt_add_function_parameters before processing basic blocks instead of
22867         afterwards.  For calls call prepare_call_arguments before calling
22868         cselib_process_insn.
22869         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22870         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22871         (var-tracking.o): Depend on $(TM_P_H).
22872         * cfglayout.h (insn_scope): New prototype.
22873         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22874         * cfglayout.c (insn_scope): No longer static.
22875         * insn-notes.def (CALL_ARG_LOCATION): New.
22876         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22877         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22878         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22879         nothing for DECL_EXTERNAL BLOCK_VARS.
22880
22881 2011-03-16  Alan Modra  <amodra@gmail.com>
22882
22883         PR target/45844
22884         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22885         create invalid offset address for vsx splat insn.
22886         * config/rs6000/predicates.md (splat_input_operand): New.
22887         * config/rs6000/vsx.md (vsx_splat_*): Use it.
22888
22889 2011-03-15  Xinliang David Li  <davidxl@google.com>
22890
22891         PR c/47837
22892         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22893         (normalize_preds): New function.
22894         (is_use_properly_guarded): Normalize def predicates.
22895
22896 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22897
22898         PR target/46788
22899         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22900         in the output template.
22901
22902 2011-03-15  Richard Guenther  <rguenther@suse.de>
22903
22904         PR middle-end/47650
22905         * tree-pretty-print.c (dump_function_declaration): Properly
22906         dump unprototyped and varargs function types.
22907
22908 2011-03-15  Richard Guenther  <rguenther@suse.de>
22909
22910         PR tree-optimization/13954
22911         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
22912         and friends.
22913
22914 2011-03-15  Richard Guenther  <rguenther@suse.de>
22915
22916         PR tree-optimization/48037
22917         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
22918         selects into BIT_FIELD_REFs.
22919         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
22920         vector select.
22921
22922 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
22923
22924         PR tree-optimization/48129
22925         * builtins.c (fold_builtin_snprintf): Convert to type of
22926         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
22927         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
22928
22929 2011-03-15  Richard Guenther  <rguenther@suse.de>
22930
22931         PR tree-optimization/41490
22932         * tree-ssa-dce.c (propagate_necessity): Handle returns without
22933         value but with VUSE.
22934         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
22935         return statements.
22936         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
22937         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
22938         * tree-tailcall.c (find_tail_calls): Ignore returns.
22939
22940 2011-03-15  Richard Guenther  <rguenther@suse.de>
22941
22942         PR middle-end/48031
22943         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
22944         or variable-indexed array accesses when in gimple form.
22945
22946 2011-03-15  Richard Guenther  <rguenther@suse.de>
22947
22948         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
22949
22950 2011-03-15  Alan Modra  <amodra@gmail.com>
22951
22952         PR target/48032
22953         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
22954         presume symbol_refs without a symbol_ref_decl are suitably
22955         aligned, nor other trees we may see here.  Handle anchor symbols.
22956         (legitimate_constant_pool_address_p): Comment.  Add mode param.
22957         Check cmodel=medium addresses.  Adjust all calls.
22958         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
22959         creating cmodel=medium optimized access to locals.
22960         * config/rs6000/constraints.md (R): Pass QImode to
22961         legitimate_constant_pool_address_p.
22962         * config/rs6000/predicates.md (input_operand): Pass mode to
22963         legitimate_constant_pool_address_p.
22964         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
22965         Update prototype.
22966
22967 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22968
22969         PR target/48053
22970         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
22971         64-bit constants being loaded into registers other than GPRs such
22972         as loading 0 into a VSX register.
22973
22974 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22975
22976         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
22977
22978 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22979
22980         PR middle-end/47917
22981         * builtins.c (fold_builtin_snprintf): New function.
22982         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
22983         (fold_builtin_4): Likewise.
22984
22985         PR middle-end/38878
22986         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
22987         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
22988         and C - X == X also strip nops from +/-/p+ operand.
22989         When optimizing -X == C, fold C to arg0's type.
22990
22991         PR debug/47946
22992         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
22993         emit it as add_AT_int instead of add_AT_unsigned.
22994
22995 2011-03-14  Tom Tromey  <tromey@redhat.com>
22996
22997         * unwind-dw2.c: Include sys/sdt.h if it exists.
22998         (_Unwind_DebugHook): Use STAP_PROBE2.
22999         * config.in, configure: Rebuild.
23000         * configure.ac: Check for sys/sdt.h.
23001
23002 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23003
23004         * config/i386/i386.md (ROUND_FLOOR): New constant.
23005         (ROUND_CEIL): Ditto.
23006         (ROUND_TRUNC): Ditto.
23007         (ROUND_MXCSR): Ditto.
23008         (ROUND_NO_EXC): Ditto.
23009         (rint<mode>2): Use new defines instead of numerical constants.
23010         (floor<mode>2): Ditto.
23011         (ceil<mode>2): Ditto.
23012         (btrunc<mode>2): Ditto.
23013         * config/i386/i386-builtin-types.def: Define ROUND function type
23014         aliases.
23015         * config/i386/i386.c (enum ix86_builtins): Add
23016         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23017         (struct builtin_description): Add
23018         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23019         (ix86_expand_sse_round): New static function.
23020         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23021         function types.
23022         (ix86_builtin_vectorized_function): Handle
23023         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23024
23025 2011-03-14  Tom Tromey  <tromey@redhat.com>
23026
23027         * c-parser.c (c_parser_asm_string_literal): Clear
23028         warn_overlength_strings.
23029
23030 2011-03-14  Tom Tromey  <tromey@redhat.com>
23031
23032         * c-parser.c (disable_extension_diagnostics): Save
23033         warn_overlength_strings.
23034         (restore_extension_diagnostics): Restore warn_overlength_strings.
23035
23036 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23037
23038         * BASE-VER: Change to 4.7.0.
23039
23040 2011-03-14  Richard Guenther  <rguenther@suse.de>
23041
23042         PR middle-end/48098
23043         * tree.c (build_vector_from_val): Adjust assert to requirements
23044         and reality.
23045
23046 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23047
23048         PR bootstrap/48102
23049         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23050
23051 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23052
23053         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23054         terms of target_flags_explicit. Adjust copyright year.
23055
23056         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23057         * config/rs6000/t-freebsd: New file. Add override for
23058         LIB2FUNCS_EXTRA.
23059
23060 2011-03-13  Chris Demetriou  <cgd@google.com>
23061
23062         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23063         (-fno-diagnostics-show-option): this, to reflect current default.
23064         (-Werror=): Update text about -fno-diagnostics-show-option.
23065
23066 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23067
23068         PR target/48053
23069         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23070         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23071         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23072         mode is not V2DImode or V2DFmode.
23073         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23074         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23075         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23076         registers to 0.
23077         (movdi_internal64): Likewise.
23078
23079 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23080
23081         PR tree-optimization/47127
23082         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23083         parameter.
23084         (set_cloog_options): Same.
23085         (scop_to_clast): Same.
23086         (print_clast_stmt): Do not call cloog_state_malloc and
23087         cloog_state_free.
23088         (print_generated_program): Same.
23089         (gloog): Same.
23090         * graphite-clast-to-gimple.h (cloog_state): Declared.
23091         (scop_to_clast): Adjust declaration.
23092         * graphite.c (cloog_state): Defined here.
23093         (graphite_initialize): Call cloog_state_malloc.
23094         (graphite_finalize): Call cloog_state_free.
23095
23096 2011-03-11  Jason Merrill  <jason@redhat.com>
23097
23098         * attribs.c (lookup_attribute_spec): Take const_tree.
23099         * tree.h: Adjust.
23100
23101 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23102
23103         * config/sparc/sparc.c (sparc_option_override): Use
23104         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23105
23106 2011-03-11  Richard Guenther  <rguenther@suse.de>
23107
23108         PR tree-optimization/48067
23109         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23110         multiplication result will be only used once on the target
23111         stmt.
23112
23113 2011-03-11  Richard Guenther  <rguenther@suse.de>
23114
23115         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23116
23117 2011-03-11  Richard Guenther  <rguenther@suse.de>
23118
23119         PR lto/48073
23120         * tree.c (find_decls_types_r): Do not walk types only reachable
23121         from IDENTIFIER_NODEs.
23122
23123 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23124
23125         PR middle-end/48044
23126         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23127         all vnode->force_output nodes as needed.
23128
23129 2011-03-11  Jason Merrill  <jason@redhat.com>
23130
23131         PR c++/48069
23132         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23133         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23134
23135 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23136
23137         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23138         cgraph_node.
23139
23140 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23141
23142         PR tree-optimization/48063
23143         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23144         inline functions called once if !tree_can_inline_p (node->callers).
23145
23146 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23147
23148         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23149         extra_objs.
23150         * config/score/score3.c: Delete.
23151         * config/score/score3.h: Delete.
23152         * config/score/mul-div.S: Delete.
23153         * config/score/sfp-machine.h: Add new file.
23154         * config/score/constraints.md: Add new file.
23155         * config/score/t-score-softfp: Add new file.
23156         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23157         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23158         (score7_extra_constraint): Delete.
23159         (score7_option_override): Remove unused code.
23160         * config/score/score.c: Remove score3 and score5 define and code.
23161         * config/score/score.h: Remove score3 and score5 define and code.
23162         * config/score/score.md: Remove score3 template and unusual insn.
23163         * config/score/score.opt: Remove score3 and score5 options.
23164
23165 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23166
23167         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23168         when _HPUX_SOURCE is defined.
23169         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23170
23171 2011-03-10  Jason Merrill  <jason@redhat.com>
23172
23173         PR c++/48029
23174         * stor-layout.c (layout_type): Don't set structural equality
23175         on arrays of incomplete type.
23176         * tree.c (type_hash_eq): Handle comparing them properly.
23177
23178 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23179
23180         PR debug/48043
23181         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23182         result mode matches original rtl mode.
23183
23184 2011-03-10  Nick Clifton  <nickc@redhat.com>
23185
23186         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23187         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23188
23189 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23190
23191         PR rtl-optimization/47866
23192         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23193         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23194         if target wasn't scalar.
23195         * function.c (assign_stack_temp_for_type): Assert that neither
23196         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23197         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23198         macro.
23199         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23200
23201 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23202
23203         * config/s390/s390-protos.h (s390_label_align): New prototype.
23204         * config/s390/s390.c (s390_label_align): New function.
23205         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23206
23207 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23208
23209         PR target/47755
23210         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23211         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23212         (output_vec_const_move): Ditto.
23213
23214 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23215
23216         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23217         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23218         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23219         Change 'rclass' argument and result type to reg_class_t.
23220         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23221
23222 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23223
23224         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23225         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23226         (TARGET_MEMORY_MOVE_COST): Define.
23227         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23228
23229 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23230
23231         PR debug/47881
23232         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23233         removed anything.
23234
23235         PR tree-optimization/48022
23236         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23237         for EQ/NE_EXPR.
23238
23239 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23240
23241         PR debug/47991
23242         * var-tracking.c (find_use_val): Return NULL for
23243         cui->sets && cui->store_p BLKmode MEMs.
23244
23245 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23246
23247         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23248         Remove.
23249         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23250         xstormy16_print_operand_address): Remove.
23251         * config/stormy16/stormy16.c (xstormy16_print_operand,
23252         xstormy16_print_operand_address): Make static.
23253         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23254
23255 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
23256
23257         PR target/47862
23258         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23259         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23260         before definition.
23261
23262 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
23263
23264         PR bootstrap/48000
23265         * cfgloopmanip.c (fix_bb_placements): Return immediately
23266         if FROM is BASE_LOOP's header.
23267
23268 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
23269
23270         * gimplify.c (gimplify_function_tree): Fix building calls
23271         to __builtin_return_address.
23272
23273 2011-03-07  Alan Modra  <amodra@gmail.com>
23274
23275         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23276         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23277         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23278         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23279         return_mode args.
23280         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23281         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23282         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23283         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23284         * config/rs6000/rs6000.c
23285         (rs6000_elf_end_indicate_exec_stack): Rename to..
23286         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
23287         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
23288         (rs6000_file_start): ..here.
23289         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23290         file scope variables.
23291         (call_ABI_of_interest): New function.
23292         (init_cumulative_args): Set above vars when function return value
23293         is a float, vector, or small struct.
23294         (rs6000_function_arg_advance_1): Likewise for function args.
23295         (rs6000_va_start): Set rs6000_passes_float if variable arg function
23296         references float args.
23297
23298 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23299
23300         * doc/cfg.texi: Remove "See" before @ref.
23301         * doc/invoke.texi: Likewise.
23302
23303 2011-03-05  Jason Merrill  <jason@redhat.com>
23304
23305         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23306
23307 2011-03-05  Anthony Green  <green@moxielogic.com>
23308
23309         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23310
23311 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
23312
23313         PR rtl-optimization/47899
23314         * cfgloopmanip.c (fix_bb_placements): Fix first argument
23315         to flow_loop_nested_p when moving the loop upward.
23316
23317 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
23318
23319         PR target/47719
23320         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
23321
23322 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
23323
23324         PR tree-optimization/47967
23325         * ipa-cp.c (build_const_val): Return NULL instead of creating
23326         VIEW_CONVERT_EXPR for mismatching sizes.
23327         (ipcp_create_replace_map): Return NULL if build_const_val failed.
23328         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23329         give up on versioning.
23330
23331 2011-03-05  Alan Modra  <amodra@gmail.com>
23332
23333         PR target/47986
23334         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23335         full cmodel medium/large lo_sum + high addresses.
23336
23337 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23338
23339         * config/s390/s390.c (s390_decompose_address): Reject non-literal
23340         pool references in UNSPEC_LTREL_OFFSET.
23341
23342 2011-03-04  Jan Hubicka  <jh@suse.cz>
23343
23344         PR lto/47497
23345         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23346         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23347         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23348         Add node pointers.
23349         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23350         cgraph_add_thunk): Add node pointers.
23351         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23352         associated to right node.
23353         (input_node): Update use of cgraph_same_body_alias
23354         and cgraph_add_thunk.
23355
23356 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23357
23358         * config/i386/i386.opt (mprefer-avx128): New flag.
23359         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23360         modes when the flag -mprefer-avx128 is on.
23361
23362 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
23363
23364         * dwarf2out.c (compare_loc_operands): Fix address handling.
23365
23366 2011-03-04  Alan Modra  <amodra@gmail.com>
23367
23368         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23369
23370 2011-03-04  Richard Guenther  <rguenther@suse.de>
23371
23372         PR middle-end/47968
23373         * expmed.c (extract_bit_field_1): Prefer vector modes that
23374         vec_extract patterns can handle.
23375
23376 2011-03-04  Richard Guenther  <rguenther@suse.de>
23377
23378         PR middle-end/47975
23379         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23380
23381 2011-03-04  Richard Henderson  <rth@redhat.com>
23382
23383         * explow.c (emit_stack_save): Remove 'after' parameter.
23384         (emit_stack_restore): Likewise.
23385         * expr.h: Update to match.
23386         * builtins.c, calls.c, stmt.c: Likewise.
23387         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23388         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23389         * function.c (expand_function_end): Insert the emit_stack_save
23390         sequence before parm_birth_insn instead of after.
23391
23392 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
23393
23394         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23395         (ssse3_pmaddubsw128): Ditto.
23396         (ssse3_pmaddubsw): Ditto.
23397
23398 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
23399
23400         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23401
23402 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
23403
23404         PR c/47963
23405         * gimplify.c (omp_add_variable): Only call omp_notice_variable
23406         on TYPE_SIZE_UNIT if it is a DECL.
23407
23408         PR debug/47283
23409         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23410         first operand is not is_gimple_mem_ref_addr, try to fold it.
23411         If the operand still isn't is_gimple_mem_ref_addr, clear
23412         MEM_EXPR on op0.
23413
23414 2011-03-03  Richard Guenther  <rguenther@suse.de>
23415
23416         PR middle-end/47283
23417         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23418         match comment.
23419         (refs_may_alias_p_1): For release branches return true if
23420         we are confused by our input.
23421
23422 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23423
23424         * config/s390/s390.c (s390_function_value): Rename to ...
23425         (s390_function_and_libcall_value): ... this.
23426         (s390_function_value): New function.
23427         (s390_libcall_value): New function.
23428         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23429         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23430         target macro definitions.
23431         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23432
23433 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23434
23435         * config/i386/freebsd64.h (CC1_SPEC): Define.
23436         * config/i386/linux64.h (CC1_SPEC): Define.
23437         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23438
23439 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23440
23441         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23442         Remove.
23443         * config/stormy16/stormy16.c: Include reload.h.
23444         (xstormy16_memory_move_cost): New function.
23445         (TARGET_MEMORY_MOVE_COST): Define.
23446
23447 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23448
23449         PR rtl-optimization/47925
23450         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23451         with side effects.  Remove the more-specific check for volatile asms.
23452
23453 2011-03-02  Alan Modra  <amodra@gmail.com>
23454
23455         PR target/47935
23456         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23457         toc relative addresses for valid offsets.
23458
23459 2011-03-01  Richard Guenther  <rguenther@suse.de>
23460
23461         PR tree-optimization/47890
23462         * tree-vect-loop.c (get_initial_def_for_induction): Set
23463         related stmt properly.
23464
23465 2011-03-01  Richard Guenther  <rguenther@suse.de>
23466
23467         PR lto/47924
23468         * lto-streamer.c (lto_record_common_node): Also register
23469         the canonical type.
23470
23471 2011-03-01  Richard Guenther  <rguenther@suse.de>
23472
23473         PR lto/46911
23474         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23475         Do not stream DECL_ABSTRACT_ORIGIN.
23476         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23477         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23478         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23479         Do not stream DECL_ABSTRACT_ORIGIN.
23480         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23481         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23482
23483 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23484
23485         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23486         FUNCTION_VALUE_REGNO_P): Remove.
23487         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23488         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23489         Add 'outgoing' argument.
23490         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23491         function.
23492         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23493         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23494
23495 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23496
23497         PR debug/28047
23498         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23499         (lookup_filename): Likewise.
23500         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23501
23502 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23503             Jakub Jelinek  <jakub@redhat.com>
23504
23505         PR middle-end/47893
23506         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23507         (assign_stack_local_1): Change last argument type to int.
23508         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23509         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23510         don't record padding space into frame_space_list nor use those areas.
23511         (assign_stack_local): Adjust caller.
23512         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23513         of assign_stack_local, pass 0 as last argument.
23514         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23515         callers.
23516
23517 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23518
23519         PR debug/47283
23520         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23521         Use target address_mode and pointer_mode hooks instead of hardcoded
23522         Pmode and ptr_mode.  Handle some simple cases of extending if
23523         POINTERS_EXTEND_UNSIGNED < 0.
23524         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23525         Call convert_debug_memory_address.
23526         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23527         convert_debug_memory_address.
23528
23529         PR middle-end/46790
23530         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23531         * configure: Regenerated.
23532         * config.in: Regenerated.
23533         * varasm.c (default_function_section): Return NULL
23534         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23535
23536 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23537
23538         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23539         the description to match the printed values.
23540
23541 2011-02-28  Richard Guenther  <rguenther@suse.de>
23542
23543         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23544         of the copied scope tree.
23545
23546 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23547
23548         * doc/extend.texi (Function Attributes): Avoid deeply (and
23549         wrongly) nested tables.
23550
23551 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23552
23553         PR middle-end/47903
23554         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23555         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23556         r isn't op0 nor op1.
23557
23558 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23559
23560         * config/avr/avr.md: Remove magic comment for emacs.
23561
23562 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23563
23564         PR target/45261
23565         * config/avr/avr.c (avr_option_override): Use error on bad options.
23566         (avr_help): New function.
23567         (TARGET_HELP): Define.
23568
23569 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23570
23571         PR target/42240
23572         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23573         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23574
23575 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23576
23577         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23578         (ARM Options): Ditto.
23579         (i386 and x86-64 Options): Ditto.
23580         (RX Options): Ditto.
23581         (SPARC Options): Ditto.
23582
23583 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23584
23585         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23586         FreeBSD 6 and later.  Generally use cpu generic.
23587
23588 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23589
23590         * doc/cpp.texi: Update copyright years.
23591
23592 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23593
23594         PR target/46898
23595         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23596
23597 2011-02-25  Jon Beniston  <jon@beniston.com>
23598
23599         PR target/46898
23600         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23601         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23602         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23603         (lm32_block_move_inline): Add type cast to remove warning.
23604         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23605         (gen_int_relational): Move declarations to start of function.
23606
23607 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23608
23609         PR tree-optimization/45470
23610         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23611         can throw internally only.
23612         * tree-vect-stmts.c (vectorizable_call): Likewise.
23613
23614 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23615
23616         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23617         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23618         * config/stormy16/stormy16-protos.h
23619         (xstormy16_preferred_reload_class): Remove.
23620         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23621         static. Change 'rclass' argument and return type to reg_class_t.
23622         (TARGET_PREFERRED_RELOAD_CLASS,
23623         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23624
23625 2011-02-24  Richard Guenther  <rguenther@suse.de>
23626
23627         * lto-streamer-in.c (input_bb): Do not find referenced vars
23628         in debug statements.
23629
23630 2011-02-23  Jason Merrill  <jason@redhat.com>
23631
23632         * common.opt (fabi-version): Document v5 and v6.
23633
23634 2011-02-23  Richard Guenther  <rguenther@suse.de>
23635
23636         PR tree-optimization/47849
23637         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23638
23639 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23640
23641         * opts-common.c (decode_cmdline_option): Print empty string
23642         argument as "" in decoded->orig_option_with_args_text.
23643         * gcc.c (execute): Print empty string argument as ""
23644         in the verbose output.
23645         (do_spec_1): Keep empty string argument.
23646
23647 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
23648
23649         * config.gcc: Declare score-* and crx-* obsolete.
23650
23651 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23652
23653         PR rtl-optimization/47763
23654         * web.c (web_main): Ignore naked clobber when replacing register.
23655
23656 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
23657
23658         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23659         Remove.
23660
23661 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23662
23663         PR doc/47848
23664         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23665
23666 2011-02-22  Mike Stump  <mikestump@comcast.net>
23667
23668         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23669         assembler.
23670         * configure: Regenerate.
23671
23672 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
23673
23674         PR rtl-optimization/46002
23675         * ira-color.c (update_copy_costs): Change class intersection
23676         test to reg_class_contents[] test of 'hard_regno'.
23677
23678 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
23679
23680         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23681         than Driver option.
23682         * config/hpux11.opt (mt): Likewise.
23683         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23684         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23685         * config/vax/elf.opt (mno-asm-pic): Likewise.
23686         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23687
23688 2011-02-21  Mike Stump  <mikestump@comcast.net>
23689
23690         PR target/47822
23691         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23692         tree so we can get save the type.
23693         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23694         for CFString instead of trying to use past the end of the builtins.
23695         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23696         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23697         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23698         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23699         Rename to darwin_builtin_cfstring.
23700         (darwin_init_cfstring_builtins): Return the built type.
23701
23702 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
23703
23704         PR target/47840
23705         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23706         (_mm256_insert_epi64): Use _mm_insert_epi64.
23707
23708 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
23709
23710         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23711         * config/stormy16/stormy16-protos.h
23712         (xstormy16_mode_dependent_address_p): Remove.
23713         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23714         Make static. Change return type to bool. Change argument type to
23715         const_rtx. Remove dead code.
23716         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23717
23718 2011-02-21  Richard Guenther  <rguenther@suse.de>
23719
23720         PR lto/47820
23721         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23722         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23723         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23724         TUs context.
23725         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23726         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23727
23728 2011-02-20  Richard Guenther  <rguenther@suse.de>
23729
23730         PR lto/47822
23731         * tree.c (free_lang_data_in_decl): Clean builtins from
23732         the TU decl BLOCK_VARS.
23733
23734 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
23735
23736         PR debug/47620
23737         PR debug/47630
23738         * haifa-sched.c (fix_tick_ready): Skip tick computation
23739         for debug insns.
23740
23741 2011-02-19  Richard Guenther  <rguenther@suse.de>
23742
23743         PR lto/47647
23744         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23745         Remove lazy BLOCK_VARS streaming.
23746         (lto_input_ts_block_tree_pointers): Likewise.
23747         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23748
23749 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23750
23751         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23752
23753 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23754
23755         * config/i386/biarch32.h, config/i386/mach.h,
23756         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23757
23758 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
23759
23760         PR target/47800
23761         * config/i386/i386.md (peephole2 for shift and plus): Use
23762         operands[1] original mode in the first insn.
23763
23764 2011-02-18  Mike Stump  <mikestump@comcast.net>
23765
23766         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23767
23768 2011-02-18  Jan Hubicka  <jh@suse.cz>
23769
23770         PR middle-end/47788
23771         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23772         to zero when the function is not inlinable at all.
23773
23774 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23775
23776         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23777         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23778         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23779         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23780         * config/pa/t-pa64: Likewise.
23781         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23782
23783 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23784
23785         PR driver/47787
23786         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23787
23788 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23789
23790         PR target/47792
23791         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23792
23793 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
23794
23795         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23796         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23797         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23798         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23799         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23800         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23801         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23802         m32r_load_postinc_p, m32r_store_preinc_predec_p,
23803         m32r_legitimate_address_p): New functions.
23804         * config/m32r/constraints.md (constraint "S"): Don't use
23805         STORE_PREINC_PREDEC_P.
23806         (constraint "U"): Don't use LOAD_POSTINC_P.
23807
23808 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
23809
23810         PR rtl-optimization/46178
23811         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23812         compute ira_hard_regno_cover_class[].
23813
23814 2011-02-18  Richard Guenther  <rguenther@suse.de>
23815
23816         PR lto/47798
23817         * lto-streamer.h (lto_global_var_decls): Declare.
23818         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23819         statics for global var processing.
23820
23821 2011-02-18  Richard Guenther  <rguenther@suse.de>
23822
23823         PR tree-optimization/47737
23824         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23825         edge dominance check.
23826
23827 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23828
23829         PR debug/47780
23830         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23831         avoid invalid rtx sharing.
23832
23833 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
23834
23835         * doc/cpp.texi (Obsolete Features): Add background on the
23836         origin of assertions.
23837
23838 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
23839
23840         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23841         objc_abi == 2.
23842         * config/darwin.c (output_objc_section_asm_op): Added support for
23843         ABI v1 and v2.
23844         (is_objc_metadata): New.
23845         (darwin_objc2_section): New.
23846         (darwin_objc1_section): New.
23847         (machopic_select_section): Added support for ABI v1 and v2.
23848         (darwin_emit_objc_zeroed): New.
23849         (darwin_output_aligned_bss): Detect objc metadata and treat it
23850         appropriately.
23851         (darwin_asm_output_aligned_decl_common): Same.
23852         (darwin_asm_output_aligned_decl_local): Same.
23853         * config/darwin-sections.def: Updated for ABI v1 and v2.
23854         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23855         compiling Objective-C code for the NeXT runtime, default to using
23856         ABI version 0 for 32-bit, and version 2 for 64-bit.
23857
23858 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23859
23860         * common.opt (optimize_fast): New Variable.
23861         * opts.c (default_options_optimization): Use opts->x_optimize_fast
23862         instead of local variable ofast.
23863
23864 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
23865
23866         * doc/invoke.texi (fobjc-abi-version): Documented.
23867         (fobjc-nilcheck): Documented.
23868         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23869         version.
23870
23871 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23872
23873         PR driver/47390
23874         * common.opt (export-dynamic): New Driver option.
23875         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23876
23877 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23878
23879         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23880
23881 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
23882             Jan Hubicka  <jh@suse.cz>
23883
23884         PR debug/47106
23885         PR debug/47402
23886         * cfgexpand.c (account_used_vars_for_block): Remove.
23887         (estimated_stack_frame_size): Use referenced vars.
23888         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23889         that were referenced in the original function.  Test src_fn
23890         rather than cfun.  Drop redundant get_var_ann.
23891         (setup_one_parameter): Drop redundant get_var_ann.
23892         (declare_return_variable): Likewise.
23893         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23894         (copy_arguments_for_versioning): Drop redundant get_var_ann.
23895         * ipa-inline.c (compute_inline_parameters): Do not compute
23896         disregard_inline_limits here.
23897         (compute_inlinable_for_current, pass_inlinable): New.
23898         (pass_inline_parameters): Require PROP_referenced_vars.
23899         * cgraphunit.c (cgraph_process_new_functions): Don't run
23900         compute_inline_parameters explicitly unless function is in SSA form.
23901         (cgraph_analyze_function): Set .disregard_inline_limits.
23902         * tree-sra.c (convert_callers): Compute inliner parameters
23903         only for functions already in SSA form.
23904
23905 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23906
23907         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23908         -mlittle-endian-data.
23909
23910 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23911
23912         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
23913         -mno-fpu, not -fpu and -no-fpu.
23914         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
23915         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
23916
23917 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
23918
23919         PR target/43653
23920         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
23921         input reload with PLUS RTX.
23922
23923 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23924
23925         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
23926         of InverseVar(MDMX).
23927
23928 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23929
23930         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
23931         --m4-340.
23932
23933 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23934
23935         * config/mn10300/mn10300.opt (mno-crt0): New.
23936
23937 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23938
23939         * config/m68k/uclinux.opt (static-libc): New Driver option.
23940
23941 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23942
23943         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
23944
23945 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23946
23947         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
23948         %{muser-extend-enabled}.
23949
23950 2011-02-16  Richard Guenther  <rguenther@suse.de>
23951
23952         PR tree-optimization/47738
23953         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
23954         the TODO from tree_predictive_commoning.
23955
23956 2011-02-15  Jeff Law  <law@redhat.com>
23957
23958         Revert
23959         2011-01-25  Jeff Law  <law@redhat.com>
23960
23961         PR rtl-optimization/37273
23962         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23963         handle them like argument loads from stack slots.  Do not double
23964         count memory for memory constants and argument loads from stack slots.
23965
23966 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
23967
23968         PR target/47755
23969         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
23970         mode for vector constants.  Remove code that checks for TImode.
23971
23972 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23973
23974         PR debug/47106
23975         PR debug/47402
23976         * cgraph.h (compute_inline_parameters): Return void.
23977         * ipa-inline.c (compute_inline_parameters): Adjust.
23978
23979 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23980
23981         PR debug/47106
23982         PR debug/47402
23983         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
23984         rather than decl.
23985         * cfgexpand.c (estimated_stack_frame_size): Likewise.
23986         * ipa-inline.c (compute_inline_parameters): Adjust.
23987
23988 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23989
23990         PR debug/47106
23991         PR debug/47402
23992         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
23993         Adjust all users.  Pass FN to...
23994         * tree-flow-inline.h (first_referenced_var): ... this.  Add
23995         fn argument.
23996         * ipa-struct-reorg.c: Adjust.
23997         * tree-dfa.c: Adjust.
23998         * tree-into-ssa.c: Adjust.
23999         * tree-sra.c: Adjust.
24000         * tree-ssa-alias.c: Adjust.
24001         * tree-ssa-live.c: Adjust.
24002         * tree-ssa.c: Adjust.
24003         * tree-ssanames.c: Adjust.
24004         * tree-tailcall.c: Adjust.
24005
24006 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24007
24008         PR debug/47106
24009         PR debug/47402
24010         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24011         Adjust all callers.
24012         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24013         * tree-flow-inline.h: Adjust.
24014         * gimple-pretty-print.c: Adjust.
24015         * tree-into-ssa.c: Adjust.
24016         * tree-ssa.c: Adjust.
24017         * cfgexpand.c: Adjust.
24018
24019 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24020
24021         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24022         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24023         (EXTRA_CONSTRAINT): Delete.
24024         * config/iq2000/constraints.md: New file.
24025         * config/iq2000/iq2000.md: Include it.
24026         (define_insn ""): Delete.
24027         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24028         unsupported constraint letters from patterns.
24029         (call_value, call_value_internal1): Likewise.
24030         (call_value_multiple_internal1): Likewise.
24031
24032 2011-02-15  Nick Clifton  <nickc@redhat.com>
24033
24034         * config/mn10300/mn10300.c: Include tm-constrs.h.
24035         (struct liw_data): New data structure describing an LIW candidate
24036         instruction.
24037         (extract_bundle): Use struct liw_data.  Allow small integer
24038         operands for some instructions.
24039         (check_liw_constraints): Use struct liw_data.  Remove swapped
24040         parameter.  Add comments describing the checks.  Fix bug when
24041         assigning the source of liw1 to the source of liw2.
24042         (liw_candidate): Delete.  Code moved into extract_bundle.
24043         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24044         before swapping.
24045         * config/mn10300/predicates.md (liw_operand): New predicate.
24046         Allows registers and small integer constants.
24047         * config/mn10300/constraints.md (O): New constraint.  Accetps
24048         integers in the range -8 to +7 inclusive.
24049         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24050         for moving a small integer into a register.  Give this alternative
24051         LIW attributes.
24052         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24053         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24054         using the J,K,L and M constraints,
24055         (liw): Remove SI mode on second operands to allow for HI and QI
24056         mode values.
24057         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24058         instruction.
24059
24060 2011-02-15  Richard Guenther  <rguenther@suse.de>
24061
24062         PR tree-optimization/47743
24063         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24064         for a non-type-compatible VN lookup bail out.
24065
24066 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24067
24068         * config/fr30/constraints.md: New file.
24069         * config/fr30/fr30.md: Include it.
24070         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24071         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24072         (EXTRA_CONSTRAINT): Delete.
24073
24074 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24075
24076         * config/frv/constraints.md: New file.
24077         * config/frv/predicates.md: Include it.
24078         * config/frv/frv.c (reg_class_from_letter): Delete.
24079         (frv_option_override): Don't initialize it.
24080         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24081         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24082         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24083         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24084         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24085         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24086         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24087         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24088         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24089         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24090         (REG_CLASS_FROM_CONSTRAINT): Delete.
24091
24092 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24093
24094         PR middle-end/47581
24095         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24096         if frame size is 0 in a leaf function.
24097
24098 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24099
24100         PR pch/14940
24101         * config/alpha/host-osf.c: New file.
24102         * config/alpha/x-osf: New file.
24103         * config.host (alpha*-dec-osf*): Use it.
24104
24105 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24106
24107         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24108         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24109         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24110         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24111         type to const_rtx.
24112         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24113
24114 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24115
24116         * config/stormy16/constraints.md: New file.
24117         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24118         Use satisfies_constraint_Q and satisfies_constraint_R.
24119         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24120         Delete.
24121         (xstormy16_legitiamte_address_p): Declare.
24122         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24123         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24124         (EXTRA_CONSTRAINT): Delete.
24125         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24126         Un-staticize.
24127         (xstormy16_extra_constraint_p): Delete.
24128
24129 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24130
24131         PR tree-optimization/46494
24132         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24133         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24134         (pass_rtl_loop_done): Add TODO_verify_flow.
24135         * fwprop.c (pass_rtl_fwprop): Likewise.
24136         * modulo-sched.c (pass_sms): Likewise.
24137         * tree-ssa-dom.c (pass_dominator): Likewise.
24138         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24139         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24140         (pass_tree_loop_done): Likewise.
24141         * tree-ssa-pre.c (execute_pre): Likewise.
24142         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24143         * tree-ssa-sink.c (pass_sink_code): Likewise.
24144         * tree-vrp.c (pass_vrp): Likewise.
24145
24146 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24147
24148         * config/v850/constraints.md: New file.
24149         * config/v850/v850.md: Include it.
24150         * config/v850/predicates.md (reg_or_0_operand): Use
24151         satisfies_constraint_G.
24152         (special_symbolref_operand): Use satisfies_constraint_K.
24153         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24154         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24155         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24156         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24157         (EXTRA_CONSTRAINT): Delete.
24158         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24159         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24160         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24161
24162 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24163
24164         PR target/47696
24165         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24166         description.
24167
24168 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24169
24170         * config/mcore/constraints.md: New file.
24171         * config/mcore/mcore.md: Include it.
24172         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24173         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24174         (REG_CLASS_FROM_LETTER): Delete.
24175         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24176         insn_const_int_ok_for_constraint.
24177         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24178         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24179         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24180         (EXTRA_CONSTRAINT): Delete.
24181
24182 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24183
24184         PR ada/41929
24185         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24186         (IS_SIGHANDLER): Define.
24187         (sparc64_is_sighandler): New function, split off from
24188         sparc64_fallback_frame_state.
24189         (sparc_is_sighandler): New function, split off from
24190         sparc_fallback_frame_state.
24191         (sparc64_fallback_frame_state): Merge with ...
24192         (sparc_fallback_frame_state): ... this into ...
24193         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24194         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24195         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24196         stack instead of hardcoded offsets.
24197
24198 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24199
24200         PR target/45808
24201         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24202
24203 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24204
24205         * configure: Regenerate.
24206
24207 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24208
24209         PR driver/45731
24210         * gcc.c (asm_options): Correct spec matching --target-help.
24211
24212 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24213
24214         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24215         to gimple call error.
24216
24217 2011-02-12  Mike Stump  <mikestump@comcast.net>
24218
24219         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24220         comments in backslash regions.
24221
24222 2011-02-12  Mike Stump  <mikestump@comcast.net>
24223             Jakub Jelinek  <jakub@redhat.com>
24224             Iain Sandoe  <iains@gcc.gnu.org>
24225
24226         PR target/47324
24227         * dwarf2out.c (output_cfa_loc): When required, apply the
24228         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24229         (output_loc_sequence): Likewise.
24230         (output_loc_operands_raw): Likewise.
24231         (output_loc_sequence_raw): Likewise.
24232         (output_cfa_loc): Likewise.
24233         (output_loc_list): Suppress register number adjustment when
24234         calling output_loc_sequence()
24235         (output_die): Likewise.
24236
24237 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24238
24239         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24240         Remove macros.
24241         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24242         xtensa_memory_move_cost): New functions.
24243         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24244
24245 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24246
24247         PR lto/47225
24248         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24249         in the current directory.
24250         * configure: Rebuilt.
24251
24252 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24253
24254         * config/darwin.c (darwin_override_options): Add a hunk missed
24255         from the commit of r168571.  Trim comment line lengths and
24256         correct indents of the preceding block.
24257
24258 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24259
24260         * gcc.c (driver_handle_option): Concatenate the argument to -F with
24261         the switch.
24262
24263 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24264
24265         * common.opt (nostartfiles): New Driver option.
24266
24267 2011-02-11  Xinliang David Li  <davidxl@google.com>
24268
24269         PR tree-optimization/47707
24270         * tree-chrec.c (convert_affine_scev): Keep type precision.
24271
24272 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
24273
24274         PR tree-optimization/47420
24275         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24276
24277 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
24278
24279         PR rtl-optimization/47614
24280         * rtl.h (check_for_inc_dec): Declare.
24281         * dse.c (check_for_inc_dec): Externalize...
24282         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24283         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24284
24285 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24286
24287         PR driver/47678
24288         * gcc.c (main): Do not compile inputs if there were errors in
24289         option handling.
24290         * opts-common.c (read_cmdline_option): Check for wrong language
24291         after other error checks.
24292
24293 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
24294
24295         * cgraph.c: Fix comment typos.
24296         * cgraph.h: Likewise.
24297         * cgraphunit.c: Likewise.
24298         * ipa-cp.c: Likewise.
24299         * ipa-inline.c: Likewise.
24300         * ipa-prop.c: Likewise.
24301         * ipa-pure-const.c: Likewise.
24302         * ipa-ref.c: Likewise.
24303         * ipa-reference.c: Likewise.
24304
24305 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24306
24307         PR debug/47684
24308         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24309
24310 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24311
24312         PR testsuite/47400
24313         * doc/sourcebuild.texi (Require Support): Document
24314         dg-require-ascii-locale.
24315
24316 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
24317
24318         * doc/lto.texi (Write summary): Fix missing parentheses.
24319
24320 2011-02-10  DJ Delorie  <dj@redhat.com>
24321
24322         * config/m32c/m32c.c (m32c_option_override): Disable
24323         -fcombine-stack-adjustments until flag value tracking and compare
24324         optimization can be rewritten.
24325
24326 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
24327
24328         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24329         PROCESSOR_POWER7.
24330         (PROCESSOR_DEFAULT64): Likewise.
24331
24332 2011-02-10  Richard Henderson  <rth@redhat.com>
24333
24334         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24335         change from 2011-02-03.
24336         * config/rx/rx.c (flags_from_code): Likewise.
24337         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24338         is valid, n/pz otherwise.
24339         (rx_select_cc_mode): Return CCmode if Y is not zero.
24340
24341 2011-02-10  Richard Guenther  <rguenther@suse.de>
24342
24343         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24344
24345 2011-02-10  Richard Guenther  <rguenther@suse.de>
24346
24347         PR tree-optimization/47677
24348         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24349
24350 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
24351
24352         PR target/47665
24353         * combine.c (make_compound_operation): Only change shifts into
24354         multiplication for SCALAR_INT_MODE_P.
24355
24356 2011-02-10  Jie Zhang  <jie@codesourcery.com>
24357
24358         PR testsuite/47622
24359         Revert
24360         2011-02-05  Jie Zhang  <jie@codesourcery.com>
24361         PR debug/42631
24362         * web.c (entry_register): Don't clobber the number of the
24363         first uninitialized reference in used[].
24364
24365 2011-02-09  Richard Guenther  <rguenther@suse.de>
24366
24367         PR tree-optimization/47664
24368         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24369         all edges again.
24370
24371 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
24372
24373         PR target/46481
24374         PR target/47032
24375         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24376         PROCESSOR_POWER7.
24377         (PROCESSOR_DEFAULT64): Same.
24378         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24379
24380 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24381
24382         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24383
24384 2011-02-09  Martin Jambor  <mjambor@suse.cz>
24385
24386         PR middle-end/45505
24387         * tree-sra.c (struct access): New flags grp_scalar_read and
24388         grp_scalar_write.  Changed description of assignment read and write
24389         flags.
24390         (dump_access): Dump new flags, reorder all of them.
24391         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24392         to detect multiple scalar reads.
24393         (analyze_access_subtree): Use the new scalar read write flags instead
24394         of the old flags.  Adjusted comments.
24395
24396 2011-02-08  DJ Delorie  <dj@redhat.com>
24397
24398         PR target/47548
24399         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24400         patterns.
24401
24402 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24403
24404         * config/m68k/uclinux.opt: New.
24405         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24406
24407 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24408
24409         * config/cris/elf.opt (sim): New Driver option.
24410
24411 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24412
24413         * config/xtensa/elf.opt: New.
24414         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24415
24416 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24417
24418         * config/vax/elf.opt: New.
24419         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24420
24421 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24422
24423         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24424
24425 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24426
24427         * config/gnu-user.opt: New.
24428         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24429         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24430         *-*-uclinux*): Use gnu-user.opt.
24431
24432 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24433
24434         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24435         * config/i386/gnu.h (CPP_SPEC): Likewise.
24436
24437 2011-02-08  Ian Lance Taylor  <iant@google.com>
24438
24439         * common.opt (fcx-limited-range): Add SetByCombined flag.
24440         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24441         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24442         (fassociative-math, freciprocal-math): Likewise.
24443         (funsafe-math-optimizations): Likewise.
24444         * opth-gen.awk: Handle SetByCombined.
24445         * optc-gen.awk: Likewise.
24446         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24447         (set_unsafe_math_optimizations_flags): Likewise.
24448         * doc/options.texi (Option properties): Document SetByCombined.
24449
24450 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24451
24452         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24453         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24454         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24455         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24456         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24457
24458 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24459
24460         PR tree-optimization/46834
24461         PR tree-optimization/46994
24462         PR tree-optimization/46995
24463         * graphite-sese-to-poly.c (used_outside_reduction): New.
24464         (detect_commutative_reduction): Call used_outside_reduction.
24465         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24466         translate_scalar_reduction_to_array only when at least one
24467         loop-phi/close-phi tuple has been detected.
24468
24469 2011-02-08  Richard Guenther  <rguenther@suse.de>
24470
24471         PR middle-end/47639
24472         * tree-vect-generic.c (expand_vector_operations_1): Update
24473         stmts here ...
24474         (expand_vector_operations): ... not here.  Cleanup EH info
24475         and the CFG if required.
24476
24477 2011-02-08  Richard Guenther  <rguenther@suse.de>
24478
24479         PR tree-optimization/47641
24480         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24481         require type compatibility.
24482
24483 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24484
24485         * gimple-low.c (lower_function_body): Don't remove the location of
24486         the return statement here.
24487         (lower_gimple_return): Do it here instead but only if the return
24488         statement is actually used twice.
24489
24490 2011-02-08  Richard Guenther  <rguenther@suse.de>
24491
24492         PR tree-optimization/47632
24493         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24494         unused up_to_stmt parameter, return whether cfg-cleanup is
24495         necessary, remove EH info properly.
24496         (forward_propagate_into_gimple_cond): Adjust caller.
24497         (forward_propagate_into_cond): Likewise.
24498         (forward_propagate_comparison): Likewise.
24499         (tree_ssa_forward_propagate_single_use_vars): Make
24500         forward_propagate_comparison case similar to the two others.
24501
24502 2011-02-08  Nick Clifton  <nickc@redhat.com>
24503
24504         * config/mn10300/mn10300.opt (mliw): New command line option.
24505         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24506         (liw_bundling): New automaton.
24507         (liw): New attribute.
24508         (liw_op): New attribute.
24509         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24510         (movsi_internal): Add LIW attributes.
24511         (andsi3): Likewise.
24512         (iorsi3): Likewise.
24513         (xorsi3): Likewise.
24514         (addsi3): Separate register and immediate alternatives.
24515         Add LIW attributes.
24516         (subsi3): Likewise.
24517         (cmpsi): Likewise.
24518         (aslsi3): Likewise.
24519         (lshrsi3): Likewise.
24520         (ashrsi3): Likewise.
24521         (liw): New pattern.
24522         * config/mn10300/mn10300.c (liw_op_names): New
24523         (mn10300_print_operand): Handle 'W' operand descriptor.
24524         (extract_bundle): New function.
24525         (check_liw_constraints): New function.
24526         (liw_candidate): New function.
24527         (mn10300_bundle_liw): New function.
24528         (mn10300_reorg): New function.
24529         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24530         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24531         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24532         __LIW__ or __NO_LIW__.
24533         * doc/invoke.texi: Describe the -mliw command line option.
24534
24535 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24536
24537         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24538         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24539         pthread_mutex_unlock): Remove.
24540         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24541         * config/pa/t-pa64: Likewise.
24542         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24543         shared libc if not linking against libpthread.
24544         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24545
24546 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24547
24548         PR target/47558
24549         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24550         on 10.6 and later to ensure that we always use the unwinder from
24551         the system.  Only add -no_compact_unwind when tarteting darwin
24552         10.6 or later.
24553
24554 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24555
24556         PR target/46997
24557         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24558         (vec_interleave_lowv2sf): Ditto.
24559         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24560         (vec_extract_oddv2sf): Ditto.
24561
24562 2011-02-07  Mike Stump  <mikestump@comcast.net>
24563
24564         PR target/42333
24565         Add __ieee_divdc3 entry point.
24566         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24567         entry point.
24568         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24569         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24570         * config/darwin.c (darwin_rename_builtins): Add.
24571         * config/darwin-protos.h (darwin_rename_builtins): Add.
24572
24573 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24574
24575         PR target/47636
24576         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24577         for the condition.
24578
24579 2011-02-07  Mike Stump  <mikestump@comcast.net>
24580
24581         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24582
24583 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24584
24585         PR target/47534
24586         * config/avr/libgcc.S (exit): Move .endfunc
24587
24588 2011-02-07  Richard Guenther  <rguenther@suse.de>
24589
24590         PR tree-optimization/47615
24591         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24592         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24593         (run_scc_vn): Initialize it.
24594         (visit_reference_op_load): Use it.
24595         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24596
24597 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24598
24599         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24600         DImode trapping arithmetic libfuncs.
24601
24602 2011-02-07  Richard Guenther  <rguenther@suse.de>
24603
24604         PR tree-optimization/47621
24605         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24606         two duplicates ...
24607         (execute_update_addresses_taken): ... here.  Make it more
24608         conservative in what we accept.
24609
24610 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24611
24612         * config/sparc/freebsd.h (ASM_SPEC): Define.
24613         * config/sparc/vxworks.h (ASM_SPEC): Define.
24614
24615 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24616
24617         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24618
24619 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24620
24621         * doc/invoke.texi: Remove reference to compiler internals from
24622         user documentation.
24623
24624         * reg-notes.def: Remove REG_VALUE_PROFILE.
24625         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24626
24627 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
24628
24629         PR middle-end/47610
24630         * varasm.c (default_section_type_flags): If decl is NULL,
24631         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24632
24633 2011-02-05  Jie Zhang  <jie@codesourcery.com>
24634
24635         PR debug/42631
24636         * web.c (entry_register): Don't clobber the number of the
24637         first uninitialized reference in used[].
24638
24639 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
24640
24641         PR tree-optimization/46194
24642         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24643         (build_classic_dist_vector_1): Do not represent classic distance
24644         vectors when the access functions are variating in different loops.
24645
24646 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24647
24648         * config/mips/iris6.opt: New.
24649         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24650
24651 2011-02-04  Richard Henderson  <rth@redhat.com>
24652             Steve Ellcey  <sje@cup.hp.com>
24653
24654         PR target/46997
24655         * config/ia64/predicates.md (mux1_brcst_element): New.
24656         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24657         * config/ia64/ia64.c (ia64_unpack_assemble): New.
24658         (ia64_unpack_sign): New.
24659         (ia64_expand_unpack): Rewrite using new routines.
24660         (ia64_expand_widen_sum): Ditto.
24661         (ia64_expand_dot_prod_v8qi): Ditto.
24662         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24663         routines, add endian check.
24664         (pmpy2_even): Rename from pmpy2_r, add endian check.
24665         (pmpy2_odd): Rename from pmpy2_l, add endian check.
24666         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24667         (vec_widen_smult_hi_v4hi): Ditto.
24668         (vec_widen_umult_lo_v4hi): Ditto.
24669         (vec_widen_umult_hi_v4hi): Ditto.
24670         (mulv2si3): Change endian checks.
24671         (sdot_prodv4hi): Rewrite with new calls.
24672         (udot_prodv4hi): New.
24673         (vec_pack_ssat_v4hi): Add endian check.
24674         (vec_pack_usat_v4hi): Ditto.
24675         (vec_pack_ssat_v2si): Ditto.
24676         (max1_even): Rename from max1_r, add endian check.
24677         (max1_odd): Rename from max1_l, add endian check.
24678         (*mux1_rev): Format change.
24679         (*mux1_mix): Ditto.
24680         (*mux1_shuf): Ditto.
24681         (*mux1_alt): Ditto.
24682         (*mux1_brcst_v8qi): Use new predicate.
24683         (vec_extract_evenv8qi): Remove endian check.
24684         (vec_extract_oddv8qi): Ditto.
24685         (vec_interleave_lowv4hi): Format change.
24686         (vec_interleave_highv4hi): Ditto.
24687         (mix2_even): Rename from mix2_r, add endian check.
24688         (mix2_odd): Rename from mux2_l, add endian check.
24689         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24690         (vec_extract_evenodd_helper): Format change.
24691         (vec_extract_evenv4hi): Remove endian check.
24692         (vec_extract_oddv4hi): Remove endian check.
24693         (vec_interleave_lowv2si): Format change.
24694         (vec_interleave_highv2si): Format change.
24695         (vec_initv2si): Remove endian check.
24696         (vecinit_v2si): Add endian check.
24697         (reduc_splus_v2sf): Add endian check.
24698         (reduc_smax_v2sf): Ditto.
24699         (reduc_smin_v2sf): Ditto.
24700         (vec_initv2sf): Remove endian check.
24701         (fpack): Add endian check.
24702         (fswap): Add endian check.
24703         (vec_interleave_highv2sf): Add endian check.
24704         (vec_interleave_lowv2sf): Add endian check.
24705         (fmix_lr): Add endian check.
24706         (vec_setv2sf): Format change.
24707         (*vec_extractv2sf_0_be): Use shift to extract operand.
24708         (*vec_extractv2sf_1_be): New.
24709         (vec_pack_trunc_v4hi): Add endian check.
24710         (vec_pack_trunc_v2si): Format change.
24711
24712 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
24713
24714         PR inline-asm/23200
24715         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
24716         do bb, locus and block comparison and disallow loads if it is not set.
24717         (stmt_is_replaceable_p): New function.
24718         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24719         callers.
24720         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24721         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24722         SSA_NAME_DEF_STMT.
24723         * tree-flow.h (stmt_is_replaceable_p): New prototype.
24724
24725 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24726
24727         * config/rs6000/xilinx.opt: New.
24728         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24729
24730 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24731
24732         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24733
24734 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
24735
24736         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24737         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24738         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24739         secondary_reload_info, xtensa_secondary_reload): Remove.
24740         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24741         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24742         (xtensa_preferred_reload_class): Make static. Change return and
24743         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24744         Use CONST_DOUBLE_P predicate.
24745         (xtensa_preferred_output_reload_class): New function.
24746         (xtensa_secondary_reload): Make static.
24747
24748 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
24749
24750         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24751         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24752         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24753
24754 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24755
24756         PR middle-end/31490
24757         * output.h (SECTION_RELRO): Define.
24758         (SECTION_MACH_DEP): Adjust.
24759         (get_variable_section): New prototype.
24760         * varpool.c (varpool_finalize_named_section_flags): New function.
24761         (varpool_assemble_pending_decls): Call it.
24762         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24763         * cgraphunit.c (cgraph_output_in_order): Call
24764         varpool_finalize_named_section_flags.
24765         * varasm.c (get_section): Allow section flags conflicts between
24766         relro and read-only sections if the section hasn't been declared yet.
24767         Set SECTION_OVERRIDE after diagnosing section type conflict.
24768         (get_variable_section): No longer static.
24769         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24770         readonly sections that need relocations.
24771         (decl_readonly_section_1): New function.
24772         (decl_readonly_section): Use it.
24773
24774         Revert:
24775         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
24776                     Steve Ellcey  <sje@cup.hp.com>
24777
24778         PR middle-end/31490
24779         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24780         if section attribute used.
24781
24782 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24783
24784         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24785         * config/darwin.c (SECTION_NO_ANCHOR): Define.
24786         (darwin_init_sections): Remove assertion.
24787
24788 2011-02-03  Nick Clifton  <nickc@redhat.com>
24789
24790         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24791         lt and ge.
24792         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24793         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24794         instead of "n" and "pz".
24795         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24796         CC_FLAG_S.
24797
24798 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24799
24800         PR target/47312
24801         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24802         fma, expand FMA_EXPR as fma{,f,l} call.
24803
24804         PR lto/47274
24805         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24806         copy them into a unsigned char variable and pass address of it to
24807         lto_output_data_stream.
24808
24809         PR target/47564
24810         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24811         around backend_init_target and lang_dependent_init_target calls.
24812         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24813         (verify_cgraph_node): Don't call set_cfun here.  Use
24814         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24815         Set error_found for incorrectly represented calls to thunks.
24816
24817 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24818
24819         PR debug/43092
24820         PR rtl-optimization/43494
24821         * rtl.h (for_each_inc_dec_fn): New type.
24822         (for_each_inc_dec): Declare.
24823         * rtlanal.c (struct for_each_inc_dec_ops): New type.
24824         (for_each_inc_dec_find_inc_dec): New fn.
24825         (for_each_inc_dec_find_mem): New fn.
24826         (for_each_inc_dec): New fn.
24827         * dse.c (struct insn_size): Remove.
24828         (replace_inc_dec, replace_inc_dec_mem): Remove.
24829         (emit_inc_dec_insn_before): New fn.
24830         (check_for_inc_dec): Use it, along with for_each_inc_dec.
24831         (canon_address): Pass mem modes to cselib_lookup.
24832         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
24833         (cselib_lookup_from_insn): Likewise.
24834         (cselib_subst_to_values): Likewise.
24835         * cselib.c (find_slot_memmode): New var.
24836         (cselib_find_slot): New fn.  Use it instead of
24837         htab_find_slot_with_hash everywhere.
24838         (entry_and_rtx_equal_p): Use find_slot_memmode.
24839         (autoinc_split): New fn.
24840         (rtx_equal_for_cselib_p): Rename and implement in terms of...
24841         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
24842         Deal with autoinc.  Special-case recursion into MEMs.
24843         (cselib_hash_rtx): Likewise.
24844         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
24845         address and MEM modes.
24846         (cselib_subst_to_values): Add memmode, pass it on.
24847         Deal with autoinc.
24848         (cselib_lookup): Add memmode argument, pass it on.
24849         (cselib_lookup_from_insn): Add memmode.
24850         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24851         (struct cselib_record_autoinc_data): New.
24852         (cselib_record_autoinc_cb): New fn.
24853         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
24854         mode to cselib_lookup.  Reset autoinced REGs here instead of...
24855         (cselib_process_insn): ... here.
24856         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24857         to cselib_lookup.
24858         (add_uses): Likewise, also to cselib_subst_to_values.
24859         (add_stores): Likewise.
24860         * sched-deps.c (add_insn_mem_dependence): Pass mode to
24861         cselib_subst_to_values.
24862         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
24863         * gcse.c (do_local_cprop): Adjusted.
24864         * postreload.c (reload_cse_simplify_set): Adjusted.
24865         (reload_cse_simplify_operands): Adjusted.
24866         * sel-sched-dump (debug_mem_addr_value): Pass mode.
24867
24868 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24869
24870         PR tree-optimization/45122
24871         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24872         unsafe assumptions when there's more than one loop exit.
24873
24874 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24875
24876         PR target/47272
24877         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24878         Document using vector double with the load/store builtins, and
24879         that the load/store builtins always use Altivec instructions.
24880
24881         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24882         to use altivec memory instructions, even on VSX.
24883         (vector_altivec_store_<mode>): Ditto.
24884
24885         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24886         function.
24887
24888         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24889         V2DF, V2DI support to load/store overloaded builtins.
24890
24891         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24892         altivec load/store builtins for V2DF/V2DI types.
24893
24894         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24895         set avoid indexed addresses on power6 if -maltivec.
24896         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24897         vector_altivec_load/vector_altivec_store builtins.
24898         (altivec_expand_st_builtin): Ditto.
24899         (altivec_expand_builtin): Add VSX memory builtins.
24900         (rs6000_init_builtins): Add V2DI types to internal types.
24901         (altivec_init_builtins): Add support for V2DF/V2DI altivec
24902         load/store builtins.
24903         (rs6000_address_for_altivec): Insure memory address is appropriate
24904         for Altivec.
24905
24906         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24907         vec_vsx_ld and vec_vsx_st.
24908         (vsx_store_<mode>): Ditto.
24909
24910         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
24911         variables to hold long long types for VSX vector memory builtins.
24912         (RS6000_BTI_unsigned_long_long): Ditto.
24913         (long_long_integer_type_internal_node): Ditti.
24914         (long_long_unsigned_type_internal_node): Ditti.
24915
24916         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
24917         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
24918         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
24919
24920         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
24921         short cuts.
24922         (vec_vsx_st): Ditto.
24923
24924 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24925
24926         * config/pa/pa-hpux10.opt: New.
24927         * config/hpux11.opt (pthread): New Driver option.
24928         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
24929         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
24930
24931 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24932
24933         * config/ia64/vms.opt: New.
24934         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
24935
24936 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24937
24938         PR target/47580
24939         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
24940         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
24941         generator functions.
24942         (vsx_floatuns<VSi><mode>2): Ditto.
24943         (vsx_fix_trunc<mode><VSi>2): Ditto.
24944         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
24945
24946 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24947
24948         * config/i386/djgpp.opt (posix): New Driver option.
24949
24950 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24951
24952         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
24953         Move to the unsupported targets list.
24954
24955 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
24956
24957         PR rtl-optimization/47525
24958         * df-scan.c: Update copyright years.
24959         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
24960         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
24961
24962 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24963
24964         * config/i386/sysv4.h (TARGET_VERSION): Remove.
24965         (SUBTARGET_RETURN_IN_MEMORY): Remove.
24966         (ASM_OUTPUT_ASCII): Remove.
24967         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
24968
24969 2011-02-02  Jeff Law  <law@redhat.com>
24970
24971         PR middle-end/47543
24972         * reload.c (find_reloads_address): Handle reg+d address where both
24973         components are invalid by reloading the entire address.
24974
24975 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24976             Richard Guenther  <rguenther@suse.de>
24977
24978         PR tree-optimization/40979
24979         PR bootstrap/47044
24980         * passes.c (init_optimization_passes): After LIM call copy_prop
24981         and DCE to clean up.
24982         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
24983
24984 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24985
24986         PR tree-optimization/47576
24987         PR tree-optimization/47555
24988         * doc/invoke.texi (scev-max-expr-complexity): Documented.
24989         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24990         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
24991         * tree-scalar-evolution.c (follow_ssa_edge): Use
24992         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
24993
24994 2011-02-02  Richard Guenther  <rguenther@suse.de>
24995
24996         PR tree-optimization/47566
24997         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
24998
24999 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25000
25001         PR debug/47106
25002         PR debug/47402
25003         * tree-inline.c (declare_return_variable): Remove unused caller
25004         variable.
25005
25006         PR debug/47106
25007         PR debug/47402
25008         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25009         * cfgexpand.c (account_used_vars_for_block): Use them.
25010         * tree-nrv.c (tree_nrv): Likewise.
25011         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25012         (dump_scope_block): Likewise.
25013         (remove_unused_locals): Likewise.
25014
25015         PR debug/47106
25016         PR debug/47402
25017         * tree-inline.c (declare_return_variable): Add result decl to
25018         local decls only once.
25019         * gimple-low.c (record_vars_into): Mark newly-created variables
25020         as referenced.
25021
25022 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25023
25024         PR debug/47498
25025         PR debug/47501
25026         PR debug/45136
25027         PR debug/45130
25028         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25029         debug insns.
25030         (no_real_insns_p, schedule_block, set_priorities): Drop special
25031         treatment of boundary debug insns.
25032         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25033         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25034         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25035         (BOUNDARY_DEBUG_INSN_P): Likewise.
25036         (SCHEDULE_DEBUG_INSN_P): Likewise.
25037         * sched-rgn.c (init_ready_list): Drop special treatment of
25038         boundary debug insns.
25039         * final.c (rest_of_clean_state): Clear notes' BB.
25040
25041 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25042
25043         * config/openbsd.opt (assert=): New Driver option.
25044
25045 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25046
25047         * config/i386/nto.opt: New.
25048         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25049
25050 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25051
25052         * config/i386/netware.opt: New.
25053         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25054
25055 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25056
25057         * config/interix.opt (posix): New Driver option.
25058
25059 2011-02-01  DJ Delorie  <dj@redhat.com>
25060
25061         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25062
25063         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25064         class for A0/A1.
25065
25066 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25067
25068         PR tree-optimization/47561
25069         * toplev.c (process_options): Print the Graphite flags.  Add
25070         flag_loop_flatten to the list of options requiring Graphite.
25071
25072 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25073
25074         * config/i386/cygming.opt (posix): New Driver option.
25075
25076 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25077
25078         * config/arm/vxworks.opt: New.
25079         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25080
25081 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25082
25083         * config/alpha/elf.opt: New.
25084         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25085         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25086
25087 2011-02-01  Richard Guenther  <rguenther@suse.de>
25088
25089         PR tree-optimization/47559
25090         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25091         store-motion on references that can throw.
25092
25093 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25094
25095         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25096         * tree-pass.h (TDF_CSELIB): New macro.
25097         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25098         cselib_lookup): Check for it rather than for TDF_DETAILS.
25099
25100 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25101
25102         PR driver/47547
25103         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25104         is HOST_BIT_BUCKET.
25105
25106         * opts.c (finish_options): Don't add x_aux_base_name if it is
25107         HOST_BIT_BUCKET.
25108
25109 2011-02-01  Richard Guenther  <rguenther@suse.de>
25110
25111         PR tree-optimization/47555
25112         Revert
25113         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25114
25115         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25116
25117 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25118
25119         PR gcc/46692
25120         * config/lm32/t-lm32: Add multilib for all CPU options.
25121
25122 2011-02-01  Richard Guenther  <rguenther@suse.de>
25123
25124         PR tree-optimization/47541
25125         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25126         sure to have a field at offset zero.
25127
25128 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25129
25130         * config/arc/arc.opt (EB, EL): New Driver options.
25131
25132 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25133
25134         * config/alpha/osf5.opt: New.
25135         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25136
25137 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25138
25139         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25140
25141 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25142
25143         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25144         -floop-interchange.
25145         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25146         is an alias of -floop-interchange and that it requires the
25147         Graphite infrastructure.
25148         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25149         flag_loop_interchange based on the value of flag_tree_loop_linear.
25150
25151 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25152             Richard Guenther  <rguenther@suse.de>
25153
25154         PR tree-optimization/47538
25155         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25156         type instead of r1type, except for comparisons.  For right
25157         shifts and comparisons punt if there are mismatches in
25158         sizetype vs. non-sizetype types.
25159
25160 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25161
25162         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25163         avx_runtime.
25164
25165 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25166
25167         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25168         version number.
25169         * configure: Regenerate.
25170
25171 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25172
25173         * configure.ac (gcc_cv_ld_static_option): Define.
25174         (gcc_cv_ld_dynamic_option): Define.
25175         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25176         instead.
25177         (HAVE_LD_STATIC_DYNAMIC): Update message.
25178         (LD_STATIC_OPTION): Define.
25179         (LD_DYNAMIC_OPTION): Define.
25180         * configure: Regenerate.
25181         * config.in: Regenerate.
25182         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25183         HAVE_LD_STATIC_DYNAMIC]: Use them.
25184
25185 2011-01-31  Nick Clifton  <nickc@redhat.com>
25186
25187         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25188         registers inside interrupt handlers if the handler is not a leaf
25189         function.
25190
25191 2011-01-31  Nick Clifton  <nickc@redhat.com>
25192
25193         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25194         reg_renumber returning an INVALID_REGNUM.
25195
25196 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25197
25198         PR libgcj/44341
25199         * doc/install.texi: Document host options discarded when cross
25200         configuring target libraries.
25201
25202 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25203
25204         Reverted:
25205         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25206         PR debug/45136
25207         PR debug/45130
25208         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25209         debug insns.
25210         (no_real_insns_p, schedule_block, set_priorities): Drop special
25211         treatment of boundary debug insns.
25212         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25213         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25214         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25215         (BOUNDARY_DEBUG_INSN_P): Likewise.
25216         (SCHEDULE_DEBUG_INSN_P): Likewise.
25217         * sched-rgn.c (init_ready_list): Drop special treatment of
25218         boundary debug insns.
25219         * final.c (rest_of_clean-state): Clear notes' BB.
25220
25221 2011-01-31  Alan Modra  <amodra@gmail.com>
25222
25223         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25224         toc relative expressions as we do in print_operand_address.
25225
25226 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25227
25228         * doc/extend.texi: Follow spelling conventions.
25229         * doc/invoke.texi: Fix a typo.
25230
25231 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25232
25233         * config/hpux11.opt: New.
25234         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25235         ia64*-*-hpux*): Use hpux11.opt.
25236
25237 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25238
25239         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25240         to tmake_file.
25241
25242 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25243
25244         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25245         support sites.
25246
25247 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25248
25249         * doc/install.texi (Binaries): Remove outdated reference for
25250         Motorola 68HC11/68HC12 downloads.
25251
25252 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25253
25254         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25255         Drepper's paper.
25256
25257 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
25258
25259         PR bootstrap/47147
25260         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25261         used by NetBSD.
25262
25263 2011-01-28  Ahmad Sharif  <asharif@google.com>
25264
25265         * value-prof.c (check_counter): Corrected error message.
25266
25267 2011-01-29  Jie Zhang  <jie@codesourcery.com>
25268
25269         * config/arm/arm.c (arm_legitimize_reload_address): New.
25270         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25271         arm_legitimize_reload_address.
25272         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25273
25274 2011-01-28  Ian Lance Taylor  <iant@google.com>
25275
25276         * godump.c (go_define): Ignore macros whose definitions include
25277         two adjacent operands.
25278
25279 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
25280
25281         PR target/42894
25282         * varasm.c (force_const_mem): Store copy of x in desc->constant
25283         instead of x itself.
25284         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25285         itself into REG_EQUAL note.
25286
25287 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
25288
25289         * config/freebsd.opt (posix, rdynamic): New Driver options.
25290
25291 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25292
25293         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25294         -Bstatic/-Bdynamic.
25295         * configure: Regenerate.
25296
25297 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25298
25299         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25300         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25301
25302 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25303
25304         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25305         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25306         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25307         (s390_preferred_reload_class): Make static. Change return and
25308         'rclass' argument type to reg_class_t.
25309
25310 2011-01-27  Jan Hubicka  <jh@suse.cz>
25311
25312         PR middle-end/46949
25313         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25314         (process_function_and_variable_attributes): Check defined weakrefs.
25315
25316 2011-01-27  Martin Jambor  <mjambor@suse.cz>
25317
25318         PR tree-optimization/47228
25319         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25320         build_ref_for_offset.
25321
25322 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25323
25324         * config/spu/spu-elf.h (ASM_SPEC): Remove.
25325
25326 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
25327
25328         PR rtl-optimization/46856
25329         * postreload.c (reload_combine_recognize_const_pattern): Do not
25330         separate cc0 setter and user on cc0 targets.
25331
25332 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
25333
25334         PR c/43082
25335         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25336         passed a VOID_TYPE expression, immediately emit an error and
25337         return error_mark_node.
25338
25339 2011-01-26  Jeff Law  <law@redhat.com>
25340
25341         PR rtl-optimization/47464
25342         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25343         rather than may_trap_p as needed.
25344
25345 2011-01-26  DJ Delorie  <dj@redhat.com>
25346
25347         PR rtl-optimization/46878
25348         * combine.c (insn_a_feeds_b): Check for the implicit cc0
25349         setter/user dependency as well.
25350
25351 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25352
25353         PR rtl-optimization/44469
25354         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25355         after removing trivially dead basic blocks.
25356
25357 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25358
25359         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25360         * config/frv/frv.h (LINK_SPEC): Likewise.
25361         * config/i386/netware.h (LINK_SPEC): Likewise.
25362         * config/m68k/linux.h (ASM_SPEC): Likewise.
25363         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25364         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25365         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25366         * config/sparc/linux.h (ASM_SPEC): Likewise.
25367         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25368         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25369
25370 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25371
25372         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25373         * config/frv/frv.h (ASM_SPEC): Likewise.
25374         * config/m68k/linux.h (ASM_SPEC): Likewise.
25375         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25376         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25377         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25378         * config/sparc/linux.h (ASM_SPEC): Likewise.
25379         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25380         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25381
25382 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25383
25384         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25385         * config/frv/frv.h (LINK_SPEC): Likewise.
25386         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25387
25388 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25389
25390         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25391         * config/frv/frv.h (ASM_SPEC): Likewise.
25392         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25393         * config/m68k/linux.h (ASM_SPEC): Likewise.
25394         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25395         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25396         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25397         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25398         * config/sparc/linux.h (ASM_SPEC): Likewise.
25399         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25400         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25401         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25402
25403 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
25404
25405         PR target/46997
25406         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25407         (*mux2): Ditto.
25408         (vec_extract_evenodd_help): Ditto.
25409         (vec_extract_evenv4hi): Ditto.
25410         (vec_extract_oddv4hi): Ditto.
25411         (vec_interleave_lowv2si): Ditto.
25412         (vec_interleave_highv2si): Ditto.
25413         (vec_extract_evenv2si): Ditto.
25414         (vec_extract_oddv2si: Ditto.
25415         (vec_pack_trunc_v2si): Ditto.
25416
25417 2011-01-22  Jan Hubicka  <jh@suse.cz>
25418
25419         PR target/47237
25420         * cgraph.h (cgraph_local_info): New field can_change_signature.
25421         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25422         signature can change.
25423         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25424         can change.
25425         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25426         (cgraph_function_versioning): We can not change signature of functions
25427         that don't allow that.
25428         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25429         (lto_input_node): Likewise.
25430         * ipa-inline.c (compute_inline_parameters): Compute
25431         local.can_change_signature.
25432         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25433         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25434         functions that can not change signature.
25435         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25436         init_cumulative_args): Do not use local calling conventions
25437         for functions that can not change signature.
25438
25439 2011-01-22  Jan Hubicka  <jh@suse.cz>
25440
25441         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25442
25443 2011-01-26  Richard Guenther  <rguenther@suse.de>
25444
25445         PR tree-optimization/47190
25446         * cgraphunit.c (process_common_attributes): New function.
25447         (process_function_and_variable_attributes): Use it.
25448
25449 2011-01-26  Richard Guenther  <rguenther@suse.de>
25450
25451         PR lto/47423
25452         * cgraphbuild.c (record_eh_tables): Record reference to personality
25453         function.
25454
25455 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25456
25457         PR debug/45454
25458         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25459         non-debug insns from moving up.
25460
25461 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25462
25463         PR target/40125
25464         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25465         t-dlldir{,-x} fragment for build and add it to tmake_file.
25466         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25467         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25468         * config/i386/t-dlldir: New file.
25469         (SHLIB_DLLDIR): Define.
25470         * config/i386/t-dlldir-x: New file.
25471         (SHLIB_DLLDIR): Define.
25472         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25473         (SHLIB_INSTALL): Use it.
25474
25475 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25476
25477         PR target/47246
25478         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25479         lower bound of the allowed Thumb-2 coprocessor load/store
25480         index range to -256. Add explaining comment.
25481
25482 2011-01-25  Ian Lance Taylor  <iant@google.com>
25483
25484         * godump.c (go_define): Improve lexing of macro expansion to only
25485         accept expressions which match Go spec.
25486
25487 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25488
25489         PR c++/43601
25490         * tree.c (handle_dll_attribute): Handle it.
25491         * doc/extend.texi (@item dllexport): Mention it.
25492         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25493
25494 2011-01-25  Ian Lance Taylor  <iant@google.com>
25495
25496         PR tree-optimization/26854
25497         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25498         (decl_jump_unsafe): Move higher in file, with no other change.
25499         (bind): Set has_jump_unsafe_decl if appropriate.
25500         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25501         (check_earlier_gotos): Likewise.
25502         (c_check_switch_jump_warnings): Likewise.
25503
25504 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25505
25506         * doc/invoke.texi (Warning Options): Add missing hyphen.
25507         (-fprofile-dir): Minor grammatical fixes.
25508         (-fbranch-probabilities): Likewise.
25509
25510 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25511
25512         PR debug/45136
25513         PR debug/45130
25514         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25515         debug insns.
25516         (no_real_insns_p, schedule_block, set_priorities): Drop special
25517         treatment of boundary debug insns.
25518         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25519         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25520         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25521         (BOUNDARY_DEBUG_INSN_P): Likewise.
25522         (SCHEDULE_DEBUG_INSN_P): Likewise.
25523         * sched-rgn.c (init_ready_list): Drop special treatment of
25524         boundary debug insns.
25525         * final.c (rest_of_clean-state): Clear notes' BB.
25526
25527 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25528
25529         * Makefile.in (LAMBDA_H): Removed.
25530         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25531         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25532         lambda-trans.o, and tree-loop-linear.o.
25533         (lto-symtab.o): Remove dependence on LAMBDA_H.
25534         (tree-loop-linear.o): Remove rule.
25535         (lambda-mat.o): Same.
25536         (lambda-trans.o): Same.
25537         (lambda-code.o): Same.
25538         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25539         (tree-vect-slp.o): Same.
25540         * hwint.h (gcd): Moved here.
25541         (least_common_multiple): Same.
25542         * lambda-code.c: Removed.
25543         * lambda-mat.c: Removed.
25544         * lambda-trans.c: Removed.
25545         * lambda.h: Removed.
25546         * tree-loop-linear.c: Removed.
25547         * lto-symtab.c: Do not include lambda.h.
25548         * omega.c (gcd): Removed.
25549         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25550         * tree-data-ref.c (print_lambda_vector): Moved here.
25551         (lambda_vector_copy): Same.
25552         (lambda_matrix_copy): Same.
25553         (lambda_matrix_id): Same.
25554         (lambda_vector_first_nz): Same.
25555         (lambda_matrix_row_add): Same.
25556         (lambda_matrix_row_exchange): Same.
25557         (lambda_vector_mult_const): Same.
25558         (lambda_vector_negate): Same.
25559         (lambda_matrix_row_negate): Same.
25560         (lambda_vector_equal): Same.
25561         (lambda_matrix_right_hermite): Same.
25562         * tree-data-ref.h: Do not include lambda.h.
25563         (lambda_vector): Moved here.
25564         (lambda_matrix): Same.
25565         (dependence_level): Same.
25566         (lambda_transform_legal_p): Removed declaration.
25567         (lambda_collect_parameters): Same.
25568         (lambda_compute_access_matrices): Same.
25569         (lambda_vector_gcd): Same.
25570         (lambda_vector_new): Same.
25571         (lambda_vector_clear): Same.
25572         (lambda_vector_lexico_pos): Same.
25573         (lambda_vector_zerop): Same.
25574         (lambda_matrix_new): Same.
25575         * tree-flow.h (least_common_multiple): Removed declaration.
25576         * tree-parloops.c (lambda_trans_matrix): Moved here.
25577         (LTM_MATRIX): Same.
25578         (LTM_ROWSIZE): Same.
25579         (LTM_COLSIZE): Same.
25580         (LTM_DENOMINATOR): Same.
25581         (lambda_trans_matrix_new): Same.
25582         (lambda_matrix_vector_mult): Same.
25583         (lambda_transform_legal_p): Same.
25584         * tree-pass.h (pass_linear_transform): Removed declaration.
25585         * tree-ssa-loop.c (tree_linear_transform): Removed.
25586         (gate_tree_linear_transform): Removed.
25587         (pass_linear_transform): Removed.
25588         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25589         flag_loop_interchange.
25590
25591 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25592
25593         PR tree-optimization/47265
25594         PR tree-optimization/47443
25595         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25596         if name still has some uses.
25597
25598 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25599
25600         PR tree-optimization/47382
25601         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25602         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25603
25604 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25605
25606         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25607         sjlj_except_unwind_info.
25608
25609 2011-01-25  Richard Guenther  <rguenther@suse.de>
25610
25611         PR tree-optimization/47426
25612         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25613         visible functions results escape.
25614
25615 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25616
25617         PR target/45701
25618         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25619         (arm_get_frame_offsets): Use it.
25620
25621 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25622             Jakub Jelinek  <jakub@redhat.com>
25623
25624         PR tree-optimization/47271
25625         * tree-if-conv.c (bb_postdominates_preds): New.
25626         (if_convertible_bb_p): Call bb_postdominates_preds.
25627         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25628         (predicate_scalar_phi): Call bb_postdominates_preds.
25629
25630 2011-01-25  Nick Clifton  <nickc@redhat.com>
25631
25632         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25633         * config/rx/rx.c (rx_function_value): Likewise.
25634         (rx_promote_function_mode): Likewise.
25635         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25636         in order to make it legitimate.
25637         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25638         make sure that the first operand is the same as the result register.
25639         (addsi3_unspec): Delete.
25640         (subdi3): Do not accept immediate operands.
25641         (subdi3_internal): Likewise.
25642
25643 2011-01-25  Jeff Law  <law@redhat.com>
25644
25645         PR rtl-optimization/37273
25646         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25647         handle them like argument loads from stack slots.  Do not double
25648         count memory for memory constants and argument loads from stack slots.
25649
25650 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25651
25652         PR tree-optimization/47427
25653         PR tree-optimization/47428
25654         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25655         coalesce if the new root var would be TREE_READONLY.
25656
25657 2011-01-25  Richard Guenther  <rguenther@suse.de>
25658
25659         PR middle-end/47414
25660         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25661         correct type for TBAA.
25662
25663 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25664
25665         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25666         (close_phi_written_to_memory): Call for_each_index with
25667         dr_indices_valid_in_loop.
25668
25669 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25670
25671         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25672         when it is initialized.
25673
25674 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25675
25676         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25677         call to graphite_find_data_references_in_stmt.
25678         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25679         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
25680         call to graphite_find_data_references_in_stmt.
25681         (analyze_drs_in_stmts): Same.
25682         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25683         in which the scalar analysis of indices is performed.
25684         (create_data_ref): Same.  Update call to dr_analyze_indices.
25685         (find_data_references_in_stmt): Update call to create_data_ref.
25686         (graphite_find_data_references_in_stmt): Same.
25687         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25688         declaration.
25689         (create_data_ref): Same.
25690         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25691         call to create_data_ref.
25692
25693 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25694
25695         * graphite-sese-to-poly.c (build_poly_scop): Move
25696         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25697
25698 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25699
25700         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25701         VAR_DECL, PARM_DECL, and RESULT_DECL.
25702
25703 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25704
25705         * graphite-dependences.c (reduction_dr_1): Allow several reductions
25706         in a reduction PBB.
25707         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25708         that have already been marked as PBB_IS_REDUCTION.
25709
25710 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25711
25712         * graphite-scop-detection.c (same_close_phi_node): New.
25713         (remove_duplicate_close_phi): New.
25714         (make_close_phi_nodes_unique): New.
25715         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25716
25717 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25718
25719         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25720         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25721         of both data references to be the same.
25722
25723 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25724
25725         * graphite-dependences.c (build_lexicographical_constraint): Remove
25726         the gdim parameter.
25727         (build_lexicographical_constraint): Adjust call to
25728         ppl_powerset_is_empty.
25729         (dependence_polyhedron): Same.
25730         (graphite_legal_transform_dr): Same.
25731         (graphite_carried_dependence_level_k): Same.
25732         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25733         parameter.
25734         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25735
25736 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25737
25738         * graphite-sese-to-poly.c
25739         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25740         (close_phi_written_to_memory): New.
25741         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25742         and unshare_expr.
25743
25744 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25745
25746         * doc/install.texi: Update the expected version number of PPL to 0.11.
25747         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25748         #if PPL_VERSION_MINOR < 11.
25749
25750 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25751
25752         * graphite-dependences.c: Include graphite-cloog-util.h.
25753         (new_poly_ddr): Inlined into dependence_polyhedron.
25754         (free_poly_ddr): Moved close by new_poly_ddr.
25755         (dependence_polyhedron_1): Renamed dependence_polyhedron.
25756         Early return NULL when ppl_powerset_is_empty returns true.
25757         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
25758         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
25759         (graphite_legal_transform_dr): Call new_poly_ddr.
25760         (graphite_carried_dependence_level_k): Same.
25761         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
25762         (dot_transformed_deps_stmt_1): Removed.
25763         (dot_deps_stmt_1): Call dot_deps_stmt_2.
25764         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
25765         (dot_deps_1): Call dot_deps_2.
25766         * Makefile.in (graphite-dependences.o): Add missing dependence on
25767         graphite-cloog-util.h.
25768
25769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25770
25771         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25772         (build_lexicographical_constraint): Same.
25773         (dependence_polyhedron_1): Same.
25774         (graphite_legal_transform_dr): Same.
25775         (graphite_carried_dependence_level_k): Same.
25776         * graphite-ppl.c (ppl_powerset_is_empty): New.
25777         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25778         * tree-data-ref.c (dump_data_reference): Print the basic block index.
25779
25780 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25781
25782         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25783         the "a followed by b" relation and document it.
25784
25785 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25786
25787         * graphite-dependences.c (build_lexicographical_constraint): Stop the
25788         iteration when the bag of constraints is empty.
25789
25790 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25791
25792         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25793
25794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25795
25796         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25797         nest and two loop depths as parameters.
25798         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25799         lst_perfect_nestify.
25800
25801 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25802
25803         * graphite-dependences.c (print_pddr): Call
25804         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25805
25806 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25807
25808         * graphite-ppl.c (debug_gmp_value): New.
25809         * graphite-ppl.h (debug_gmp_value): Declared.
25810
25811 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
25812
25813         * doc/install.texi: Document availability of cloog-0.16.
25814
25815 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
25816
25817         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25818         invalid postdominance info.
25819
25820 2011-01-24  Jan Hubicka  <jh@suse.cz>
25821
25822         PR c/21659
25823         * doc/extend.texi (weak pragma): Drop claim that it must
25824         appear before definition.
25825         * varasm.c (merge_weak, declare_weak): Only sanity check
25826         that DECL is not output at a time it is declared weak.
25827
25828 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
25829
25830         * machmode.def: Fixed comments.
25831
25832 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
25833
25834         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25835
25836 2011-01-24  Paul Koning  <ni1d@arrl.net>
25837
25838         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25839         WORDS_BIG_ENDIAN.
25840
25841 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25842
25843         PR target/46519
25844         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25845         (block_info): Add scanned and prev.
25846         (move_or_delete_vzeroupper_2): Return if the basic block
25847         has been scanned and the upper 128bit state is unchanged
25848         from the last scan.
25849         (move_or_delete_vzeroupper_1): Return true if the exit
25850         state is changed.
25851         (move_or_delete_vzeroupper): Visit basic blocks using the
25852         work-list based algorithm based on vt_find_locations in
25853         var-tracking.c.
25854
25855         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25856
25857 2011-01-24  Nick Clifton  <nickc@redhat.com>
25858
25859         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25860         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25861         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
25862         then define __v850e1__.
25863         * doc/invoke.texi: Document -mv850es.
25864
25865 2011-01-24  Richard Henderson  <rth@redhat.com>
25866
25867         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25868         compound unordered comparisons.
25869         * config/rx/rx.c (rx_split_fp_compare): Remove.
25870         * config/rx/rx-protos.h: Update.
25871         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25872         (cbranchsf4): Don't call rx_split_fp_compare.
25873         (*cbranchsf4): Use rx_split_cbranch.
25874         (*cmpsf): Don't accept "i" constraint.
25875         (*conditional_branch): Only valid after reload.
25876         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
25877
25878 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25879
25880         PR target/47385
25881         * config/rs6000/altivec.md (vector constant splitters): Add
25882         support for creating vector single precision constants if -mvsx is
25883         used and we would create the constant using Altivec primitives.
25884
25885 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
25886             Richard Sandiford  <rdsandiford@googlemail.com>
25887
25888         PR rtl-optimization/47166
25889         * reload1.c (emit_reload_insns): Disable the spill_reg_store
25890         mechanism for PRE_MODIFY and POST_MODIFY.
25891         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25892         reloadreg.
25893
25894 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
25895
25896         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25897
25898 2011-01-22  Jan Hubicka  <jh@suse.cz>
25899
25900         PR lto/47333
25901         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25902
25903 2011-01-22  Jan Hubicka  <jh@suse.cz>
25904
25905         PR tree-optimization/43884
25906         PR lto/44334
25907         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25908         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
25909
25910 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
25911
25912         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25913         * config/s390/s390.c (s390_register_move_cost,
25914         s390_memory_move_cost): New.
25915         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
25916
25917 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25918
25919         PR middle-end/47401
25920         * except.c (sjlj_assign_call_site_values): Move setting the
25921         crtl->uses_eh_lsda flag to ...
25922         (sjlj_mark_call_sites): ... here.
25923         (sjlj_emit_function_enter): Support NULL dispatch label.
25924         (sjlj_build_landing_pads): In a function with no landing pads
25925         that still has must-not-throw regions, generate code to register
25926         a personality function with empty LSDA.
25927
25928 2011-01-21  Richard Henderson  <rth@redhat.com>
25929
25930         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
25931
25932         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
25933
25934         * compare-elim.c: New file.
25935         * Makefile.in (OBJS-common): Add it.
25936         (compare-elim.o): New.
25937         * common.opt (fcompare-elim): New.
25938         * opts.c (default_options_table): Add OPT_fcompare_elim.
25939         * tree-pass.h (pass_compare_elim_after_reload): New.
25940         * passes.c (init_optimization_passes): Add it.
25941         * recog.h: Protect against re-inclusion.
25942         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
25943         * doc/invoke.texi (-fcompare-elim): Document it.
25944         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
25945         * doc/tm.texi: Rebuild.
25946
25947 2011-01-22  Nick Clifton  <nickc@redhat.com>
25948
25949         * config/rx/rx.md (cstoresf4): Pass comparison operator to
25950         rx_split_fp_compare.
25951
25952 2011-01-22  Nick Clifton  <nickc@redhat.com>
25953
25954         * config/rx/rx.md (UNSPEC_CONST): New.
25955         (deallocate_and_return): Wrap the amount popped off the stack in
25956         an UNSPEC_CONST in order to stop it being rejected by
25957         -mmax-constant-size.
25958         (pop_and_return): Add a "(return)" rtx.
25959         (call): Drop the immediate operand.
25960         (call_internal): Likewise.
25961         (call_value): Likewise.
25962         (call_value_internal): Likewise.
25963         (sibcall_internal): Likewise.
25964         (sibcall_value_internal): Likewise.
25965         (sibcall): Likewise.  Generate an explicit call using
25966         sibcall_internal.
25967         (sibcall_value): Likewise.
25968         (mov<>): FAIL if a constant operand is not legitimate.
25969         (addsi3_unpsec): New pattern.
25970
25971         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
25972         (ok_for_max_constant): New function.
25973         (gen_safe_add): New function.
25974         (rx_expand_prologue): Use gen_safe_add.
25975         (rx_expand_epilogue): Likewise.
25976         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
25977         UNSPEC CONSTs.
25978
25979 2011-01-21  Jeff Law  <law@redhat.com>
25980
25981         PR tree-optimization/47053
25982         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
25983         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
25984         statements are deleted.
25985         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
25986         is nonempty, then purge dead edges and cleanup the CFG.
25987
25988 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25989
25990         PR debug/47402
25991         Temporarily revert:
25992         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25993         PR debug/47106
25994         * tree-dfa.c (create_var_ann): Mark variable as used.
25995
25996 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25997
25998         PR middle-end/45566
25999         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26000         notes from other section in hot/cold partitioning even if
26001         last_action is -3.  Increment call_site_base.
26002
26003         PR rtl-optimization/47366
26004         * fwprop.c (forward_propagate_into): Return bool.  If
26005         any changes are made, -fnon-call-exceptions is used and
26006         REG_EH_REGION note is present, call purge_dead_edges
26007         and return true if it purged anything.
26008         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26009         any EH edges were purged.
26010
26011 2011-01-21  Jeff Law  <law@redhat.com>
26012
26013         PR rtl-optimization/41619
26014         * caller-save.c (setup_save_areas): Break out code to determine
26015         which hard regs are live across calls by examining the reload chains
26016         so that it is always used.
26017         Eliminate code which checked REG_N_CALLS_CROSSED.
26018
26019 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26020
26021         PR tree-optimization/47355
26022         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26023         NOP has non-debug uses beyond PHIs in new_bb.
26024
26025 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26026
26027         PR debug/47106
26028         * cfgexpand.c (account_used_vars_for_block): Only account vars
26029         that are annotated as used.
26030         (estimated_stack_frame_size): Don't set TREE_USED.
26031         * tree-dfa.c (create_var_ann): Mark variable as used.
26032
26033 2011-01-21  Richard Guenther  <rguenther@suse.de>
26034
26035         PR middle-end/47395
26036         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26037
26038 2011-01-21  Richard Guenther  <rguenther@suse.de>
26039
26040         PR tree-optimization/47365
26041         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26042         (vn_reference_lookup_pieces): Adjust.
26043         (vn_reference_lookup): Likewise.
26044         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26045         (vn_reference_lookup_3): Only look through kills if in
26046         VN_WALKREWRITE mode.
26047         (vn_reference_lookup_pieces): Adjust.
26048         (vn_reference_lookup): Likewise.
26049         (visit_reference_op_load): Likewise.
26050         (visit_reference_op_store): Likewise.
26051         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26052         (compute_avail): Likewise.
26053         (eliminate): Likewise.
26054
26055 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26056
26057         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26058         DECL_IGNORED_P non-reg vars if they are used.
26059
26060         PR tree-optimization/47391
26061         * varpool.c (const_value_known_p): Return false if
26062         decl is volatile.
26063
26064 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26065
26066         PR bootstrap/47215
26067         * config/i386/i386.c (ix86_local_alignment): Handle
26068         case for va_list_type_node is nil.
26069         (ix86_canonical_va_list_type): Likewise.
26070
26071 2011-01-21  Alan Modra  <amodra@gmail.com>
26072
26073         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26074         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26075
26076 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26077
26078         * config/arm/arm.md (define_attr type): Rename f_load
26079         and f_store to f_fpa_load and f_fpa_store. Update.
26080         (write_conflict): Deal with rename fallout.
26081         (*push_fp_multi): Likewise.
26082         * config/arm/fpa.md (f_load): Use f_fpa_load.
26083         (f_store): Use f_fpa_store.
26084         (*movsf_fpa): Likewise.
26085         (*movdf_fpa): Likewise.
26086         (*movxf_fpa): Likewise.
26087         (*thumb2_movsf_fpa): Likewise.
26088         (*thumb2_movdf_fpa): Likewise.
26089         (*thumb2_movxf_fpa): Likewise.
26090         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26091         f_loadd and f_stored.
26092         (*thumb2_movdi_vfp): Likewise.
26093         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26094         (*thumb2_movsi_vfp): Likewise.
26095         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26096         Use f_loads instead of f_load.
26097         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26098
26099 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26100
26101         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26102         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26103         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26104         (xtensa_mode_dependent_address_p): New function.
26105         (constantpool_address_p): Make static. Change return type to bool.
26106         Change argument type to const_rtx. Use CONST_INT_P predicate.
26107
26108 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26109
26110         PR debug/46583
26111         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26112
26113 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26114
26115         PR debug/47283
26116         * cfgexpand.c (expand_debug_expr): Instead of generating
26117         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26118         etc. handling.
26119
26120 2011-01-20  Richard Guenther  <rguenther@suse.de>
26121
26122         PR middle-end/47370
26123         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26124         the pointer operand of MEM_REFs.
26125
26126 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26127
26128         PR tree-optimization/46130
26129         * ipa-split.c (consider_split): If return_bb contains non-virtual
26130         PHIs other than for retval or if split_function would not adjust it,
26131         refuse to split.
26132
26133 2011-01-20  Richard Guenther  <rguenther@suse.de>
26134
26135         PR tree-optimization/47167
26136         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26137         Revert previous change, only avoid enumeral type changes.
26138
26139 2011-01-19  Mike Stump  <mikestump@comcast.net>
26140
26141         * doc/tm.texi.in (BRANCH_COST): Englishify.
26142         * doc/tm.texi (BRANCH_COST): Likewise.
26143
26144 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26145
26146         PR c++/47291
26147         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26148         (gen_scheduled_generic_parms_dies): New functions.
26149         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26150         generation for the end of CU compilation.
26151         (dwarf2out_finish): Generate template parameters DIEs here.
26152
26153 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26154
26155         PR debug/46240
26156         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26157         debug bind stmt on merge edges.
26158
26159 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26160
26161         PR debug/47079
26162         PR debug/46724
26163         * function.c (instantiate_expr): Instantiate incoming rtl of
26164         implicit arguments, and recurse on VALUE_EXPRs.
26165         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26166         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26167
26168 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26169
26170         * c-parser.c (c_parser_for_statement): Initialize
26171         collection_expression.
26172
26173 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26174
26175         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26176
26177 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26178
26179         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26180         (LINK_SHLIB_SPEC): Don't use %(link_path).
26181         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26182
26183 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26184
26185         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26186         (NO_SHARED_LIB_SUPPORT): Remove.
26187         (LINK_SHLIB_SPEC): Remove one conditional definition.
26188
26189 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26190
26191         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26192         %{call_shared}.
26193         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26194         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26195         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26196         %{call_shared} and conditionals on these options not being passed.
26197         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26198         %{call_shared}.
26199
26200 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26201
26202         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26203         simplify.
26204
26205         * ipa-split.c: Spelling fixes.
26206
26207 2011-01-19  Richard Henderson  <rth@redhat.com>
26208
26209         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26210         (*mulsi3): Likewise.
26211
26212         * longlong.h [__mn10300__] (count_leading_zeros): New.
26213         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26214         [__mn10300__] (add_ssaaaa, subddmmss): New.
26215         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26216         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26217
26218 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26219
26220         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26221
26222 2011-01-19  Richard Henderson  <rth@redhat.com>
26223
26224         * config/mn10300/mn10300.md (addsi3_flags): New.
26225         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26226         (subsi3_flags, subc_internal, subdi3): New.
26227         (subdi3_internal, *subdi3_degenerate): New.
26228         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26229
26230         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26231         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26232         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26233         * config/mn10300/mn10300-protos.h: Update.
26234         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26235         (return_ret): Likewise.  Rename from return_internal_regs.
26236         (return_internal): Remove.
26237
26238         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26239         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26240         (mn10300_legitimate_constant_p): Likewise.
26241         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26242         (mn10300_frame_size): New.
26243         (mn10300_expand_prologue): Use it.
26244         (mn10300_expand_epilogue): Likewise.
26245         (mn10300_initial_offset): Likewise.
26246         * config/mn10300/mn10300-protos.h: Update.
26247         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26248         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26249         (prologue, epilogue, return_internal): Tidy output code.
26250         (mn10300_store_multiple_operation, return): Likewise.
26251         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26252         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26253         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26254         (load_pic, am33_load_pic): New.
26255         (mn10300_load_pic0, mn10300_load_pic1): New.
26256
26257         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26258         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26259         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26260         (cc_flags_for_mode, cc_flags_for_code): New.
26261         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26262         overflow flag is not valid.  Validate that the flags we need
26263         for the comparison are valid.
26264         (mn10300_output_cmp): Remove.
26265         (mn10300_output_add): New.
26266         (mn10300_select_cc_mode): Use cc_flags_for_code.
26267         (mn10300_split_cbranch): New.
26268         (mn10300_match_ccmode): New.
26269         (mn10300_split_and_operand_count): New.
26270         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26271         to the function.
26272         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26273         (addsi3): ... here.  Use mn10300_output_add.
26274         (*addsi3_flags): New.
26275         (*am33_subsi3, *mn10300_subsi3): Merge...
26276         (subsi3): ... here.  Use attribute isa.
26277         (*subsi3_flags): New.
26278         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
26279         when possible.
26280         (*am33_andsi3, *mn10300_andsi3): Merge...
26281         (andsi3): ... here.
26282         (*andsi3_flags): New.
26283         (andsi3 splitters): New.
26284         (*am33_iorsi3, *mn10300_iorsi3): Merge...
26285         (iorsi3): ... here.
26286         (*iorsi3_flags): New.
26287         (*am33_xorsi3, *mn10300_xorsi3): Merge...
26288         (xorsi3): ... here.
26289         (*xorsi3_flags): New.
26290         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26291         (one_cmplsi2): ... here.
26292         (*one_cmplsi2_flags): New.
26293         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
26294         instead of "dax" in constraints.  Use mn10300_split_cbranch.
26295         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
26296         use matching constraints to eliminate a self-comparison.
26297         (*integer_conditional_branch): Rename from integer_conditional_branch.
26298         Use int_mode_flags to match CC_REG.
26299         (*cbranchsi4_btst, *btstsi): New.
26300         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26301         mn10300_split_cbranch.
26302         (*am33_cmpsf): Rename from am33_cmpsf.
26303         (*float_conditional_branch): Rename from float_conditional_branch.
26304         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26305         (zero_extendqisi2): ... here.
26306         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26307         (zero_extendhisi2): ... here.
26308         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26309         (extendqisi2): ... here.
26310         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26311         (extendhisi2): ... here.
26312         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26313         (ashlsi3): ... here.
26314         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26315         (lshrsi3): ... here.
26316         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26317         (ashrsi3): ... here.
26318         (consecutive add peephole): Remove.
26319         * config/mn10300/predicates.md (label_ref_operand): New.
26320         (int_mode_flags): New.
26321         (CCZN_comparison_operator): New.
26322
26323         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26324         (throughput_42_latency_43): New reservation.
26325         (mulsidi3, umulsidi3): New expanders.
26326         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
26327         the MDR register to allocation; separately allocate the low and
26328         high parts of the DImode result.
26329         (umulsidi3_internal): Similarly.
26330         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26331         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
26332         (udivsi3, umodsi3): Remove.
26333         (udivmodsi4, divmodsi4): New expanders.
26334         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
26335         (*divmodsi4): Simiarly.
26336         (ext_internal): New.
26337
26338         * config/mn10300/constraints.md ("z"): New constraint.
26339         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26340         (FIXED_REGISTERS): Don't fix MDR.
26341         (CALL_USED_REGSITERS): Reformat nicely.
26342         (REG_ALLOC_ORDER): Add MDR.
26343         (enum regclass): Add MDR_REGS.
26344         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26345         (IRA_COVER_CLASSES): Add MDR_REGS.
26346         (REGNO_REG_CLASS): Handle MDR_REG.
26347         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26348         (mn10300_register_move_cost): Likewise.
26349         * config/mn10300/mn10300.md (MDR_REG): New.
26350         (*movsi_internal): Handle moves to/from MDR_REGS.
26351
26352         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26353         POST_MODIFY.
26354         (mn10300_secondary_reload): Tidy combination reload classes.
26355         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26356         addresses for AM33.  Allow symbolic offsets for reg+imm.
26357         (mn10300_regno_in_class_p): New.
26358         (mn10300_legitimize_reload_address): New.
26359         * config/mn10300/mn10300.h (enum reg_class): Remove
26360         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26361         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
26362         SP_OR_GENERAL_REGS.
26363         (REG_CLASS_NAMES): Update to match.
26364         (REG_CLASS_CONTENTS): Likewise.
26365         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26366         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26367         (REGNO_IN_RANGE_P): Remove.
26368         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26369         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26370         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26371         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26372         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26373         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26374         (REGNO_GENERAL_P): New.
26375         (HAVE_POST_MODIFY_DISP): New.
26376         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26377         (LEGITIMIZE_RELOAD_ADDRESS): New.
26378         * config/mn10300/mn10300-protos.h: Update.
26379
26380         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26381         DATA_REGS for AM33 stack-pointer destination.
26382         (mn10300_preferred_output_reload_class): Likewise.
26383         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26384         into a form appropriate for ...
26385         (TARGET_SECONDARY_RELOAD): New.
26386         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26387         * config/mn10300/mn10300-protos.h: Update.
26388         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26389         reload_insi; use the "A" constraint for the scratch; handle AM33
26390         moves of sp to non-address registers.
26391
26392         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26393         (*movqi_internal): ... here.
26394         (*am33_movhi, *mn10300_movhi): Merge into...
26395         (*movhi_internal): ... here.
26396         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
26397         as the source/destination of moves from/to SP.
26398         (movsf): Only allow for AM33-2.
26399         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26400         any integer constant constraint.  Only allow for AM33-2.  Tidy
26401         all of the alternative outputs.
26402         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26403         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
26404         for MN103.
26405         (udivsi3, umodsi3): New patterns for MN103 only.
26406
26407 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
26408
26409         * doc/tm.texi.in: Spell out that a lack of register class unions
26410         can lead to ICEs.
26411         * doc/tm.texi: Regenerate.
26412
26413 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26414
26415         PR rtl-optimization/47337
26416         * dce.c (check_argument_store): New function.
26417         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26418
26419         PR tree-optimization/47290
26420         * tree-eh.c (infinite_empty_loop_p): New function.
26421         (cleanup_empty_eh): Use it.
26422
26423 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26424
26425         PR target/46997
26426         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26427         (a64_expand_widen_sum): Ditto.
26428         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26429         (vec_extract_evenodd_help): Ditto.
26430         (vec_extract_evenv4hi): Ditto.
26431         (vec_extract_oddv4hi): Ditto.
26432         (vec_extract_evenv2si): Ditto.
26433         (vec_extract_oddv2si): Ditto.
26434         (vec_extract_evenv2sf): Ditto.
26435         (vec_extract_oddv2sf): Ditto.
26436         (vec_pack_trunc_v4hi: Ditto.
26437         (vec_pack_trunc_v2si): Ditto.
26438         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26439         (vec_interleave_highv8qi): Ditto.
26440         (mix1_r): Ditto.
26441         (vec_extract_oddv8qi): Ditto.
26442         (vec_interleave_lowv4hi): Ditto.
26443         (vec_interleave_highv4hi): Ditto.
26444         (vec_interleave_lowv2si): Ditto.
26445         (vec_interleave_highv2si): Ditto.
26446
26447 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26448
26449         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26450         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26451         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26452         (pa_c_mode_for_suffix): New.
26453         (TARGET_EXPAND_BUILTIN): Define.
26454         (TARGET_C_MODE_FOR_SUFFIX): Define.
26455         (pa_builtins): Define.
26456         (pa_init_builtins): Register __float128 type and init new support
26457         builtins.
26458         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26459         * config/pa/quadlib.c (_U_Qfcopysign): New.
26460
26461 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26462
26463         PR middle-end/46894
26464         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26465         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26466         are defined.
26467
26468 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26469
26470         PR tree-optimization/47179
26471         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26472         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26473
26474 2011-01-18  Richard Guenther  <rguenther@suse.de>
26475
26476         PR rtl-optimization/47216
26477         * emit-rtl.c: Include tree-flow.h.
26478         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26479         of replicating it with different semantics.
26480         * Makefile.in (emit-rtl.o): Adjust.
26481
26482 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26483
26484         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26485         (cortex_a9_dp): Handle neon types correctly.
26486
26487 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26488
26489         PR rtl-optimization/47299
26490         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26491         subtarget.  Use normal multiplication if both operands are constants.
26492         * expmed.c (expand_widening_mult): Don't try to optimize constant
26493         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26494         before using it.
26495
26496 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26497
26498         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26499         spacing after 'e.g.', typos, comma, hyphenation.
26500
26501 2011-01-17  Richard Henderson  <rth@redhat.com>
26502
26503         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26504         (rx_restricted_mem_operand): New.
26505         (rx_shift_operand): Use register_operand.
26506         (rx_source_operand, rx_compare_operand): Likewise.
26507         * config/rx/rx.md (addsi3_flags): New expander.
26508         (adddi3): Rewrite as expander.
26509         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26510         (subsi3_flags): New expander.
26511         (subdi3): Rewrite as expander.
26512         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26513
26514         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26515         (rx_init_builtins): Remove sat builtin.
26516         (rx_expand_builtin): Likewise.
26517         * config/rx/rx.md (ssaddsi3): New.
26518         (*sat): Rename from sat.  Represent the CC_REG input.
26519
26520         * config/rx/predicates.md (rshift_operator): New.
26521         * config/rx/rx.c (rx_expand_insv): Remove.
26522         * config/rx/rx-protos.h: Update.
26523         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26524         operand to the canonical position.
26525         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26526         (*bitclr, *bitclr_in_memory): Similarly.
26527         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26528         (insv): Retain the zero_extract in the expansion.
26529
26530         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26531         (bswaphi2, bitinvert, revw): Likewise.
26532
26533         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26534         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26535         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26536         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26537         (bitset, bitset_in_memory): Likewise.
26538         (bitinvert, bitinvert_in_memory): Likewise.
26539         (bitclr, bitclr_in_memory): Likewise.
26540         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26541         (rx_strend, rx_cmpstrn): Likewise.
26542         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26543         (bitop peep2 patterns): Remove.
26544
26545         * config/rx/rx.c (rx_match_ccmode): New.
26546         * config/rx/rx-protos.h: Update.
26547         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26548         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26549         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26550         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26551         (fix_truncsfsi2, floatsisf2): Likewise.
26552         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26553         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26554         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26555         (*subsi3_flags, *xorsi3_flags): New.
26556
26557         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26558
26559         * config/rx/rx.c (rx_print_operand): Remove workaround for
26560         unsplit comparison operations.
26561
26562         * config/rx/rx.md (movsicc): Split after reload.
26563         (*movsicc): Merge *movsieq and *movsine via match_operator.
26564         (*stcc): New pattern.
26565
26566         * config/rx/rx.c (rx_float_compare_mode): Remove.
26567         * config/rx/rx.h (rx_float_compare_mode): Remove.
26568         * config/rx/rx.md (cstoresi4): Split after reload.
26569         (*sccc): New pattern.
26570
26571         * config/rx/predicates.md (label_ref_operand): New.
26572         (rx_z_comparison_operator): New.
26573         (rx_zs_comparison_operator): New.
26574         (rx_fp_comparison_operator): New.
26575         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26576         Validate that the flags are set properly for the comparison.
26577         (rx_gen_cond_branch_template): Remove.
26578         (rx_cc_modes_compatible): Remove.
26579         (mode_from_flags): New.
26580         (flags_from_code): Rename from flags_needed_for_conditional.
26581         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26582         (rx_select_cc_mode): Likewise.
26583         (rx_split_fp_compare): New.
26584         (rx_split_cbranch): New.
26585         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26586         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26587         (*cbranchsf4): Similarly.
26588         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26589         match_operator and rx_split_cbranch.
26590         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26591         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26592         (*cmpsi): Rename from cmpsi.
26593         (*tstsi): Rename from tstsi.
26594         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26595         (*conditional_branch): Rename from conditional_branch.
26596         (*reveresed_conditional_branch): Remove.
26597         (b<code>): Remove expander.
26598         * config/rx/rx-protos.h: Update.
26599
26600         * config/rx/rx.c (rx_compare_redundant): Remove.
26601         * config/rx/rx.md (cmpsi): Don't use it.
26602         * config/rx/rx-protos.h: Update.
26603
26604         * config/rx/rx-modes.def (CC_F): New mode.
26605         * config/rx/rx.c (rx_select_cc_mode): New.
26606         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26607         * config/rx/rx-protos.h: Update.
26608
26609 2011-01-17  Richard Henderson  <rth@redhat.com>
26610
26611         * except.c (dump_eh_tree): Fix stray ; after for statement.
26612
26613 2011-01-17  Richard Guenther  <rguenther@suse.de>
26614
26615         PR tree-optimization/47313
26616         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26617         handling before copying the body.  Properly deal with
26618         by-reference result in SSA form.
26619
26620 2011-01-17  Ian Lance Taylor  <iant@google.com>
26621
26622         PR target/47219
26623         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26624         (struct_value_alias_set): Don't define.
26625         (sparc_option_override): Don't set sparc_sr_alias_set and
26626         struct_value_alias_set.
26627         (save_or_restore_regs): Use gen_frame_mem rather than calling
26628         set_mem_alias_set.
26629         (sparc_struct_value_rtx): Likewise.
26630
26631 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
26632
26633         PR target/47318
26634         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26635         (_mm_maskstore_pd): Likewise.
26636         (_mm_maskload_ps): Likewise.
26637         (_mm_maskstore_ps): Likewise.
26638         (_mm256_maskload_pd): Change mask to __m256i.
26639         (_mm256_maskstore_pd): Likewise.
26640         (_mm256_maskload_ps): Likewise.
26641         (_mm256_maskstore_ps): Likewise.
26642
26643         * config/i386/i386-builtin-types.def: Updated.
26644         (ix86_expand_special_args_builtin): Likewise.
26645
26646         * config/i386/i386.c (bdesc_special_args): Update
26647         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26648         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26649         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26650         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26651
26652         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26653         Use <avxpermvecmode> on mask register.
26654         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26655
26656 2011-01-17  Olivier Hainque  <hainque@adacore.com>
26657             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26658             Eric Botcazou  <ebotcazou@adacore.com>
26659
26660         PR target/46655
26661         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26662         if <= USHRT_MAX in 32-bit mode.
26663
26664 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26665
26666         * doc/install.texi (Configuration, Specific): Wrap long
26667         lines in examples.  Allow line wrapping in long options
26668         and URLs where beneficial for PDF output.
26669
26670 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
26671
26672         * config/mips/mips.c (mips_classify_symbol): Don't return
26673         SYMBOL_PC_RELATIVE for nonlocal labels.
26674
26675 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26676
26677         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26678
26679 2011-01-15  Jan Hubicka  <jh@suse.cz>
26680
26681         PR tree-optimization/47276
26682         * ipa.c (function_and_variable_visibility): Do not try to mark alias
26683         declarations as needed.
26684
26685 2011-01-15  Martin Jambor  <mjambor@suse.cz>
26686
26687         * common.opt (fdevirtualize): New flag.
26688         * doc/invoke.texi (Option Summary): Document it.
26689         * opts.c (default_options_table): Add devirtualize flag.
26690         * ipa-prop.c (detect_type_change): Return immediately if
26691         devirtualize flag is not set.
26692         (detect_type_change_ssa): Likewise.
26693         (compute_known_type_jump_func): Likewise.
26694         (ipa_analyze_virtual_call_uses): Likewise.
26695
26696 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26697
26698         PR tree-optimization/45934
26699         PR tree-optimization/46302
26700         * ipa-prop.c (type_change_info): New type.
26701         (stmt_may_be_vtbl_ptr_store): New function.
26702         (check_stmt_for_type_change): Likewise.
26703         (detect_type_change): Likewise.
26704         (detect_type_change_ssa): Likewise.
26705         (compute_complex_assign_jump_func): Check for dynamic type change.
26706         (compute_complex_ancestor_jump_func): Likewise.
26707         (compute_known_type_jump_func): Likewise.
26708         (compute_scalar_jump_functions): Likewise.
26709         (ipa_analyze_virtual_call_uses): Likewise.
26710         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26711
26712 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26713
26714         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26715         * config/i386/i386.opt (msse5): New Alias.
26716
26717 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26718
26719         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26720         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26721         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26722         * config/sparc/sparc.h (CC1_SPEC): Likewise.
26723
26724 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26725
26726         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26727         -mcpu options.
26728         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26729         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26730         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26731         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26732         Likewise.
26733         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26734
26735 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26736
26737         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26738
26739 2011-01-14  Mike Stump  <mikestump@comcast.net>
26740
26741         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26742         * config/fr30/fr30.md: Likweise
26743         (movsi_push): Likewise.
26744         (movsi_pop): Likewise.
26745         (enter_func): Likewise.
26746         * config/moxie/moxie.md (movsi_push): Likewise.
26747         (movsi_pop): Likewise.
26748
26749 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26750
26751         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26752         %{no_archive} %{exact_version}.
26753         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26754         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26755         %{no_archive} %{exact_version}.
26756         * config/mips/openbsd.h (LINK_SPEC): Likewise.
26757         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26758         * config/mips/vxworks.h: Likewise.
26759
26760 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26761
26762         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26763
26764 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26765
26766         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26767         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26768
26769 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26770
26771         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26772         -nodefaultlib.
26773
26774 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26775
26776         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26777         for mcpu not cpu.
26778         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26779         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26780         not cpu.
26781         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26782         Don't handle -shlib.
26783
26784 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26785
26786         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26787         (CC1_SPEC): Don't handle -profile.
26788
26789 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26790
26791         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26792         * config/mips/mips.h (CC1_SPEC): Likewise.
26793
26794 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26795
26796         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26797         * config/mips/mips.h (CC1_SPEC): Likewise.
26798
26799 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26800
26801         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26802         * config/m32r/linux.h (LINK_SPEC): Likewise.
26803         * config/mips/linux.h (LINK_SPEC): Likewise.
26804         * config/mips/linux64.h (LINK_SPEC): Likewise.
26805         * config/sparc/linux.h (LINK_SPEC): Likewise.
26806         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26807         LINK_SPEC): Likewise.
26808         * config/xtensa/linux.h (LINK_SPEC): Likewise.
26809
26810 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26811
26812         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26813         %{version:-v}.
26814         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26815
26816 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26817
26818         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26819         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26820
26821 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26822
26823         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26824
26825 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26826
26827         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26828         supports -Bstatic/-Bdynamic.
26829         * configure: Regenerate.
26830
26831 2011-01-14  Jan Hubicka  <jh@suse.cz>
26832             Jack Howarth  <howarth@bromo.med.uc.edu>
26833
26834         PR target/46037
26835         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26836         when checking debug_info_level. Test write_symbols instead of
26837         debug_hooks->var_location when setting flag_var_tracking_uninit.
26838
26839 2011-01-14  Richard Guenther  <rguenther@suse.de>
26840
26841         PR tree-optimization/47179
26842         * target.def (ref_may_alias_errno): New target hook.
26843         * targhooks.h (default_ref_may_alias_errno): Declare.
26844         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26845         (default_ref_may_alias_errno): New function.
26846         * target.h (struct ao_ref_s): Declare.
26847         * tree-ssa-alias.c: Include target.h.
26848         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26849         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26850         (targhooks.o): Likewise.
26851         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26852         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26853
26854 2011-01-14  Richard Guenther  <rguenther@suse.de>
26855
26856         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
26857
26858 2011-01-14  Richard Guenther  <rguenther@suse.de>
26859
26860         PR tree-optimization/47280
26861         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26862         return CFG changes.
26863         (tree_ssa_forward_propagate_single_use_vars): Deal with
26864         CFG changes from associate_plusminus.
26865
26866 2011-01-14  Richard Guenther  <rguenther@suse.de>
26867
26868         PR middle-end/47281
26869         Revert
26870         2011-01-11  Richard Guenther  <rguenther@suse.de>
26871
26872         PR tree-optimization/46076
26873         * tree-ssa.c (useless_type_conversion_p): Conversions from
26874         unprototyped to empty argument list function types are useless.
26875
26876 2011-01-14  Richard Guenther  <rguenther@suse.de>
26877
26878         PR tree-optimization/47286
26879         * tree-ssa-structalias.c (new_var_info): Register variables are global.
26880
26881 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26882
26883         PR middle-end/46823
26884         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26885
26886 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
26887
26888         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26889         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26890         * config/xtensa/xtensa.c (xtensa_libcall_value,
26891         xtensa_function_value_regno_p): New functions.
26892         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26893
26894 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
26895
26896         PR c++/47213
26897         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26898         PE specific hook.
26899         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26900         New function prototype.
26901         * config/i386/winnt.c (i386_pe_assemble_visibility):
26902         Warn only if attribute was specified by user.
26903
26904 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26905
26906         PR target/47251
26907         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26908         floating point.
26909         (floatunsdidf2_fcfidu): Ditto.
26910
26911 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26912
26913         * config/s390/s390.c (print_operand_address): Replace 'error' with
26914         'output_operand_lossage'.
26915         (print_operand): Likewise.
26916
26917 2011-01-13  Jeff Law  <law@redhat.com>
26918
26919         PR rtl-optimization/39077
26920         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
26921         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
26922         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
26923         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
26924         * gcse.c (prune_insertions_deletions): New function.
26925         (compute_pre_data): Use it.
26926
26927 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
26928
26929         PR debug/PR46973
26930         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
26931         static function.
26932         (prune_unused_types_mark): Use it.
26933
26934 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
26935
26936         PR rtl-optimization/45352
26937         * sel-sched.c: Update copyright years.
26938         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
26939         in the advancing loop when we have issued issue_rate insns.
26940
26941 2011-01-12  Richard Henderson  <rth@redhat.com>
26942
26943         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
26944         (TARGET_MD_ASM_CLOBBERS): New.
26945
26946         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
26947         (TARGET_DELEGITIMIZE_ADDRESS): New.
26948
26949         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
26950         (clzsi2, *bsch): New patterns.
26951
26952         * config/mn10300/mn10300.md (INT): New mode iterator.
26953         (*mov<INT>_clr): New pattern, and peep2 to generate it.
26954
26955         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
26956         flag_split_wide_types.
26957
26958         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
26959         (mn10300_trampoline_init): Rewrite without a template, an immediate
26960         load and a direct branch.
26961         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
26962
26963 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
26964
26965         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26966         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
26967         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
26968         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26969
26970 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
26971
26972         PR debug/47209
26973         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
26974         of type.
26975
26976 2011-01-12  Jan Hubicka  <jh@suse.cz>
26977
26978         PR driver/47244
26979         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
26980         (PLUGIN_COND_CLOSE): New macro.
26981         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
26982
26983 2011-01-12  Richard Guenther  <rguenther@suse.de>
26984
26985         PR lto/47259
26986         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
26987         register variables in a MEM_REF.
26988
26989 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
26990
26991         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
26992         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
26993         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
26994         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26995         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26996         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
26997         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
26998         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
26999         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27000         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27001         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27002         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27003         * config/gnu-user.h: New.  Copied from linux.h.
27004         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27005         GNU_USER_TARGET_STARTFILE_SPEC.
27006         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27007         GNU_USER_TARGET_ENDFILE_SPEC.
27008         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27009         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27010         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27011         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27012         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27013         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27014         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27015         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27016         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27017         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27018         * config/arm/linux-eabi.h (CC1_SPEC): Use
27019         GNU_USER_TARGET_CC1_SPEC.
27020         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27021         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27022         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27023         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27024         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27025         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27026         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27027         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27028
27029 2011-01-12  Richard Guenther  <rguenther@suse.de>
27030
27031         PR other/46946
27032         * doc/invoke.texi (ffast-math): Document it is turned on
27033         with -Ofast.
27034
27035 2011-01-12  Jan Hubicka  <jh@suse.cz>
27036
27037         PR tree-optimization/47233
27038         * opts.c (common_handle_option): Disable ipa-reference with profile
27039         feedback.
27040
27041 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27042
27043         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27044         error message.
27045
27046 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27047
27048         * c-parser.c (c_lex_one_token): Updated and reindented some
27049         comments.  No changes in code.
27050
27051 2011-01-11  Ian Lance Taylor  <iant@google.com>
27052
27053         * godump.c (go_output_var): Don't output the variable if there is
27054         already a type with the same name.
27055
27056 2011-01-11  Ian Lance Taylor  <iant@google.com>
27057
27058         * godump.c (go_format_type): Don't generate float80.
27059
27060 2011-01-11  Richard Henderson  <rth@redhat.com>
27061
27062         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27063         declaration.  Rewrite for both speed and size.
27064         (mn10300_address_cost_1): Remove.
27065         (mn10300_register_move_cost): New.
27066         (mn10300_memory_move_cost): New.
27067         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27068         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27069         extensions, shifts, BSWAP, CLZ.
27070         (mn10300_wide_const_load_uses_clr): Remove.
27071         (TARGET_REGISTER_MOVE_COST): New.
27072         (TARGET_MEMORY_MOVE_COST): New.
27073         * config/mn10300/mn10300-protos.h: Update.
27074         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27075
27076         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27077         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27078         * config/mn10300/mn10300-protos.h: Update.
27079         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27080         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27081         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27082         (*test_int_bitfield, *test_byte_bitfield): Remove.
27083         (*bit_test, *subreg_bit_test): Remove.
27084         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27085
27086         * config/mn10300/constraints.md ("c"): Rename from "A".
27087         ("A", "D"): New constraint letters.
27088         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27089         (fmssf4, fnmasf4, fnmssf4): Likewise.
27090
27091         * config/mn10300/mn10300.md (isa): New attribute.
27092         (enabled): New attribute.
27093
27094         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27095         (abssf2, negsf2): Define only for hardware fp.
27096         (sqrtsf2): Reformat.
27097         (addsf3, subsf3, mulsf3): Merge expander and insn.
27098
27099         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27100         (DEBUGGER_AUTO_OFFSET): Remove.
27101         (DEBUGGER_ARG_OFFSET): Remove.
27102
27103         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27104         Emit register stores with the same offsets as the hardware.
27105         (mn10300_store_multiple_operation): Don't check that the register
27106         save offsets are monotonic.
27107         * config/mn10300/mn10300-protos.h: Update.
27108
27109         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27110
27111         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27112         in terms of the value on the stack, not the MDR register.
27113
27114 2011-01-11  Jan Hubicka  <jh@suse.cz>
27115
27116         PR lto/45721
27117         PR lto/45375
27118         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27119         (symbol_alias_set_destroy, symbol_alias_set_contains,
27120         propagate_aliases_backward): Declare.
27121         * lto-streamer-out.c (struct sets): New sturcture.
27122         (trivally_defined_alias): New function.
27123         (output_alias_pair_p): Rewrite.
27124         (output_unreferenced_globals): Fix output of alias pairs.
27125         (produce_symtab): Likewise.
27126         * ipa.c (function_and_variable_visibility): Set weak alias destination
27127         as needed in lto.
27128         * varasm.c (symbol_alias_set_t): Remove.
27129         (symbol_alias_set_destroy): Export.
27130         (propagate_aliases_forward, propagate_aliases_backward): New functions
27131         based on ...
27132         (compute_visible_aliases): ... this one; remove.
27133         (trivially_visible_alias): New
27134         (trivially_defined_alias): New.
27135         (remove_unreachable_alias_pairs): Rewrite.
27136         (finish_aliases_1): Reorganize code checking if alias is defined.
27137         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27138         in LTO mode.
27139
27140 2011-01-11  Richard Guenther  <rguenther@suse.de>
27141
27142         PR tree-optimization/46076
27143         * tree-ssa.c (useless_type_conversion_p): Conversions from
27144         unprototyped to empty argument list function types are useless.
27145
27146 2011-01-11  Richard Guenther  <rguenther@suse.de>
27147
27148         PR middle-end/45235
27149         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27150         volatile MEMs as MEM_READONLY_P.
27151
27152 2011-01-11  Richard Guenther  <rguenther@suse.de>
27153
27154         PR tree-optimization/47239
27155         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27156
27157 2011-01-11  Jeff Law  <law@redhat.com>
27158
27159         PR tree-optimization/47086
27160         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27161         IVs from statements that might throw.
27162
27163 2011-01-10  Jan Hubicka  <jh@suse.cz>
27164
27165         PR lto/45375
27166         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27167
27168 2011-01-10  Jan Hubicka  <jh@suse.cz>
27169
27170         PR lto/45375
27171         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27172         when correcting profile.
27173
27174 2011-01-10  Jan Hubicka  <jh@suse.cz>
27175
27176         PR lto/46083
27177         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27178         DECL_FINI_PRIORITY.
27179         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27180         Restore DECL_FINI_PRIORITY.
27181
27182 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27183
27184         * doc/gimple.texi: Fix quoting of multi-word return values in
27185         @deftypefn statements.  Ensure presence of return value.  Wrap
27186         overlong @deftypefn lines.
27187         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27188         descriptions of removed functions.
27189         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27190         of multi-word return value in @deftypefn statement.
27191
27192 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27193
27194         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27195         (Conditional Expressions, Logical Operators)
27196         (Statement and operand traversals): Do not indent smallexample
27197         code.  Fix duplicate function argument in example.
27198
27199 2011-01-10  Jeff Law  <law@redhat.com>
27200
27201         PR tree-optimization/47141
27202         * ipa-split.c (split_function): Handle case where we are
27203         returning a value and the return block has a virtual operand phi.
27204
27205 2011-01-10  Jan Hubicka  <jh@suse.cz>
27206
27207         PR tree-optimization/47234
27208         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27209         (pass_feedback_split_functions): Declare.
27210         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27211         tree-profile.
27212         * ipa-split.c (gate_split_functions): Update comments; disable
27213         split-functions for profile_arc_flag and branch_probabilities.
27214         (gate_feedback_split_functions): New function.
27215         (execute_feedback_split_functions): New function.
27216         (pass_feedback_split_functions): New global var.
27217
27218 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27219
27220         PR lto/46760
27221         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27222         calling gimple_call_set_cannot_inline.
27223
27224 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27225
27226         * config/darwin-sections.def: Remove unused section.
27227
27228 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27229
27230         PR c++/47218
27231         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27232
27233 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27234
27235         PR objc/47232
27236         * c-parser.c (c_parser_declaration_or_fndef): Improved
27237         error message.
27238
27239 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27240
27241         * config/i386/winnt.c (i386_pe_start_function): Make sure
27242         to switch back to function's section.
27243
27244 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27245
27246         PR gcc/46902
27247         PR testsuite/46912
27248         * plugin.c: Move include of dlfcn.h from here...
27249         * system.h: ... to here.
27250
27251 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27252
27253         * doc/cpp.texi (C++ Named Operators): Fix markup for header
27254         file name.
27255         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27256         two extra empty pages in PDF output.
27257
27258 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
27259
27260         PR objc/47078
27261         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27262         for error recovery purposes behave as if it was not specified so
27263         that the default type is usd.
27264
27265 2011-01-07  Jan Hubicka  <jh@suse.cz>
27266
27267         PR tree-optmization/46469
27268         * ipa.c (function_and_variable_visibility): Clear needed flags on
27269         nodes with external decls; handle weakrefs merging correctly.
27270
27271 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
27272
27273         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27274         not false.
27275
27276 2011-01-07  Jan Hubicka  <jh@suse.cz>
27277
27278         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27279         and no longer claim that gold is required for linker plugin.
27280         * configure: Regenerate.
27281         * gcc.c (PLUGIN_COND): New macro.
27282         (LINK_COMMAND_SPEC): Use it.
27283         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27284         * config.in (HAVE_LTO_PLUGIN): New.
27285         * configure.ac (--with-lto-plugin): New parameter; autodetect
27286         HAVE_LTO_PLUGIN.
27287
27288 2011-01-07  Jan Hubicka  <jh@suse.cz>
27289
27290         PR tree-optimization/46367
27291         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27292         when we can update original.
27293         (cgraph_mark_inline_edge): Sanity check.
27294         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27295
27296 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27297
27298         * config/spu/spu.h (ASM_COMMENT_START): Define.
27299
27300 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27301
27302         PR driver/42445
27303         * gcc.c (%>S): New.
27304         (SWITCH_KEEP_FOR_GCC): Likewise.
27305         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27306         (do_spec_1): Handle "%>".
27307
27308         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27309
27310 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
27311
27312         PR target/47201
27313         * config/i386/i386.c (ix86_delegitimize_address): If
27314         simplify_gen_subreg fails, return orig_x.
27315
27316         PR bootstrap/47187
27317         * value-prof.c (gimple_stringop_fixed_value): Handle
27318         lhs of the call properly.
27319
27320 2011-01-07  Jan Hubicka  <jh@suse.cz>
27321
27322         PR lto/45375
27323         * lto-opt.c (lto_reissue_options): Set flag_shlib.
27324
27325 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27326
27327         * target.def (function_switched_text_sections): New hook.
27328         * doc/tm.texi: Regenerated.
27329         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27330         * final.c (default_function_switched_text_sections): New.
27331         (final_scan_insn): Call function_switched_text_sections when a
27332         mid-function section change occurs.
27333         * output.h (default_function_switched_text_sections): Declare.
27334         * config/darwin-protos.h (darwin_function_switched_text_sections):
27335         Likewise.
27336         * config/darwin.c (darwin_function_switched_text_sections): New.
27337         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27338
27339 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27340
27341         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
27342         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
27343         the secondary code fragment when outputting for DWARF == 2.
27344
27345 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
27346
27347         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27348         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27349         Remove.
27350         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27351         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27352
27353 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27354
27355         PR debug/46704
27356         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27357         when it is not empty.
27358
27359 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
27360
27361         Bobcat Enablement
27362         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27363         (case ${target}): Add btver1.
27364         * config/i386/driver-i386.c (host_detect_local_cpu): Let
27365         -march=native recognize btver1 processors.
27366         * config/i386/i386-c.c (ix86_target_macros_internal): Add
27367         btver1 def_and_undef
27368         * config/i386/i386.c (struct processor_costs btver1_cost): New
27369         btver1 cost table.
27370         (m_BTVER1): New definition.
27371         (m_AMD_MULTIPLE): Includes m_BTVER1.
27372         (initial_ix86_tune_features): Add btver1 tune.
27373         (processor_target_table): Add btver1 entry.
27374         (static const char *const cpu_names): Add btver1 entry.
27375         (software_prefetching_beneficial_p): Add btver1.
27376         (ix86_option_override_internal): Add btver1 instruction sets.
27377         (ix86_issue_rate): Add btver1.
27378         (ix86_adjust_cost): Add btver1.
27379         * config/i386/i386.h (TARGET_BTVER1): New definition.
27380         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27381         (enum processor_type): Add PROCESSOR_BTVER1.
27382         * config/i386/i386.md (define_attr "cpu"): Add btver1.
27383
27384 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27385
27386         PR target/43309
27387         * config/i386/i386.c (legitimize_tls_address)
27388         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27389         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27390         (tls_initial_exec_64_sun): New pattern.
27391
27392 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27393
27394         * doc/invoke.texi (Overall Options): Improve wording and markup
27395         of the description of -wrapper.
27396
27397 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27398
27399         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27400         rdynamic, threads): New Driver options.
27401
27402 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27403
27404         PR target/38118
27405         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27406         if coming from .tdata.
27407         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27408
27409 2011-01-06  Jan Hubicka  <jh@suse.cz>
27410
27411         PR lto/47188
27412         * collect2.c (main): Do not enable LTOmode when plugin is active.
27413
27414 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27415
27416         PR other/45915
27417         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27418         --version output if supported.
27419         * configure: Regenerate.
27420
27421 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27422
27423         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27424         Driver options.
27425
27426 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27427
27428         PR c/47150
27429         * c-convert.c (convert): When converting a complex expression
27430         other than COMPLEX_EXPR to a different complex type, ensure
27431         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27432         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27433         when converting COMPLEX_TYPE.
27434
27435 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27436
27437         PR tree-optimization/47139
27438         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27439         only the last reduction value is used outside the loop.  Update
27440         documentation.
27441
27442 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27443
27444         * config/rtems.opt: New.
27445         * config.gcc (*-*-rtems*): Use rtems.opt.
27446
27447 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27448
27449         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27450         processors do not support 3DNow instructions.
27451
27452 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27453
27454         * config/spu/spu.c (spu_option_override): Set parameter
27455         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27456
27457 2011-01-05  Jan Hubicka  <jh@suse.cz>
27458
27459         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27460         at the command line.
27461
27462 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27463
27464         PR lto/47162
27465         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27466         deltas on streamed outgoing edges.
27467         (output_node_opt_summary): Output info for outgoing edges only when
27468         the node is in new parameter set.
27469         (output_cgraph_opt_summary): New parameter set, passed to the two
27470         aforementioned functions.  Update its forward declaration and its
27471         callee too.
27472
27473 2011-01-05  Tom Tromey  <tromey@redhat.com>
27474
27475         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27476         operator to c_finish_omp_atomic.
27477         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27478         (build_unary_op): Update.
27479         (build_modify_expr): Update.
27480         (build_asm_expr): Update.
27481
27482 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27483
27484         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27485         newly inserted insns.
27486         (pad_bb): Likewise.
27487         (spu_emit_branch_hint): Likewise.
27488         (insert_hbrp_for_ilb_runout): Likewise.
27489         (spu_machine_dependent_reorg): Call df_finish_pass after
27490         schedule_insns returns.
27491
27492 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27493
27494         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27495
27496 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27497
27498         PR tree-optimization/47005
27499         * tree-sra.c (struct access): Add 'non_addressable' bit.
27500         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27501         (decide_one_param_reduction): Return 0 if the parameter is passed by
27502         reference and one of the accesses in the group is non_addressable.
27503
27504 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27505
27506         PR tree-optimization/47056
27507         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27508         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27509         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27510
27511 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27512
27513         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27514         initializer.  Skip view conversions from aggregate types.
27515
27516 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27517
27518         PR bootstrap/47055
27519         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27520
27521 2011-01-04  Philipp Thomas  <pth@suse.de>
27522
27523         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27524         obvious typo.
27525
27526 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27527
27528         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27529         on empty epilogue sequences.
27530
27531 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27532
27533         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27534         non-static): New Driver options.
27535
27536 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27537
27538         PR driver/47137
27539         * gcc.c (default_compilers[]): Set combinable field to 0
27540         for all assembly languages.
27541
27542 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27543
27544         * config/mips/loongson3a.md: New file.
27545         * config/mips/mips.md: Include loongson3a.md.
27546         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27547         TUNE_LOONGSON_3A.
27548
27549 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27550
27551         PR middle-end/47017
27552         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27553         instead of convert_memory_address_addr_space on the base expression.
27554
27555 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27556
27557         * config/spu/spu.c (spu_option_override): Update error text
27558         for bad -march= / -mtune= values.
27559
27560 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27561
27562         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27563         if branch-hint optimization will be performed.
27564
27565 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27566
27567         PR tree-optimization/47148
27568         * ipa-split.c (split_function): Convert arguments to
27569         DECL_ARG_TYPE if possible.
27570
27571         PR tree-optimization/47155
27572         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27573         when computing uns.
27574
27575         PR rtl-optimization/47157
27576         * combine.c (try_combine): If undobuf.other_insn becomes
27577         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27578         and set *new_direct_jump_p too.
27579
27580 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27581
27582         PR tree-optimization/47021
27583         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27584
27585 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27586
27587         * gcc.c (process_command): Update copyright notice dates.
27588         * gcov.c (print_version): Likewise.
27589         * gcov-dump.c (print_version): Likewise.
27590         * mips-tfile.c (main): Likewise.
27591         * mips-tdump.c (main): Likewise.
27592
27593 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27594
27595         PR tree-optimization/46801
27596         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27597         aggregate fields start at byte boundary instead of the bit-field flag.
27598
27599 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27600
27601         PR driver/47137
27602         * gcc.c (main): Revert revision 168407.
27603
27604 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27605
27606         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27607
27608 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27609
27610         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27611         vector optab to expand vector/scalar shift, update gimple to vector.
27612
27613 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27614
27615         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27616         a thunk.
27617
27618 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27619
27620         PR tree-optimization/46984
27621         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27622         HOST_WIDE_INT.
27623         (cgraph_create_indirect_edge): Fixed line length.
27624         (cgraph_indirect_call_info): Declare.
27625         (cgraph_make_edge_direct) Update declaration.
27626         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27627         (cgraph_create_indirect_edge): Use it.
27628         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
27629         callees.
27630         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27631         the new thunk_delta representation.
27632         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27633         HOST_WIDE_INT.
27634         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27635         (ipa_read_indirect_edge_info): Likewise.
27636         * lto-cgraph.c (output_edge_opt_summary): New function.
27637         (output_node_opt_summary): Call it on all outgoing edges.
27638         (input_edge_opt_summary): New function.
27639         (input_node_opt_summary): Call it on all outgoing edges.
27640
27641 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
27642
27643         PR driver/47137
27644         * gcc.c (main): Don't check have_o when settting combine_inputs.
27645
27646 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
27647
27648         * regrename.c: Add general comment describing the pass.
27649         (struct du_head): Remove 'length' field.
27650         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27651         (regrename_optimize): Do not sort chains.  Rework comments, add others.
27652         Force renaming to the preferred class (if any) in the first pass and do
27653         not consider registers that belong to it in the second pass.
27654         (create_new_chain): Do not set 'length' field.
27655         (scan_rtx_reg): Likewise.
27656
27657 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
27658
27659         PR tree-optimization/47140
27660         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27661         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27662         to bit_value_binop.
27663
27664         PR rtl-optimization/47028
27665         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27666         parm_birth_insn instead of at the beginning of first bb.
27667
27668 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
27669
27670         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27671         Remove the word "see" before "@pxref".
27672         * doc/rtl.texi: Remove the word "see" before "@pxref".
27673
27674 2011-01-01  Jan Hubicka  <jh@suse.cz>
27675
27676         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27677         memory.
27678
27679 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
27680
27681         PR target/38662
27682         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27683
27684 \f
27685 Copyright (C) 2011 Free Software Foundation, Inc.
27686
27687 Copying and distribution of this file, with or without modification,
27688 are permitted in any medium without royalty provided the copyright
27689 notice and this notice are preserved.