OSDN Git Service

2011-09-05 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-05  Richard Guenther  <rguenther@suse.de>
2
3         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4
5 2011-09-05  Richard Guenther  <rguenther@suse.de>
6
7         * stor-layout.c (layout_type): Use size_binop for array size
8         calculations.
9
10 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
11         
12         * config/avr/avr.h (progmem_section): Remove Declaration.
13         * config/avr/avr.c (progmem_section): Make static and rename to
14         progmem_swtable_section.
15         (avr_output_addr_vec_elt): No need to switch sections.
16         (avr_asm_init_sections): Use output_section_asm_op as section
17         callback for progmem_swtable_section.
18         (avr_output_progmem_section_asm_op): Remove Function.
19         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
20         (avr_asm_function_rodata_section): New static Function.
21         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
22         alignment 2**1 for jump tables.
23
24 2011-09-04  Jan Hubicka  <jh@suse.cz>
25
26         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
27         parameter is SSA name.
28
29 2011-09-04  Richard Guenther  <rguenther@suse.de>
30
31         Revert
32         2011-08-31  Richard Guenther  <rguenther@suse.de>
33
34         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
35         special-casing.
36
37 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
38
39         PR debug/49901
40         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
41
42 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
43             Ira Rosen  <ira.rosen@linaro.org>
44
45         PR tree-optimization/50208
46         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
47         argument.  Check that def_stmt is inside the loop.
48         (vect_recog_widen_mult_pattern): Update calls to
49         vect_handle_widen_mult_by_cons.
50         (vect_operation_fits_smaller_type): Check that def_stmt is
51         inside the loop.
52
53 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
54
55         * tree-vectorizer.c (vect_print_dump_info): Print line
56         number when dumping to a file.
57         (vectorize_loops): Add new messages to dump file.
58
59 2011-09-03  Martin Jambor  <mjambor@suse.cz>
60
61         * ipa-prop.h (ipa_jump_func_t): New typedef.
62         (struct ipa_edge_args): Removed field argument_count, field
63         jump_functions turned into a vector.
64         (ipa_set_cs_argument_count): Removed.
65         (ipa_get_cs_argument_count): Updated to work on vectors.
66         (ipa_get_ith_jump_func): Likewise.
67         * ipa-prop.c (ipa_count_arguments): Removed.
68         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
69         jump functions.  Update caller.
70         (compute_pass_through_member_ptrs): Likewise.
71         (compute_cst_member_ptr_arguments): Likewise.
72         (ipa_compute_jump_functions_for_edge): Get number of arguments from
73         the statement, allocate vector.
74         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
75         (duplicate_ipa_jump_func_array): Removed.
76         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
77         (ipa_read_node_info): Allocate vector.
78
79 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
80
81         PR middle-end/50232
82         * config/pa/pa.md (return): Define "return" insn pattern.
83         (epilogue): Use it when no epilogue is needed.
84         * config/pa/pa.c (pa_can_use_return_insn): New function.
85         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
86
87 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
88
89         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
90         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
91         Force at least BITS_PER_UNIT alignment on the new variable.
92
93 2011-09-02  Gary Funck <gary@intrepid.com>
94
95         * opts.c (print_specific_help): Fix off-by-one compare in
96         assertion check.
97         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
98         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
99         Increase by +5 to allow for more languages.
100         * optc-gen.awk: Generate #if that ensures that the number of
101         languages is within the implementation-defined limit.
102
103 2011-09-02  Michael Matz  <matz@suse.de>
104
105         PR middle-end/50260
106         * ipa-split.c (split_function): Call add_referenced_var.
107
108         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
109         (cond_if_else_store_replacement_1): Ditto.
110         * tree-ssa-pre.c (get_representative_for): Ditto.
111         (create_expression_by_pieces): Ditto.
112         (insert_into_preds_of_block): Ditto.
113         * tree-sra.c (create_access_replacement): Ditto.
114         (get_replaced_param_substitute): Ditto.
115
116 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
117
118         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
119         automata_options.
120         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
121         (l1w, s1w, l2w, s2w): Define in the main automaton.
122         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
123         units.
124         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
125         (c6x_unit_names): Add the new units.
126         (c6x_unit_codes): New static array.
127         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
128         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
129         UNIT_QID_SIDE_OFFSET): New macros.
130         (RESERVATION_S2): Adjust value.
131         (c6x_option_override): Compute c6x_unit_codes.
132         (assign_reservations): Take the unit_mask of the last instruction
133         into account.  Detect floating point reservations by looking for
134         the new units.  Don't assign reservations if the field is already
135         nonzero.
136         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
137         (init_sched_state): Initialize it.
138         (c6x_clear_sched_context): Free it.
139         (insn_set_clock): Clear reservation.
140         (prev_cycle_state): New static variable.
141         (c6x_init_sched_context): Save it.
142         (c6x_sched_init): Allocate space for it and clear it.
143         (c6x_sched_dfa_pre_cycle_insn): New static function.
144         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
145         (c6x_variable_issue): Only record units in the unit_mask that
146         were not set at the start of the cycle.
147         (c6x_variable_issue): Compute and store the unit_mask from the
148         current state.
149         (reorg_split_calls): Ensure the new information remains correct.
150         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
151         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
152         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
153         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
154         Add special reservations.
155         * config/c6x/c6x-sched.md: Regenerate.
156
157 2011-09-02  Martin Jambor  <mjambor@suse.cz>
158
159         * ipa-prop.h (ipa_node_params): Removed fields
160         called_with_var_arguments and node_versionable.
161         (ipa_set_called_with_variable_arg): Removed.
162         (ipa_is_called_with_var_arguments): Likewise.
163         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
164         (determine_versionability): Do not check for type attributes and va
165         builtins.  Record versionability into inline summary.
166         (initialize_node_lattices): Do not check
167         ipa_is_called_with_var_arguments.
168         (propagate_constants_accross_call): Likewise, ignore arguments we do
169         not have PARM_DECLs for, set variable flag for parameters that were
170         not passed a value.
171         (create_specialized_node): Dump info that we cannot change signature.
172         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
173         number of arguments.
174         (ipa_make_edge_direct_to_target): Likewise.
175         (ipa_update_after_lto_read): Likewise.
176         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
177         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
178         they were remapped.
179
180 2011-09-02  Richard Guenther  <rguenther@suse.de>
181
182         PR tree-optimization/27460
183         PR middle-end/29269
184         * doc/md.texi (vcond): Document.
185         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
186         optab with two modes.
187         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
188         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
189         (vcond_optab): Adjust.
190         (vcondu_optab): Likewise.
191         (expand_vec_cond_expr_p): Adjust prototype.
192         * optabs.c (get_vcond_icode): Adjust.
193         (expand_vec_cond_expr_p): Likewise.
194         (expand_vec_cond_expr): Likewise.
195         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
196         vector type.
197         (vectorizable_condition): Allow differing types for comparison
198         and result.
199         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
200         for the comparison.
201         * config/i386/sse.md (vcond<mode>): Split to
202         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
203         vcond<V_128:mode><VI124_128:mode> and
204         vcondu<V_128:mode><VI124_128:mode>.
205         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
206         (vconduv2di): Likewise.
207         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
208         (vcondu<mode>): Likewise.
209         * config/ia64/vect.md (vcond<mode>): Likewise.
210         (vcondu<mode>): Likewise.
211         (vcondv2sf): Likewise.
212         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
213         * config/rs6000/paired.md (vcondv2sf): Likewise.
214         * config/rs6000/vector.md (vcond<mode>): Likewise.
215         (vcondu<mode>): Likewise.
216         * config/spu/spu.md (vcond<mode>): Likewise.
217         (vcondu<mode>): Likewise.
218
219 2011-09-02  Richard Guenther  <rguenther@suse.de>
220
221         * pretty-print.h (pp_unsigned_wide_integer): New.
222         * tree-pretty-print.c (dump_generic_node): Print unsigned
223         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
224
225 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
226
227         PR target/49987
228         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
229         valid CONST_VECTOR operands.
230         (rs6000_expand_vector_init): Likewise.
231
232 2011-09-02  Martin Jambor  <mjambor@suse.cz>
233
234         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
235         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
236         BINFO_VTABLE.  Parameter delta removed, all callers updated.
237         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
238         BINFO_VTABLE.
239         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
240         all calls.
241         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
242         handling of thunk_delta.
243         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
244         (devirtualization_time_bonus): Do not handle thunk deltas.
245         (ipcp_discover_new_direct_edges): Likewise.
246         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
247         (try_make_edge_direct_simple_call): Likewise.
248         (try_make_edge_direct_virtual_call): Likewise.
249         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
250         parameter set as unused.
251         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
252         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
253         parameter set as unused.
254         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
255         (input_edge_opt_summary): Likewise.
256         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
257         BINFO_VIRTUALS at all.
258         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
259
260 2011-09-02  Richard Guenther  <rguenther@suse.de>
261
262         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not
263         fold alloca (0).
264         (ccp_fold_stmt): Continue replacing args when folding
265         alloca fails.
266
267 2011-08-31  Richard Guenther  <rguenther@suse.de>
268
269         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
270         handling here, from ...
271         (expand_expr_real_1): ... here.
272         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
273         and VEC_COND_EXPR.
274         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
275         a GIMPLE_TERNARY_RHS.
276         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
277         and VEC_COND_EXPR here ...
278         (verify_gimple_assign_single): ... not here.
279         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
280         * tree-object-size.c (cond_expr_object_size): Adjust.
281         (collect_object_sizes_for): Likewise.
282         * tree-scalar-evolution.c (interpret_expr): Don't handle
283         ternary RHSs.
284         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and
285         simplify.
286         (ssa_forward_propagate_and_combine): Adjust.
287         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
288         as ternary.
289         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
290         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
291         * tree-vect-stmt.c (vectorizable_condition): Likewise.
292         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
293         (extract_range_from_assignment): Likewise.
294
295 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
296
297         * config/i386/i386.md: Use (match_test ...) for attribute tests.
298         * config/i386/mmx.md: Likewise.
299         * config/i386/sse.md: Likewise.
300         * config/i386/predicates.md (call_insn_operand): Use
301         (not (match_test "...")) instead of (match_test "!...")
302         * config/i386/constraints.md (w): Likewise.
303
304 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
305
306         * doc/md.texi: Describe the use of match_tests in attribute tests.
307         * rtl.def (MATCH_TEST): Update commentary.
308         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
309         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
310
311 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
312
313         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
314         (attr_string): Use copy_md_ptr_loc.
315
316 2011-08-31  Martin Jambor  <mjambor@suse.cz>
317
318         PR middle-end/49886
319         * ipa-inline-analysis.c (compute_inline_parameters): Set
320         can_change_signature of noes with typde attributes.
321         * ipa-split.c (split_function): Do not skip any arguments if
322         can_change_signature is set.
323
324 2011-08-31  Martin Jambor  <mjambor@suse.cz>
325
326         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
327         check removed.
328
329 2011-08-31  Richard Guenther  <rguenther@suse.de>
330
331         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
332         special-casing.
333
334 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
335
336         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
337
338 2011-08-31  Tom de Vries  <tom@codesourcery.com>
339
340         PR middle-end/43513
341         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
342         * tree-ssa-ccp.c (params.h): Include.
343         (fold_builtin_alloca_for_var): New function.
344         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
345
346 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
347
348         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
349         Handle FMA option.
350
351 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
352
353         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
354         b3 and b4 unsigned.
355
356 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
357
358         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
359         when code is SET.
360
361 2011-08-30  Richard Guenther  <rguenther@suse.de>
362
363         PR middle-end/48571
364         * gimple.h (maybe_fold_offset_to_address): Remove.
365         (maybe_fold_offset_to_reference): Likewise.
366         (maybe_fold_stmt_addition): Likewise.
367         (may_propagate_address_into_dereference): Likewise.
368         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
369         array references.
370         * gimple-fold.c (canonicalize_constructor_val): Likewise.
371         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
372         addresses instead.
373         (may_propagate_address_into_dereference): Remove.
374         (maybe_fold_offset_to_array_ref): Likewise.
375         (maybe_fold_offset_to_reference): Likewise.
376         (maybe_fold_offset_to_address): Likewise.
377         (maybe_fold_stmt_addition): Likewise.
378         (fold_gimple_assign): Do not reconstruct array references but
379         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
380         MEM_REF addresses.
381         (gimple_fold_stmt_to_constant_1): Likewise.
382         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
383         * gimplify.c (gimplify_conversion): Likewise.
384         (gimplify_expr): Likewise.
385
386 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
387
388         * config/i386/fmaintrin.h: New.
389         * config.gcc: Add fmaintrin.h.
390         * config/i386/i386.c
391         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
392         <IX86_BUILTIN_VFMADDSD3>: Likewise.
393         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
394         (*fmai_fmadd_<mode>): Likewise.
395         (*fmai_fmsub_<mode>): Likewise.
396         (*fmai_fnmadd_<mode>): Likewise.
397         (*fmai_fnmsub_<mode>): Likewise.
398         * config/i386/immintrin.h: Add fmaintrin.h.
399
400 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
401
402         * genautomata.c (NO_COMB_OPTION): New macro.
403         (no_comb_flag): New static variable.
404         (gen_automata_option): Handle NO_COMB_OPTION.
405         (comb_vect_p): False if no_comb_flag.
406         (add_vect): Move computation of min/max values.  Return early if
407         no_comb_flag.
408         * doc/md.texi (automata_option): Document no-comb-vect.
409
410         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
411         "__x86.get_pc_thunk".
412
413         * bb-reorder.c (insert_section_boundary_note): Only do it if
414         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
415
416 2011-08-30  Christian Bruel  <christian.bruel@st.com>
417
418         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
419         flag_profile_use.
420
421 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
422
423         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
424         to off.  Document switch.
425         * doc/invoke.texi (-msave-toc-indirect): Ditto.
426
427 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
428
429         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
430         conditionals and comments inside macro arguments.
431
432 20011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
433              Richard Guenther  <rguenther@suse.de>
434
435         * tree.h (constant_boolean_node): Adjust prototype.
436         * fold-const.c (fold_convert_loc): Move aggregate conversion
437         leeway down.
438         (constant_boolean_node): Make value parameter boolean, add
439         vector type handling.
440         (fold_unary_loc): Use constant_boolean_node.
441         (fold_binary_loc): Preserve types properly when folding
442         COMPLEX_EXPR <__real x, __imag x>.
443         * gimplify.c (gimplify_expr): Handle vector comparison.
444         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
445         comparison.
446         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
447         comparisons.
448
449 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
450
451         PR middle-end/48722
452         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
453         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
454         (verify_rtl_sharing): Likewise and verify_rtx_sharing
455         in there too.
456         (unshare_all_rtl_in_chain): For CALL_INSNs
457         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
458
459 2011-08-29  Richard Guenther  <rguenther@suse.de>
460
461         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
462         on the built ADDR_EXPR.
463
464 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
465
466         PR debug/50215
467         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
468         before adding ENTRY_VALUE to val->locs.
469
470 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
471
472         PR bootstrap/50218
473         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
474         comp.
475
476 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
477
478         * doc/rtl.texi (simple_return): Document.
479         (parallel, PATTERN): Here too.
480         * doc/md.texi (return): Mention it's allowed to expand to simple_return
481         in some cases.
482         (simple_return): Document standard pattern.
483         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
484         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
485         * reorg.c (function_return_label, function_simple_return_label):
486         New static variables, replacing...
487         (end_of_function_label): ... this.
488         (simplejump_or_return_p): New static function.
489         (optimize_skip, steal_delay_list_from_fallthrough,
490         fill_slots_from_thread): Use it.
491         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
492         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
493         (find_end_label): Take a new arg which is one of the two return
494         rtxs.  Depending on which, set either function_return_label or
495         function_simple_return_label.  All callers changed.
496         (make_return_insns): Make both kinds.
497         (dbr_schedule): Adjust for two kinds of end labels.
498         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
499         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
500         (gen_expand, gen_split): Use ANY_RETURN_P.
501         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
502         * rtl.def (SIMPLE_RETURN): New code.
503         * ifcvt.c (find_if_case_1): Be more careful about
504         redirecting jumps to the EXIT_BLOCK.
505         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
506         returnjump_p_1): Handle SIMPLE_RETURNs.
507         * print-rtl.c (print_rtx): Likewise.
508         * rtl.c (copy_rtx): Likewise.
509         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
510         * combine.c (simplify_set): Likewise.
511         * resource.c (find_dead_or_set_registers, mark_set_resources):
512         Likewise.
513         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
514         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
515         (init_emit_regs): Initialize simple_return_rtx.
516         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
517         force_nonfallthru_and_redirect.
518         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
519         (GR_SIMPLE_RETURN): New enum value.
520         (simple_return_rtx): New macro.
521         * basic-block.h (force_nonfallthru_and_redirect): Adjust
522         declaration.
523         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
524         argument.  All callers changed.  Be careful about what kinds of
525         returnjumps to generate.
526         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
527         ix86_pad_short_function): Likewise.
528         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
529         of return.
530         * config/mips/mips.md (any_return): New code_iterator.
531         (optab): Add cases for return and simple_return.
532         (return): Expand to a simple_return.
533         (simple_return): New pattern.
534         (*<optab>, *<optab>_internal for any_return): New patterns.
535         (return_internal): Remove.
536         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
537         a simple_return_internal.
538
539 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
540
541         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
542         (vec_extract_lo_<mode>): Prevent both operands in memory.
543         (vec_extract_lo_v16hi): Ditto.
544         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
545
546 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
547
548         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
549         (*sse2_mulv4si3): Ditto.
550         (mulv2di3): Ditto.
551         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
552         notes to REG_EQUAL.
553
554 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
555
556         PR target/50202
557         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
558         when all outputs are unused.
559         (sse4_2_pcmpistr): Ditto.
560
561 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
562
563         * config/i386/i386.md (round<mode>2): New expander.
564         * config/i386/i386.c (enum ix86_builtins): Add
565         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
566         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
567         descriptions.
568         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
569         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
570
571 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
572
573         PR middle-end/50083
574         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
575         only when TARGET_C99_FUNCTIONS.
576         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
577         <BUILT_IN_RINT{,F,L}>: Ditto.
578
579 2011-08-26  Michael Matz  <matz@suse.de>
580             Jakub Jelinek  <jakub@redhat.com>
581
582         PR lto/50165
583         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
584         don't call strlen twice, use memcpy.
585
586 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
587
588         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
589         * config/i386/bmiintrin.h: Likewise.
590         * config/i386/lzcntintrin.h: Likewise.
591
592         * config/i386/immintrin.h: Include <lzcntintrin.h>,
593         <bmiintrin.h> and <bmi2intrin.h>.
594
595 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
596
597         PR target/50166
598         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
599         * configure: Regenerate.
600
601 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
602
603         PR c/50179
604         * c-typeck.c (c_process_expr_stmt): Skip over nops and
605         call mark_exp_read even if exprv is ADDR_EXPR.
606
607 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
608
609         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
610         to df_set_dead_notes_for_mw.
611
612 2011-08-26  Richard Guenther  <rguenther@suse.de>
613
614         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
615
616 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
617             Tom de Vries  <tom@codesourcery.com>
618
619         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
620         (struct ivopts_data): Add loop_single_exit_p field.
621         (niter_for_exit): Change parameter desc_p into return value.  Return
622         desc if desc->may_be_zero.  Free desc if unused.
623         (niter_for_single_dom_exit): Change return type.
624         (find_induction_variables): Handle changed return type of
625         niter_for_single_dom_exit.  Dump may_be_zero.
626         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
627         (set_use_iv_cost): Add and handle comp parameter.
628         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
629         comp argument to set_use_iv_cost.
630         (strip_wrap_conserving_type_conversions, expr_equal_p)
631         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
632         (may_eliminate_iv): Add comp parameter.  Handle new return type of
633         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
634         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
635         and may_eliminate_iv.
636         (rewrite_use_compare): Move call to iv_elimination_compare to ...
637         (may_eliminate_iv): Here.
638         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
639
640 2011-08-26  Tom de Vries  <tom@codesourcery.com>
641
642         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
643         accessing TREE_TYPE.
644
645 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
646
647         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
648         (*ior_scc_scc_cmp): Likewise
649         (*and_scc_scc): Likewise.
650         (*and_scc_scc_cmp): Likewise.
651         (*and_scc_scc_nodom): Likewise.
652         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
653
654 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
655
656         * rtlanal.c (nonzero_bits1): Handle CLRSB.
657
658 2011-08-26  Richard Guenther  <rguenther@suse.de>
659
660         * expr.c (string_constant): Handle &MEM_REF.
661
662 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
663
664         * config/arm/arm.c (struct four_ints): New type.
665         (count_insns_for_constant): Delete function.
666         (find_best_start): Delete function.
667         (optimal_immediate_sequence): New function.
668         (optimal_immediate_sequence_1): New function.
669         (arm_gen_constant): Move constant splitting code to
670         optimal_immediate_sequence.
671         Rewrite constant negation/invertion code.
672
673 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
674
675         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
676         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
677         Remove prototype. Remove static function type.
678         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
679         Add arch attribute.
680         * config/arm/constraints.md (Pj, PJ): New constraints.
681
682 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
683
684         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
685         ("cortex_a9_multiply_long"): New and use above.  Handle all
686         long multiply cases.
687         ("cortex_a9_multiply"): Handle smmul and smmulr.
688         ("cortex_a9_mac"): Handle smmla.
689
690 2011-08-25  Richard Henderson  <rth@redhat.com>
691
692         PR 50132
693         PR 49864
694         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
695         non-constant stack adjutment.
696         * expr.c (find_args_size_adjust): Break out from ...
697         (fixup_args_size_notes): ... here.
698         * rtl.h (find_args_size_adjust): Declare.
699
700 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
701
702         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
703         sse4 and sse4_noavx.
704         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
705         (*pushdf_rex64): Change Y2 register constraint to x.
706         (*movdf_internal_rex64): Ditto.
707         (*zero_extendsidi2_rex64): Ditto.
708         (*movdi_internal): Change Y2 register constraint to x
709         and update "isa" attribute.
710         (*pushdf): Ditto.
711         (*movdf internal): Ditto.
712         (zero_extendsidi2_1): Ditto.
713         (*truncdfdf_mixed): Ditto.
714         (*truncxfdf2_mixed): Ditto.
715         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
716         register constraint to x.
717         (*movv2sf_internal_rex64): Ditto.
718         (*mov<mode>_internal): Change Y2 register constraint to x
719         and add "isa" attribute.
720         (*movv2sf_internal): Ditto.
721         (*vec_extractv2si_1): Ditto.
722         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
723         constraints to x and update "isa" attribute.
724         (*vec_interleave_highv2df): Change Y3 registerconstraint
725         to x and update "isa" attribute.
726         (*vec_interleave_lowv2df): Ditto.
727         (*vec_concatv2df): Change Y2 register constraint to x and
728         update "isa" attribute.
729         (sse2_loadld): Ditto.
730         (*vec_extractv2di_1): Ditto.
731         (*vec_dupv4si): Ditto.
732         (*vec_dupv2di): Ditto.
733         (*vec_concatv4si): Ditto.
734         (vec_concatv2di): Ditto.
735         * config/i386/constraints.md (Y2): Remove.
736         (Y3): Ditto.
737         (Y4): Ditto.
738
739 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
740
741         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
742         dump_def_use_chain): Don't declare.
743         (mark_conflict, create_new_chain): Move before users.
744         (regrename_optimize): Move to near end of file.
745
746 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
747
748         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
749         (secondary_input_reload_class): Remove Prototype.
750         * config/avr/avr.c (byte_immediate_operand): Remove Function.
751         * config/avr/avr.md (setmemhi): Use u8_operand.
752         (strlenhi): Use const0_rtx for comparison.
753         * config/avr/avr.h (avr_reg_order): Remove Declaration.
754
755 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
756
757         * config/avr/avr.c (reg_class_tab): Make local to
758         avr_regno_reg_class.  Return smallest register class available.
759
760 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
761
762         * config/avr/avr.c (STR_PREFIX_P): New Define.
763         (avr_asm_declare_function_name): Use it.
764         (avr_asm_named_section): Use it.
765         (avr_section_type_flags): Use it.
766
767 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
768
769         * doc/md.texi (automata_option): Document collapse-ndfa.
770         * genautomata.c (COLLAPSE_OPTION): New macro.
771         (collapse_flag): New static variable.
772         (struct description): New member normal_decls_num.
773         (struct automaton): New members advance_ainsn and collapse_ainsn.
774         (gen_automata_option): Check for COLLAPSE_OPTION.
775         (collapse_ndfa_insn_decl): New static variable.
776         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
777         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
778         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
779         necessary.  Use normal_decls_num rather than decls_num, remove
780         test for special decls.
781         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
782         (make_automaton); Likewise.  Use the new advance_cycle_insn member
783         of struct automaton.
784         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
785         is set.
786         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
787         transition.  Create the necessary transitions for it.
788         (create_ainsns): Return void.  Take an automaton_t argument, and
789         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
790         callers changed.
791         (COLLAPSE_NDFA_VALUE_NAME): New macro.
792         (output_tables): Output code to define it.
793         (output_internal_insn_code_evaluation): Output code to accept
794         const0_rtx as collapse-ndfa transition.
795         (output_default_latencies, output_print_reservation_func,
796         output_print_description): Reorganize loops to use normal_decls_num
797         as loop bound; remove special case for advance_cycle_insn_decl.
798         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
799         (check_automata_insn_issues): Check for collapse_ainsn.
800         (expand_automate): Allocate sufficient space.  Initialize
801         normal_decls_num.
802
803 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
804
805         * config/avr/avr.md: Fix indentation from r177991.
806
807 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
808
809         * regrename.c (struct du_head): Remove member terminated.
810         (create_new_chain): Don't initialize it.
811         (scan_rtx_reg): Don't set or test it, test the open_chains_set
812         bitmap instead.
813         (tick, this_tick): New global variables, moved out of
814         regrename_optimize.
815         (current_id, open_chains, closed_chains, open_chains_set,
816         live_in_chains, live_hard_regs): Reorder declarations.
817         (dump_def_use_chain): Move function earlier in the file.
818         (rename_chains): New static function, broken out of
819         regrename_optimize.
820         (regrename_optimize): Use it.  Remove #if 0'ed code.
821
822 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
823
824         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
825
826 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
827
828         PR target/50172
829         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
830
831 2011-08-24  Richard Guenther  <rguenther@suse.de>
832
833         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
834         ref in the basic-block case.  Move stripping array-refs
835         to the place we create an access-function for it.  Remove
836         bogus stripping down a MEM_REF to its base.
837
838 2011-08-24  Richard Guenther  <rguenther@suse.de>
839
840         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
841         with -fno-strict-overflow.
842
843 2011-08-24  Richard Guenther  <rguenther@suse.de>
844
845         * tree-vectorizer.c (vect_print_dump_info): Avoid the
846         file and location clutter when dumping to dump files.
847
848 2011-08-24  Simon Baldwin  <simonb@google.com>
849
850         * gengtype-state.c (write_state): Remove timestamped header line.
851
852 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
853
854         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
855         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
856         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
857         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
858         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
859         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
860         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
861         rules.
862         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
863
864 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
865
866         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
867
868 2011-08-24  Richard Guenther  <rguenther@suse.de>
869
870         PR tree-optimization/50067
871         * tree-data-ref.c (dr_analyze_indices): Do not add an access
872         function for a MEM_REF base that has no evolution in the loop
873         nest or that is not analyzable.
874
875 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
876
877         * ira.c (ira_init_register_move_cost): Check small subclasses
878         through ira_reg_class_max_nregs and ira_available_class_regs.
879
880 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
881
882         * config/i386/constraints.md (Yp): New register constraint.
883         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
884         Yp register constraint.
885         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
886         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
887         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
888
889 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
890
891         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
892
893 2011-08-23  Mark Heffernan  <meheff@google.com>
894
895         PR middle-end/38509
896         * common.opt (Wfree-nonheap-object): New option.
897         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
898         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
899         to warning.
900         (expand_builtin): Make warning conditional.
901
902 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
903
904         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
905         (length_immediate): Handle imulx, ishiftx and rotatex.
906         (imm_disp): Ditto.
907         (isa): Add bmi2.
908         (enabled): Handle bmi2.
909         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
910         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
911         (*bmi2_umulditi3_1): New insn pattern.
912         (*bmi2_umulsidi3_1): Ditto.
913         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
914         (*bmi2_ashl<mode>3_1): New insn pattern.
915         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
916         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
917         (*bmi2_ashlsi3_1_zext): New insn pattern.
918         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
919         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
920         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
921         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
922         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
923         flags dependency.
924         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
925         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
926         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
927         flags dependency.
928         (*bmi2_rorx<mode>3_1): New insn pattern.
929         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
930         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
931         (*rotatert<mode>3_1 splitter): Ditto.
932         (*bmi2_rorxsi3_1_zext): New insn pattern.
933         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
934         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
935         (*rotatertsi3_1_zext splitter): Ditto.
936
937 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
938
939         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
940         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
941         (ix86_handle_option): Handle OPT_mbmi2 case.
942         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
943         (x86_64-*-*): Likewise.
944         * config/i386/bmi2intrin.h: New file.
945         * config/i386/cpuid.h (bit_BMI2): New.
946         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
947         BMI2 feature.
948         * config/i386/i386-c.c (ix86_target_macros_internal):
949         Conditionally define __BMI2__.
950         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
951         Handle BMI2 option.
952         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
953         (print_reg): New code.
954         (ix86_print_operand): Likewise.
955         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
956         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
957         IX86_BUILTIN_PEXT64.
958         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
959         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
960         IX86_BUILTIN_PEXT64.
961         * config/i386/i386.h (TARGET_BMI2): New.
962         * config/i386/i386.md (UNSPEC_PDEP): New.
963         (UNSPEC_PEXT): Likewise.
964         (*bmi2_bzhi_<mode>3): Likewise.
965         (*bmi2_pdep_<mode>3): Likewise.
966         (*bmi2_pext_<mode>3): Likewise.
967         * config/i386/i386.opt (mbmi2): New.
968         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
969         is defined.
970         * doc/extend.texi: Document BMI2 built-in functions.
971         * doc/invoke.texi: Document -mbmi2.
972
973 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
974
975         PR middle-end/50161
976         * simplify-rtx.c (simplify_const_unary_operation): If
977         op is CONST_INT, don't look at op_mode, but use instead mode.
978         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
979         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
980         operation and TRUNCATE/ZERO_EXTEND if needed.
981         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
982         Document that operand mode must be same as operation mode,
983         or VOIDmode.
984         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
985         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
986         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
987         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
988         use the mode of operand for the operation and add truncate
989         or zero_extend around if needed.
990         * config/c6x/c6x.md (ctzdi2): Likewise.
991         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
992
993 2011-08-12  Michael Matz  <matz@suse.de>
994
995         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
996         (gimple_expand_cfg): Merge alignment info for coalesced pointer
997         SSA names.
998
999 2011-08-23  Richard Guenther  <rguenther@suse.de>
1000
1001         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1002         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1003         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1004         from ...
1005         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1006         (mem_refs_may_alias_p): Adjust.
1007         * tree-data-ref.h (dr_may_alias_p): Adjust.
1008         * tree-data-ref.c: Include tree-affine.h.
1009         (dr_analyze_indices): Do nothing for the non-loop case.
1010         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1011         more cases in the non-loop case.
1012         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1013         calls to dr_may_alias_p.
1014         (write_alias_graph_to_ascii_ecc): Likewise.
1015         (write_alias_graph_to_ascii_dot): Likewise.
1016         (build_alias_set_optimal_p): Likewise.
1017
1018 2011-08-23  Richard Guenther  <rguenther@suse.de>
1019
1020         PR tree-optimization/50162
1021         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1022
1023 2011-08-23  Richard Guenther  <rguenther@suse.de>
1024
1025         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1026         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1027         (create_data_ref): Also dump access functions for the created data-ref.
1028
1029 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1030             Kirill Yukhin  <kirill.yukhin@intel.com>
1031
1032         PR target/50155
1033         * config/i386/sse.md (VI_AVX2): New.
1034         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1035         (*<plusminus_insn><mode>3): Ditto.
1036         (<sse2_avx2>_andnot<mode>3): Ditto.
1037         (*andnot<mode>3): Fix order of cond operands.
1038         Add asserts for correct TARGET_xxx.
1039         (*<any_logic:code><mode>3): Ditto.
1040
1041 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1042
1043         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1044         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1045         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1046         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1047         and return types to unsigned char. Use reg_class_contents instead
1048         of class_contents.
1049         (TARGET_CLASS_MAX_NREGS): Define.
1050
1051 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1052
1053         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1054         to make computed_jump_p return true.
1055
1056 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1057
1058         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1059         (PICFLAG_FOR_TARGET): Substitute.
1060         * aclocal.m4: Regenerate.
1061         * configure: Regenerate.
1062
1063 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1064
1065         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1066         after reading in the pch.
1067
1068 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1069
1070         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1071         * configure: Regenerated.
1072
1073 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1074
1075         PR tree-optimization/50133
1076         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1077         from stmt instead of some statement around gsi.
1078
1079         PR middle-end/50141
1080         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1081         innerdecl is a VAR_DECL.
1082
1083 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1084
1085         * config/i386/avx2intrin.h: New file.
1086         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1087         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1088         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1089         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1090         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1091         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1092         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1093         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1094         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1095         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1096         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1097         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1098         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1099         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1100         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1101         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1102         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1103         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1104         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1105         VOID_FTYPE_PV8SI_V8SI_V8SI,
1106         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1107         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1108         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1109         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1110         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1111         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1112         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1113         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1114         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1115         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1116         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1117         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1118         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1119         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1120         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1121         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1122         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1123         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1124         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1125         V4DI_FTYPE_V4DI_INT_CONVERT,
1126         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1127         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1128         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1129         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1130         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1131         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1132         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1133         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1134         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1135         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1136         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1137         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1138         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1139         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1140         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1141         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1142         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1143         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1144         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1145         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1146         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1147         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1148         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1149         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1150         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1151         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1152         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1153         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1154         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1155         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1156         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1157         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1158         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1159         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1160         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1161         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1162         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1163         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1164         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1165         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1166         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1167         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1168         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1169         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1170         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1171         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1172         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1173         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1174         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1175         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1176         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1177         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1178         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1179         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1180         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1181         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1182         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1183         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1184         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1185         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1186         IX86_BUILTIN_VBROADCASTSS_PS256,
1187         IX86_BUILTIN_VBROADCASTSD_PD256,
1188         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1189         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1190         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1191         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1192         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1193         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1194         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1195         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1196         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1197         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1198         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1199         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1200         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1201         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1202         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1203         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1204         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1205         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1206         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1207         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1208         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1209         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1210         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1211         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1212         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1213         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1214         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1215         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1216         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1217         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1218         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1219         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1220         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1221         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1222         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1223         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1224         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1225         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1226         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1227         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1228         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1229         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1230         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1231         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1232         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1233         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1234         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1235         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1236         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1237         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1238         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1239         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1240         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1241         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1242         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1243         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1244         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1245         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1246         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1247         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1248         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1249         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1250         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1251         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1252         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1253         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1254         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1255         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1256         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1257         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1258         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1259         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1260         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1261         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1262         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1263         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1264         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1265         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1266         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1267         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1268         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1269         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1270         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1271         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1272         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1273         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1274         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1275         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1276         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1277         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1278         IX86_BUILTIN_VBROADCASTSD_PD256,
1279         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1280         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1281         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1282         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1283         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1284         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1285         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1286         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1287         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1288         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1289         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1290         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1291         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1292         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1293         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1294         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1295         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1296         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1297         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1298         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1299         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1300         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1301         IX86_BUILTIN_GATHERDIV8SI.
1302         (ix86_preferred_simd_mode): Support AVX2 modes.
1303         (ix86_expand_args_builtin): Support AVX2 builtins.
1304         (ix86_expand_special_args_builtin): Likewise.
1305         (ix86_expand_builtin): Likewise.
1306         * config/i386/i386.md (UNSPEC_VPERMSI): New.
1307         (UNSPEC_VPERMDF): Likewise.
1308         (UNSPEC_VPERMSF): Likewise.
1309         (UNSPEC_VPERMDI): Likewise.
1310         (UNSPEC_VPERMTI): Likewise.
1311         (UNSPEC_GATHER): Likewise.
1312         (ssemodesuffix): Extend.
1313         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1314         is defined.
1315         * config/i386/predicates.md (const1248_operand): New.
1316         * config/i386/sse.md (VI1_AVX2): New mode iterator.
1317         (VI2_AVX2): Likewise.
1318         (VI4_AVX2): Likewise.
1319         (VI8_AVX2): Likewise.
1320         (VIMAX_AVX2): Likewise.
1321         (SSESCALARMODE): Likewise.
1322         (VI12_AVX2): Likewise.
1323         (VI24_AVX2): Likewise.
1324         (VI124_AVX2): Likewise.
1325         (VI248_AVX2): Likewise.
1326         (VI48_AVX2): Likewise.
1327         (VI4SD_AVX2): Likewise.
1328         (V48_AVX2): Likewise.
1329         (AVX256MODE2P): Likewise.
1330         (AVXMODE48P_DI): Likewise.
1331         (sse2_avx2): New mode attribute.
1332         (ssse3_avx2): Likewise.
1333         (sse4_1_avx2): Likewise.
1334         (avx_avx2): Likewise.
1335         (ssebytemode): Likewise.
1336         (AVXTOSSEMODE): Likewise.
1337         (AVXMODE48P_DI): Likewise.
1338         (gthrfirstp): Likewise.
1339         (gthrlastp): Likewise.
1340         (lshift): New code_iterator
1341         (lshift): New code attribute.
1342         (lshift): Likewise.
1343         (ssescalarmodesuffix): Update.
1344         (sseunpackmode): Likewise.
1345         (ssepackmode): Likewise.
1346         (avx2_vec_dupv4sf): New insn pattern.
1347         (avx2_vec_dupv8sf): Likewise.
1348         (avx2_interleave_highv4di): Likewise.
1349         (avx2_interleave_lowv4di): Likewise.
1350         (avx2_umulv4siv4di3): Likewise
1351         (*avx2_umulv4siv4di3): Likewise
1352         (avx2_pmaddwd): Likewise.
1353         (*avx2_pmaddwd): Likewise.
1354         (avx2_lshrqv4di3): Likewise.
1355         (avx2_lshlqv4di3): Likewise.
1356         (avx2_lshl<mode>3): Likewise.
1357         (avx2_<umaxmin:code><mode>3): Likewise.
1358         (*avx2_<umaxmin:code><mode>3): Likewise.
1359         (avx2_<smaxmin:code><mode>3): Likewise.
1360         (*avx2_<smaxmin:code><mode>3): Likewise.
1361         (avx2_eq<mode>3): Likewise.
1362         (*avx2_eq<mode>3): Likewise.
1363         (avx2_gt<mode>3): Likewise.
1364         (avx2_interleave_highv32qi): New.
1365         (avx2_interleave_lowv32qi): Likewise.
1366         (avx2_interleave_highv16hi): Likewise.
1367         (avx2_interleave_lowv16hi): Likewise.
1368         (avx2_interleave_highv8si): Likewise.
1369         (avx2_interleave_lowv8si): Likewise.
1370         (avx2_pshufd): Likewise.
1371         (avx2_pshufd_1): Likewise.
1372         (avx2_pshuflwv3): Likewise.
1373         (avx2_pshuflw_1): Likewise.
1374         (avx2_pshufhwv3): Likewise.
1375         (avx2_pshufhw_1): Likewise.
1376         (avx2_uavgv32qi3): Likewise.
1377         (*avx2_uavgv32qi3): Likewise.
1378         (avx2_uavgv16hi3): Likewise.
1379         (*avx2_uavgv16hi3): Likewise.
1380         (avx2_pmovmskb): Likewise.
1381         (avx2_phaddwv16hi3): Likewise.
1382         (avx2_phadddv8si3): Likewise.
1383         (avx2_phaddswv16hi3): Likewise.
1384         (avx2_phsubwv16hi3): Likewise.
1385         (avx2_phsubdv8si3): Likewise.
1386         (avx2_phsubswv16hi3): Likewise.
1387         (avx2_pmaddubsw256): Likewise.
1388         (avx2_umulhrswv16hi3): Likewise.
1389         (*avx2_umulhrswv16hi3): Likewise.
1390         (avx2_packusdw): Likewise.
1391         (avx2_pblendd<mode>): Likewise.
1392         (avx2_<code>v16qiv16hi2): Likewise.
1393         (avx2_<code>v8qiv8si2): Likewise.
1394         (avx2_<code>v8hiv8si2): Likewise.
1395         (avx2_<code>v4qiv4di2): Likewise.
1396         (avx2_<code>v4hiv4di2): Likewise.
1397         (avx2_<code>v4siv4di2): Likewise.
1398         (avx2_pbroadcast<mode>): Likewise.
1399         (avx2_permvarv8si): Likewise.
1400         (avx2_permv4df): Likewise.
1401         (avx2_permvarv8sf): Likewise.
1402         (avx2_permv4di): Likewise.
1403         (avx2_permv2ti): Likewise.
1404         (avx2_vec_dupv4df): Likewise.
1405         (avx2_vbroadcasti128_<mode>): Likewise.
1406         (avx2_vec_set_lo_v4di): Likewise.
1407         (avx2_vec_set_hi_v4di): Likewise.
1408         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1409         (avx2_extracti128): Likewise.
1410         (avx2_inserti128): Likewise.
1411         (avx2_ashrvv8si): Likewise.
1412         (avx2_ashrvv4si): Likewise.
1413         (avx2_<lshift>vv8si): Likewise.
1414         (avx2_<lshift>v<mode>): Likewise.
1415         (avx2_<lshift>vv2di): Likewise.
1416         (avx2_gathersi<mode>): Likewise.
1417         (*avx2_gathersi<mode>): Likewise.
1418         (avx2_gatherdi<mode>): Likewise.
1419         (*avx2_gatherdi<mode>): Likewise.
1420         (avx2_gatherdi<mode>256): Likewise.
1421         (*avx2_gatherdi<mode>256): Likewise.
1422         (<plusminus_insn><mode>3): Use VI mode iterator.
1423         (*<plusminus_insn><mode>3): Use VI mode iterator.
1424         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1425         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1426         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1427         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1428         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
1429         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
1430         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1431         Use VI2_AVX2 mode iterator.
1432         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1433         Use VI2_AVX2 mode iterator.
1434         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
1435         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
1436         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1437         Use VI4_AVX2 mode iterator.
1438         (ashr<mode>3): Use VI24_AVX2 mode iterator.
1439         (lshr<mode>3): Use VI248_AVX2 mode iterator.
1440         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1441         Use VIMAX_AVX2 mode iterator.
1442         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1443         Use VI mode iterator.
1444         (*andnot<mode>3): Update for AVX2.
1445         (*<any_logic:code><mode>3): Likewise.
1446         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1447         Use VI1_AVX mode iterator.
1448         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
1449         Use VI2_AVX mode iterator.
1450         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1451         Use VI1_AVX mode iterator.
1452         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1453         Use VI8_AVX2 mode iterator.
1454         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1455         Use VI1_AVX2 mode iterator.
1456         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1457         Use VI124_AVX2 mode iterator.
1458         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1459         Use SSESCALARMODE mode iterator.
1460         (abs<mode>2): Use VI124_AVX2 mode iterator.
1461         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1462         Use VI8_AVX2 mode iterator.
1463         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1464         Use VI1_AVX2 mode iterator.
1465         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1466         Use VI1_AVX2 mode iterator.
1467         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1468         Use VI2_AVX2 mode iterator.
1469         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1470         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1471         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1472         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1473         Use V48_AVX2 mode iterator.
1474         * doc/extend.texi: Document AVX2 built-in functions.
1475         * doc/invoke.texi: Document -mavx2.
1476
1477 2011-08-22  Matthias Klose <doko@debian.org>
1478
1479         Revert:
1480         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1481                     Matthias Klose <doko@debian.org>
1482         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1483         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1484         convention.
1485         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1486
1487 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1488
1489         PR bootstrap/50146
1490         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1491         to #ifndef HONOR_REG_ALLOC_ORDER block.
1492
1493 2011-08-21  Richard Henderson  <rth@redhat.com>
1494
1495         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1496         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1497         * resource.c (next_insn_no_annul): Likewise.
1498         (mark_set_resources): Likewise.
1499         * reorg.c (delete_from_delay_slot): Likewise.
1500         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1501         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1502
1503 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1504
1505         * config/i386/i386.md (any_div): Remove.
1506         (sgnprefix): Update for removal.
1507         (u): Ditto.
1508
1509 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1510
1511         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1512         for ira_reg_class_max_nregs.  Increase pressure by 1.
1513         (mark_pseudo_regno_subword_dead): Use allocno class
1514         for ira_reg_class_max_nregs.
1515
1516 2011-08-20  Richard Henderson  <rth@redhat.com>
1517
1518         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1519         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1520         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1521         config/c6x/ltf.c: Adjust include path for soft-fp.
1522
1523 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1524
1525         PR other/46770
1526         * config.gcc (tm_file): Add initfini-array.h if
1527         .init_arrary/.fini_array are supported.
1528
1529         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1530         USE_INITFINI_ARRAY is defined.
1531
1532         * output.h (default_elf_init_array_asm_out_constructor): New.
1533         (default_elf_fini_array_asm_out_destructor): Likewise.
1534         * varasm.c (elf_init_array_section): Likewise.
1535         (elf_fini_array_section): Likewise.
1536         (get_elf_initfini_array_priority_section): Likewise.
1537         (default_elf_init_array_asm_out_constructor): Likewise.
1538         (default_elf_fini_array_asm_out_destructor): Likewise.
1539
1540         * config/initfini-array.h: New.
1541
1542 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1543
1544         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1545         OK for ST_REGS and FP_REGS before taking those classes into account.
1546
1547 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1548
1549         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1550         before checking for annulled branches.
1551
1552 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1553
1554         * config/i386/i386.c (ix86_binary_operator_ok): Use
1555         satisfies_constraint_L.
1556
1557 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1558             Michael Matz  <matz@suse.de>
1559
1560         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1561         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1562
1563 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1564
1565         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1566         * doc/tm.texi: Regenerate.
1567         * targhooks.c (default_preferred_output_reload_class): Don't use
1568         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1569         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1570
1571 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1572
1573         PR tree-optimization/48739
1574         * tree-ssa.c: Include cfgloop.h.
1575         (execute_update_addresses_taken): When updating ssa, if in loop closed
1576         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1577         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1578
1579 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1580
1581         PR rtl-optimization/49936
1582         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1583         for calculation of max register move costs.
1584
1585 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1586
1587         * c-parser.c (c_parser_postfix_expression): Convert operands of
1588         __builtin_complex to their semantic types.
1589
1590 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1591
1592         PR middle-end/49721
1593         * explow.c (convert_memory_address_addr_space): Also permute the
1594         conversion and addition of constant for zero-extend.
1595
1596 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1597
1598         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1599         * doc/extend.texi (__builtin_complex): Document.
1600
1601 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1602
1603         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1604         beyond conversions.
1605         (convert_mult_to_widen): Convert constant inputs to the right type.
1606         (convert_plusminus_to_widen): Don't automatically reject inputs that
1607         are not an SSA_NAME.
1608         Convert constant inputs to the right type.
1609
1610 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1611
1612         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1613         to the correct type.
1614
1615 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1616
1617         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1618         unsigned inputs of different modes.
1619         (convert_plusminus_to_widen): Likewise.
1620
1621 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1622
1623         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1624         'type'.
1625         Use 'type' from caller, not inferred from 'rhs'.
1626         Don't reject non-conversion statements. Do return lhs in this case.
1627         (is_widening_mult_p): Add new argument 'type'.
1628         Use 'type' from caller, not inferred from 'stmt'.
1629         Pass type to is_widening_mult_rhs_p.
1630         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1631         (convert_plusminus_to_widen): Likewise.
1632
1633 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1634
1635         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1636         Ensure the the larger type is the first operand.
1637
1638 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1639
1640         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1641         unsupported unsigned multiplies to signed.
1642         (convert_plusminus_to_widen): Likewise.
1643
1644 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1645
1646         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1647         conversion statement separating multiply-and-accumulate.
1648
1649 2011-08-19  Richard Guenther  <rguenther@suse.de>
1650
1651         PR tree-optimization/50067
1652         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1653         offset only if we accounted for it.
1654
1655 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1656
1657         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1658         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1659         * optabs.c (find_widening_optab_handler_and_mode): New function.
1660         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1661         (expand_binop_directly): Likewise.
1662         (expand_binop): Likewise.
1663         * optabs.h (find_widening_optab_handler): New macro define.
1664         (find_widening_optab_handler_and_mode): New prototype.
1665         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1666         type precision rules.
1667         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1668         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1669         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1670         Explicitly disallow mis-matched input types.
1671         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1672         input types to fit the new handler.
1673         (convert_plusminus_to_widen): Likewise.
1674
1675 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1676
1677         * expr.c (expand_expr_real_2): Use widening_optab_handler.
1678         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1679         (gen_insn): $N now means $a must be wider than $b, not consecutive.
1680         * optabs.c (widened_mode): New function.
1681         (expand_widen_pattern_expr): Use widening_optab_handler.
1682         (expand_binop_directly): Likewise.
1683         (expand_binop): Likewise.
1684         * optabs.h (widening_optab_handlers): New struct.
1685         (optab_d): New member, 'widening'.
1686         (widening_optab_handler): New function.
1687         (set_widening_optab_handler): New function.
1688         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1689         widening_optab_handler.
1690         (convert_plusminus_to_widen): Likewise.
1691
1692 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1693
1694         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1695         pedantic.
1696         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1697         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1698
1699 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1700
1701         * opth-gen.awk: Do not declare target save/restore structures and
1702         functions if IN_RTS defined.
1703
1704 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1705
1706         PR target/49437
1707         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1708         when stack was realigned in interrupt handler prologue.
1709
1710 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1711
1712         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1713         (quals_from_declspecs): Assert _Noreturn not present.
1714         (grokdeclarator): Handle _Noreturn.
1715         (build_null_declspecs): Initialize noreturn_p.
1716         (declspecs_add_scspec): Handle RID_NORETURN.
1717         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1718         (c_parser_attributes): Handle RID_NORETURN.
1719         * c-tree.h (struct c_declspecs): Add noreturn_p.
1720         * ginclude/stdnoreturn.h: New.
1721         * Makefile.in (USER_H): Add stdnoreturn.h.
1722
1723 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1724
1725         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1726         (OPTION_MASK_ISA_AVX_UNSET): Update.
1727         (OPTION_MASK_ISA_AVX2_UNSET): New.
1728         (ix86_handle_option): Handle OPT_mavx2 case.
1729         * config/i386/cpuid.h (bit_AVX2): New.
1730         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1731         AVX2 feature.
1732         * config/i386/i386-c.c (ix86_target_macros_internal):
1733         Conditionally define __AVX2__.
1734         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1735         Define "core-avx2" processor alias.  Handle avx2 option.
1736         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1737         * config/i386/i386.h (TARGET_AVX2): New.
1738         * config/i386/i386.opt (mavx2): New.
1739         * doc/invoke.texi: Document -mavx2.
1740
1741 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
1742
1743         PR rtl-optimization/49890
1744         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1745         subclasses of class which is superset of a pressure class.
1746
1747 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1748             Igor Zamyatin <igor.zamyatin@intel.com>
1749
1750         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1751         with HOST_WIDE_INT for isa_flag.
1752         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1753         isa variables.
1754
1755         * config/i386/i386.c (ix86_target_string): Replace int with
1756         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
1757         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1758         (pta_flags): Removed.
1759         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1760         (pta): Use HOST_WIDE_INT on flags.
1761         (builtin_isa): Use HOST_WIDE_INT on isa.
1762         (ix86_add_new_builtins): Likewise.
1763         (def_builtin): Use HOST_WIDE_INT on mask.
1764         (def_builtin_const): Likewise.
1765         (builtin_description): Likewise.
1766
1767         * config/i386/i386.opt (ix86_isa_flags): Replace int with
1768         HOST_WIDE_INT.
1769         (ix86_isa_flags_explicit): Likewise.
1770         (x_ix86_isa_flags_explicit): Likewise.
1771
1772 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
1773
1774         PR rtl-optimization/50107
1775         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1776         (ira_hard_reg_in_set_p): New.
1777
1778         * ira-color.c (calculate_saved_nregs): New.
1779         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
1780         hard regs.
1781         (allocno_reload_assign, fast_allocation): Use
1782         ira_hard_reg_set_intersection_p instead of
1783         ira_hard_reg_not_in_set_p.
1784
1785         * ira.c (setup_reg_renumber): Use
1786         ira_hard_reg_set_intersection_p instead of
1787         ira_hard_reg_not_in_set_p.
1788         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1789         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1790
1791         * ira-costs.c (ira_tune_allocno_costs): Use
1792         ira_hard_reg_set_intersection_p instead of
1793         ira_hard_reg_not_in_set_p.
1794
1795 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1796             Igor Zamyatin <igor.zamyatin@intel.com>
1797
1798         * hwint.h (HOST_WIDE_INT_1): New.
1799
1800         * opt-functions.awk (switch_bit_fields): Initialize the
1801         host_wide_int field.
1802         (host_wide_int_var_name): New.
1803         (var_type_struct): Check and return HOST_WIDE_INT.
1804
1805         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1806
1807         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1808
1809         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
1810         check masks for HOST_WIDE_INT.
1811
1812         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1813         (option_enabled): Likewise.
1814         (get_option_state): Likewise.
1815
1816         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
1817         to HOST_WIDE_INT.
1818
1819 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1820             Marc Glisse  <marc.glisse@normalesup.org>
1821
1822         PR libstdc++-v3/1773
1823         * target.def (decl_mangling_context): New C++ hook.
1824         * doc/tm.texi: Regenerate.
1825         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1826         * config/sol2-protos.h: Group by source file.
1827         (solaris_cxx_decl_mangling_context): Declare.
1828         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1829         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1830         Use $<.
1831         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1832         Add sol2-stubs.o to extra_objs.
1833
1834 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1835
1836         PR target/50009
1837         * stor-layout.c (update_alignment_for_field): Don't ICE on
1838         packed flexible array members if ms_bitfield_layout_p.
1839
1840         PR target/50092
1841         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1842         on the result before returning it.
1843
1844         PR debug/50017
1845         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1846         is a debug stmt, use location of the first non-debug stmt after it.
1847
1848 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1849
1850         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1851         (arm_size_rtx_costs): Likewise.
1852
1853 2011-08-18  Richard Guenther  <rguenther@suse.de>
1854
1855         * tree.h (tree_int_cst_msb): Remove.
1856         * tree.c (tree_int_cst_msb): Likewise.
1857         (tree_int_cst_sign_bit): Move from ...
1858         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1859
1860 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1861
1862         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1863         * doc/tm.texi: Regenerate.
1864         * target.def (rtx_costs): Add an opno parameter.
1865         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1866         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1867         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1868         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1869         * cse.c (COST_IN): Add an opno parameter.
1870         (notreg_cost): Likewise.  Update call to rtx_cost.
1871         (COST, fold_rtx): Update accordingly.
1872         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1873         * expmed.c (emit_store_flag): Likewise.
1874         * optabs.c (avoid_expensive_constant): Add an opno parameter.
1875         Update call to rtx_cost.
1876         (expand_binop_directly, expand_binop): Likewise.
1877         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1878         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1879         (set_src_cost, get_full_set_src_cost): Update accordingly.
1880         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
1881         to target hook.
1882         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
1883         (default_adress_cost): Update calls to rtx_cost.
1884
1885         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1886         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1887         (arm_rtx_costs): Add an opno parameter.
1888         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1889         adjust any recursive rtx-cost calls.
1890         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1891         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1892         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1893         * config/cris/cris.c (cris_rtx_costs): Likewise.
1894         * config/frv/frv.c (frv_rtx_costs): Likewise.
1895         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1896         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1897         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1898         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1899         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1900         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1901         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1902         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1903         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1904         * config/mep/mep.c (mep_rtx_cost): Likewise.
1905         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1906         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1907         (mips_zero_extend_cost): Add an opno parameter.
1908         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1909         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1910         to rtx_cost.
1911         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1912         rtx-cost calls.
1913         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1914         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1915         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1916         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1917         (rs6000_debug_rtx_costs): Likewise.
1918         * config/s390/s390.c (s390_rtx_costs): Likewise.
1919         * config/score/score-protos.h (score_rtx_costs): Likewise.
1920         * config/score/score.c (score_rtx_costs): Likewise.
1921         * config/sh/sh.c (andcosts): Update call to rtx_cost.
1922         (sh_rtx_costs): Add an opno parameter.
1923         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1924         * config/spu/spu.c (spu_rtx_costs): Likewise.
1925         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1926         * config/v850/v850.c (v850_rtx_costs): Likewise.
1927         * config/vax/vax.c (vax_rtx_costs): Likewise.
1928         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1929
1930 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1931
1932         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1933         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1934         rtx_cost.
1935         * calls.c (precompute_register_parameters): Likewise.
1936         * combine.c (expand_compound_operation, make_extraction): Likewise.
1937         (force_to_mode, distribute_and_simplify_rtx): Likewise.
1938         * dse.c (find_shift_sequence): Likewise.
1939         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1940         * expr.c (compress_float_constant): Likewise.
1941         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1942         * gcse.c (want_to_gcse_p): Likewise.
1943         * ifcvt.c (noce_try_sign_mask): Likewise.
1944         * loop-doloop.c (doloop_optimize): Likewise.
1945         * loop-invariant.c (create_new_invariant): Likewise.
1946         * optabs.c (avoid_expensive_constant): Likewise.
1947         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1948         (try_replace_in_use, reload_cse_move2add): Likewise.
1949         * reload1.c (calculate_elim_costs_all_insns): Likewise.
1950         (note_reg_elim_costly): Likewise.
1951         * rtlanal.c (insn_rtx_cost): Likewise.
1952         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1953         * stmt.c (lshift_cheap_p): Likewise.
1954         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1955         * config/avr/avr.c (final_prescan_insn): Likewise.
1956         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1957         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1958
1959 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1960
1961         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
1962         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
1963         * cfgloopanal.c (seq_cost): Likewise.
1964         * loop-invariant.c (create_new_invariant): Likewise.
1965         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
1966         (reload_cse_move2add): Use get_full_set_rtx_cost.
1967
1968 2011-08-18  Richard Guenther  <rguenther@suse.de>
1969
1970         * expr.c (get_inner_reference): Fix typo in last change.
1971
1972 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1973             Joseph Myers  <joseph@codesourcery.com>
1974
1975         PR tree-optimization/49963
1976         * hwint.c (absu_hwi): Define.
1977         * hwint.h (absu_hwi): Declare.
1978         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
1979         of abs_hwi.
1980         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1981         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1982
1983 2011-08-18  Richard Guenther  <rguenther@suse.de>
1984
1985         * expr.c (get_inner_reference): Sign-extend the constant
1986         twos-complement offset before doing arbitrary precision
1987         arithmetic on it.
1988         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
1989         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
1990         to get_constraint_for_ptr_offset.
1991
1992 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1993
1994         PR target/50068
1995         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
1996
1997 2011-08-17  Richard Guenther  <rguenther@suse.de>
1998
1999         * tree.h (convert_to_ptrofftype_loc): New function.
2000         (convert_to_ptrofftype): Define.
2001         * builtins.c (expand_builtin_bzero): Use size_type_node.
2002         (fold_builtin_bzero): Likewise.
2003         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2004         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2005         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2006         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2007         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2008         * fold-const.c (build_range_check): Negate using the original type.
2009         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2010         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2011         convert_to_ptrofftype.
2012         * gimplify.c (gimplify_self_mod_expr): Likewise.
2013         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2014         (graphite_create_new_loop_guard): Likewise.
2015         * graphite-sese-to-poly.c (my_long_long): Remove.
2016         (scop_ivs_can_be_represented): Adjust.
2017         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2018         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2019         * tree-loop-distribution.c (build_size_arg_loc): Use
2020         size_type_node.
2021         (generate_memset_zero): Simplify.
2022         * tree-mudflap.c: Use fold_convert, not convert.
2023         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2024         its own type.
2025         (determine_offset): Likewise for DR_STEP.
2026         (valid_initializer_p): Likewise.
2027         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2028         to an integer type of same size.
2029         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2030         to sizetype without need.
2031         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2032         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2033         * tree-ssa-loop-manip.c (create_iv): Likewise.
2034         (determine_exit_conditions): Adjust comment.
2035         * tree-ssa-pre.c (create_expression_by_pieces): Use
2036         convert_to_ptrofftype.
2037         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2038         * varasm.c (array_size_for_constructor): Compute using double_ints.
2039
2040 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2041
2042         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2043         when generating an integer result where possible.  Short-cut
2044         comparison against 0 also for QImode.
2045
2046 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2047
2048         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2049         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2050         prototype.
2051         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2052         (spu_legitimate_address_p): Do not check displacement if the base
2053         is an eliminable stack register.
2054
2055 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2056
2057         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2058         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2059         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2060         m32c_preferred_output_reload_class): Remove.
2061         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2062         Change rclass argument and return types to reg_class_t. Use
2063         reg_class_subset_p instead of class_sizes.
2064         (m32c_preferred_output_reload_class): Make static. Change rclass
2065         argument and return types to reg_class_t.
2066         (TARGET_PREFERRED_RELOAD_CLASS,
2067         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2068
2069 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2070
2071         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2072
2073 2011-08-16  Richard GUenther  <rguenther@suse.de>
2074
2075         PR tree-optimization/50082
2076         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2077         warnings here, instead of ...
2078         (ssa_forward_propagate_and_combine): ... here.
2079         (forward_propagate_into_comparison_1): Adjust.
2080         (forward_propagate_into_comparison): Likewise.
2081         (forward_propagate_into_gimple_cond): Likewise.
2082         (forward_propagate_into_cond): Likewise.
2083
2084 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2085
2086         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2087         instead of ggc_alloc_zone_vec_rtvec_def.
2088
2089 2011-08-16  Richard Guenther  <rguenther@suse.de>
2090
2091         * tree.h (ptrofftype_p): New helper function.
2092         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2093         offset verification.
2094         (verify_gimple_assign_binary): Likewise.
2095         * tree.c (build2_stat): Likewise.
2096         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2097         (reset_evolution_in_loop): Likewise.
2098         * tree-chrec.h (build_polynomial_chrec): Likewise.
2099
2100 2011-08-16  Liang Wang  <lwang1@marvell.com>
2101
2102         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2103         ggc_alloc_zone_vec_rtvec_def.
2104
2105 2011-08-16  Richard Guenther  <rguenther@suse.de>
2106
2107         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2108         helper factored out from ...
2109         (extract_range_from_binary_expr_1): ... here.  Re-structure
2110         to not glob handling too different tree codes.
2111
2112 2011-08-15  Richard Henderson  <rth@redhat.com>
2113
2114         PR middle-end/50006
2115         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2116         setting out to include allocate_stack named pattern as well.
2117         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2118         * stmt.c (expand_stack_restore): Likewise.
2119
2120 2011-08-15  Richard Guenther  <rguenther@suse.de>
2121
2122         PR middle-end/50082
2123         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2124         convert the modified operand to the other operand type.
2125         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2126         useless conversions stripped from comparison operands.
2127
2128 2011-08-15  Richard Guenther  <rguenther@suse.de>
2129
2130         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2131         (extract_range_from_unary_expr_1): Restructure.
2132
2133 2011-08-15  Richard Guenther  <rguenther@suse.de>
2134
2135         PR tree-optimization/50058
2136         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2137         copy matching.
2138
2139 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2140
2141         PR target/50022
2142         * config/arm/arm.c (output_move_double): Add 2 parameters
2143         to count the number of insns emitted and whether to emit or not.
2144         Use the flag to decide when to emit and count number of instructions
2145         that will be emitted.
2146         Handle case where output_move_double might be called for calculating
2147         lengths with an invalid constant.
2148         (arm_count_output_move_double_insns): Define.
2149         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2150         (output_move_double): Adjust prototype.
2151         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2152         output_move_double.
2153         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2154         for ce_count.
2155         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2156         ("*movdf_soft_insn"): Likewise.
2157         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2158         ("*cirrus_thumb2_movdi"): Likewise.
2159         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2160         ("*cirrus_movdf_hard_insn"): Likewise.
2161         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2162         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2163         ("mov<mode>_internal VMMX"): Likewise.
2164         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2165
2166 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2167
2168         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2169         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2170         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2171         for TARGET_ROUND.
2172
2173         (rint<mode>2): Simplify TARGET_ROUND check.
2174         (floor<mode>2): Ditto.
2175         (ceil<mode>2): Ditto.
2176         (btrunc<mode>2): Ditto.
2177
2178 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2179
2180         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2181         as mmix_preferred_output_reload_class.
2182
2183 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2184
2185         * PR target/49903
2186         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2187         (branch_unspec): New insn.
2188         (branch): Beauty farm.
2189         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2190         to be IF_THEN_ELSE.
2191         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2192         New static functions.
2193         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2194         Use CONST_INT_P.  Beauty.
2195
2196 2011-08-12  Richard Henderson  <rth@redhat.com>
2197
2198         PR rtl-opt/49994
2199         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2200         * sched-deps.c (init_deps): Clear it.
2201         (deps_analyze_insn): Consume it.
2202         (sched_analyze_insn): Fill it.
2203
2204 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2205
2206         PR target/48328
2207         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2208         for tbh instructions.
2209
2210 2011-08-12  Diego Novillo  <dnovillo@google.com>
2211
2212         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2213         (streamer_write_uhwi): Rename from lto_output_uleb128.
2214         (streamer_write_hwi): Rename from output_sleb128.
2215         (streamer_write_string): Rename from lto_output_string.
2216         (streamer_string_index): Rename from lto_string_index.
2217         (streamer_write_string_with_length): Rename from
2218         lto_output_string_with_length.
2219         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2220         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2221         (streamer_read_string): Rename from lto_input_string.
2222         (streamer_read_indexed_string): Rename from input_string_internal.
2223         (streamer_read_uhwi): Rename from lto_input_uleb128.
2224         (streamer_read_hwi): Rename from lto_input_sleb128.
2225         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2226         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2227         (streamer_write_enum): Rename from lto_output_enum.
2228         (streamer_read_enum): Rename from lto_input_enum.
2229         (streamer_write_record_start): Rename from output_record_start.
2230         (streamer_read_record_start): Rename from input_record_start.
2231         (streamer_write_bitpack): Rename from lto_output_bitpack.
2232         (streamer_read_bitpack): Rename from lto_input_bitpack.
2233         (streamer_write_char_stream): Rename from lto_output_1_stream.
2234         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2235         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2236         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2237         (streamer_read_string_cst): Rename from input_string_cst.
2238         (streamer_read_chain): Rename from lto_input_chain.
2239         (streamer_alloc_tree): Rename from lto_materialize_tree.
2240         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2241         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2242         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2243         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2244         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2245         (streamer_write_chain): Rename from lto_output_chain.
2246         (streamer_write_tree_header): Rename from lto_output_tree_header.
2247         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2248         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2249         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2250         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2251         (streamer_check_handled_ts_structures): Rename from
2252         check_handled_ts_structures.
2253         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2254         (streamer_tree_cache_insert_at): Rename from
2255         lto_streamer_cache_insert_at.
2256         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2257         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2258         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2259         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2260         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2261         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2262         (write_identifier): Rename from output_identifier.
2263         (write_ts_common_tree_pointers): Rename from
2264         lto_output_ts_common_tree_pointers.
2265         (write_ts_vector_tree_pointers): Rename from
2266         lto_output_ts_vector_tree_pointers.
2267         (write_ts_complex_tree_pointers): Rename from
2268         lto_output_ts_complex_tree_pointers.
2269         (write_ts_decl_minimal_tree_pointers): Rename from
2270         lto_output_ts_decl_minimal_tree_pointers.
2271         (write_ts_decl_common_tree_pointers): Rename from
2272         lto_output_ts_decl_common_tree_pointers.
2273         (write_ts_decl_non_common_tree_pointers): Rename from
2274         lto_output_ts_decl_non_common_tree_pointers.
2275         (write_ts_decl_with_vis_tree_pointers): Rename from
2276         lto_output_ts_decl_with_vis_tree_pointers.
2277         (write_ts_field_decl_tree_pointers): Rename from
2278         lto_output_ts_field_decl_tree_pointers.
2279         (write_ts_function_decl_tree_pointers): Rename from
2280         lto_output_ts_function_decl_tree_pointers.
2281         (write_ts_type_common_tree_pointers): Rename from
2282         lto_output_ts_type_common_tree_pointers.
2283         (write_ts_type_non_common_tree_pointers): Rename from
2284         lto_output_ts_type_non_common_tree_pointers.
2285         (write_ts_list_tree_pointers): Rename from
2286         lto_output_ts_list_tree_pointers.
2287         (write_ts_vec_tree_pointers): Rename from
2288         lto_output_ts_vec_tree_pointers.
2289         (write_ts_exp_tree_pointers): Rename from
2290         lto_output_ts_exp_tree_pointers.
2291         (write_ts_block_tree_pointers): Rename from
2292         lto_output_ts_block_tree_pointers.
2293         (write_ts_binfo_tree_pointers): Rename from
2294         lto_output_ts_binfo_tree_pointers.
2295         (write_ts_constructor_tree_pointers): Rename from
2296         lto_output_ts_constructor_tree_pointers.
2297         (write_ts_target_option): Rename from lto_output_ts_target_option.
2298         (write_ts_translation_unit_decl_tree_pointers): Rename from
2299         lto_output_ts_translation_unit_decl_tree_pointers.
2300         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2301         Rename from lto_streamer_cache_add_to_node_array.
2302         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2303         (record_common_node): Rename from lto_record_common_node.
2304
2305         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2306         declarations.
2307         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2308         function.
2309         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2310         unused function.
2311         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2312         (ipa-reference.o): Likewise.
2313         * lto-section-out.c: Include data-streamer.h.
2314         * ipa-reference.c: Include data-streamer.h.
2315
2316 2011-08-12  Nick Clifton  <nickc@redhat.com>
2317
2318         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2319         * doc/md.texi (cmpstrn): Note that the comparison stops if both
2320         fetched bytes are zero.
2321         (cmpstr): Likewise.
2322         (cmpmem): Note that the comparison does not stop if both of the
2323         fetched bytes are zero.
2324
2325 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
2326
2327         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2328         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2329         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2330         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2331         to integer_type_node.
2332         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2333         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2334         * builtins.c (expand_builtin_in): Ditto.
2335         (mathfn_built_in_1): Ditto.
2336         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2337         BUILT_IN_IFLOOR.
2338         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2339         BUILT_IN_IROUND.
2340         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2341         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2342         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2343
2344 2011-08-12  Richard Guenther  <rguenther@suse.de>
2345
2346         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2347
2348 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
2349
2350         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2351
2352 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2353
2354         * config/arm/arm.c (get_label_padding): New function.
2355         (create_fix_barrier, arm_reorg): Use it.
2356
2357 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2358
2359         PR target/49781
2360         * config/i386/i386.md (*lea_5_zext): New.
2361         (*lea_6_zext): Ditto.
2362         * config/i386/predicates.md (const_32bit_mask): New predicate.
2363         (lea_address_operand): Reject AND.
2364         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2365         const_32bit_mask immediate.
2366         (ix86_print_operand_address): Handle AND.
2367         (memory_address_length): Ditto.
2368
2369 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
2370             Brian Hackett  <bhackett1024@gmail.com>
2371
2372         * plugin.def: Add event for finish_decl.
2373         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2374         * c-decl.c (finish_decl): Invoke callbacks on above event.
2375         * doc/plugins.texi: Document above event.
2376
2377 2011-08-11  Richard Guenther  <rguenther@suse.de>
2378
2379         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2380         lookups, make looking through aggregate copies stronger.
2381
2382 2011-08-11  Richard Henderson  <rth@redhat.com>
2383
2384         PR bootstrap/50018
2385         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2386
2387 2011-08-11  Richard Guenther  <rguenther@suse.de>
2388
2389         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2390         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2391         (vrp_visit_stmt): Likewise.
2392
2393 2011-08-11  Richard Guenther  <rguenther@suse.de>
2394
2395         PR middle-end/50040
2396         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2397         load of the other piece with TREE_NO_WARNING.
2398         * tree-flow.h (warn_uninit): Adjust prototype.
2399         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2400         the base variable and the expression that is used separately.
2401         Properly query all TREE_NO_WARNING flags.
2402         (struct walk_data): Remove.
2403         (warn_uninitialized_var): Likewise.
2404         (warn_uninitialized_vars): Do not walk gimple pieces but simply
2405         look at all SSA uses of the statement.  Handle unused memory
2406         separately.
2407         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2408
2409 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2410
2411         * config/rx/rx.md (movsicc): Allow register to register transfers.
2412         (*movsicc): Likewise.
2413         (*stcc): Restrict this pattern to EQ and NE compares.
2414         (*stcc_reg): New pattern.  Works for any comparison but only for
2415         register transfers.
2416
2417 2011-08-11   Diego Novillo  <dnovillo@google.com>
2418
2419         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2420         Call stream_write_tree instead of output_record_start.
2421         (lto_output_ts_binfo_tree_pointers): Likewise.
2422
2423         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2424         Convert it to a macro.
2425         (stream_read_tree): Likewise.
2426
2427         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2428         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2429
2430         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2431         and tree_read_bitfields.
2432         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2433         (lto_write_tree): Call it.
2434         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2435         * streamer-hooks.h (struct streamer_hooks): Remove fields
2436         name, is_streamable and alloc_tree. Update all users.
2437         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2438         (lto_materialize_tree): ... here.
2439         Handle CALL_EXPR codes.
2440         Remove call to lto_streamer_cache_append.
2441         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2442         * tree-streamer.h (tree_read_bitfields): Declare.
2443
2444         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2445         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2446         * tree-streamer.h (stream_read_tree): New.  Replace all calls
2447         to lto_input_tree with it.
2448         (stream_write_tree): New.  Replace all calls to lto_output_tree,
2449         lto_output_tree_ref and lto_output_tree_or_ref with it.
2450         * lto-streamer-in.c (lto_read_tree): Inline code from
2451         lto_streamer_read_tree.
2452         (lto_input_tree): Move from tree-streamer-in.c.
2453         * lto-streamer-out.c (lto_output_tree_ref): Make static.
2454         Remove handling of NULL values for EXPR.
2455         Do not handle EXPRs that are not indexable.
2456         (lto_write_tree): Move from tree-streamer-out.c.
2457         Inline lto_streamer_write_tree.
2458         (lto_output_tree): Move from tree-streamer-out.c.
2459         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2460         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2461         (lto_preload_common_nodes): Likewise.
2462         Remove assertions and adjustments for nodes
2463         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2464         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2465         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2466         * lto-streamer.h (lto_input_tree): Declare.
2467         (lto_output_tree_ref): Remove.
2468         * streamer-hooks.h (struct streamer_hooks): Remove fields
2469         preload_common_nodes, indexable_with_decls_p,
2470         pack_value_fields, unpack_value_fields and output_tree_header.
2471         Update all users.
2472         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2473         (lto_input_tree_pointers): Likewise.
2474         (lto_read_tree): Move to lto-streamer-in.c.
2475         (lto_input_integer_cst): Make extern.
2476         (lto_get_pickled_tree): Likewise.
2477         (lto_get_builtin_tree): Likewise.
2478         (lto_input_tree): Move to lto-streamer-in.c.
2479         * tree-streamer-out.c (pack_value_fields): Make extern.
2480         (lto_output_tree_or_ref): Remove.  Replace all callers with
2481         calls to stream_write_tree.
2482         (lto_output_builtin_tree): Make extern.
2483         (lto_streamer_write_tree): Inline into lto_write_tree.
2484         (lto_output_tree_pointers): Make extern.
2485         (lto_output_tree_header): Likewise.
2486         (lto_output_integer_cst): Likewise.
2487         (lto_write_tree): Move to lto-streamer-out.c.
2488         (lto_output_tree): Likewise.
2489         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2490         (preload_common_nodes): Likewise.
2491         (lto_streamer_cache_create): Call it.
2492         * tree-streamer.h: Include streamer-hooks.h.
2493         (stream_write_tree): New.
2494         (stream_read_tree): New.
2495         (lto_input_tree): Remove.
2496         (lto_materialize_tree): Declare.
2497         (lto_input_tree_pointers): Declare.
2498         (lto_get_pickled_tree): Declare.
2499         (lto_get_builtin_tree): Declare.
2500         (lto_input_integer_cst): Declare.
2501         (lto_output_tree_header): Declare.
2502         (pack_value_fields): Declare.
2503         (lto_output_tree_pointers): Declare.
2504         (lto_output_integer_cst): Declare.
2505         (lto_output_builtin_tree): Declare.
2506
2507 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2508
2509         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2510         only if producer writes to the register given by regno.
2511
2512 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2513             Alexander Monakov  <amonakov@ispras.ru>
2514
2515         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2516         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2517         condition caching logic into ...
2518         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2519         attempt to use cache for instructions with zero luid.
2520         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2521         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2522
2523 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2524
2525         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2526         get_seqno_for_a_jump.  Update the caller.
2527         (get_seqno_by_succs): New.  Use it ...
2528         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2529         predecessors was not sufficient.
2530         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2531
2532 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2533
2534         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2535
2536 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2537
2538         * sel-sched-ir.h (register_unavailable_p): Declare.
2539         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2540         (set_unavailable_target_for_expr): ... here to properly test
2541         availability of a register.
2542         (speculate_expr): Ditto.
2543         * sel-sched.c (substitute_reg_in_expr): Ditto.
2544         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2545
2546 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2547
2548         * sel-sched.c (verify_target_availability): Fix usage of
2549         hard_regno_nregs.
2550
2551 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2552
2553         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2554         recognized by cannot_copy_insn_p hook and volatile instructions.
2555
2556 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2557
2558         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2559
2560 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2561
2562         * doc/md.texi (define_bypass): Say that the instruction names can
2563         be filename-style globs.
2564         * Makefile.in (FNMATCH_H): Define.
2565         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2566         * genattrtab.c: Include fnmatch.h.
2567         (bypass_list): Change field name from "insn" to "pattern".
2568         (gen_bypass_1): Update accordingly.
2569         (process_bypasses): Use fnmatch to check for matches between
2570         insn reservations and define_bypasses.
2571         * genautomata.c: Include fnmatch.h.
2572         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2573         and out_pattern respectively.
2574         (gen_bypass, insert_bypass): Update accordingly.
2575         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2576         (process_bypass): New functions.
2577         (process_decls): Use process_bypass.  Update after field name changes.
2578
2579 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2580
2581         PR target/49687
2582         * config/avr/avr.md (smulqi3_highpart): New insn.
2583         (umulqi3_highpart): New insn.
2584         (*subqi3.ashiftrt7): New insn.
2585         (smulhi3_highpart): New expander.
2586         (umulhi3_highpart): Nex expander.
2587         (*smulhi3_highpart_call): New insn.
2588         (*umulhi3_highpart_call): New insn.
2589         (extend_u): New code attribute.
2590         (extend_prefix): Rename code attribute to extend_su.
2591         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2592         widening QI/HI multiply.
2593
2594 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2595
2596         PR tree-optimization/50039
2597         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2598         that DEF_STMT has a stmt_vec_info.
2599
2600 2011-08-10  Richard Guenther  <rguenther@suse.de>
2601
2602         * tree.h (can_trust_pointer_alignment): Remove.
2603         * builtins.c (can_trust_pointer_alignment): Remove.
2604
2605 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2606
2607         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2608         vector conversion.
2609         (stv_conv): New enum for scalar_to_vector return type.
2610         (build_binary_op): Adjust.
2611         * doc/extend.texi: Description of scalar to vector expansion.
2612
2613 2011-08-10  Richard Guenther  <rguenther@suse.de>
2614
2615         * tree.h (get_pointer_alignment): Remove max-align argument.
2616         (get_object_alignment): Likewise.
2617         * builtins.c (get_object_alignment_1): Adjust.
2618         (get_object_alignment): Remove max-align argument.
2619         (get_pointer_alignment): Likewise.
2620         (expand_builtin_strlen): Adjust.
2621         (expand_builtin_memcpy): Likewise.
2622         (expand_builtin_mempcpy_args): Likewise.
2623         (expand_builtin_strncpy): Likewise.
2624         (expand_builtin_memset_args): Likewise.
2625         (expand_builtin_memcmp): Likewise.
2626         (expand_builtin_strcmp): Likewise.
2627         (expand_builtin_strncmp): Likewise.
2628         (get_builtin_sync_mem): Likewise.
2629         (fold_builtin_memset): Likewise.
2630         (fold_builtin_memory_op): Likewise.
2631         (expand_builtin_memory_chk): Likewise.
2632         * emit-rtl.c (get_mem_align_offset): Likewise.
2633         (set_mem_attributes_minus_bitpos): Likewise.
2634         * expr.c (expand_assignment): Likewise.
2635         (expand_expr_real_1): Likewise.
2636         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2637         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2638         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2639         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2640         * value-prof.c (gimple_stringops_transform): Likewise.
2641
2642 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2643
2644         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2645         * doc/tm.texi: Regenerate.
2646
2647 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2648
2649         PR target/29560
2650         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2651         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2652         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2653         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2654         shift target is unused.
2655
2656 2011-08-10  Richard Guenther  <rguenther@suse.de>
2657
2658         PR tree-optimization/49937
2659         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2660         using get_object_alignment_1.
2661
2662 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2663
2664         * config/i386/i386.c (ix86_emit_i387_round): New function.
2665         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2666         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2667         Use ix86_emit_i387_round to expand round function for i387 math.
2668         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2669         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2670
2671 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2672
2673         * config/sync.c: Move to ../libgcc.
2674         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2675         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2676         Remove.
2677
2678 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2679
2680         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2681         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2682         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2683         Change 'from' and 'to' arguments type to reg_class_t.
2684         (TARGET_REGISTER_MOVE_COST): Define.
2685
2686 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
2687
2688         PR target/50026
2689         Revert:
2690         PR rtl-optimization/49990
2691         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2692         ignore classes which can not change mode.
2693         (find_costs_and_classes): Ditto.
2694
2695 2011-08-09  Richard Guenther  <rguenther@suse.de>
2696
2697         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2698         information for ranges with only negative values.
2699         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2700         BIT_AND_EXPR handling to handle ranges with negative values.
2701
2702 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2703
2704         * config/i386/i386.c: Remove traling spaces.
2705         * config/i386/sse.md: Likewise.
2706         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2707         (*fma_fmsub_<mode>): Likewise.
2708         (*fma_fnmadd_<mode>): Likewise.
2709         (*fma_fnmsub_<mode>): Likewise.
2710
2711 2011-08-09  Nick Clifton  <nickc@redhat.com>
2712
2713         * config/rx/rx.md: Disable extender peepholes at -O3.
2714
2715 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2716
2717         PR target/49781
2718         * config/i386/i386.md (reload_noff_load): New.
2719         (reload_noff_store): Ditto.
2720         * config/i386/i386.c (ix86_secondary_reload): Use
2721         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2722         double-word moves from/to non-offsetable addresses instead of
2723         generating XMM temporary.
2724
2725 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2726
2727         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2728
2729 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
2730
2731         PR tree-optimization/50014
2732         * tree-vect-loop.c (vectorizable_reduction): Get def type before
2733         calling vect_get_vec_def_for_stmt_copy ().
2734
2735 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
2736
2737         PR rtl-optimization/49990
2738         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2739         ignore classes which can not change mode.
2740         (find_costs_and_classes): Ditto.
2741
2742 2011-08-08  Richard Henderson  <rth@redhat.com>
2743
2744         PR middle-end/49990
2745         * config/i386/i386.c (ix86_expand_prologue): Call
2746         for SEH target gen_prologue_use instead of gen_blockage
2747         at prologue's end.
2748
2749 2011-08-08  Martin Jambor  <mjambor@suse.cz>
2750
2751         PR middle-end/49923
2752         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2753         memory alignment.
2754
2755 2011-08-08   Diego Novillo  <dnovillo@google.com>
2756
2757         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2758         (DATA_STREAMER_H): New.
2759         (GIMPLE_STREAMER_H): New.
2760         (TREE_STREAMER_H): New.
2761         (STREAMER_HOOKS_H): New.
2762         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2763         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2764         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2765         (data-streamer.o): New.
2766         (data-streamer-in.o): New.
2767         (data-streamer-out.o): New.
2768         (gimple-streamer-in.o): New.
2769         (gimple-streamer-out.o): New.
2770         (streamer-hooks.o): New.
2771         (tree-streamer.o): New.
2772         (tree-streamer-in.o): New.
2773         (tree-streamer-out.o): New.
2774         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2775         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2776         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2777         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2778         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2779         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2780         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2781         (ipa-inline-analysis.o): Likewise.
2782         (ipa-pure-const.o): Likewise.
2783         * data-streamer-in.c: New.
2784         * data-streamer-out.c: New.
2785         * data-streamer.c: New.
2786         * data-streamer.h: New.
2787         * gimple-streamer-in.c: New.
2788         * gimple-streamer-out.c: New.
2789         * gimple-streamer.h: New.
2790         * ipa-inline-analysis.c: Include data-streamer.h.
2791         * ipa-prop.c: Include data-streamer.h.
2792         * ipa-pure-const.c: Include data-streamer.h.
2793         * lto-cgraph.c: Include data-streamer.h.
2794         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2795         (lto_input_widest_uint_uleb128): Likewise.
2796         (lto_input_sleb128): Likewise.
2797         (bp_unpack_var_len_unsigned): Likewise.
2798         (bp_unpack_var_len_int): Likewise.
2799         * lto-section-out.c (lto_output_uleb128_stream): Move to
2800         data-streamer-out.c.
2801         (lto_output_widest_uint_uleb128_stream): Likewise.
2802         (lto_output_sleb128_stream): Likewise.
2803         (bp_pack_var_len_unsigned): Likewise.
2804         (bp_pack_var_len_int): Likewise.
2805         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2806         (struct string_slot): Remove.  Update all users.
2807         (lto_tag_check_set): Make extern.
2808         (lto_tag_check_range): Move to lto-streamer.h.
2809         (lto_tag_check): Likewise.
2810         (hash_string_slot_node): Remove.  Update all users.
2811         (eq_string_slot_node): Remove.  Update all users.
2812         (string_for_index): Move to data-streamer-in.c
2813         (input_string_internal): Likewise.
2814         (input_string_cst): Move to tree-streamer-in.c.
2815         (input_identifier): Likewise.
2816         (lto_input_string): Move to data-streamer-in.c
2817         (input_record_start): Move to data-streamer.h
2818         (canon_file_name): Use new definition of struct string_slot
2819         from data-streamer.h.  Set S_SLOT.LEN.
2820         (lto_input_location): Make extern.
2821         (lto_input_chain): Move to tree-streamer-in.c.
2822         (lto_init_eh): Make extern.
2823         (input_phi): Move to gimple-streamer-in.c.
2824         (input_gimple_stmt): Likewise.
2825         (input_bb): Likewise.
2826         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2827         (unpack_ts_real_cst_value_fields): Likewise.
2828         (unpack_ts_fixed_cst_value_fields): Likewise.
2829         (unpack_ts_decl_common_value_fields): Likewise.
2830         (unpack_ts_decl_wrtl_value_fields): Likewise.
2831         (unpack_ts_decl_with_vis_value_fields): Likewise.
2832         (unpack_ts_function_decl_value_fields): Likewise.
2833         (unpack_ts_type_common_value_fields): Likewise.
2834         (unpack_ts_block_value_fields): Likewise.
2835         (unpack_ts_translation_unit_decl_value_fields): Likewise.
2836         (unpack_value_fields): Likewise.
2837         (lto_materialize_tree): Likewise.
2838         (lto_input_ts_common_tree_pointers): Likewise.
2839         (lto_input_ts_vector_tree_pointers): Likewise.
2840         (lto_input_ts_complex_tree_pointers): Likewise.
2841         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2842         (lto_input_ts_decl_common_tree_pointers): Likewise.
2843         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2844         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2845         (lto_input_ts_field_decl_tree_pointers): Likewise.
2846         (lto_input_ts_function_decl_tree_pointers): Likewise.
2847         (lto_input_ts_type_common_tree_pointers): Likewise.
2848         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2849         (lto_input_ts_list_tree_pointers): Likewise.
2850         (lto_input_ts_vec_tree_pointers): Likewise.
2851         (lto_input_ts_exp_tree_pointers): Likewise.
2852         (lto_input_ts_block_tree_pointers): Likewise.
2853         (lto_input_ts_binfo_tree_pointers): Likewise.
2854         (lto_input_ts_constructor_tree_pointers): Likewise.
2855         (lto_input_ts_target_option): Likewise.
2856         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2857         (lto_input_tree_pointers): Likewise.
2858         (lto_get_pickled_tree): Likewise.
2859         (lto_get_builtin_tree): Likewise.
2860         (lto_read_tree): Likewise.
2861         (lto_input_integer_cst): Likewise.
2862         (lto_input_tree): Likewise.
2863         * lto-streamer-out.c: Include data-streamer.h,
2864         gimple-streamer.h and streamer-hooks.h.
2865         (struct string_slot): Move to data-streamer.h.
2866         (hash_string_slot_node): Likewise.
2867         (eq_string_slot_node): Likewise.
2868         (lto_string_index): Move to data-streamer-out.c.
2869         (lto_output_string_with_length): Likewise.
2870         (lto_output_string): Likewise.
2871         (output_string_cst): Move to tree-streamer-out.c.
2872         (output_identifier): Likewise.
2873         (output_zero): Move to data-streamer-out.c
2874         (output_uleb128): Likewise.
2875         (output_sleb128): Likewise.
2876         (output_record_start): Move to data-streamer.h
2877         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2878         (pack_ts_real_cst_value_fields): Likewise.
2879         (pack_ts_fixed_cst_value_fields): Likewise.
2880         (pack_ts_decl_common_value_fields): Likewise.
2881         (pack_ts_decl_wrtl_value_fields): Likewise.
2882         (pack_ts_decl_with_vis_value_fields): Likewise.
2883         (pack_ts_function_decl_value_fields): Likewise.
2884         (pack_ts_type_common_value_fields): Likewise.
2885         (pack_ts_block_value_fields): Likewise.
2886         (pack_ts_translation_unit_decl_value_fields): Likewise.
2887         (pack_value_fields): Likewise.
2888         (lto_output_chain): Likewise.
2889         (lto_output_ts_common_tree_pointers): Likewise.
2890         (lto_output_ts_vector_tree_pointers): Likewise.
2891         (lto_output_ts_complex_tree_pointers): Likewise.
2892         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2893         (lto_output_ts_decl_common_tree_pointers): Likewise.
2894         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2895         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2896         (lto_output_ts_field_decl_tree_pointers): Likewise.
2897         (lto_output_ts_function_decl_tree_pointers): Likewise.
2898         (lto_output_ts_type_common_tree_pointers): Likewise.
2899         (lto_output_ts_type_non_common_tree_pointers): Likewise.
2900         (lto_output_ts_list_tree_pointers): Likewise.
2901         (lto_output_ts_vec_tree_pointers): Likewise.
2902         (lto_output_ts_exp_tree_pointers): Likewise.
2903         (lto_output_ts_block_tree_pointers): Likewise.
2904         (lto_output_ts_binfo_tree_pointers): Likewise.
2905         (lto_output_ts_constructor_tree_pointers): Likewise.
2906         (lto_output_ts_target_option): Likewise.
2907         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2908         (lto_output_tree_pointers): Likewise.
2909         (lto_output_tree_header): Likewise.
2910         (lto_output_builtin_tree): Likewise.
2911         (lto_write_tree): Likewise.
2912         (lto_output_integer_cst): Likewise.
2913         (lto_output_tree): Likewise.
2914         (output_phi): Move to gimple-streamer-out.c.
2915         (output_gimple_stmt): Likewise.
2916         (output_bb): Likewise.
2917         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2918         (streamer_hooks): Move to streamer-hooks.c.
2919         (check_handled_ts_structures): Move to tree-streamer.c
2920         (lto_streamer_cache_add_to_node_array): Likewise.
2921         (lto_streamer_cache_insert_1): Likewise.
2922         (lto_streamer_cache_insert): Likewise.
2923         (lto_streamer_cache_insert_at): Likewise.
2924         (lto_streamer_cache_append): Likewise.
2925         (lto_streamer_cache_lookup): Likewise.
2926         (lto_streamer_cache_get): Likewise.
2927         (lto_record_common_node): Likewise.
2928         (lto_preload_common_nodes): Likewise.
2929         (lto_streamer_cache_create): Likewise.
2930         (lto_streamer_cache_delete): Likewise.
2931         (streamer_hooks_init): Move to streamer-hooks.c.
2932         * lto-streamer.h: Include diagnostic.h
2933         (struct output_block, struct lto_input_block,
2934         struct data_in, struct bitpack_d): Remove forward declarations.
2935         (struct bitpack_d): Move to data-streamer.h.
2936         (struct lto_streamer_cache_d): Move to tree-streamer.h.
2937         (struct streamer_hooks): Move to streamer-hooks.h.
2938         (bp_pack_var_len_unsigned): Move to data-streamer.h.
2939         (bp_pack_var_len_int): Likewise.
2940         (bp_unpack_var_len_unsigned): Likewise.
2941         (bp_unpack_var_len_int): Likewise.
2942         (lto_input_location): Declare.
2943         (lto_tag_check_set): Declare.
2944         (lto_init_eh): Declare.
2945         (lto_output_tree_ref): Declare.
2946         (lto_output_location): Declare.
2947         (bitpack_create): Move to data-streamer.h.
2948         (bp_pack_value): Likewise.
2949         (lto_output_bitpack): Likewise.
2950         (lto_input_bitpack): Likewise.
2951         (bp_unpack_value): Likewise.
2952         (lto_output_1_stream): Likewise.
2953         (lto_input_1_unsigned): Likewise.
2954         (lto_output_int_in_range): Likewise.
2955         (lto_input_int_in_range): Likewise.
2956         (bp_pack_int_in_range): Likewise.
2957         (bp_unpack_int_in_range): Likewise.
2958         (lto_output_enum): Likewise.
2959         (lto_input_enum): Likewise.
2960         (bp_pack_enum): Likewise.
2961         (bp_unpack_enum): Likewise.
2962         * streamer-hooks.c: New.
2963         * streamer-hooks.h: New.
2964         * tree-streamer-in.c: New.
2965         * tree-streamer-out.c: New.
2966         * tree-streamer.c: New.
2967         * tree-streamer.h: New.
2968
2969 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2970
2971         * gthr-posix95.h: Remove.
2972         * gthr.h [_PTHREADS95]: Remove.
2973         * configure.ac (enable_threads): Remove posix95.
2974         * configure: Regenerate.
2975         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
2976
2977 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
2978
2979         PR target/49781
2980         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
2981         SImode addresses.
2982         (ix86_print_operand_address): Handle zero-extended addresses.
2983         (memory_address_length): Add length of addr32 prefix for
2984         zero-extended addresses.
2985         (ix86_secondary_reload): Handle moves to/from double-word general
2986         registers from/to zero-extended addresses.
2987         * config/i386/predicates.md (lea_address_operand): Reject
2988         zero-extended operands.
2989
2990 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2991
2992         PR other/48007
2993         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
2994
2995         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
2996         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
2997
2998         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
2999         (_Unwind_Context_Reg_Val): Likewise.
3000         (_Unwind_Get_Unwind_Word): Likewise.
3001         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3002         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3003         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3004         for EXTENDED_CONTEXT_BIT.
3005         (__frame_state_for): Likewise.
3006         (uw_init_context_1): Likewise.
3007         (_Unwind_GetGR): Updated.
3008         (_Unwind_SetGR): Likewise.
3009         (_Unwind_GetGRPtr): Likewise.
3010         (_Unwind_SetGRPtr): Likewise.
3011         (_Unwind_SetGRValue): Likewise.
3012         (_Unwind_GRByValue): Likewise.
3013         (uw_install_context_1): Likewise.
3014
3015         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3016         ASSUME_EXTENDED_UNWIND_CONTEXT.
3017         * doc/tm.texi: Regenerated.
3018
3019 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3020
3021         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3022
3023 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3024
3025         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3026         Linux/GNU-specific.
3027         (DEC Alpha Options, -mtune): Likewise.
3028         (MIPS Options, -march): native is supported on IRIX.
3029
3030 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3031
3032         * config/sparc/driver-sparc.c: New file.
3033         * config/sparc/x-sparc: New file.
3034         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3035         * config/sparc/sparc.opt (native): New value for enum processor_type.
3036         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3037         * config/sparc/sparc.c (sparc_option_override): Abort if
3038         PROCESSOR_NATIVE gets here.
3039         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3040         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3041         DRIVER_SELF_SPECS): Define.
3042         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3043         (SPARC Options, -mtune): Likewise.
3044         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3045         Substitute result.
3046         * configure: Regenerate.
3047         * Makefile.in (EXTRA_GCC_LIBS): Set.
3048         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3049         (cpp$(exeext)): Likewise.
3050
3051 2011-08-08  Richard Guenther  <rguenther@suse.de>
3052
3053         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3054         split out from ...
3055         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3056         by composition.
3057
3058 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3059
3060         PR tree-optimization/50005
3061         * ipa-inline-analysis (remap_predicate): Add cast to
3062         silence signed/unsigned comparison warning.
3063
3064 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3065
3066         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3067         Print the current ii.
3068         (sms_schedule_by_order): Reduce whitespace in dump line.
3069
3070 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3071
3072         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3073         and one loop for successors.  Fix upper bound of memory range.
3074
3075 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3076
3077         PR target/50001
3078         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3079         (TARGET_INSTANTIATE_DECLS): New define.
3080
3081 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3082             Mikael Morin   <mikael.morin@sfr.fr>
3083
3084         * Makefile.in (INCLUDES_FOR_TARGET): New.
3085         (LIBGCC2_CFLAGS): Use it.
3086         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3087
3088 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3089
3090         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3091         frame->save_regs_using_mov calculation.
3092
3093 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3094
3095         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3096         * config/i386/sse.md (castmode): New mode attribute.
3097         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3098         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3099
3100 2011-08-05  Jan Hubicka  <jh@suse.cz>
3101
3102         PR middle-end/49494
3103         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3104
3105 2011-08-05  Jan Hubicka  <jh@suse.cz>
3106
3107         PR middle-end/49500
3108         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3109         handle aliases.
3110         (create_emultls_var):New function.
3111         (ipa_lower_emutls): Handle aliases correctly.
3112
3113 2011-08-05  Jan Hubicka  <jh@suse.cz>
3114
3115         PR middle-end/49735
3116         * ipa-inline.c (recursive_inlining): Look through aliases.
3117
3118 2011-08-05  Jason Merrill  <jason@redhat.com>
3119
3120         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3121         declarations to beginning of function.
3122
3123 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3124
3125         PR rtl-optimization/49900
3126         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3127         ensure basic blocks stay in the same order.
3128
3129 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3130
3131         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3132         store_bit_field.
3133         (s390_expand_atomic): Same.
3134
3135 2011-08-05  Richard Henderson  <rth@redhat.com>
3136
3137         PR rtl-opt/49977
3138         * dwarf2cfi.c (scan_insn_after): Split out of ...
3139         (scan_trace): ... here.  Correctly place notes wrt sequences.
3140
3141 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3142             Richard Henderson  <rth@redhat.com>
3143
3144         PR rtl-opt/49982
3145         * expr.c (fixup_args_size_notes): Look through no-op moves.
3146
3147 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3148
3149         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3150         of "m" for operand 0.  Add type and mode attribute.
3151         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3152         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3153         constraint instead of "o" for opreand 1.
3154         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3155         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3156         operand 0, alternative 4.
3157         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3158
3159 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3160
3161         * config/i386/predicates.md (lea_address_operand): Rename from
3162         no_seg_address_operand.
3163         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3164         (*lea_1_zext): Ditto.
3165         (*lea_2): Ditto.
3166         (*lea_2_zext): Ditto.
3167
3168 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3169
3170         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3171         parts.base and parts.index.
3172         * config/i386/predicates.md (aligned_operand): Ditto.
3173         (cmpxchg8b_pic_memory_operand): Ditto.
3174
3175 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3176
3177         * config/soft-fp: Move to ../libgcc.
3178         * Makefile.in (SFP_MACHINE): Remove.
3179         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3180         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3181         * config/arm/t-arm-softfp: Move to
3182         ../libgcc/config/arm/t-softfp.
3183         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3184         * config/c6x/t-c6x-softfp: Remove.
3185         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3186         * config/i386/t-fprules-softfp: Move to
3187         ../libgcc/config/t-softfp-tf.
3188         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3189         * config/ia64/t-fprules-softfp: Remove.
3190         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3191         * config/lm32/t-fprules-softfp: Remove.
3192         * config/moxie/sfp-machine.h: Remove.
3193         * config/moxie/t-moxie-softfp: Remove.
3194         * config/rs6000/darwin-ldouble-format: Move to
3195         ../libgcc/config/rs6000/ibm-ldouble-format.
3196         * config/rs6000/darwin-ldouble.c: Move to
3197         ../libgcc/config/rs6000/ibm-ldouble.c
3198         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3199         * config/rs6000/libgcc-ppc64.ver: Likewise.
3200         * config/rs6000/sfp-machine.h: Likewise.
3201         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3202         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3203         (LIB2FUNCS_EXTRA): Remove.
3204         (TARGET_LIBGCC2_CFLAGS): Remove.
3205         * config/rs6000/t-aix52: Likewise
3206         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3207         $(srcdir)/config/rs6000/darwin-ldouble.c.
3208         (SHLIB_MAPFILES): Remove.
3209         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3210         $(srcdir)/config/rs6000/darwin-ldouble.c.
3211         * config/rs6000/t-fprules-softfp: Move to
3212         ../libgcc/config/t-softfp-sfdf.
3213         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3214         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3215         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3216         $(srcdir)/config/rs6000/darwin-ldouble.c.
3217         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3218         * config/score/t-score-softfp: Remove.
3219         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3220         soft-fp/t-softfp from tmake_file.
3221         (arm*-*-uclinux*): Likewise.
3222         (arm*-*-ecos-elf): Likewise.
3223         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3224         (arm*-*-rtems*): Likewise.
3225         (arm*-*-elf): Likewise.
3226         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3227         tmake_file.
3228         (moxie-*-uclinux*): Likewise.
3229         (moxie-*-rtems*): Likewise.
3230         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3231         tmake_file.
3232         (lm32-*-rtems*): Likewise.
3233         (lm32-*-uclinux*): Likewise.
3234         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3235         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3236         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3237         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3238         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3239         tmake_file.
3240         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3241         tmake_file.
3242         (tic6x-*-uclinux): Likewise.
3243         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3244         soft-fp/t-softfp from tmake_file.
3245         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3246         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3247         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3248         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3249         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3250
3251 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3252
3253         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3254         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3255         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3256         TPBIT, TPBIT_FUNCS.
3257         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3258         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3259         Remove.
3260         * config/arm/t-vxworks: Likewise.
3261         * config/arm/t-wince-pe: Likewise.
3262         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3263         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3264         * config/bfin/t-bfin-elf: Likewise.
3265         * config/bfin/t-bfin-linux: Likewise.
3266         * config/bfin/t-bfin-uclinux: Likewise.
3267         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3268         Remove.
3269         * config/fr30/t-fr30: Likewise.
3270         * config/frv/t-frv: Likewise.
3271         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3272         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3273         * config/m32c/t-m32c: Likewise.
3274         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3275         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3276         * config/mcore/t-mcore: Likewise.
3277         * config/mep/t-mep: Likewise.
3278         * config/microblaze/t-microblaze: Likewise.
3279         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3280         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3281         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3282         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3283         * config/mn10300/t-linux: Remove.
3284         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3285         * config/pdp11/t-pdp11: Likewise.
3286         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3287         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3288         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3289         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3290         * config/rs6000/t-aix52: Likewise.
3291         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3292         $(srcdir)/config/rs6000/ppc64-fp.c.
3293         * config/rs6000/t-fprules-fpbit: Remove.
3294         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3295         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3296         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3297         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3298         * config/sparc/t-elf: Likewise.
3299         * config/sparc/t-leon: Likewise.
3300         * config/sparc/t-leon3: Likewise.
3301         * config/spu/t-spu-elf: Likewise.
3302         (DPBIT_FUNCS): Remove.
3303         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3304         * config/v850/t-v850: Likewise.
3305         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3306         (avr-*-*): Likewise.
3307         (h8300-*-rtems*): Set libgcc_tm_file.
3308         (h8300-*-elf*): Likewise.
3309         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3310         tmake_file.
3311         (powerpc-*-eabisim*): Likewise.
3312         (powerpc-*-elf*): Likewise.
3313         (powerpc-*-eabialtivec*): Likewise.
3314         (powerpc-xilinx-eabi*): Likewise.
3315         (powerpc-*-eabi*): Likewise.
3316         (powerpc-*-rtems*): Likewise.
3317         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3318         (powerpcle-*-elf*): Likewise.
3319         (powerpcle-*-eabisim*): Likewise.
3320         (powerpcle-*-eabi*): Likewise.
3321         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3322         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3323         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3324         Remove.
3325
3326 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3327
3328         * Makefile.in (UNWIND_H): Remove.
3329         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3330         ../libgcc/Makefile.in.
3331         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3332         (LIBUNWINDDEP): Remove.
3333         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3334         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3335         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3336         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3337         Don't copy $(UNWIND_H).
3338         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3339         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3340         * aclocal.m4: Regenerate.
3341         * configure: Regenerate.
3342         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3343         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3344         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3345         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3346         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3347         * config/arm/libunwind.S, config/arm/pr-support.c,
3348         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3349         ../libgcc/config/arm.
3350         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3351         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3352         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3353         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3354         ($(T)frvend$(objext)): Likewise.
3355         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3356         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3357         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3358         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3359         ../libgcc/config/ia64.
3360         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3361         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3362         * config/ia64/t-vms (LIB2ADDEH): Remove.
3363         * config/ia64/vms.h (UNW_IVMS_MODE,
3364         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3365         * config/picochip/t-picochip (LIB2ADDEH): Remove.
3366         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3367         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3368         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3369         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3370         $(srcdir)/../libgcc to refer to unwinder sources.
3371         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3372         * config/t-darwin (LIB2ADDEH): Remove.
3373         * config/t-freebsd (LIB2ADDEH): Remove.
3374         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3375         * config/t-libunwind-elf: Move to ../libgcc/config.
3376         * config/t-linux (LIB2ADDEH): Remove.
3377         * config/t-sol2 (LIB2ADDEH): Remove.
3378         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3379         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3380
3381 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
3382
3383         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3384
3385         * doc/invoke.texi: Document core-avx-i.
3386
3387 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3388
3389         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3390
3391 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
3392
3393         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3394         result of multiple results reduction when extracting the final
3395         value using scalar code.
3396
3397 2011-08-05  Richard Guenther  <rguenther@suse.de>
3398
3399         PR tree-optimization/49984
3400         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3401
3402 2011-08-05  Richard Guenther  <rguenther@suse.de>
3403
3404         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3405         return true for constant integer ranges.
3406         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3407         BIT_IOR_EXPR handling.
3408
3409 2011-08-04  Kai Tietz  <ktietz@redhat.com>
3410
3411         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3412         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3413
3414 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
3415
3416         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3417         pattern def statement, and its access macro.
3418         (NUM_PATTERNS): Set to 5.
3419         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3420         pattern def statement.
3421         (vect_transform_loop): Likewise.
3422         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3423         function vect_recog_over_widening_pattern ().
3424         (vect_operation_fits_smaller_type): New function.
3425         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3426         Likewise.
3427         (vect_pattern_recog_1): Move the code that marks pattern
3428         statements to vect_mark_pattern_stmts (), and call it.  Update
3429         documentation.
3430         * tree-vect-stmts.c (vect_supportable_shift): New function.
3431         (vect_analyze_stmt): Handle pattern def statement.
3432         (new_stmt_vec_info): Initialize pattern def statement.
3433
3434 2011-08-04  Richard Henderson  <rth@redhat.com>
3435
3436         PR target/49964
3437         * config/i386/i386.c (ix86_expand_call): Don't create nested
3438         PARALLELs for TARGET_VZEROUPPER.
3439         (ix86_split_call_vzeroupper): Fix extraction of the original call.
3440         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3441         recognize nested PARALLELs.
3442         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3443         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3444         *sibcall_value_pop_vzeroupper): Likewise.
3445
3446 2011-08-04  Richard Henderson  <rth@redhat.com>
3447
3448         PR middle-end/49968
3449         * calls.c (expand_call): Use fixup_args_size_notes for
3450         emit_stack_restore.
3451         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3452         in non-standard modes.
3453
3454 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3455
3456         * gcc.c (self_spec): New variable.
3457         (static_specs): Add self_spec.
3458         (main): Call do_self_spec on "self_spec" specs after reading
3459         user specs files.  Move compare_debug handling right after that.
3460
3461 2011-08-04  Richard Guenther  <rguenther@suse.de>
3462
3463         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3464         (value_range_nonnegative_p): New function.
3465         (ssa_name_nonnegative_p): Use it.
3466         (value_range_constant_singleton): New function.
3467         (op_with_constant_singleton_value_range): Use it.
3468         (extract_range_from_binary_expr_1): New function, split out from ...
3469         (extract_range_from_binary_expr): ... this.  Remove fallback
3470         constant folding done here.
3471
3472 2011-08-04  Richard Guenther  <rguenther@suse.de>
3473
3474         PR tree-optimization/49806
3475         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3476         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3477         a new statement for a final conversion to bool.
3478
3479 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3480
3481         * gengtype-state.c: Include "bconfig.h" if
3482         GENERATOR_FILE is defined, "config.h" otherwise.
3483         * gengtype.c: Likewise.
3484         * gengtype-lex.l: Likewise.
3485         * gengtype-parse.c: Likewise.
3486         * Makefile.in (gengtype-lex.o-warn): New variable.
3487         (plugin_resourcesdir): Likewise.
3488         (plugin_bindir): Likewise.
3489         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3490         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3491         (native): Depend on gengtype$(exeext) is $enable_plugin
3492         is set to "yes".
3493         (gtype.state): Depend on s-gtype. Use temporary file.
3494         (gengtype-lex.o): New rule.
3495         (gengtype-parse.o): Likewise.
3496         (gengtype-state.o): Likewise.
3497         (gengtype$(exeext)): Likewise.
3498         (install-gengtype): Likewise.
3499         (gengtype.o): Likewise.
3500         (build/gengtype.o): Depend on version.h.
3501         (build/gengtype-state): Depend on double-int.h, version.h,
3502         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3503         (install-plugin): Depend on install-gengtype.
3504
3505 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3506
3507         PR middle-end/49905
3508         * tree.h (init_attributes): New prototype.
3509         * attribs.c (init_attributes): No longer static.
3510
3511 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3512
3513         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3514         maybe_suffix.
3515
3516 2011-08-03   David Li  <davidxl@google.com>
3517
3518         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3519         outgoing edge counts after inlining.
3520
3521 2011-08-03   David Li  <davidxl@google.com>
3522
3523         * profile.c (compute_branch_probabilities): Compute
3524         function frequency after profile annotation.
3525
3526 2011-08-04  Alan Modra  <amodra@gmail.com>
3527
3528         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3529         use_backchain_to_restore_sp initialisation.
3530         (rs6000_legitimate_offset_address_p): Simplify offset test.
3531
3532 2011-08-03  Richard Henderson  <rth@redhat.com>
3533
3534         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3535         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3536         (UNSPECV_NOP): New.
3537
3538 2011-08-03  Richard Henderson  <rth@redhat.com>
3539
3540         PR target/34888
3541         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3542
3543 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3544
3545         PR tree-optimization/49948
3546         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3547
3548 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3549
3550         * config/m32c/m32c.c (class_sizes): Remove.
3551         (reduce_class): Change arguments and return type to reg_class_t.
3552         Change type cc var to HARD_REG_SET. Change type best var to
3553         reg_class_t. Change type best_size var to unsigned int. Remove
3554         initialization class_sizes var. Use reg_class_size array instead
3555         of class_sizes. Use reg_class_contents array instead
3556         of class_contents.
3557
3558 2011-08-03  Richard Guenther  <rguenther@suse.de>
3559
3560         PR middle-end/49958
3561         * fold-const.c (fold_binary_loc): Only associate
3562         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3563         overflow wraps.
3564
3565 2011-08-03  Alan Modra  <amodra@gmail.com>
3566
3567         PR rtl-optimization/49941
3568         * jump.c (mark_jump_label): Comment.
3569         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3570         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3571         (mark_used_flags): Don't mark RETURN.
3572
3573 2011-08-03  Richard Guenther  <rguenther@suse.de>
3574
3575         PR tree-optimization/49938
3576         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3577         deal with a POLYNOMIAL_CHREC.
3578
3579 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3580
3581         * modulo-sched.c (calculate_stage_count,
3582         calculate_must_precede_follow, get_sched_window,
3583         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3584         declaration.
3585         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3586         New functions.
3587         (reset_sched_times): Call update_node_sched_params.
3588         (sms_schedule): Call optimize_sc.
3589         (get_sched_window): Change function arguments.
3590         (sms_schedule_by_order): Update call to get_sched_window.
3591         Call set_must_precede_follow.
3592         (calculate_stage_count): Add function argument.
3593
3594 2011-08-02  Richard Henderson  <rth@redhat.com>
3595
3596         PR target/49864
3597         PR target/49879
3598         * reg-notes.def (REG_ARGS_SIZE): New.
3599         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3600         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3601         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3602         different stack levels.
3603         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3604         (maybe_move_args_size_note): New.
3605         (combine_stack_adjustments_for_block): Use it.
3606         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3607         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3608         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3609         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3610         (cur_cfa): New.
3611         (queued_args_size): Remove.
3612         (add_cfi_args_size): Assert size is non-negative.
3613         (stack_adjust_offset, dwarf2out_args_size): Remove.
3614         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3615         (notice_args_size, notice_eh_throw): New.
3616         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3617         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3618         (dwarf2out_frame_debug_cfa_offset): Likewise.
3619         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3620         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3621         (change_cfi_row): Don't emit args_size.
3622         (maybe_record_trace_start_abnormal): Split out from ...
3623         (maybe_record_trace_start): Here.  Set args_size_undefined.
3624         (create_trace_edges): Update to match.
3625         (scan_trace): Handle REG_ARGS_SIZE.
3626         (connect_traces): Connect args_size between EH insns.
3627         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3628         * explow.c (suppress_reg_args_size): New.
3629         (adjust_stack_1): Split out from ...
3630         (adjust_stack): ... here.
3631         (anti_adjust_stack): Use it.
3632         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3633         * expr.c (mem_autoinc_base): New.
3634         (fixup_args_size_notes): New.
3635         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3636         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3637         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3638         * reload1.c (reload_as_needed): Likewise.
3639         * rtl.h (fixup_args_size_notes): Declare.
3640
3641 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3642
3643         PR bootstrap/49914
3644         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3645         of abs.
3646         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3647         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3648
3649 2011-08-02  Richard Henderson  <rth@redhat.com>
3650
3651         * config/h8300/h8300.c (push, pop): Return the insn.
3652         (h8300_swap_into_er6): Generate correct unwind info.
3653         (h8300_swap_out_of_er6): Likewise.
3654         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3655         complex cfa expression.
3656         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3657
3658 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3659
3660         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3661
3662 2011-08-02  Richard Henderson  <rth@redhat.com>
3663
3664         PR target/49878
3665         * config/h8300/h8300.c (h8300_move_ok): New.
3666         * config/h8300/h8300-protos.h: Declare it.
3667         * config/h8300/h8300.md (P): New mode iterator.
3668         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3669         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3670         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3671         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3672         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3673         and pushqi1_h8300hs_normal; use PRE_MODIFY and
3674         register_no_sp_elim_operand.
3675         (*pushhi1_h8300hs_<P>): Similarly.
3676         (pushqi1, pushhi1, pushhi1_h8300): Remove.
3677         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3678
3679 2011-08-02  Richard Henderson  <rth@redhat.com>
3680
3681         PR target/49881
3682         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3683
3684 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3685
3686         * c-parser.c (enum c_parser_prec): New enum, moved from within
3687         c_parser_binary_expression.
3688         (c_parser_binary_expression): Add PREC argument.  Stop parsing
3689         if operator has lower or equal precedence than PREC.
3690         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3691         callers.
3692         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3693         Adjust c_finish_omp_atomic caller.
3694         (c_parser_omp_taskyield): New function.
3695         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3696         (c_parser_omp_clause_name): Handle final and mergeable clauses.
3697         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3698         functions.
3699         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3700         and PRAGMA_OMP_CLAUSE_MERGEABLE.
3701         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3702         (c_parser_omp_clause_reduction): Handle min and max.
3703         * c-typeck.c (c_finish_omp_clauses): Don't complain about
3704         const qualified predetermined vars in firstprivate clause.
3705         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3706         Handle MIN_EXPR and MAX_EXPR.
3707         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3708         and OMP_CLAUSE_MERGEABLE.
3709         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3710         and OMP_ATOMIC_CAPTURE_NEW.
3711         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3712         OMP_CLAUSE_MERGEABLE.
3713         (omp_clause_code_name): Likewise.
3714         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3715         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3716         and OMP_CLAUSE_MERGEABLE.
3717         (OMP_CLAUSE_FINAL_EXPR): Define.
3718         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3719         OMP_CLAUSE_MERGEABLE.
3720         (expand_task_call): Likewise.
3721         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3722         (expand_omp_atomic_fetch_op): Handle cases where old or new
3723         value is needed afterwards.
3724         (expand_omp_atomic): Call expand_omp_atomic_load resp.
3725         expand_omp_atomic_store.
3726         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3727         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3728         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3729         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3730         * tree-nested.c (convert_nonlocal_omp_clauses,
3731         convert_local_omp_clauses): Likewise.
3732         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3733         OMP_ATOMIC_CAPTURE_NEW): New.
3734         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3735         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3736         New inlines.
3737         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3738         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3739         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3740
3741 2011-08-02  Kai Tietz  <ktietz@redhat.com>
3742
3743         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3744         boolean-type.
3745         (ssa_forward_propagate_and_combine): Interprete result of
3746         forward_propagate_comparison.
3747         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3748         boolean-typed operands for comparisons.
3749
3750 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
3751
3752         * config/avr/libgcc.S: Gather related function in the
3753         same input section.
3754         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3755         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3756         references.
3757         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3758         __udivmodsi4, __divmodsi4, __prologue_saves__,
3759         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3760         __do_copy_data, __do_clear_bss, __do_global_ctors,
3761         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3762
3763 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
3764
3765         PR target/47766
3766         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3767         (stack_protect_test): The pattern compares ptr_mode value.
3768
3769 2011-08-02  Alan Modra  <amodra@gmail.com>
3770
3771         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3772         note for save_LR_around_toc_setup sequence.
3773
3774 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3775
3776         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3777
3778 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3779             Joseph Myers  <joseph@codesourcery.com>
3780
3781         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3782         * hwint.c: Include diagnostic-core.h.
3783         (abs_hwi): New.
3784         (gcd): Moved here...
3785         (pos_mul_hwi): New.
3786         (mul_hwi): New.
3787         (least_common_multiple): Moved here...
3788         * hwint.h (gcd): ... from here.
3789         (least_common_multiple): ... from here.
3790         (HOST_WIDE_INT_MIN): New.
3791         (HOST_WIDE_INT_MAX): New.
3792         (abs_hwi): Declared.
3793         (gcd): Declared.
3794         (pos_mul_hwi): Declared.
3795         (mul_hwi): Declared.
3796         (least_common_multiple): Declared.
3797         * omega.c (check_pos_mul): Removed.
3798         (check_mul): Removed.
3799         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3800         mul_hwi instead of check_mul.
3801
3802 2011-08-01  Richard Henderson  <rth@redhat.com>
3803
3804         PR target/49881
3805         * config/avr/avr.h (PUSH_ROUNDING): New.
3806         * config/avr/avr.md (pushqi1): Rename from *pushqi.
3807         (*pushhi, *pushsi, *pushsf): Remove.
3808         (MPUSH): New mode iterator.
3809         (push<MPUSH>1): New expander.
3810
3811 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
3812
3813         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3814         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3815         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3816         mmix_preferred_output_reload_class): Remove.
3817         * config/mmix/mmix.c (mmix_preferred_reload_class,
3818         mmix_preferred_output_reload_class): Make static. Change rclass
3819         argument and return type to reg_class_t.
3820         (TARGET_PREFERRED_RELOAD_CLASS,
3821         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3822
3823 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3824
3825         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3826         handling.
3827
3828 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3829
3830         PR target/47766
3831         * config/i386/i386.md (PTR): New.
3832         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3833         (stack_protect_test): Likewise.
3834         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3835         (stack_tls_protect_set_<mode>): Likewise.
3836         (stack_tls_protect_test_<mode>): Likewise.
3837
3838 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
3839
3840         PR target/49927
3841         * config/i386/i386.c (ix86_address_subreg_operand): New.
3842         (ix86_decompose_address): Use ix86_address_subreg_operand.
3843         (ix86_legitimate_address_p): Do not assert that subregs satisfy
3844         register_no_elim_operand in DImode.
3845
3846 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
3847
3848         PR tree-optimization/49926
3849         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3850         in a chain doesn't have uses both inside and outside the loop.
3851
3852 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3853
3854         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3855         * config/avr/avr-devices.c (avr_mcu_types): Use it.
3856         * config/avr/avr-mcus.def (AVR_MCU): Use it.
3857         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3858         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3859         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3860         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3861         to detect if XJMP must not be skipped.
3862
3863 2011-08-02  Alan Modra  <amodra@gmail.com>
3864
3865         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3866         Delete.
3867         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3868         (rs6000_emit_prologue): Don't prematurely return when
3869         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
3870         save_toc_in_prologue case.
3871         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3872         calls_alloca.
3873
3874 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3875
3876         * config/avr/avr-devices.c: Delete SVN property svn:executable.
3877         * config/avr/predicates.md: Ditto.
3878         * config/avr/driver-avr.c: Ditto.
3879         * config/avr/genopt.sh: Set SVN property svn:executable to *.
3880
3881 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         * calls.c (emit_library_call_value_1): Declare size only if
3884         BLOCK_REG_PADDING is defined.
3885
3886 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
3887
3888         PR target/49547
3889         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3890         (x86_64-*-*): Likewise.
3891         * config/i386/i386.opt (mlzcnt): New.
3892         * config/i386/abmintrin.h: File removed.
3893         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3894         * config/i386/lzcntintrin.h: ... here.  New file.
3895         (__lzcnt): Rename to ...
3896         (__lzcnt32): ... this.
3897         * config/i386/bmiintrin.h (head): Update copyright year.
3898         (__lzcnt_u16): Removed.
3899         (__lzcnt_u32): Likewise.
3900         (__lzcnt_u64): Likewise.
3901         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3902         is defined, remove abmintrin.h.
3903         * config/i386/cpuid.h (bit_LZCNT): New.
3904         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3905         LZCNT feature.
3906         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3907         __LZCNT__ if needed.
3908         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3909         (ix86_option_override_internal): Handle LZCNT option.
3910         (ix86_valid_target_attribute_inner_p): Likewise.
3911         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3912         * config/i386/i386.h (TARGET_LZCNT): New.
3913         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3914         * config/i386/i386.md (clz<mode>2): Update insn constraint.
3915         (clz<mode>2_lzcnt): Likewise.
3916         * doc/invoke.texi: Mention -mlzcnt option.
3917         * doc/extend.texi: Likewise.
3918
3919 2011-08-01  Julian Brown  <julian@codesourcery.com>
3920
3921         * configure.ac (fixed-point): Add ARM support.
3922         * configure: Regenerate.
3923         * config/arm/arm.c (arm_fixed_mode_set): New struct.
3924         (arm_set_fixed_optab_libfunc): New.
3925         (arm_set_fixed_conv_libfunc): New.
3926         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3927         ARM-specific names.
3928         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3929         return values in SImode.
3930         (arm_return_in_msb): Return fixed-point types in the msb.
3931         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3932         upwards.
3933         (arm_scalar_mode_supported_p): Support fixed-point modes.
3934         (arm_vector_mode_supported_p): Support vector fixed-point modes.
3935         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3936         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3937         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3938         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3939         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3940         New mode iterators.
3941         (qaddsub_suf): New mode attribute.
3942         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3943         vector modes.
3944         * config/arm/predicates.md (sat_shift_operator): New predicate.
3945         * config/arm/arm-fixed.md: New.
3946         * config/arm/arm.md: Include arm-fixed.md.
3947         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3948
3949 2011-08-01  Julian Brown  <julian@codesourcery.com>
3950
3951         * calls.c (emit_library_call_value_1): Support padding for libcall
3952         arguments and return values.
3953         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3954         downwards in big-endian mode.
3955
3956 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3957
3958         PR debug/49887
3959         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3960         * config/sol2-protos.h: Likewise.
3961         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
3962         solaris_code_end.
3963         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
3964         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
3965         solaris_file_end.
3966         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
3967
3968 2011-08-01  Julian Brown  <julian@codesourcery.com>
3969
3970         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
3971
3972 2011-08-01  Julian Brown  <julian@codesourcery.com>
3973
3974         * final.c (output_addr_const): Print fixed-point constants as
3975         decimal not hex.
3976
3977 2011-08-01  Richard Guenther  <rguenther@suse.de>
3978
3979         * stor-layout.c (initialize_sizetypes): Properly sign-extend
3980         bitsiztype TYPE_MAX_VALUE.
3981
3982 2011-08-01  Julian Brown  <julian@codesourcery.com>
3983
3984         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
3985         comparison helpers.
3986
3987 2011-07-31  Richard Henderson  <rth@redhat.com>
3988
3989         * config/h8300/crti.asm: Add flags to .section directive.
3990         * config/h8300/crtn.asm: Likewise.
3991
3992 2011-07-31  Richard Henderson  <rth@redhat.com>
3993
3994         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
3995         * tree.c (build_common_tree_nodes): Likewise.
3996
3997 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3998
3999         PR target/49880
4000         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4001         (divsi3_i1): Likewise.
4002
4003 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4004
4005         PR tree-optimization/49749
4006         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4007         (PHI_LOOP_BIAS): New macro.
4008         (phi_rank): New function.
4009         (loop_carried_phi): Likewise.
4010         (propagate_rank): Likewise.
4011         (get_rank): Add calls to phi_rank and propagate_rank.
4012
4013 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4014
4015         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4016         of TARGET_64BIT.
4017         (PTRDIFF_TYPE): Likewise.
4018
4019 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4020
4021         PR target/49920
4022         * config/i386/i386.md (strset): Do not expand strset_singleop
4023         when %eax or $edi are fixed.
4024         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4025         (*strsetsi_1): Ditto.
4026         (*strsethi_1): Ditto.
4027         (*strsetqi_1): Ditto.
4028         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4029         (*rep_stossi): Ditto.
4030         (*rep_stosqi): Ditto.
4031         (*strlenqi_1): Ditto.
4032         (cmpstrnsi): Also fail when %ecx is fixed.
4033         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4034         (*cmpstrnqi_1): Ditto.
4035         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4036         (*strmovsi_1): Ditto.
4037         (*strmovhi_1): Ditto.
4038         (*strmovqi_1): Ditto.
4039         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4040         (*rep_movsi): Ditto.
4041         (*rep_movqi): Ditto.
4042
4043 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4044
4045         PR target/47908
4046         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4047         Disable instruction scheduling for non-ColdFire targets.
4048         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4049
4050 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4051
4052         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4053         of anti-dep edge from a branch.
4054         (add_cross_iteration_register_deps): Create anti-dep edge from
4055         a branch.
4056
4057 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4058
4059         * modulo-sched.c: Change comment.
4060         (reset_sched_times): Fix print message.
4061         (print_partial_schedule): Add print info.
4062
4063 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4064
4065         PR middle-end/43513
4066         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4067         get_object_alignment and TYPE_ALIGN.
4068
4069 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4070
4071         PR middle-end/43513
4072         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4073         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4074
4075 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4076
4077         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4078         <sys/sbd.h>.
4079         (cpu_types): New array.
4080         (cputype): New function.
4081         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4082         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4083         * config.host: Also use driver-native.o, mips/x-native on
4084         mips-sgi-irix*.
4085         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4086         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4087         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4088
4089 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4090
4091         PR middle-end/49897
4092         PR middle-end/49898
4093         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4094         in nested parallel and outer is a gimple_reg, mark it as addressable
4095         and set its bit in task_shared_vars bitmap too.
4096
4097 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4098
4099         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4100
4101 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4102
4103         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4104         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4105         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4106         AMASK_LOCKPFTCHOK): Define.
4107         (host_detect_local_cpu): Remove buf, f, cpu_names.
4108         Define cpu_types, implver, amask.
4109         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4110         native CPU.
4111         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4112         alpha*-dec-osf*.
4113         * config/alpha/osf5.h [__alpha__ || __alpha]
4114         (host_detect_local_cpu): Declare.
4115         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4116         (DRIVER_SELF_SPECS): Define.
4117
4118 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4119
4120         PR target/47715
4121         * config/i386/i386.md (*load_tp_x32): New.
4122         (*load_tp_x32_zext): Ditto.
4123         (*add_tp_x32): Ditto.
4124         (*add_tp_x32_zext): Ditto.
4125         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4126         (*add_tp_<mode>): Ditto.
4127         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4128         ptr_mode and convert to Pmode if needed.
4129
4130 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4131
4132         PR target/49687
4133         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4134         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4135         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4136         Add X to register footprint: Clobber r26/r27.
4137
4138 2011-07-29  Richard Guenther  <rguenther@suse.de>
4139
4140         * builtins.c (fold_builtin_signbit): Build the comparison
4141         with a proper type.
4142
4143 2011-07-29  Richard Guenther  <rguenther@suse.de>
4144
4145         PR tree-optimization/49893
4146         * tree-predcom.c (suitable_reference_p): Volatile references
4147         are not suitable.
4148
4149 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4150
4151         PR target/49313
4152         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4153         (__ctzsi2): Result for 0 may be undefined.
4154         (__ctzhi2): Result for 0 may be undefined.
4155         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4156         (__popcountsi2): Ditto. And don't clobber r26.
4157         (__popcountdi2): Ditto. And don't clobber r27.
4158         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4159         (parityhi2): New expand.
4160         (paritysi2): New expand.
4161         (popcounthi2): New expand.
4162         (popcountsi2): New expand.
4163         (clzhi2): New expand.
4164         (clzsi2): New expand.
4165         (ctzhi2): New expand.
4166         (ctzsi2): New expand.
4167         (ffshi2): New expand.
4168         (ffssi2): New expand.
4169         (copysignsf3): New insn.
4170         (bswapsi2): New expand.
4171         (*parityhi2.libgcc): New insn.
4172         (*parityqihi2.libgcc): New insn.
4173         (*paritysihi2.libgcc): New insn.
4174         (*popcounthi2.libgcc): New insn.
4175         (*popcountsi2.libgcc): New insn.
4176         (*popcountqi2.libgcc): New insn.
4177         (*popcountqihi2.libgcc): New insn-and-split.
4178         (*clzhi2.libgcc): New insn.
4179         (*clzsihi2.libgcc): New insn.
4180         (*ctzhi2.libgcc): New insn.
4181         (*ctzsihi2.libgcc): New insn.
4182         (*ffshi2.libgcc): New insn.
4183         (*ffssihi2.libgcc): New insn.
4184         (*bswapsi2.libgcc): New insn.
4185
4186 2011-07-29  Richard Guenther  <rguenther@suse.de>
4187
4188         * tree-vrp.c (get_value_range): Only set parameter default
4189         definitions to varying, leave others at undefined.
4190         (extract_range_from_binary_expr): Fix undefined handling.
4191         (vrp_visit_phi_node): Handle merged undefined state.
4192
4193 2011-07-29  Wei Guozhi  <carrot@google.com>
4194
4195         PR rtl-optimization/49799
4196         * combine.c (make_compound_operation): Check if the bit field is valid
4197         before change it to bit field extraction.
4198
4199 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4200
4201         PR rtl-optimization/49891
4202         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4203         newly created returnjumps.
4204
4205 2011-07-28  DJ Delorie  <dj@redhat.com>
4206
4207         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4208         local frame in a naked function, and produce a suitable error for
4209         that specific case.
4210
4211         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4212         registers to be reloaded in HI classes when the target is HI.
4213
4214 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4215
4216         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4217         bound_one, bound_two.
4218
4219 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4220
4221         PR middle-end/48648
4222         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4223         CLAST assignments.
4224         (translate_clast): Same.
4225         (translate_clast_assignment): New.
4226
4227 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4228
4229         PR tree-optimization/49876
4230         * sese.c (rename_uses): Do not return false on gloog_error: set
4231         the new_expr to integer_zero_node and continue code generation.
4232         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4233
4234 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4235
4236         PR debug/49846
4237         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4238         arguments also check if they aren't initialized with a MODE_INT
4239         mode of the same size.
4240
4241 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4242
4243         * expr.c (get_bit_range): Handle *MEM_REF's.
4244
4245 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4246
4247         * rtlanal.c (tablejump_p): False for returns.
4248         * reorg.c (first_active_target_insn): New static function.
4249         (find_end_label): Set JUMP_LABEL for a new returnjump.
4250         (optimize_skip, get_jump_flags, rare_destination,
4251         mostly_true_jump, get_branch_condition,
4252         steal_delay_list_from_target, own_thread_p,
4253         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4254         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4255         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4256         * jump.c (delete_related_insns): Likewise.
4257         (jump_to_label_p): New function.
4258         (redirect_target): New static function.
4259         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4260         (redirect_jump_1): Assert that the new label is nonnull.
4261         (redirect_jump): Likewise.
4262         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4263         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4264         exit block.
4265         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4266         changed.  Ensure that the right label is passed to redirect_jump.
4267         * function.c (emit_return_into_block,
4268         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4269         ret_rtx in their JUMP_LABEL.
4270         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4271         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4272         pass ret_rtx as label.
4273         * cfglayout.c (fixup_reorder_chain): Use
4274         force_nonfallthru_and_redirect rather than force_nonfallthru.
4275         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4276         * rtl.h (ANY_RETURN_P): New macro.
4277         (jump_to_label_p): Declare.
4278         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4279         JUMP_LABELs.
4280         (mark_target_live_regs): Likewise.
4281         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4282         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4283         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4284         alpha_tablejump_best_label): Remove functions.
4285         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4286         alpha_tablejump_best_label): Remove declarations.
4287         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4288         ret_rtx in JUMP_LABELs.
4289         * config/arm/arm.c (is_jump_table): Likewise.
4290
4291 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4292
4293         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4294         special predicate.  Remove explicit mode checks.
4295
4296 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4297
4298         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4299         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4300
4301         PR debug/49871
4302         * dwarf2out.c (size_of_die, value_format, output_die): Use
4303         DW_FORM_udata instead of DW_FORM_data[48] for
4304         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4305
4306 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4307
4308         * config/i386/i386.md (*tls_global_dynamic_64): Update
4309         length attribute.
4310
4311 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4312
4313         PR target/47715
4314         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4315         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
4316         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4317         (tls_dynamic_gnu2_64): Ditto.
4318         (*tls_dynamic_gnu2_lea_64): Ditto.
4319         (*tls_dynamic_gnu2_call_64): Ditto.
4320         (*tls_dynamic_gnu2_combine_64): Ditto.
4321
4322 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4323
4324         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4325
4326 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4327
4328         PR target/47364
4329         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4330
4331 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4332
4333         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4334         before the core constraints. Adjust attributes.
4335         ("*thumb2_movdf_vfp"): Likewise.
4336
4337 2011-07-28  Kai Tietz  <ktietz@redhat.com>
4338
4339         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4340         (simplify_truth_ops_using_ranges): Likewise.
4341         (build_assert_expr_for): Likewise.
4342         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4343         and handle BIT_NOT_EXPR for truth-operation.
4344
4345 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4346
4347         PR target/49313
4348         Undo r176835 from trunk
4349         2011-07-27  Georg-Johann Lay
4350
4351 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4352
4353         PR target/49687
4354         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4355         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4356         * config/avr/libgcc.S (__mulsi3): Rewrite.
4357         (__mulhisi3): Rewrite.
4358         (__umulhisi3): Rewrite.
4359         (__usmulhisi3): New.
4360         (__muluhisi3): New.
4361         (__mulshisi3): New.
4362         (__mulohisi3): New.
4363         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4364         declare.
4365         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4366         (pseudo_register_or_const_int_operand): New.
4367         (combine_pseudo_register_operand): New.
4368         (u16_operand): New.
4369         (s16_operand): New.
4370         (o16_operand): New.
4371         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4372         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4373         (any_extend, any_extend2): New code iterators.
4374         (extend_prefix): New code attribute.
4375         (mulsi3): Rewrite. Turn insn to expander.
4376         (mulhisi3): Ditto.
4377         (umulhisi3): Ditto.
4378         (usmulhisi3): New expander.
4379         (*mulsi3): New insn-and-split.
4380         (mulu<mode>si3): New insn-and-split.
4381         (muls<mode>si3): New insn-and-split.
4382         (mulohisi3): New insn-and-split.
4383         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4384         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4385         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4386         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4387         insn-and-split.
4388         (*mulsi3_call): Rewrite.
4389         (*mulhisi3_call): Rewrite.
4390         (*umulhisi3_call): Rewrite.
4391         (*usmulhisi3_call): New insn.
4392         (*muluhisi3_call): New insn.
4393         (*mulshisi3_call): New insn.
4394         (*mulohisi3_call): New insn.
4395         (extendqihi2): Use combine_pseudo_register_operand as predicate
4396         for operand 1.
4397         (extendqisi2): Ditto.
4398         (zero_extendqihi2): Ditto.
4399         (zero_extendqisi2): Ditto.
4400         (zero_extendhisi2): Ditto.
4401         (extendhisi2): Ditto. Don't early-clobber operand 0.
4402
4403 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4404
4405         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4406
4407 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4408
4409         PR tree-optimization/49471
4410         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4411         iv only when the largest type is unsigned.  Do not call
4412         lang_hooks.types.type_for_size.
4413
4414 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4415
4416         PR middle-end/45450
4417         * graphite-poly.c (apply_poly_transforms): Disable legality check
4418         after an openscop read.
4419
4420 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4421
4422         PR middle-end/47691
4423         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4424         copy_bb_and_scalar_dependences.
4425         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
4426         (graphite_copy_stmts_from_block): Update call to rename_uses.
4427         (copy_bb_and_scalar_dependences): Update call to
4428         graphite_copy_stmts_from_block.
4429         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4430
4431 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
4432
4433         PR target/49313
4434         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4435         (__ctzsi2): Result for 0 may be undefined.
4436         (__ctzhi2): Result for 0 may be undefined.
4437         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4438         (__popcountsi2): Ditto. And don't clobber r26.
4439         (__popcountdi2): Ditto. And don't clobber r27.
4440         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4441         (parityhi2): New expand.
4442         (paritysi2): New expand.
4443         (popcounthi2): New expand.
4444         (popcountsi2): New expand.
4445         (clzhi2): New expand.
4446         (clzsi2): New expand.
4447         (ctzhi2): New expand.
4448         (ctzsi2): New expand.
4449         (ffshi2): New expand.
4450         (ffssi2): New expand.
4451         (copysignsf3): New insn.
4452         (bswapsi2): New expand.
4453         (*parityhi2.libgcc): New insn.
4454         (*parityqihi2.libgcc): New insn.
4455         (*paritysihi2.libgcc): New insn.
4456         (*popcounthi2.libgcc): New insn.
4457         (*popcountsi2.libgcc): New insn.
4458         (*popcountqi2.libgcc): New insn.
4459         (*popcountqihi2.libgcc): New insn-and-split.
4460         (*clzhi2.libgcc): New insn.
4461         (*clzsihi2.libgcc): New insn.
4462         (*ctzhi2.libgcc): New insn.
4463         (*ctzsihi2.libgcc): New insn.
4464         (*ffshi2.libgcc): New insn.
4465         (*ffssihi2.libgcc): New insn.
4466         (*bswapsi2.libgcc): New insn.
4467
4468 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4469
4470         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4471         the mode of symbolic_opreand RTXes.
4472
4473 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4474
4475         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4476         for pic_32bit_operand RTXes.
4477         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4478         in DImode.
4479
4480 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4481
4482         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4483         for 32-bit, too.
4484         (ix86_handle_abi_attribute): Allow function attributes
4485         ms_abi/sysv_abi in 32-bit mode, too.
4486         * doc/extend.texi: Adjust attribute documentation.
4487
4488         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4489         expression handling.
4490         (and_var_with_comparison_1): Likewise.
4491
4492 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4493
4494         * params.h (ALLOW_STORE_DATA_RACES): New.
4495         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4496         * Makefile.in (expr.o): Depend on PARAMS_H.
4497         * machmode.h (get_best_mode): Add argument.
4498         * fold-const.c (optimize_bit_field_compare): Add argument to
4499         get_best_mode.
4500         (fold_truthop): Same.
4501         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4502         * expr.c (emit_group_store): Same.
4503         (copy_blkmode_from_reg): Same.
4504         (write_complex_part): Same.
4505         (optimize_bitfield_assignment_op): Add argument.
4506         Add argument to get_best_mode.
4507         (get_bit_range): New.
4508         (expand_assignment): Calculate maxbits and pass it down accordingly.
4509         (store_field): New argument.
4510         (expand_expr_real_2): New argument to store_field.  Include params.h.
4511         * expr.h (store_bit_field): New argument.
4512         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4513         into account maxbits.
4514         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4515         to store_bit_field.
4516         * expmed.c (store_bit_field_1): New argument.  Use it.
4517         (store_bit_field): Same.
4518         (store_fixed_bit_field): Same.
4519         (store_split_bit_field): Same.
4520         (extract_bit_field_1): Pass new argument to get_best_mode.
4521         (extract_bit_field): Same.
4522         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4523         * doc/invoke.texi: Document parameter allow-store-data-races.
4524
4525 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4526
4527         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4528
4529 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4530
4531         * tree-vrp.c (extract_range_from_binary_expr): Remove
4532         TRUTH-binary cases and add new bitwise-cases.
4533         (extract_range_from_assignment): Likewise.
4534         (register_edge_assert_for_1): Likeiwise.
4535         (register_edge_assert_for): Likewise.
4536         (simplify_truth_ops_using_ranges): Likewise.
4537         (simplify_stmt_using_ranges): Likewise.
4538
4539 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4540
4541         PR target/47372
4542         * config/i386/i386.c (ix86_delegitimize_address): Call
4543         simplify_gen_subreg for PIC with mode of x only if modes of
4544         x and orig_x are different.
4545
4546 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4547
4548         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4549         to GC allocated copy of the string.
4550         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4551         before .debug_line, not after it.
4552
4553 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4554
4555         PR middle-end/47046
4556         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4557         evolution_function_is_affine_p on CHREC_RIGHT.
4558
4559 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4560
4561         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4562         lang_hooks.types.type_for_size.
4563
4564 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4565
4566         PR middle-end/47653
4567         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4568         loops using wrapping semantics.
4569
4570 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4571
4572         PR middle-end/48805
4573         * tree-scalar-evolution.c (instantiate_scev_r): Return
4574         chrec_dont_know for ADDR_EXPR.
4575
4576 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4577             H.J. Lu  <hongjiu.lu@intel.com>
4578
4579         PR target/47369
4580         PR target/49853
4581         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4582         if legitimize_tls_address returned operand in wrong mode. Allow
4583         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4584         if legitimize_pic_address returned operand in wrong mode.
4585
4586 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4587
4588         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4589         return false for invariants.
4590
4591 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4592
4593         * config/i386/i386.md (add->lea splitter): Implement using SWI
4594         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4595         (add->lea zext splitter): Change operand 2 predicate to
4596         x86_64_nonmemory_operand.
4597
4598 2011-07-26  Richard Guenther  <rguenther@suse.de>
4599
4600         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4601         frequency makes everything hot.
4602
4603 2011-07-26  Richard Guenther  <rguenther@suse.de>
4604
4605         PR tree-optimization/49840
4606         * tree-vrp.c (range_fits_type_p): Properly handle full
4607         double-int precision.
4608
4609 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4610
4611         PR bootstrap/49786
4612         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4613         counts.
4614         (update_specialized_profile): Likewise.
4615
4616 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4617             H.J. Lu  <hongjiu.lu@intel.com>
4618
4619         PR target/47381
4620         PR target/49832
4621         PR target/49833
4622         * config/i386/i386.md (i): Change SImode attribute to "e".
4623         (g): Change SImode attribute to "rme".
4624         (di): Change SImode attribute to "nF".
4625         (general_operand): Change SImode attribute to x86_64_general_operand.
4626         (general_szext_operand): Change SImode attribute to
4627         x86_64_szext_general_operand.
4628         (immediate_operand): Change SImode attribute to
4629         x86_64_immediate_operand.
4630         (nonmemory_operand): Change SImode attribute to
4631         x86_64_nonmemory_operand.
4632         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4633         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4634         (*lea_1): Use SWI48 mode iterator.
4635         (*lea_1_zext): New insn pattern.
4636         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4637         (*bt<mode>): Ditto.
4638         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4639         Update operand constraints.
4640         (addsi_1_zext): Ditto.
4641         (*add<mode>2): Ditto.
4642         (*addsi_3_zext): Ditto.
4643         (*subsi_1_zext): Ditto.
4644         (*subsi_2_zext): Ditto.
4645         (*subsi_3_zext): Ditto.
4646         (*addsi3_carry_zext): Ditto.
4647         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4648         (*mulsi3_1_zext): Ditto.
4649         (*andsi_1): Ditto.
4650         (*andsi_1_zext): Ditto.
4651         (*andsi_2_zext): Ditto.
4652         (*<any_or:code>si_1_zext): Ditto.
4653         (*<any_or:code>si_2_zext): Ditto.
4654         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4655         (*and<mode>_2): Ditto.
4656         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4657         (add->lea splitter): Check operand modes in insn constraint.  Extend
4658         operands less than SImode wide to SImode.
4659         (add->lea zext splitter): Do not extend input operands to DImode.
4660         (*lea_general_1): Handle only QImode and HImode operands.
4661         (*lea_general_2): Ditto.
4662         (*lea_general_3): Ditto.
4663         (*lea_general_1_zext): Remove.
4664         (*lea_general_2_zext): Ditto.
4665         (*lea_general_3_zext): Ditto.
4666         (*lea_general_4): Check operand modes in insn constraint.  Extend
4667         operands less than SImode wide to SImode.
4668         (ashift->lea splitter): Ditto.
4669         * config/i386/i386.c (ix86_print_operand_address): Print address
4670         registers with 'q' modifier on 64bit targets.
4671         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4672         predicate.  Reject non-SI and non-DI modes.
4673
4674 2011-07-25  Andrew Pinski  <apinski@cavium.com>
4675
4676         PR tree-opt/49671
4677         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4678         TREE_THIS_NOTRAP into the inner most MEM_REF.
4679         Always copy TREE_THIS_VOLATILE.
4680         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4681         arguments are not volatile references.
4682
4683 2011-07-25  Richard Henderson  <rth@redhat.com>
4684
4685         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4686         * final.c (final_scan_insn): Don't test for it.
4687         (rest_of_clean_state): Likewise.
4688
4689 2011-07-25  Richard Henderson  <rth@redhat.com>
4690
4691         PR debug/49841
4692         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4693         (emit_frame_save): Likewise.
4694         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4695         insn onto a dummy blockage insn after the join label.
4696
4697 2011-07-25  Richard Henderson  <rth@redhat.com>
4698
4699         * dwarf2cfi.c (dw_trace_info): Add ID member.
4700         (get_trace_index): Remove.  Change users to use ID member.
4701         (before_next_cfi_note): New.
4702         (connect_traces): Remove unreachable traces before the main loop.
4703         Look across one trace and generate remember/restore_state if needed.
4704
4705 2011-07-25  Richard Henderson  <rth@redhat.com>
4706
4707         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4708
4709 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
4710
4711         * genattr.c (write_upcase, gen_attr <enum definition writing>):
4712         Move to ...
4713         * genattr-common.c ... here.
4714         (main): Call gen_attr.
4715         * optc-gen.awk: Make generated program include insn-attr-common.h .
4716         * Makefile.in (oprions.o): Depend on insn-attr-common.h
4717
4718 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4719
4720         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4721         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4722         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4723         m32c_print_operand, m32c_print_operand_address): Remove.
4724         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4725         Change return type to bool. Change argument type to bool.
4726         (m32c_print_operand, m32c_print_operand_address): Make static.
4727         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4728         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4729
4730 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4733         attributes): Document mmap.
4734
4735 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4736
4737         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4738         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4739         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4740         mmix_print_operand, mmix_print_operand_address): Remove.
4741         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4742         Change return type to bool. Change argument type to bool.
4743         (mmix_print_operand, mmix_print_operand_address): Make static.
4744         (mmix_intval, mmix_output_condition): Change 'x' argument type
4745         to const_rtx.
4746         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4747         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4748
4749 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
4750
4751         PR target/39386
4752         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4753         shift counter for x << x and x >> x shifts.
4754
4755 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4756
4757         PR target/47124
4758         * config.gcc: Reject *-*-solaris2 configuration.
4759
4760 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
4761
4762         PR tree-optimization/49809
4763         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4764         gimple_get_lhs instead of gimple_assign_lhs.
4765
4766 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4767
4768         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4769
4770 2011-07-25  Richard Guenther  <rguenther@suse.de>
4771
4772         PR tree-optimization/49822
4773         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4774         more.  Make sure to preserve stmts with side-effects.  Properly
4775         handle virtual defs, follow a longer def chain.
4776
4777 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
4778
4779         PR plugins/45348
4780         PR plugins/48425
4781         PR plugins/46577
4782         * Makefile.in: Do not flatten c-family directory when installing
4783         plugin headers.
4784
4785 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4786
4787         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4788         original nodes if we are dealing with virtual clones.
4789
4790 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
4791
4792         * common/config/c6x/c6x-common.c: New file.
4793
4794 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
4795
4796         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4797
4798 2011-07-25  Richard Guenther  <rguenther@suse.de>
4799
4800         PR tree-optimization/49715
4801         * tree-vrp.c: Include expr.h and optabs.h.
4802         (range_fits_type_): New function.
4803         (simplify_float_conversion_using_ranges): Likewise.
4804         (simplify_stmt_using_ranges): Call it.
4805         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4806         * optabs.c (can_float_p): Export.
4807         * optabs.h (can_float_p): Declare.
4808
4809 2011-07-25  Richard Guenther  <rguenther@suse.de>
4810
4811         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4812         (get_value_range): For out-of-range SSA names or names created
4813         after propagation return a read-only varying range.
4814         (dump_all_value_ranges): Adjust.
4815         (vrp_initialize): Likewise.
4816         (vrp_finalize): Likewise.
4817
4818 2011-07-24  Richard Henderson  <rth@redhat.com>
4819
4820         PR debug/49831
4821         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
4822         them entirely.
4823
4824 2011-07-24  Richard Henderson  <rth@redhat.com>
4825
4826         PR debug/49825
4827         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4828         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4829
4830 2011-07-24  Richard Henderson  <rth@redhat.com>
4831
4832         PR debug/49827
4833         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4834
4835 2011-07-24  Richard Henderson  <rth@redhat.com>
4836
4837         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4838         Zero args_size for abnormal edges.  Adjust all callers.
4839
4840 2011-07-24  Richard Henderson  <rth@redhat.com>
4841
4842         PR debug/49825
4843         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4844
4845 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4846
4847         PR bootstrap/49835
4848         * collect2.c (demangle_flag): Removed.
4849
4850 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
4851
4852         * configure.ac (demangler_in_ld): Default to yes.
4853         * configure: Regenerated.
4854         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4855         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4856         --no-demangle options straight through to ld.  When
4857         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4858         way that has the intended effect on Windows.
4859
4860 2011-07-23  Richard Henderson  <rth@redhat.com>
4861
4862         * dwarf2cfi.c: Include basic-block.h.
4863         (dw_label_info): Remove.
4864         (trace_work_list, trace_index): New.
4865         (remember_row, emit_cfa_remember): Remove.
4866         (dw_trace_info_hash, dw_trace_info_eq): New.
4867         (get_trace_index, get_trace_info): New.
4868         (save_point_p): New.
4869         (free_cfi_row): Remove.
4870         (add_cfi): Do not emit DW_CFA_remember_state.
4871         (cfa_row_equal_p): New.
4872         (barrier_args_size): Remove.
4873         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4874         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4875         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4876         (dwarf2out_cfi_begin_epilogue): Remove.
4877         (dwarf2out_frame_debug_restore_state): Remove.
4878         (connect_traces, create_pseudo_cfg): New.
4879         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4880         * Makefile.in (dwarf2cfi.o): Update.
4881
4882 2011-07-23  Richard Henderson  <rth@redhat.com>
4883
4884         * dwarf2cfi.c (dw_trace_info): New.
4885         (dw_label_info): New.
4886         (cie_return_save): New.
4887         (cur_trace): New.
4888         (queued_args_size): Rename from args_size.  Update all users.
4889         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4890         (def_cfa_1): Use cur_trace instead of cfa_*.
4891         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4892         (clobbers_queued_reg_save, reg_saved_in): Likewise.
4893         (dwarf2out_frame_debug_expr): Likewise.
4894         (create_cie_data): Split out from ...
4895         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
4896
4897 2011-07-23  Richard Henderson  <rth@redhat.com>
4898
4899         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4900         Update all users to match.
4901         (execute_dwarf2_frame): Free reg_saved_in_data.
4902
4903 2011-07-23  Richard Henderson  <rth@redhat.com>
4904
4905         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4906         (queued_reg_saves): Don't GTY.  Change to a VEC.
4907         (queue_reg_save): Update to match.
4908         (dwarf2out_flush_queued_reg_saves): Likewise.
4909         (clobbers_queued_reg_save): Likewise.
4910         (reg_saved_in): Likewise.
4911         (execute_dwarf2_frame): Free queued_reg_saves.
4912
4913 2011-07-23  Richard Henderson  <rth@redhat.com>
4914
4915         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
4916
4917 2011-07-23  Richard Henderson  <rth@redhat.com>
4918
4919         * dwarf2cfi.c (add_cfi_args_size): Split out from...
4920         (dwarf2out_args_size): ... here.
4921         (add_cfi_restore): Split out from ...
4922         (dwarf2out_frame_debug_cfa_restore): ... here.
4923         (def_cfa_0): Split out from ...
4924         (def_cfa_1): ... here.
4925         (cfi_oprnd_equal_p, cfi_equal_p): New.
4926         (change_cfi_row): New.
4927         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4928         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4929         (output_cfis): Remove.
4930         * dwarf2out.c (output_fde): Simplify output_cfi loop.
4931         (dwarf2out_switch_text_section): Don't call output_cfis.
4932         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4933         * dwarf2out.h: Update decls.
4934         (enum dw_val_class): Add dw_val_class_none.
4935
4936 2011-07-23  Richard Henderson  <rth@redhat.com>
4937
4938         * dwarf2cfi.c (update_row_reg_save): New.
4939         (dwarf2out_frame_debug_cfa_expression): Use it.
4940         (dwarf2out_frame_debug_cfa_restore): Likewise.
4941         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
4942
4943 2011-07-23  Richard Henderson  <rth@redhat.com>
4944
4945         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
4946
4947 2011-07-23  Richard Henderson  <rth@redhat.com>
4948
4949         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4950         (cie_cfi_row): New.
4951         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4952         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4953         (cur_row, remember_row): New.
4954         (def_cfa_1): Use cur_row instead of the old_* variables.
4955         (dwarf2out_frame_debug_restore_state): Similarly.
4956         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4957         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4958         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4959         (dwarf2out_frame_debug_cfa_offset): Likewise.
4960         (dwarf2out_frame_debug_expr): Likewise.
4961         (execute_dwarf2_frame): Set up cur_row.
4962         * dwarf2out.h (struct cfa_loc): Mark for GTY.
4963
4964 2011-07-23  Richard Henderson  <rth@redhat.com>
4965
4966         * basic-block.h (EDGE_PRESERVE): New.
4967         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
4968         * bb-reorder.c: Include except.h.
4969         (fix_up_crossing_landing_pad): New.
4970         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
4971         landing pads in the right partition.  Duplicate as necessary.
4972         (partition_hot_cold_basic_blocks): Fix up DF info after
4973         duplicating landing pads.
4974         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
4975         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
4976         is set properly.  Validate that EH edges are not CROSSING.
4977         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
4978         (dw2_build_landing_pads): ... here.
4979         (convert_to_eh_region_ranges): Remove code to fixup crossing
4980         landing pads.
4981         * except.h (expand_dw2_landing_pad_for_region): Declare.
4982         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
4983
4984 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
4985
4986         PR target/49816
4987         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
4988
4989 2011-07-22  Jason Merrill  <jason@redhat.com>
4990
4991         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
4992
4993 2011-07-22  Richard Henderson  <rth@redhat.com>
4994
4995         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
4996
4997 2011-07-22  Richard Henderson  <rth@redhat.com>
4998
4999         * jump.c (maybe_propagate_label_ref): Split out of...
5000         (mark_all_labels): ... here.  Do not attempt label_ref
5001         propagation while in cfglayout mode.
5002
5003 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5004
5005         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5006         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5007         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5008         (dwarf2out_define): If the vector is empty and
5009         lineno is 0, emit a dummy entry first.
5010         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5011         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5012         optimize_macinfo_range): New functions.
5013         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5014         mergeable, optimize longer strings using
5015         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5016         optimize longer sequences of define/undef ops from headers
5017         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5018         emit a section headers.
5019         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5020         and macinfo_section_label to DEBUG_MACRO_SECTION
5021         resp. DEBUG_MACRO_SECTION_LABEL.
5022         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5023         instead of DW_AT_macro_info.
5024
5025         PR other/32998
5026         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5027         options.
5028         * dwarf2out.c: Include opts.h.
5029         (dchar_p): New typedef.  Define heap VEC for it.
5030         (producer_string): New variable.
5031         (gen_producer_string): New function.
5032         (gen_compile_unit_die): Use it.
5033         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5034         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5035         * doc/invoke.texi: Document -grecord-gcc-switches and
5036         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5037         to -frecord-gcc-switches description.
5038
5039 2011-07-22  Jason Merrill  <jason@redhat.com>
5040
5041         PR c++/30112
5042         * c-decl.c (c_linkage_bindings): Define.
5043
5044 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5045
5046         PR debug/49815
5047         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5048
5049 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5050
5051         * config/i386/i386.c (ix86_option_override_internal): Disallow
5052         MS ABI in x32 mode.
5053         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5054         only for TARGET_LP64.
5055         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5056
5057 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5058
5059         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5060         avoid warnings when GCC is built with a C++ compiler.
5061
5062 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5063
5064         PR lto/49796
5065         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5066         if decl node is in another partition, call cgraph_get_node only once.
5067
5068 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5069
5070         * config.gcc (x86_64-*-linux*): Set
5071         default_gnu_indirect_function to yes.
5072
5073 2011-07-22  Richard Guenther  <rguenther@suse.de>
5074
5075         PR tree-optimization/45819
5076         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5077         preserve volatile and notrap flags.
5078
5079 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5080             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5081
5082         PR bootstrap/49794
5083         * configure.ac: Test AM_ICONV with CXX.
5084         * configure: Regenerate.
5085         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5086
5087 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5088
5089         PR bootstrap/49797
5090         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5091         (set_cloog_options): Use it.
5092
5093 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5094
5095         PR c++/49756
5096         * gcc.c (main): Call stack_limit_increase (64MB).
5097         * toplev.c (toplev_main): Likewise.
5098
5099 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5100
5101         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5102         instead of force_reg.
5103
5104 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5105
5106         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5107         needed and use force_reg after convert.
5108         (ix86_expand_call): Likewise.
5109         (ix86_expand_special_args_builtin): Likewise.
5110         (ix86_expand_builtin): Likewise.
5111
5112 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5113
5114         PR middle-end/47654
5115         PR middle-end/49649
5116         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5117         in parameter.  Initialize v1 and v2 based on the values returned
5118         by clast_name_to_lb_ub.
5119         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5120         values.
5121         (type_for_clast_bin): Same.
5122         (type_for_clast_expr): Same.
5123         (type_for_clast_eq): Update calls to type_for_clast_expr.
5124         (type_for_clast_for): Same.
5125         (build_iv_mapping): Same.
5126         * graphite-ppl.h (value_min): New.
5127
5128 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5129
5130         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5131         types whenever possible.
5132
5133 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5134
5135         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5136         and ub fields.
5137         (new_clast_name_index): Add lb and ub parameters.
5138         (free_clast_name_index): New.
5139         (clast_name_to_lb_ub): New.
5140         (save_clast_name_index): Add lb and ub parameters.
5141         (compute_bounds_for_param): New.
5142         (type_for_level): Removed.
5143         (type_for_clast_for): Removed level parameter.  Do not call
5144         type_for_level.
5145         (graphite_create_new_loop): Store the lb and ub for the clast_name
5146         of the iterator of the loop that has been generated.
5147         (graphite_create_new_loop_guard): Remove parameter level.
5148         (create_params_index): Store the lb and ub of each parameter.
5149         (gloog): Use free_clast_name_index.  Pass to create_params_index
5150         the current scop.
5151
5152 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5153
5154         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5155         (max_precision_type): Inline max_signed_precision_type.
5156         (type_for_clast_red): Use max_precision_type.
5157         (type_for_clast_bin): Same.
5158         (type_for_clast_for): Same.
5159
5160 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5161
5162         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5163         type_for_interval.
5164         (gcc_type_for_value): Renamed type_for_value.
5165         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5166         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5167         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5168         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5169         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5170         (graphite_translate_clast_equation): Update calls.
5171         (compute_type_for_level): Renamed type_for_level.
5172         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5173         (build_iv_mapping): Update calls.
5174         (graphite_create_new_loop_guard): Same.
5175
5176 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5177
5178         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5179         comment.
5180
5181 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5182
5183         * graphite-clast-to-gimple.c (struct ivs_params): New.
5184         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5185         (clast_to_gcc_expression): Same.
5186         (clast_to_gcc_expression_red): Same.
5187         (gcc_type_for_clast_term): Same.
5188         (gcc_type_for_clast_expr): Same.
5189         (gcc_type_for_clast_red): Same.
5190         (gcc_type_for_clast_bin): Same.
5191         (gcc_type_for_clast_eq): Same.
5192         (graphite_translate_clast_equation): Same.
5193         (graphite_create_guard_cond_expr): Same.
5194         (graphite_create_new_guard): Same.
5195         (graphite_create_new_loop): Same.
5196         (build_iv_mapping): Same.
5197         (translate_clast_user): Same.
5198         (graphite_create_new_loop_guard): Same.
5199         (translate_clast): Same.
5200         (translate_clast_for_loop): Same.
5201         (translate_clast_for): Same.
5202         (translate_clast_guard): Same.
5203         (initialize_cloog_names): Fix typo.
5204         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5205
5206 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5207
5208         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5209         (new_clast_name_index): Add level parameter.
5210         (clast_name_to_level): New.
5211         (save_clast_name_index): Add level parameter.
5212         (newivs_to_depth_to_newiv): Removed.
5213         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5214         (graphite_create_new_loop): Add level parameter.  Pass level to
5215         save_clast_name_index.
5216         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5217         (create_params_index): Pass level to save_clast_name_index.
5218
5219 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5220
5221         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5222         recompute type, lb, and ub.  Get them from...
5223         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5224         pointers to type, lb, and ub.
5225         (translate_clast_for_loop): Update function calls.
5226         (translate_clast_for): Same.
5227
5228 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5229
5230         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5231         psct_dynamic_dim.
5232         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5233         (gcc_type_for_iv_of_clast_loop): Update use of level.
5234         (gloog): Start counting nesting level from 0.
5235         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5236         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5237         psct_dynamic_dim on level.
5238
5239 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         * config/i386/i386.c (ix86_legitimize_address): Convert to
5242         Pmode if needed.
5243
5244 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5245
5246         * config/i386/i386.c (function_value_64): Always return pointers
5247         in Pmode.
5248         (ix86_promote_function_mode): New.
5249         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5250
5251 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5252
5253         PR tree-optimization/49749
5254         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5255         remove no-longer-used maxrank variable.
5256
5257 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5258
5259         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5260
5261 2011-07-21  Jason Merrill  <jason@redhat.com>
5262
5263         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5264         * recog.h (struct insn_data_d): Check it instead of
5265         HAVE_DESIGNATED_INITIALIZERS.
5266         * genoutput.c (output_insn_data): Likewise.
5267
5268 2011-07-21  Richard Guenther  <rguenther@suse.de>
5269
5270         PR tree-optimization/49770
5271         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5272         valueized any operand.  Renamed from ...
5273         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5274         (valueize_shared_reference_ops_from_ref): Return whether we
5275         valueized any operand.
5276         (vn_reference_lookup): Only when we valueized any operand
5277         use the valueized reference for alias analysis.  Do not preserve
5278         the original reference tree in this case.
5279
5280 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5281
5282         * config/i386/i386.c (ix86_decompose_address): Reject all but
5283         register operands and subregs of DImode hard registers in index.
5284
5285 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5286
5287         * fold-const.c (fold_unary_loc): Preserve indirect
5288         comparison cast to none-boolean type.
5289         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5290         from/to boolean-type.
5291         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5292         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5293         * tree-cfg.c (verify_gimple_comparison): Check result
5294         type of comparison expression.
5295         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5296         of condition result and disallow type-cast sinking into comparison.
5297
5298 2011-07-21  Richard Guenther  <rguenther@suse.de>
5299
5300         * tree-ssa-forwprop.c (combine_conversions): Return whether
5301         we have to run cfg-cleanup.  Properly remove dead stmts.
5302         (ssa_forward_propagate_and_combine): Adjust.
5303
5304 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
5305
5306         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5307
5308 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5309
5310         * tree-ssa-propagate.c (substitute_and_fold): Use
5311         do_dce flag to deside, if BB's statements are scanned
5312         in last to first, or first to last order.
5313
5314 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5315
5316         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5317
5318 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
5319             Uros Bizjak  <ubizjak@gmail.com>
5320             Richard Henderson  <rth@redhat.com>
5321
5322         * config/i386/constraints.md (w): New.
5323
5324         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5325         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5326
5327         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5328         instead of TARGET_64BIT.
5329
5330         * config/i386/i386.md (indirect_jump): Replace
5331         nonimmediate_operand with indirect_branch_operand.
5332         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
5333         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5334         Convert operand 0 to Pmode for x32 if not PIC.
5335         (*tablejump_1): Replace nonimmediate_operand with
5336         indirect_branch_operand.  Replace constraint "m" with "w".
5337         (*call_vzeroupper): Replace constraint "m" with "w".
5338         (*call): Likewise.
5339         (*call_rex64_ms_sysv_vzeroupper): Likewise.
5340         (*call_rex64_ms_sysv): Likewise.
5341         (*call_value_vzeroupper): Likewise.
5342         (*call_value): Likewise.
5343         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5344         (*call_value_rex64_ms_sysv): Likewise.
5345         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5346
5347         * config/i386/predicates.md (indirect_branch_operand): New.
5348         (call_insn_operand): Support x32.
5349
5350 2011-07-20  Michael Eager  <eager@eagercon.com>
5351
5352         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5353
5354 2011-07-20  Richard Henderson  <rth@redhat.com>
5355
5356         * cfg.c (dump_bb_info): Dump basic_block->flags.
5357         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5358
5359 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5360
5361         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5362         of DImode hard registers in index.
5363         (ix86_legitimate_address_p): Allow subregs of base and index to span
5364         more than a word.  Assert that subregs of base and index satisfy
5365         register_no_elim_operand predicates.  Reject addresses where
5366         base and index have different modes.
5367
5368 2011-07-20  Robert Millan  <rmh@gnu.org>
5369
5370         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5371
5372 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5373
5374         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5375         removing now-unnecessary assignment.
5376
5377 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5378
5379         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5380         memory address space to the type's address space.
5381
5382 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5383
5384         PR target/36467
5385         PR target/49687
5386         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5387         and expand appropriately if there is a CONST_INT in operand2.
5388         (usmulqihi3): New insn.
5389         (*sumulqihi3): New insn.
5390         (*osmulqihi3): New insn.
5391         (*oumulqihi3): New insn.
5392         (*muluqihi3.uconst): New insn_and_split.
5393         (*muluqihi3.sconst): New insn_and_split.
5394         (*mulsqihi3.sconst): New insn_and_split.
5395         (*mulsqihi3.uconst): New insn_and_split.
5396         (*mulsqihi3.oconst): New insn_and_split.
5397         (*ashifthi3.signx.const): New insn_and_split.
5398         (*ashifthi3.signx.const7): New insn_and_split.
5399         (*ashifthi3.zerox.const): New insn_and_split.
5400         (mulsqihi3): New insn.
5401         (muluqihi3): New insn.
5402         (muloqihi3): New insn.
5403         * config/avr/predicates.md (const_2_to_7_operand): New.
5404         (const_2_to_6_operand): New.
5405         (u8_operand): New.
5406         (s8_operand): New.
5407         (o8_operand): New.
5408         (s9_operand): New.
5409         (register_or_s9_operand): New.
5410
5411 2011-07-20  Kai Tietz  <ktietz@redhat.com>
5412
5413         * builtins.c (fold_builtin_expect): See through the cast
5414         from truthvalue_type_node to long.
5415
5416 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5417
5418         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5419         where we can use them from the standard and altivec instruction
5420         sets, instead of always using the 3 operand VSX forms that require
5421         the destination to overlap one of the inputs.
5422         (vsx_fms*): Ditto.
5423         (vsx_fnma*): Ditto.
5424         (vsx_fnms*): Ditto.
5425
5426         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5427         for DF types.
5428         (fmsdf4_fpr): Ditto.
5429         (nfmadf4_fpr): Ditto.
5430         (nfmsdf4_fpr): Ditto.
5431
5432 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
5433
5434         * genrecog.c (make_insn_sequence): Correct position numbering
5435         when filtering out match_scratch and match_dup.
5436
5437 2011-07-20  Richard Guenther  <rguenther@suse.de>
5438
5439         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5440         against already removed statements.
5441         (forward_propagate_into_comparison): Remove dead defining stmts.
5442         (forward_propagate_into_gimple_cond): Likewise.
5443         (forward_propagate_into_cond): Simplify.
5444         (ssa_forward_propagate_and_combine): Handle changed cfg from
5445         forward_propagate_into_comparison.
5446         * tree-ssa-phiopt.c (conditional_replacement): Use proper
5447         locations for newly built statements.
5448
5449 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5450
5451         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5452
5453 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5454
5455         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5456         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5457
5458 2011-07-20  Richard Guenther  <rguenther@suse.de>
5459
5460         PR middle-end/18908
5461         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5462         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5463         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
5464
5465 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
5466
5467         * config/frv/frv.c (frv_register_move_cost): Define explicitly
5468         costs for subclasses of GR_REGS.
5469
5470 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5471
5472         PR target/49780
5473         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5474         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5475         of DImode hard registers in base.
5476         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5477         registers.
5478
5479 2011-07-20  Richard Guenther  <rguenther@suse.de>
5480
5481         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5482         (unify_nodes): Deal with that.
5483         (solve_graph): Likewise.
5484
5485 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5486
5487         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5488         canonicalize left operand from ZERO_EXTEND to AND.
5489
5490 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5491
5492         * target.def (class_max_nregs): New hook.
5493         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5494         * doc/tm.texi: Regenerate.
5495         * targhooks.c (default_class_max_nregs): New function.
5496         * targhooks.h (default_class_max_nregs): Declare.
5497         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5498         x_ira_reg_class_min_nregs arrays to unsigned char.
5499         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5500         hook instead of CLASS_MAX_NREGS macro.
5501         * reginfo.c (restore_register_info): Ditto.
5502         * ira-conflicts.c (process_regs_for_copy): Use
5503         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5504         Change type rclass and aclass vars to reg_class_t.
5505         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5506         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5507         reg_class_t.
5508         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5509         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5510
5511         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5512         * config/i386/i386.c (ix86_class_max_nregs): New function.
5513         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5514         instead of CLASS_MAX_NREGS macro.
5515         (TARGET_CLASS_MAX_NREGS): Define.
5516         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5517         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5518         * config/avr/avr.c (class_max_nregs): Remove function.
5519         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5520         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5521         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5522         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5523         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5524         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5525         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5526         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5527         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5528         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5529         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5530         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5531         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5532         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5533         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5534
5535 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5536
5537         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5538         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5539         (EH_PERSONALITY): Fix typo.
5540         (NON_CALL_EXCEPTIONS): Fix message.
5541         (OPTIMIZATION_MISMATCH): Adjust message.
5542         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5543
5544 2011-07-19  Ian Lance Taylor  <iant@google.com>
5545
5546         * doc/install.texi (Configuration): Document
5547         --enable-build-poststage1-with-cxx.
5548
5549 2011-07-19  Robert Millan  <rmh@gnu.org>
5550
5551         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5552         (GLIBC_DYNAMIC_LINKER): Remove.
5553
5554         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5555         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5556         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5557         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5558         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5559         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5560
5561         * config/mips/linux.h: Remove everything except for ...
5562         (GLIBC_DYNAMIC_LINKER): ... this macro.
5563
5564         * config/mips/linux64.h: Remove everything except for ...
5565         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5566         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5567         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5568         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5569         (GNU_USER_LINK_EMULATIONN32): New macros.
5570
5571         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5572         Use the new headers.
5573
5574 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5575
5576         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5577         Add offset_known_p and size_known_p fields.
5578         (MEM_OFFSET_KNOWN_P): Update accordingly.
5579         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5580         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5581         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5582         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5583         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5584         (init_emit_regs): Likewise.
5585
5586 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5587
5588         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5589         (MEM_OFFSET): Change from returning an rtx to returning a
5590         HOST_WIDE_INT.
5591         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5592         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5593         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5594         (clear_mem_offset): Declare.
5595         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5596         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5597         MEM_OFFSET to get a HOST_WIDE_INT offset.
5598         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5599         (adjust_offset_for_component_ref): Take a bool "known_p"
5600         parameter and a HOST_WIDE_INT "offset" parameter.
5601         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5602         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5603         than an rtx.  Use clear_mem_offset to clear the offset.
5604         * cfgcleanup.c (merge_memattrs): Likewise.
5605         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5606         * function.c (assign_parm_find_stack_rtl): Likewise.
5607         (assign_parm_setup_stack): Likewise.
5608         * print-rtl.c (print_rtx): Likewise.
5609         * reload.c (find_reloads_subreg_address): Likewise.
5610         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5611         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5612         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5613         (get_mem_align_offset): Likewise.
5614         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5615         (clear_mem_offset): New function.
5616         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5617         offset rather than an rtx.  Assume both the expressio and offset
5618         are available.
5619         (r10k_needs_protection_p_1): Update accordingly, checking the
5620         expression and offset availability here instead.
5621
5622 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5623
5624         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5625         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5626         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5627         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5628         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5629         (clear_mem_size): Declare.
5630         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5631         (clear_mem_size): New function.
5632         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5633         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5634         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5635         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5636         to clear the size.
5637         (nonoverlapping_memrefs_p): Likewise.
5638         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5639         (expand_builtin_init_trampoline): Likewise.
5640         * calls.c (compute_argument_addresses): Likewise.
5641         * cfgcleanup.c (merge_memattrs): Likewise.
5642         * dce.c (find_call_stack_args): Likewise.
5643         * dse.c (record_store, scan_insn): Likewise.
5644         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5645         * expr.c (emit_block_move_hints): Likewise.
5646         * function.c (assign_parm_find_stack_rtl): Likewise.
5647         * print-rtl.c (print_rtx): Likewise.
5648         * reload.c (find_reloads_subreg_address): Likewise.
5649         * rtlanal.c (may_trap_p_1): Likewise.
5650         * var-tracking.c (track_expr_p): Likewise.
5651         * varasm.c (assemble_trampoline_template): Likewise.
5652         * config/arm/arm.c (arm_print_operand): Likewise.
5653         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5654         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5655         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5656         (expand_constant_setmem_prologue): Likewise.
5657         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5658         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5659         (adjacent_mem_locations): Likewise.
5660         * config/s390/s390.c (s390_expand_setmem): Likewise.
5661         (s390_expand_insv): Likewise.
5662         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5663         (*extendqi<mode>2_short_displ): Likewise.
5664         * config/sh/sh.c (expand_block_move): Likewise.
5665         * config/sh/sh.md (extv, extzv): Likewise.
5666
5667 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5668
5669         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5670         (mem_attrs_htab_eq): ...here.
5671         (find_mem_attrs): Replace with...
5672         (set_mem_attrs): ...this function.  Take a mem_attrs structure
5673         rather than individual fields.
5674         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5675         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5676         (set_mem_size, change_address, adjust_address_1, offset_address)
5677         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5678         Update accordingly.
5679
5680 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5681
5682         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5683         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5684         Provide a dummy definition of MEM_ADDR_SPACE for generators.
5685         (target_rtl): Add x_mode_mem_attrs.
5686         (mode_mem_attrs): New macro.
5687         (get_mem_attrs): New function.
5688         * emit-rtl.c (get_mem_attrs): Rename to...
5689         (find_mem_attrs): ...this.
5690         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5691         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5692         (set_mem_size, change_address, adjust_address_1, offset_address)
5693         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5694         Update accordingly.
5695         (init_emit_regs): Initialize mode_mem_attrs.
5696
5697 2011-07-19  Richard Guenther  <rguenther@suse.de>
5698
5699         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5700         TRUTH_*_EXPR handling.
5701         * tree-ssa-operands.c (get_expr_operands): Likewise.
5702         * tree-ssa-pre.c (fully_constant_expression): Likewise.
5703         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5704         Likewise.
5705         (is_and_or_or): Likewise.
5706         (is_norm_cond_subset_of): Likewise.
5707
5708 2011-07-19  Richard Guenther  <rguenther@suse.de>
5709
5710         * tree.h (fold_build_pointer_plus_loc): New helper function.
5711         (fold_build_pointer_plus_hwi_loc): Likewise.
5712         (fold_build_pointer_plus): Define.
5713         (fold_build_pointer_plus_hwi): Likewise.
5714         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5715         (fold_builtin_memory_op): Likewise.
5716         (fold_builtin_stpcpy): Likewise.
5717         (fold_builtin_memchr): Likewise.
5718         (fold_builtin_strstr): Likewise.
5719         (fold_builtin_strchr): Likewise.
5720         (fold_builtin_strrchr): Likewise.
5721         (fold_builtin_strpbrk): Likewise.
5722         (fold_builtin_strcat): Likewise.
5723         (expand_builtin_memory_chk): Likewise.
5724         (fold_builtin_memory_chk): Likewise.
5725         * c-typeck.c (build_unary_op): Likewise.
5726         * cgraphunit.c (thunk_adjust): Likewise.
5727         * fold-const.c (build_range_check): Likewise.
5728         (fold_binary_loc): Likewise.
5729         * omp-low.c (extract_omp_for_data): Likewise.
5730         (expand_omp_for_generic): Likewise.
5731         (expand_omp_for_static_nochunk): Likewise.
5732         (expand_omp_for_static_chunk): Likewise.
5733         * tree-affine.c (add_elt_to_tree): Likewise.
5734         * tree-data-ref.c (split_constant_offset_1): Likewise.
5735         * tree-loop-distribution.c (generate_memset_zero): Likewise.
5736         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5737         * tree-predcom.c (ref_at_iteration): Likewise.
5738         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5739         (add_to_parts): Likewise.
5740         (create_mem_ref): Likewise.
5741         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5742         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5743         (number_of_iterations_le): Likewise.
5744         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5745         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5746         (vect_create_addr_base_for_vector_ref): Likewise.
5747         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5748         (vect_create_cond_for_alias_checks): Likewise.
5749         * tree-vrp.c (extract_range_from_assert): Likewise.
5750         * config/alpha/alpha.c (alpha_va_start): Likewise.
5751         (alpha_gimplify_va_arg_1): Likewise.
5752         * config/i386/i386.c (ix86_va_start): Likewise.
5753         (ix86_gimplify_va_arg): Likewise.
5754         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5755         * config/mep/mep.c (mep_expand_va_start): Likewise.
5756         (mep_gimplify_va_arg_expr): Likewise.
5757         * config/mips/mips.c (mips_va_start): Likewise.
5758         (mips_gimplify_va_arg_expr): Likewise.
5759         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5760         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5761         (rs6000_gimplify_va_arg): Likewise.
5762         * config/s390/s390.c (s390_va_start): Likewise.
5763         (s390_gimplify_va_arg): Likewise.
5764         * config/sh/sh.c (sh_va_start): Likewise.
5765         (sh_gimplify_va_arg_expr): Likewise.
5766         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5767         * config/spu/spu.c (spu_va_start): Likewise.
5768         (spu_gimplify_va_arg_expr): Likewise.
5769         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5770         Likewise.
5771         (xstormy16_gimplify_va_arg_expr): Likewise.
5772         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5773         (xtensa_gimplify_va_arg_expr): Likewise.
5774
5775 2011-07-19  Richard Guenther  <rguenther@suse.de>
5776
5777         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5778         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5779         handling.
5780
5781         PR middle-end/18908
5782         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5783         result of BIT_*_EXPR to bitfield precision.
5784
5785 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
5786
5787         PR tree-optimization/49742
5788         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5789         as a potential write.
5790
5791 2011-07-19  Richard Guenther  <rguenther@suse.de>
5792
5793         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5794         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5795         (forward_propagate_comparison): Simplify, remove obsolete code.
5796
5797 2011-07-19  Richard Guenther  <rguenther@suse.de>
5798
5799         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5800         BIT_XOR_EXPR, same as the RTL expander does.
5801         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5802         (verify_gimple_assign_unary): Likewise.
5803         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5804         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5805         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5806
5807 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
5808
5809         PR tree-optimization/49768
5810         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5811         if offset is smaller than bitoffset, but offset+size is bigger
5812         than bitoffset.
5813
5814 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
5815
5816         PR tree-optimization/49771
5817         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5818         zero step, set segment length to the size of the data-ref's type.
5819
5820 2011-07-18  Martin Jambor  <mjambor@suse.cz>
5821
5822         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5823         comments.
5824         (ipcp_values_pool): Declare.
5825         (ipcp_sources_pool): Likewise.
5826         (ipcp_lattice): Changed to forward declaration.
5827         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5828         cannot_devirtualize.
5829         (ipa_node_params): New fields descriptors, lattices, known_vals,
5830         clone_for_all_contexts and node dead, removed fields params and
5831         count_scale.
5832         (ipa_set_param_count): Removed.
5833         (ipa_get_param_count): Made to work with descriptors vector.
5834         (ipa_get_param): Updated.
5835         (ipa_param_cannot_devirtualize_p): Removed.
5836         (ipa_param_types_vec_empty): Likewise.
5837         (ipa_set_param_used): New function.
5838         (ipa_get_param_used): Updated to use descriptors vector.
5839         (ipa_func_list): Removed.
5840         (ipa_init_func_list): Removed declaration.
5841         (ipa_push_func_to_list_1): Likewise.
5842         (ipa_pop_func_from_list): Likewise.
5843         (ipa_push_func_to_list): Removed.
5844         (ipa_lattice_from_jfunc): Remove declaration.
5845         (ipa_get_jf_pass_through_result): Declare.
5846         (ipa_get_jf_ancestor_result): Likewise.
5847         (ipa_value_from_jfunc): Likewise.
5848         (ipa_get_lattice): Update.
5849         (ipa_lat_is_single_const): New function.
5850         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5851         (ipa_init_func_list): Likewise.
5852         (ipa_pop_func_from_list): Likewise.
5853         (ipa_get_param_decl_index): Fix coding style.
5854         (count_formal_params): Removed.
5855         (count_formal_params_1): Renamed to count_formal_params.
5856         (ipa_populate_param_decls): Update to use descriptors vector.
5857         (ipa_initialize_node_params): Likewise.
5858         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5859         (ipa_analyze_params_uses): Likewise.
5860         (ipa_free_node_params_substructures): Likewise and free also lattices
5861         and known values.
5862         (duplicate_array): Removed.
5863         (ipa_edge_duplication_hook): Add the new edge to the list of edge
5864         clones.
5865         (ipa_node_duplication_hook): Update to use new lattices.
5866         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5867         (ipa_free_all_structures_after_iinln): Likewise.
5868         (ipa_write_node_info): Update to use new lattices.
5869         (ipa_read_node_info): Likewise.
5870         (ipa_get_jf_pass_through_result): New function.
5871         (ipa_get_jf_ancestor_result): Likewise.
5872         (ipa_value_from_jfunc): Likewise.
5873         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5874         * ipa-cp.c: Reimplemented.
5875         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5876         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5877         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5878         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5879         * doc/invoke.texi (devirt-type-list-size): Removed description.
5880         (ipa-cp-value-list-size): Added description.
5881
5882 2011-07-18  Richard Henderson  <rth@redhat.com>
5883
5884         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5885         before calling create_basic_block.
5886
5887 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
5888
5889         PR middle-end/49675
5890         * tree.c (build_common_builtin_nodes): Register
5891         __builtin_return_address, __cyg_profile_func_enter
5892         and __cyg_profile_func_exit.
5893
5894 2011-07-18  Richard Henderson  <rth@redhat.com>
5895
5896         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5897         (add_labels_and_missing_jumps): ... here.
5898         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5899
5900 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
5901
5902         PR target/47744
5903         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5904         of DImode hard registers in PLUS address chains.
5905
5906 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5907
5908         PR bootstrap/49769
5909         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5910         (alpha*-*-freebsd*): Likewise.
5911         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5912         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5913         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5914         crtprec80.o, crtfastmath.o to extra_parts for all targets.
5915         (ia64*-*-elf*): Remove extra_parts.
5916         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5917         (sparc64-*-linux*): Likewise.
5918         (sparc64-*-freebsd*): Likewise.
5919
5920         Revert:
5921         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5922         (ia64*-*-linux*): Likewise.
5923         (mips64*-*-linux*): Likewise.
5924         (mips*-*-linux*): Likewise.
5925
5926 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
5927
5928         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5929
5930 2011-07-18  Richard Guenther  <rguenther@suse.de>
5931
5932         * gimplify.c (gimplify_expr): Use input_location, not saved_location
5933         when building new trees.
5934
5935 2011-07-18  Richard Guenther  <rguenther@suse.de>
5936
5937         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5938         expansion result to bitfield precision if required.
5939
5940 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5941
5942         * config.gcc (i[3456x]86-*-netware*): Remove.
5943
5944         * gthr-nks.h: Remove.
5945         * configure.ac (enable_threads): Remove nks.
5946         * configure: Regenerate.
5947
5948         * config/i386/i386.c (ix86_encode_section_info): Remove netware
5949         reference.
5950         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5951         <netware.h> reference.
5952
5953         * config/i386/netware-libgcc.c,
5954         gcc/config/i386/netware-libgcc.def,
5955         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5956         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5957         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5958         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5959
5960         * doc/extend.texi (Function Attributes,
5961         callee_pop_aggregate_return): Remove i?86-netware reference.
5962         * doc/install.texi (Configuration, --enable-threads): Remove nks.
5963
5964 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5965
5966         PR target/49746
5967         Revert:
5968         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5969
5970         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
5971         patterns.
5972
5973 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
5974
5975         PR middle-end/49732
5976         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
5977
5978 2011-07-16  Matthias Klose  <doko@ubuntu.com>
5979
5980         * doc/install.texi: Document --enable-static-libjava.
5981
5982 2011-07-15  Richard Henderson  <rth@redhat.com>
5983
5984         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5985         Replace all three arguments by returning a VEC of edges.
5986         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
5987         pointers and counts.
5988         (fix_edges_for_rarely_executed_code): Merge ...
5989         (rest_of_handle_partition_blocks): ... into...
5990         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
5991         any work was performed.
5992         (pass_partition_blocks): Clear todo_flags_finish.
5993
5994 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
5995             Jakub Jelinek  <jakub@redhat.com>
5996             Jonathan Wakely  <jwakely.gcc@gmail.com>
5997
5998         PR libstdc++/49745
5999         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6000         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6001
6002 2011-07-15  Jason Merrill  <jason@redhat.com>
6003
6004         PR testsuite/49741
6005         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6006         rather than --tool_opts.
6007
6008 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6009
6010         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6011         corresponding gtype.state.
6012
6013 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6014
6015         PR target/49723
6016         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6017
6018 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6019
6020         PR target/48220
6021         * doc/md.texi (Standard Names): Document window_save.
6022         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6023         expand_debug_expr and expand_debug_source_expr.  If the target has
6024         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6025         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6026         SSA_NAME_VAR is a parameter.
6027         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6028         * var-tracking.c (parm_reg_t): New type and associated vector type.
6029         (windowed_parm_regs): New variable.
6030         (adjust_insn): If the target has a window_save instruction and this
6031         is the instruction, make its effect on parameter registers explicit.
6032         (next_non_note_insn_var_location): New function.
6033         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6034         (vt_add_function_parameter): If the target has a window_save insn,
6035         adjust the incoming RTL and record that in windowed_parm_regs.
6036         (vt_finalize): Free windowed_parm_regs.
6037
6038 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6039
6040         * doc/invoke.texi (C6X Options): New section.
6041         * doc/md.texi (TI C6X family): New section.
6042         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6043         tic6x-*-uclinux.
6044         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6045         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6046         Provide C6X definitions.
6047         * config/c6x/c6x.md: New file.
6048         * config/c6x/constraints.md: New file.
6049         * config/c6x/predicates.md: New file.
6050         * config/c6x/c6x-sched.md.in: New file.
6051         * config/c6x/c6x-sched.md: New file.
6052         * config/c6x/gensched.sh: New file.
6053         * config/c6x/c6x-mult.md.in: New file.
6054         * config/c6x/genmult.sh: New file.
6055         * config/c6x/c6x-mult.md: New file.
6056         * config/c6x/sync.md: New file.
6057         * config/c6x/c6x-protos.h: New file.
6058         * config/c6x/sfp-machine.h: New file.
6059         * config/c6x/c6x.c: New file.
6060         * config/c6x/c6x.h: New file.
6061         * config/c6x/crti.s: New file.
6062         * config/c6x/crtn.s: New file.
6063         * config/c6x/lib1funcs.asm: New file.
6064         * config/c6x/c6x-modes.def: New file.
6065         * config/c6x/genopt.sh: New file.
6066         * config/c6x/c6x.opt: New file.
6067         * config/c6x/c6x-tables.opt: New file.
6068         * config/c6x/c6x-opts.h: New file.
6069         * config/c6x/c6x-isas.def: New file.
6070         * config/c6x/elf.h: New file.
6071         * config/c6x/elf-common.h: New file.
6072         * config/c6x/uclinux-elf.h: New file.
6073         * config/c6x/t-c6x: New file.
6074         * config/c6x/t-c6x-elf: New file.
6075         * config/c6x/t-c6x-uclinux: New file.
6076         * config/c6x/t-c6x-softfp: New file.
6077         * config/c6x/gtd.c: New file.
6078         * config/c6x/gtf.c: New file.
6079         * config/c6x/ltd.c: New file.
6080         * config/c6x/ltf.c: New file.
6081         * config/c6x/ged.c: New file.
6082         * config/c6x/gef.c: New file.
6083         * config/c6x/led.c: New file.
6084         * config/c6x/lef.c: New file.
6085         * config/c6x/eqd.c: New file.
6086         * config/c6x/eqf.c: New file.
6087         * config/c6x/libgcc-c6xeabi.ver: New file.
6088
6089         Revert
6090         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6091         PR rtl-optimization/11320
6092         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6093         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6094         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6095         current_sched_info->compute_jump_reg_dependencies. Record which
6096         registers are used and which registers are set by the jump.
6097         Clear deps->reg_conditional_sets after a barrier.
6098         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6099         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6100         (init_deps): Initialize reg_conditional_sets.
6101         (free_deps): Clear reg_conditional_sets.
6102         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6103         Mark registers live on entry of the fallthrough block and conditionally
6104         set as set by the jump. Mark registers live on entry of non-fallthrough
6105         blocks as used by the jump.
6106         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6107         Mark new parameters as unused.
6108
6109 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6110
6111         PR tree-opt/49309
6112         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6113         Use fold_build2_loc instead of build2.
6114         Use the correct type for the new tree.
6115
6116 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6117
6118         PR rtl-optimization/11320
6119         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6120         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6121
6122 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6123
6124         PR target/49487
6125         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6126         of REG.
6127         (*rotw<mode>): Use const_int_operand for operand2.
6128         Use match_scatch for operand3.
6129         (*rotb<mode>): Ditto
6130         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6131
6132 2011-07-14  Richard Guenther  <rguenther@suse.de>
6133
6134         PR tree-optimization/49651
6135         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6136         handle dereferences with subvariables.
6137
6138 2011-07-14  Richard Guenther  <rguenther@suse.de>
6139
6140         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6141         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6142
6143 2011-07-14  Richard Guenther  <rguenther@suse.de>
6144
6145         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6146         not bool_var when folding bool_var != 1 or bool_var == 0.
6147
6148 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6149
6150         * haifa-sched.c (schedule_insns): Remove outdated comment.
6151         (schedule_block): When computing a known value for TODO_SPEC,
6152         just set it rather than using logical operations.
6153         (try_ready): Likewise.  Use a local variable rather than a
6154         pointer to TODO_SPEC.  Reorder an if statement to move the
6155         easy case to the then block.
6156         * sched-deps.c (dep_spec_p): New static function.
6157         (update_dep): Use it to decide whether to call
6158         change_spec_dep_to_hard.
6159         (get_back_and_forw_lists): Use it.
6160         (sd_resolve_dep): Likewise.
6161         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6162         (haifa_note_mem_dep): Likewise.
6163         (check_dep): Likewise.
6164         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6165         (sched_free_deps): Free in two passes.
6166
6167 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6168
6169         PR middle-end/49736
6170         * expr.c (all_zeros_p): Undo bogus part of last change.
6171
6172 2011-07-14  Matthias Klose <doko@ubuntu.com>
6173
6174         * doc/extend.texi (optimize attribute): Fix typo.
6175
6176 2011-07-14  Richard Guenther  <rguenther@suse.de>
6177
6178         * gimplify.c (gimplify_expr): Only do required conversions.
6179
6180 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6181
6182         PR target/43746
6183         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6184         i.e. use default_elf_select_section.
6185         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6186         (READONLY_DATA_SECTION_ASM_OP): Remove.
6187         (TARGET_ASM_NAMED_SECTION): Move from here...
6188         * config/avr/avr.c: ...to here.
6189         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6190         (avr_asm_named_section): Make static.
6191
6192 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6193
6194         PR bootstrap/49739
6195         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6196         and crtfastmath.o for Linux/x86.
6197
6198 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6199
6200         * haifa-sched.c: Include "hashtab.h"
6201         (sched_no_dce): New global variable.
6202         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6203         SHADOW_P): New macros.
6204         (last_clock_var, cycle_issued_insns): Move declarations.
6205         (must_backtrack): New static variable.
6206         (struct delay_pair): New structure.
6207         (delay_htab, delay_htab_i2): New static variables.
6208         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6209         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6210         functions.
6211         (dep_cost_1): If delay pairs exist, try to look up the insns and
6212         use the correct pair delay if we find them.
6213         (rank-for_schedule): Tweak priority for insns that must be scheduled
6214         soon to avoid backtracking.
6215         (queue_insn): Detect conditions which force backtracking.
6216         (ready_add): Likewise.
6217         (struct sched_block_state): Add member shadows_only_p.
6218         (struct haifa_save_data): New structure.
6219         (backtrack_queue): New static variable.
6220         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6221         unschedule_insns_until, restore_last_backtrack_point,
6222         free_topmost_backtrack_point, free_backtrack_queue,
6223         estimate_insn_tick, estimate_shadow_tick): New functions.
6224         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6225         If true, remove everything that isn't SHADOW_P.  Look up delay
6226         pairs and estimate ticks to avoid scheduling the first insn too early.
6227         (verify_shadows): New function.
6228         (schedule_block): Add machinery to enable backtracking.
6229         (sched_init): Take sched_no_dce into account when setting
6230         DF_LR_RUN_DCE.
6231         (free_delay_pairs): New function.
6232         (init_h_i_d): Initialize INSN_EXACT_TICK.
6233         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6234         * sched-deps.c (sd_unresolve_dep): New function.
6235         * sched-int. (struct haifa_sched_info): New fields save_state
6236         and restore_state.
6237         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6238         feeds_backtrack_insn and shadow_p.
6239         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6240         (sched_no_dce): Declare variable.
6241         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6242         sd_unresolve_dep): Declare functions.
6243         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6244         * sched-rgn.c (rgn_const_sched_info): Likewise.
6245         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6246         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6247         (ebb_sched_info): Add them for the two new fields.
6248         (add_deps_for_risky_insns): Call add_delay_dependencies.
6249
6250 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6251
6252         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6253         Rename -mr11.
6254         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6255         (rs6000_call_indirect_aix): Ditto.
6256         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6257         (call_indirect_aix<ptrsize>_internal): Ditto.
6258         (call_indirect_aix<ptrsize>_nor11): Ditto.
6259         (call_indirect_aix<ptrsize>_internal2): Ditto.
6260         (call_value_indirect_aix<ptrsize>): Ditto.
6261         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6262         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6263         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6264         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6265
6266 2011-07-13  Jason Merrill  <jason@redhat.com>
6267
6268         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6269
6270 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6271
6272         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6273         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6274
6275 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6276
6277         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6278         * configure: Regenerate.
6279
6280 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6281
6282         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6283         (asm_file_start): Remove.
6284         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6285         free_bb_for_insn around code that modifies insns before
6286         restarting df analysis.
6287
6288 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6289
6290         PR target/49541
6291         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6292         (LINK_SPEC): ... here.
6293
6294 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6295
6296         * haifa-sched.c (struct sched_block_state): New.
6297         (schedule_block): Move some local variables into such a structure.
6298
6299 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6300
6301         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6302         * config/i386/t-crtpc: Remove.
6303         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6304         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6305         tmake_file.
6306         (x86_64-*-darwin*): Likewise.
6307         (i[34567]86-*-linux*): Likewise.
6308         (x86_64-*-linux*): Likewise.
6309
6310         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6311         Handle -mpc32, -mpc64, -mpc80.
6312
6313 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6314
6315         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6316         * config/alpha/t-crtfm: Remove.
6317         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6318         * config/i386/t-crtfm: Remove.
6319         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6320         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6321         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6322         * config/sparc/t-crtfm: Remove.
6323
6324         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6325         (alpha*-*-freebsd*): Likewise.
6326         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6327         (x86_64-*-darwin*): Likewise.
6328         (i[34567]86-*-linux*): Likewise.
6329         (x86_64-*-linux*): Likewise.
6330         (x86_64-*-mingw*): Likewise.
6331         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6332         (ia64*-*-freebsd*): Likewise.
6333         (ia64*-*-linux*): Likewise.
6334         (mips64*-*-linux*): Likewise.
6335         (mips*-*-linux*): Likewise.
6336         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6337         (sparc64-*-linux*): Likewise.
6338         (sparc64-*-freebsd*): Likewise.
6339
6340 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6341
6342         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6343         * config/darwin-crt3.c: Move to ../libgcc/config.
6344         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6345         ($(T)crt3$(objext)): Remove.
6346         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6347         ($(T)crt2$(objext)): Remove.
6348         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6349         (powerpc64-*-darwin*): Likewise.
6350
6351 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6352
6353         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6354
6355         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6356         (addsi_1_zext): This.
6357
6358 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6359
6360         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6361         * doc/tm.texi: Regenerate.
6362         * target.def (mergeable_rodata_prefix): New defhookpod.
6363         * varasm.c (mergeable_string_section, mergeable_constant_section):
6364         Use it. Allocate name with alloca.
6365
6366 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6367
6368         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6369
6370 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6371
6372         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6373         overlap check.
6374
6375 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6376
6377         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
6378         (count_type_elements): Delete.
6379         (complete_ctor_at_level_p): Declare.
6380         * expr.c (flexible_array_member_p): New function, split out from...
6381         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
6382         parameter with for_ctor_p.  When for_ctor_p is true, return the
6383         number of elements that should appear in the top-level constructor,
6384         otherwise return an estimate of the number of scalars.
6385         (categorize_ctor_elements): Replace p_must_clear with p_complete.
6386         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
6387         (complete_ctor_at_level_p): New function, borrowing union logic
6388         from old categorize_ctor_elements_1.
6389         (mostly_zeros_p): Return true if the constructor is not complete.
6390         (all_zeros_p): Update call to categorize_ctor_elements.
6391         * gimplify.c (gimplify_init_constructor): Update call to
6392         categorize_ctor_elements.  Don't call count_type_elements.
6393         Unconditionally prevent clearing for variable-sized types,
6394         otherwise rely on categorize_ctor_elements to detect
6395         incomplete initializers.
6396
6397 2011-07-13  Richard Guenther  <rguenther@suse.de>
6398
6399         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6400         the final type is integral.
6401
6402 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6403
6404         * sched-int.h (struct _dep): Add member cost.
6405         (DEP_COST, UNKNOWN_DEP_COST): New macros.
6406         * sched-deps.c (init_dep_1): Initialize DEP_COST.
6407         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6408         (sched_change_pattern): Reset it for dependent insns.
6409
6410 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6411
6412         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6413         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6414         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6415         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6416         (CRT0_S, MCRT0_S): Remove.
6417         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6418         Remove.
6419         (s-crt0): Remove.
6420         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6421
6422 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
6423
6424         * cse.c (insert_with_costs): Put semi-colon after empty loop body
6425         on the next line.
6426         * emit-rtl.c (push_to_sequence): Likewise.
6427         * haifa-sched.c (max_issue): Likewise.
6428         * matrix-reorg.c (add_allocation_site): Likewise.
6429         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6430         * reload.c (alternative_allows_const_pool_ref): Likewise.
6431         * sched-rgn.c (rgn_add_block): Likewise.
6432         (rgn_fix_recovery_cfg): Likewise.
6433         * tree.c (attribute_list_contained): Likewise.
6434
6435 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
6436
6437         * config/i386/i386.c: Tidy processor feature bitmasks.
6438         (m_P4_NOCONA): New.
6439
6440 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
6441
6442         PR rtl-opt/49474
6443         * cprop.c (find_implicit_sets): Correct the condition.
6444
6445 2011-07-12  Richard Henderson  <rth@redhat.com>
6446
6447         PR target/49713
6448         * dwarf2out.h (dwarf_frame_regnum): Remove.
6449         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
6450         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
6451         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6452         (execute_dwarf2_frame): Initialize them.
6453         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6454         users of the macros with the variables.
6455         (expand_builtin_dwarf_sp_column): Revert last change.
6456         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
6457         result of DWARF_FRAME_REGNUM into a local variable.
6458
6459 2011-07-12  Richard Henderson  <rth@redhat.com>
6460
6461         PR target/49714
6462         * config/i386/i386.c (x86_output_mi_thunk): Use
6463         machopic_indirect_call_target instead of machopic_indirection_name
6464         directly.
6465
6466 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
6467             Eric Botcazou  <ebotcazou@adacore.com>
6468
6469         * prefix.h: Wrap up in extern "C" block.
6470
6471 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6472
6473         AMD bdver2 Enablement
6474         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6475         (case ${target}): Add bdver2.
6476         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6477         -march=native recognize bdver2 processors.
6478         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6479         bdver2 def_and_undef
6480         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6481         bdver2 cost table.
6482         (m_BDVER2): New definition.
6483         (m_AMD_MULTIPLE): Includes m_BDVER2.
6484         (initial_ix86_tune_features): Add bdver2 tuning.
6485         (processor_target_table): Add bdver2 entry.
6486         (static const char *const cpu_names): Add bdver2 entry.
6487         (ix86_option_override_internal): Add bdver2 instruction sets.
6488         (ix86_issue_rate): Add bdver2.
6489         (ix86_adjust_cost): Add bdver2.
6490         (has_dispatch): Add bdver2.
6491         * config/i386/i386.h (TARGET_BDVER2): New definition.
6492         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6493         (enum processor_type): Add PROCESSOR_BDVER2.
6494         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6495         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6496         description.
6497
6498 2011-07-12  Richard Henderson  <rth@redhat.com>
6499
6500         PR target/49714
6501         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6502         destination address in memory on some paths.
6503
6504 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6505
6506         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6507         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6508         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6509         * function.c (locate_and_pad_parm): Take it into account.
6510         * target.def (function_arg_round_boundary): New hook.
6511         * targhooks.c (default_function_arg_round_boundary): New function.
6512         * targhooks.h (default_function_arg_round_boundary): Declare.
6513         * doc/tm.texi: Regenerate.
6514
6515 2011-07-12  Richard Guenther  <rguenther@suse.de>
6516
6517         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6518         Do not perform no-op changes.
6519
6520 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6521
6522         * config/arm/predicates.md (neon_struct_operand): Make a normal
6523         predicate.
6524         (neon_struct_or_register_operand): New predicate.
6525         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6526         with neon_struct_or_register_operand.
6527         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6528         neon_struct_operand instead of memory_operand.
6529
6530 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6531
6532         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6533         * cgraph.c (cgraph_get_node_or_alias): Removed.
6534         (change_decl_assembler_name): Changed all calls to
6535         cgraph_get_node_or_alias to a call to cgraph_get_node.
6536         (cgraph_make_decl_local): Likewise.
6537         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6538         * varasm.c (default_binds_local_p_1): Likewise.
6539         (decl_binds_to_current_def_p): Likewise.
6540
6541 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6542
6543         PR tree-optimization/49712
6544         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6545
6546 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6547
6548         * genautomata.c (add_arc): Return void.  All callers changed.
6549         (make_automaton): Remove dead code.
6550
6551 2011-07-11  Richard Henderson  <rth@redhat.com>
6552
6553         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6554         (DW_FRAME_POINTER_REGNUM): New.
6555         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6556         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6557         (dwf_regno): New.
6558         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6559         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6560         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6561         Use it.
6562         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6563         * dwarf2out.h (dwarf_frame_regnum): New.
6564         (struct cfa_loc): Document the domain of the reg member.
6565
6566 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6567
6568         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6569         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6570
6571 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6572
6573         PR debug/49676
6574         * dwarf2out.c (int_shift_loc_descriptor): New function.
6575         (int_loc_descriptor): If shorter, emit i as
6576         (i >> shift), shift, DW_OP_shl for suitable shift value.
6577         Similarly, try to optimize large negative values using
6578         DW_OP_neg of a positive value if shorter.
6579         (size_of_int_shift_loc_descriptor): New function.
6580         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6581         changes.
6582         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6583         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6584         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6585         is shorter.
6586         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6587         addend as added DW_OP_plus if it is shorter.
6588
6589 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6590
6591         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6592         (DTORS_SECTION_ASM_OP): Define.
6593
6594 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6595
6596         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6597         * config/t-dfprules: Move to ../libgcc/config.
6598         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6599         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6600         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6601         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6602         Likewise.
6603         (i[34567]86-*-cygwin*): Likewise.
6604         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6605         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6606         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6607         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6608         D64PBIT_FUNCS, D128PBIT_FUNCS.
6609
6610 2011-07-11  Richard Guenther  <rguenther@suse.de>
6611
6612         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6613         translate the source value-range through the conversion chain.
6614
6615 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6616
6617         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6618
6619 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6620
6621         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6622         a bi-arch compiler defaulting to 31-bit. In this case:
6623         (tmake_file): Add s390/t-linux64.
6624         * doc/install.texi: Add s390-linux to the list of targets supporting
6625         --enable-targets=all.
6626
6627 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6628             Matthias Klose <doko@debian.org>
6629
6630         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6631         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6632         (tm_file): Add mips/linux64.h.
6633         (tmake_file): Add mips/t-linux64.
6634         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6635         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6636         instead of hardcoded mabi=n32.
6637         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6638         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6639         convention.
6640
6641 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6642
6643         * passes.c (init_optimization_passes): Add invariant motion pass
6644         after induction variable optimization.
6645
6646 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6647
6648         PR target/39633
6649         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6650         offsets 1..5 set cc0 in a usable way.
6651
6652 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6653
6654         * tree.h (call_expr_arg): Remove.
6655         (call_expr_argp): Likewise.
6656
6657 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6658
6659         * config/sparc/sparc.md (save_register_window_1): Rename to...
6660         (window_save): ...this.
6661         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6662         (emit_window_save): ...this.
6663         (sparc_expand_prologue): Adjust to above renaming.
6664
6665 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6666
6667         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6668         of movabs for x32.
6669
6670 2011-07-10  Richard Henderson  <rth@redhat.com>
6671
6672         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6673         run final, instead of emitting text directly.
6674
6675 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6676
6677         * config/i386/i386.c (ix86_option_override_internal): Turn on
6678         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
6679         small PIC models for TARGET_X32.
6680
6681 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
6682
6683         PR target/49684
6684         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6685         $(LIBGCC2_CFLAGS).
6686
6687         PR bootstrap/49680
6688         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6689         stray notes and debug insns by using prev_nonnote_nondebug_insn
6690         instead of PREV_INSN.
6691
6692 2011-07-09  Richard Henderson  <rth@redhat.com>
6693
6694         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6695         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6696         * dwarf2out.c: ... here.
6697         (output_all_cfis): Remove.
6698         (dwarf2out_switch_text_section): Use output_cfis directly.
6699         (size_of_locs): Export.
6700         (output_loc_sequence, output_loc_sequence_raw): Export.
6701         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6702         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6703         output_cfa_loc_raw): Move to ...
6704         * dwarfcfi.c: ... here.
6705         * dwarf2out.h: Update decls.
6706
6707 2011-07-09  Richard Henderson  <rth@redhat.com>
6708
6709         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6710         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6711         * dwarf2cfi.c: ... here.
6712         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6713         (DWARF_ROUND, DWARF_CIE_ID): Remove.
6714         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6715         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6716         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6717
6718 2011-07-09  Richard Henderson  <rth@redhat.com>
6719
6720         * dwarf2cfi.c (cie_return_save): New.
6721         (queue_reg_save): Use compare_reg_or_pc.
6722         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6723         (dwarf2out_frame_debug_expr): Likewise.
6724         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6725         (initial_return_save): Likewise.
6726         (execute_dwarf2_frame): Save and restore initial return save from
6727         the cie to the fde.
6728         * config/mips/mips.c (mips_frame_set): Remove special case for
6729         DWARF_FRAME_RETURN_COLUMN.
6730
6731 2011-07-09  Richard Henderson  <rth@redhat.com>
6732
6733         * dwarf2cfi.c (lookup_cfa): Remove.
6734         (execute_dwarf2_frame): Assert queues are empty on entry.
6735         Setup initial cfa directly, not via lookup_cfa.
6736         Don't clear args_size state here.
6737
6738 2011-07-09  Richard Henderson  <rth@redhat.com>
6739
6740         * dwarf2cfi.c (add_cfi_vec): New.
6741         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
6742         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
6743         (execute_dwarf2_frame): Set add_cfi_vec.
6744
6745 2011-07-09  Richard Henderson  <rth@redhat.com>
6746
6747         * defaults.h (ASM_COMMENT_START): Move here...
6748         * dwarf2asm.c: ... from here.
6749         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6750         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6751         * varasm.c: Likewise.
6752
6753 2011-07-09  Richard Henderson  <rth@redhat.com>
6754
6755         PR debug/49686
6756         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6757         (create_cfi_notes): ... do it here instead.
6758
6759 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
6760
6761         PR debug/49676
6762         * dwarf2out.c (size_of_int_loc_descriptor): New function.
6763         (address_of_int_loc_descriptor): Use it.
6764         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6765
6766 2011-07-09  Richard Henderson  <rth@redhat.com>
6767
6768         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6769         (prologue, epilogue): New.
6770         (return, *rts): New.
6771         (blockage, setd, seti): New.
6772         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6773         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6774         (pdp11_saved_regno): New.
6775         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6776         generate rtl instead of text.
6777         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6778         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
6779         * config/pdp11/pdp11-protos.h: Update.
6780
6781 2011-07-09  Richard Henderson  <rth@redhat.com>
6782
6783         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6784         try to insert an rtl prologue here.
6785         (rs6000_output_function_epilogue): Similarly.
6786         * config/rs6000/rs6000.md (prologue): Emit a barrier to
6787         satisfy !TARGET_SCHED_PROLOG.
6788         (epilogue, sibcall_epilogue): Likewise.
6789
6790 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
6791
6792         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6793         (FP_REG_P): Delete.
6794         (IN_OR_GLOBAL_P): Likewise.
6795
6796 2011-07-08  Jason Merrill  <jason@redhat.com>
6797
6798         PR c++/45437
6799         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6800         compound assignment.
6801
6802         * cgraph.c (cgraph_add_to_same_comdat_group): New.
6803         * cgraph.h: Declare it.
6804         * ipa.c (function_and_variable_visibility): Make sure thunks
6805         have the right visibility.
6806
6807 2011-07-08  Richard Henderson  <rth@redhat.com>
6808
6809         PR bootstrap/49680
6810         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6811         any tablejump vector.
6812
6813         PR bootstrap/49680
6814         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6815         end of the prologue.
6816
6817 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
6818
6819         PR target/49621
6820         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6821         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6822         * config/rs6000/vector.md (vector_select_<mode>,
6823         vector_select_<mode>_uns): Change second operand of NE to
6824         CONST0_RTX (<MODE>mode) instead of const0_rtx.
6825         * config/rs6000/altivec.md (*altivec_vsel<mode>,
6826         *altivec_vsel<mode>_uns): Expect second operand of NE to be
6827         zero_constant of the corresponding vector mode.
6828         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6829         Likewise.
6830
6831 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6832
6833         * graphite-dependences.c (build_alias_set_powerset): Remove
6834         continue from loop, add one more assert.
6835
6836 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6837
6838         PR target/46779
6839         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6840         In particular, allow 8-bit values in r28 and r29.
6841         (avr_hard_regno_scratch_ok): Disallow any register that might be
6842         part of the frame pointer.
6843         (avr_hard_regno_rename_ok): Same.
6844         (avr_legitimate_address_p): Don't allow SUBREGs.
6845
6846 2011-07-08  Julian Brown  <julian@codesourcery.com>
6847
6848         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6849         big-endian mode.
6850         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6851         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6852         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6853         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6854         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6855         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6856         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6857         registers in big-endian mode.
6858
6859 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6860
6861         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6862         in terms of another.
6863         (write_attr_value): Write a cast if necessary.
6864
6865         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6866         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6867         (REG_WORDS_BIG_ENDIAN): Document.
6868         * doc/tm.texi: Regenerate.
6869         * reload.c (operands_match_p): Take it into account.
6870         (reload_adjust_reg_for_mode): Likewise.
6871         * rtlanal.c (subreg_get_info): Likewise.
6872
6873 2011-07-08  Richard Guenther  <rguenther@suse.de>
6874
6875         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6876         folding.
6877
6878 2011-07-08  Kai Tietz  <ktietz@redhat.com>
6879
6880         * fold-const.c (fold_truth_andor): Factored out truth_andor
6881         label from fold_binary as function.
6882         (fold_binary_loc): Replace truth_andor lable
6883         by function fold_truth_andor.
6884
6885 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
6886
6887         PR middle-end/49519
6888         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6889         check if address is stored in register. If so - give up.
6890         (check_sibcall_argument_overlap_1): Do not perform check of
6891         overlapping when it is call to address.
6892
6893 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6894
6895         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6896         of magic '31'.
6897
6898 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6899
6900         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6901         GET_MODE_BITSIZE where appropriate.
6902         (widen_leading, expand_parity, expand_ctz, expand_ffs,
6903         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6904         expand_float, expand_fix): Likewise.
6905         * expr.c (convert_move, convert_modes, expand_expr_real_2,
6906         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6907         * stor-layout.c (get_mode_bounds): Likewise.
6908         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6909         Likewise.
6910         * convert.c (convert_to_integer): Likewise.
6911         * expmed.c (expand_shift_1): Likewise.
6912
6913         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6914         a bitsize.
6915
6916         * optabs.c (expand_binop): Tighten conditions for doubleword
6917         expansions.
6918         (widen_bswap): Assert that mode bitsize and precision are the same.
6919         * stor-layout.c (get_best_mode): Skip modes that have lower
6920         precision than bitsize.
6921         * recog.c (simplify_while_replacing): Assert that bitsize and
6922         precision are the same.
6923
6924 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6925
6926         * Makefile.in (LIBGCOV): Remove.
6927         (libgcc.mvars): Remove LIBGCOV.
6928         * libgov.c: Move to ../libgcc.
6929
6930 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6931
6932         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6933
6934 2011-07-08  Martin Jambor  <mjambor@suse.cz>
6935
6936         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6937         is too big for total scalarization.
6938
6939 2011-07-07  Richard Henderson  <rth@redhat.com>
6940
6941         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6942         (DBX_DEBUGGING_INFO): Undef.
6943
6944 2011-07-07  Richard Henderson  <rth@redhat.com>
6945
6946         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
6947         Handle some opcodes specially for debugging.
6948         * print-rtl.c: Include dwarf2out.h
6949         (print_rtx): Handle NOTE_INSN_CFI.
6950         * Makefile.in (print-rtl.o): Update.
6951
6952 2011-07-07  Richard Henderson  <rth@redhat.com>
6953
6954         * tree-pass.h (pass_dwarf2_frame): Declare.
6955         * passes.c (init_optimization_passes): Add it.
6956         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6957         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6958         make static, do not call add_cfis_to_fde.
6959         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6960         dwarf2out_frame_init): Merge into...
6961         (execute_dwarf2_frame): ... here.  New function.
6962         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
6963         saved_do_cfi_asm to a tri-state variable.
6964         (gate_dwarf2_frame, pass_dwarf2_frame): New.
6965         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
6966         if it has yet to be done.  Don't call dwarf2cfi_function_init.
6967         * dwarf2out.h, debug.h: Update decls.
6968         * final.c (final_start_function): Don't call
6969         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
6970         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
6971         * toplev.c (lang_dependent_init): Likewise.
6972
6973 2011-07-07  Richard Henderson  <rth@redhat.com>
6974
6975         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
6976         FDE_TABLE_INCREMENT): Replace with...
6977         (fde_vec): ... this, a new vector.
6978         (current_fde): Remove.  Replace all users with cfun->fde.
6979         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
6980         (size_of_aranges, dwarf2out_finish): Likewise.
6981         (dwarf2out_alloc_current_fde): Break out from ...
6982         (dwarf2out_begin_prologue): ... here.
6983         (dwarf2out_frame_init): Remove.
6984         * dwarf2cfi.c: Update all users of current_fde.
6985         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
6986         * dwarf2out.h: Update decls.
6987         (dw_fde_node): Add fde_index member.
6988         * function.h (struct function): Add fde member.
6989
6990 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6991             Richard Henderson  <rth@redhat.com>
6992
6993         * dwarf2cfi.c (add_cfi): Remove.
6994         (dwarf2out_cfi_label): Remove force argument.  Only generate the
6995         label name.
6996         (add_fde_cfi): Simplify the different code paths.
6997         (add_cie_cfi): New.
6998         (old_cfa, old_cfa_remember): New.
6999         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7000         (last_reg_save_label): Remove.
7001         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7002         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7003         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7004         dwarf2out_frame_debug_cfa_expression,
7005         dwarf2out_frame_debug_cfa_restore,
7006         dwarf2out_frame_debug_cfa_window_save,
7007         dwarf2out_frame_debug_expr): Remove label parameter.
7008         (cfi_label_required_p, add_cfis_to_fde): New.
7009         (dwarf2out_frame_debug_after_prologue): New.
7010         (dwarf2cfi_frame_init): Initialize old_cfa.
7011         (dwarf2out_frame_debug_restore_state): Likewise.
7012         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7013         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7014         * final.c (final_start_function): Call
7015         dwarf2out_frame_debug_after_prologue.
7016
7017 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7018             Richard Henderson  <rth@redhat.com>
7019
7020         * dwarf2cfi.c (cfi_insn): New.
7021         (dwarf2out_cfi_label): Don't emit cfi label here.
7022         (add_fde_cfi): Create a NOTE_INSN_CFI.
7023         (dwarf2out_frame_debug): Setup cfi_insn.
7024         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7025         (dwarf2out_cfi_begin_epilogue): Make static.
7026         (dwarf2out_frame_debug_restore_state): Make static.
7027         * dwarf2out.c (output_cfi_directive): Make static.
7028         (dwarf2out_emit_cfi): New.
7029         * dwarf2out.h: Update.
7030         * final.c (final): Remove CFI notes.
7031         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7032         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7033         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7034         * insn-notes.def (NOTE_INSN_CFI): New.
7035         (NOTE_INSN_CFI_LABEL): New.
7036         * rtl.h (union rtunion_def): Add rt_cfi member.
7037         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7038
7039 2011-07-07  Richard Henderson  <rth@redhat.com>
7040
7041         * dwarf2cfi.c: New file.
7042         * Makefile.in (OBJS): Add it.
7043         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7044         * gengtype.c (open_base_files): Include dwarf2out.h.
7045         * coretypes.h (enum var_init_status): Move from ...
7046         * rtl.h: ... here.
7047         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7048         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7049         expand_builtin_dwarf_sp_column, init_return_column_size,
7050         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7051         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7052         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7053         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7054         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7055         compute_barrier_args_size, dwarf2out_args_size,
7056         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7057         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7058         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7059         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7060         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7061         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7062         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7063         dwarf2out_frame_debug_cfa_expression,
7064         dwarf2out_frame_debug_cfa_restore,
7065         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7066         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7067         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7068         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7069         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7070         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7071         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7072         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7073         dw_loc_descr_node): Move to dwarf2out.h.
7074         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7075         mem_loc_descriptor): Export.
7076         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7077         (dwarf2out_frame_init): Extract CIE generation code to
7078         dwarf2cfi_frame_init.
7079
7080 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7081
7082         PR target/49660
7083         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7084         MASK_V8PLUS, remove commented out flag and reorder.
7085
7086 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7087
7088         PR c/49644
7089         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7090         one non-complex and one complex argument, call c_save_expr on both
7091         operands.
7092
7093 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7094
7095         PR middle-end/49495
7096         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7097         (verify_cgraph_node): Some functinality moved to
7098         verify_edge_corresponds_to_fndecl, call it.
7099
7100 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7101
7102         * config.gcc (*local*): Remove.
7103         * doc/install-old.texi: Don't mention local configurations.
7104
7105 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7106
7107         PR debug/49522
7108         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7109         referencing debug insns that have been reset.
7110         (dead_debug_insert_before): Don't assert reg is non-NULL,
7111         instead return immediately if it is NULL.
7112
7113 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7114
7115         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7116
7117 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7118
7119         * hw-doloop.c: New file.
7120         * hw-doloop.h: New file.
7121         * Makefile.in (OBJS): Add hw-doloop.o.
7122         (hw-doloop.o): New rule.
7123         ($(obj_out_file)): Add hw-doloop.h dependency.
7124         * config/bfin/bfin.c: Include "hw-doloop.h".
7125         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7126         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7127         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7128         type changed to hwloop_info.  Return bool, true if the loop was
7129         successfully optimized.  Remove code that was moved to
7130         hw-doloop.c, and adjust other parts.
7131         (hwloop_fail): New static function, containing parts that used
7132         to be in bfin_optimize_loop.
7133         (bfin_discover_loop, bfin_discover_loops, free_loops,
7134         bfin_reorder_loops): Remove.
7135         (hwloop_pattern_reg): New static function.
7136         (bfin_doloop_hooks): New variable.
7137         (bfin_reorg_loops): Remove most code, call reorg_loops.
7138         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7139         loop counter is a memory_operand.
7140
7141 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7142
7143         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7144
7145         * configure.ac: Mention x86-64 for --with-multilib-list.
7146         * configure: Regenerated.
7147
7148         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7149         (SPEC_32): Likewise.
7150         (ASM_SPEC): Likewise.
7151         (LINK_SPEC): Likewise.
7152         (TARGET_THREAD_SSP_OFFSET): Likewise.
7153         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7154         (SPEC_X32): New.
7155
7156         * config/i386/i386.h (TARGET_X32): New.
7157         (TARGET_LP64): New.
7158         (LONG_TYPE_SIZE): Likewise.
7159         (POINTER_SIZE): Likewise.
7160         (POINTERS_EXTEND_UNSIGNED): Likewise.
7161         (OPT_ARCH64): Support x32.
7162         (OPT_ARCH32): Likewise.
7163
7164         * config/i386/i386.opt (mx32): New.
7165
7166         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7167         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7168         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7169         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7170
7171         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7172         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7173         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7174
7175         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7176
7177         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7178
7179         * doc/invoke.texi: Document -mx32.
7180
7181 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7182
7183         * doc/invoke.texi (mwords-little-endian): Deprecate.
7184         * config/arm/arm.opt (mwords-little-endian): Likewise.
7185         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7186         of -mwords-little-endian.
7187
7188 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7189
7190         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7191         an old reload register completely defines the required value.
7192
7193 2011-07-07  Richard Guenther  <rguenther@suse.de>
7194
7195         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7196         for NEGATE_EXPR.
7197
7198 2011-07-07  Richard Guenther  <rguenther@suse.de>
7199
7200         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7201         (simplify_stmt_using_ranges): Call it.
7202
7203 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7204
7205         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7206         (lookup_logical_inverted_value): Likewise.
7207         (simplify_bitwise_binary_1): Likewise.
7208         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7209
7210 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7211
7212         * gcc.c (%[Spec]): Don't document.
7213         (struct spec_list): Update comment.
7214         (do_spec_1): Don't handle %[Spec].
7215         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7216
7217 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7218
7219         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7220         default based on TARGET_ASM_NAMED_SECTION.
7221         * common/common-target.def (have_named_sections): Default to true.
7222         * common/config/default-common.c: Don't include tm.h.
7223         * common/config/picochip/picochip-common.c
7224         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7225         * common/config/m32c/m32c-common.c: Remove.
7226         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7227         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7228         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7229         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7230         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7231         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7232         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7233
7234 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7235
7236         PR middle-end/49640
7237         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7238         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7239
7240 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7241
7242         PR libmudflap/49550
7243         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7244
7245 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7246
7247         PR target/39150
7248         * configure.ac (gcc_cv_as_hidden): Also accept
7249         x86_64-*-solaris2.1[0-9]*.
7250         (gcc_cv_as_cfi_directive): Likewise.
7251         (gcc_cv_as_comdat_group_group): Likewise.
7252         (set_have_as_tls): Likewise.
7253         * configure: Regenerate.
7254         * config.gcc (i[34567]86-*-solaris2*): Also handle
7255         x86_64-*-solaris2.1[0-9]*.
7256         * config.host (i[34567]86-*-solaris2*): Likewise.
7257         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7258         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7259         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7260         (TARGET_LD_EMULATION): Use it.
7261         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7262         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7263         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7264         (ASM_CPU64_DEFAULT_SPEC): Define.
7265         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7266         (ASM_SPEC): Redefine.
7267         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7268         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7269         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7270         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7271         configuration.
7272         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7273
7274 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7275
7276         * config/sol2.h (ASM_SPEC): Split into ...
7277         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7278         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7279         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7280         (ASM_SPEC): Use ASM_SPEC_BASE.
7281         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7282
7283 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7284
7285         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7286         const_int_operand.  Ditto for peep2 producing this insn.
7287         Add argument to output_reload_insisf call.
7288         (*movsi,*movsf): Add argument to output_movsisf call.
7289         (*reload_insf): New insn and new peep2 to produce it.
7290         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7291         (output_reload_insisf): Change prototype.
7292         * config/avr/avr.c (avr_asm_len): New function.
7293         (output_reload_insisf): Rewrite.
7294         (output_movsisf): Change prototype.  output_reload_insisf for
7295         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7296         (adjust_insn_length): Add argument to output_movsisf and
7297         output_reload_insisf call.
7298
7299 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7300
7301         * emit-rtl.c (paradoxical_subreg_p): New function.
7302         * rtl.h (paradoxical_subreg_p): Declare.
7303         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7304         apply_distributive_law, simplify_comparison, simplify_set): Use it.
7305         * cse.c (record_jump_cond, cse_insn): Likewise.
7306         * expr.c (force_operand): Likewise.
7307         * rtlanal.c (num_sign_bit_copies1): Likewise.
7308         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7309         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7310         (push_reload): Use precision to check for paradoxical subregs.
7311         * expmed.c (extract_bit_field_1): Likewise.
7312
7313         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7314         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7315         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7316         simplify_set, simplify_logical, expand_compound_operation,
7317         make_extraction, force_to_mode, if_then_else_cond, extended_count,
7318         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7319         record_value_for_reg): Likewise.
7320         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7321         * simplify-rtx. c (simplify_unary_operation_1,
7322         simplify_binary_operation_1, simplify_const_relational_operation):
7323         Likewise.
7324
7325         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7326         instead of GET_MODE_BITSIZE where appropriate.
7327         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7328         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7329         init_num_sign_bit_copies_in_rep): Likewise.
7330         * cse.c (fold_rtx, cse_insn): Likewise.
7331         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7332         * simplify-rtx.c (simplify_unary_operation_1,
7333         simplify_const_unary_operation, simplify_binary_operation_1,
7334         simplify_const_binary_operation, simplify_ternary_operation,
7335         simplify_const_relational_operation, simplify_subreg): Likewise.
7336         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7337         simplify_if_then_else, simplify_set, expand_compound_operation,
7338         expand_field_assignment, make_extraction, if_then_else_cond,
7339         make_compound_operation, force_to_mode, make_field_assignment,
7340         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7341         extended_count, try_widen_shift_mode, simplify_shift_const_1,
7342         simplify_comparison, record_promoted_value, simplify_compare_const,
7343         record_dead_and_set_regs_1): Likewise.
7344
7345         Revert:
7346         * simplify-rtx.c (simplify_const_binary_operation): Use the
7347         shift_truncation_mask hook instead of performing modulo by width.
7348         Compare against mode precision, not bitsize.
7349         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7350         Use shift_truncation_mask instead of constructing the value manually.
7351
7352 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7353
7354         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7355         declaration.
7356         (rs6000_save_toc_in_prologue_p): Ditto.
7357
7358         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7359         up the static chain (r11) during indirect function calls.
7360         (-msave-toc-indirect): New undocumented debug switch.
7361
7362         * config/rs6000/rs6000.c (struct machine_function): Add
7363         save_toc_in_prologue field to note whether the prologue needs to
7364         save the TOC value in the reserved stack location.
7365         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
7366         to save the TOC in the prologue, do so.
7367         (rs6000_trampoline_init): Don't allow creating AIX style
7368         trampolines if -mno-r11 is in effect.
7369         (rs6000_call_indirect_aix): New function to create AIX style
7370         indirect calls, adding support for -mno-r11 to suppress loading
7371         the static chain, and saving the TOC in the prologue instead of
7372         the call body.
7373         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7374         TOC in the prologue.
7375
7376         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7377         register numbers.
7378         (TOC_REGNUM): Ditto.
7379         (STATIC_CHAIN_REGNUM): Ditto.
7380         (ARG_POINTER_REGNUM): Ditto.
7381         (SFP_REGNO): Delete, unused.
7382         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7383         function descriptor offsets.
7384         (TOC_SAVE_OFFSET_64BIT): Ditto.
7385         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7386         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7387         (AIX_FUNC_DESC_SC_32BIT): Ditto.
7388         (AIX_FUNC_DESC_SC_64BIT): Ditto.
7389         (ptrload): New mode attribute for the appropriate load of a pointer.
7390         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7391         (call_indirect_aix64): Ditto.
7392         (call_value_indirect_aix32): Ditto.
7393         (call_value_indirect_aix64): Ditto.
7394         (call_indirect_nonlocal_aix32_internal): Ditto.
7395         (call_indirect_nonlocal_aix32): Ditto.
7396         (call_indirect_nonlocal_aix64_internal): Ditto.
7397         (call_indirect_nonlocal_aix64): Ditto.
7398         (call): Rewrite AIX indirect function calls.  Add support for
7399         eliminating the static chain, and for moving the save of the TOC
7400         to the function prologue.
7401         (call_value): Ditto.
7402         (call_indirect_aix<ptrsize>): Ditto.
7403         (call_indirect_aix<ptrsize>_internal): Ditto.
7404         (call_indirect_aix<ptrsize>_internal2): Ditto.
7405         (call_indirect_aix<ptrsize>_nor11): Ditto.
7406         (call_value_indirect_aix<ptrsize>): Ditto.
7407         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7408         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7409         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7410         (call_nonlocal_aix32): Relocate in the rs6000.md file.
7411         (call_nonlocal_aix64): Ditto.
7412
7413         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7414         -mno-r11 documentation.
7415
7416 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7417
7418         PR other/49658
7419         * doc/extend.texi (Compound Literals): Fix typo.
7420
7421 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
7422
7423         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7424
7425 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
7426
7427         * configure.ac (plugin-version.h): Generate
7428         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7429         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7430         macros.
7431
7432         * configure: Regenerate.
7433
7434         * doc/plugins.texi (Building GCC plugins): Mention
7435         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7436
7437 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7438
7439         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7440         * combine.c (make_extraction, gen_lowpart_or_truncate,
7441         apply_distributive_law, simplify_comparison,
7442         reg_truncated_to_mode, record_truncated_value): Use it.
7443         * cse.c (notreg_cost): Likewise.
7444         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7445         * expr.c (convert_move, convert_modes): Likewise.
7446         * optabs.c (expand_binop, expand_unop): Likewise.
7447         * postreload.c (move2add_last_label): Likewise.
7448         * regmove.c (optimize_reg_copy_3): Likewise.
7449         * rtlhooks.c (gen_lowpart_general): Likewise.
7450         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7451
7452 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
7453
7454         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7455
7456 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7457
7458         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7459         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7460         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7461         (simplify_const_unary_operation, simplify_binary_operation_1,
7462         simplify_const_binary_operation, simplify_const_relational_operation):
7463         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
7464         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7465         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7466         simplify_shift_const_1, simplify_comparison): Likewise.
7467         * expr.c (convert_modes): Likewise.
7468         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7469         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7470         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7471
7472         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7473
7474 2011-07-06  Richard Guenther  <rguenther@suse.de>
7475
7476         PR tree-optimization/49645
7477         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7478         register variables.
7479         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7480         in type qualification here ...
7481         (copy_reference_ops_from_ref): ... not here.
7482         (vn_reference_lookup_3): ... or here.
7483         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7484         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7485
7486 2011-07-06  Ian Lance Taylor  <iant@google.com>
7487
7488         * doc/install.texi (Configuration): It's
7489         --enable-gnu-indirect-function, not --enable-indirect-function.
7490
7491 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7492
7493         * simplify-rtx.c (simplify_const_binary_operation): Use the
7494         shift_truncation_mask hook instead of performing modulo by width.
7495         Compare against mode precision, not bitsize.
7496         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7497         Use shift_truncation_mask instead of constructing the value manually.
7498
7499 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7500
7501         PR middle-end/47383
7502         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7503         address computation and convert to address_mode if needed.
7504
7505 2011-07-06  Richard Guenther  <rguenther@suse.de>
7506
7507         * tree.c (build_common_tree_nodes_2): Merge with
7508         build_common_tree_nodes.
7509         * tree.h (build_common_tree_nodes): Adjust prototype.
7510         (build_common_tree_nodes_2): Remove.
7511         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7512         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7513
7514 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7515
7516         PR tree-optimization/49618
7517         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7518         t recurse on the decl.
7519         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7520         return true if expr isn't known to be defined in current
7521         TU or some other LTO partition.
7522
7523 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7524
7525         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7526         override CASE_VALUES_THRESHOLD.
7527
7528         * stmt.c (toplevel): Include params.h.
7529         (case_values_threshold): Use the --param case-values-threshold
7530         value if non-zero, otherwise use machine dependent value.
7531         (expand_case): Use case_values_threshold.
7532
7533         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7534
7535         * doc/invoke.texi (--param case-values-threshold): Document.
7536
7537 2011-07-05  Richard Henderson  <rth@redhat.com>
7538
7539         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7540         (dwarf2out_flush_queued_reg_saves): Make static.
7541         (dwarf2out_reg_save): Remove.
7542         (dwarf2out_return_save): Remove.
7543         (dwarf2out_return_reg): Remove.
7544         (dwarf2out_reg_save_reg): Remove.
7545         (dwarf2out_def_cfa): Merge into ...
7546         (dwarf2out_frame_init): ... here.
7547         * dwarf2out.h, tree.h: Remove declarations as necessary.
7548
7549 2011-07-05  Richard Henderson  <rth@redhat.com>
7550
7551         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7552         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7553         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7554         the alloc insn.
7555
7556         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7557         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7558         (process_epilogue): Don't call dwarf2out_def_cfa.
7559
7560         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7561         indicate the return address save.
7562         (process_cfa_register): Likewise.
7563
7564         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7565         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7566
7567         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7568         for ar.pfs save at alloc insn.
7569
7570 2011-07-05  Richard Henderson  <rth@redhat.com>
7571
7572         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7573         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7574         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7575         stack pointer save.
7576         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7577         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7578         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7579         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7580
7581 2011-07-05  Richard Henderson  <rth@redhat.com>
7582
7583         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7584         VUNSPEC_* constants here instead of via define_constants.
7585         (VUNSPEC_PEM): New constant.
7586         (procedure_entry_mask): New insn.
7587         (prologue): New expander.
7588         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7589         (vax_expand_prologue): Rename from vax_output_function_prologue;
7590         emit rtl instead of text.
7591         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7592         (print_operand): Add 'x' prefix.
7593
7594 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7595
7596         PR middle-end/47715
7597         * calls.c (precompute_register_parameters): Promote the function
7598         argument before checking non-legitimate constant.
7599
7600 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7601
7602         PR tree-optimization/47654
7603         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7604         (lst_do_strip_mine_loop): Return an int.
7605         (lst_do_strip_mine): Same.
7606         (scop_do_strip_mine): Same.
7607         (scop_do_block): Loop blocking should strip-mine at least two loops.
7608         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7609         (scop_do_interchange): Same.
7610         * graphite-poly.h (scop_do_interchange): Update declaration.
7611         (scop_do_strip_mine): Same.
7612
7613 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7614
7615         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7616         (precision_for_interval): Removed.
7617         (gcc_type_for_interval): Use mpz_sizeinbase.
7618
7619 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7620
7621         * graphite-ppl.h (value_max): Correct computation of max.
7622
7623 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7624
7625         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7626
7627 2011-07-05  Richard Guenther  <rguenther@suse.de>
7628
7629         * c-decl.c (c_init_decl_processing): Defer building common
7630         tree nodes to c_common_nodes_and_builtins.
7631
7632 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7633
7634         PR tree-optimization/49580
7635         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7636         the loop's number of iterations.
7637         * tree-parloops.c (transform_to_exit_first_loop): Add the
7638         handling of the loop's number of iterations before the call
7639         to gimple_duplicate_sese_tail.
7640         Insert the stmt caclculating the new rhs of the loop's
7641         condition stmt to the preheader instead of iters_bb.
7642
7643 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7644
7645         PR rtl-optimization/47449
7646         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7647         register nor zero/sign extended hard register.
7648
7649 2011-07-05  Richard Guenther  <rguenther@suse.de>
7650
7651         PR tree-optimization/49518
7652         PR tree-optimization/49628
7653         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7654         irrelevant and invariant data-references.
7655         (vect_analyze_data_ref_access): For invariant loads clear the
7656         group association.
7657
7658 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7659
7660         PR rtl-optimization/49619
7661         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7662         pass VOIDmode as op0_mode to recursive call, and return temp even
7663         when different from tor, just if it is not IOR of the original
7664         PLUS arguments.
7665
7666         PR rtl-optimization/49472
7667         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7668         negating MULT, negate the second operand instead of first.
7669         (simplify_binary_operation_1) <case MULT>: If one operand is
7670         a NEG and the other is MULT, don't attempt to optimize by negation
7671         of the MULT operand if it only moves the NEG operation around.
7672
7673         PR debug/49602
7674         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7675         get_current_def return value if it can't be trusted to be
7676         the current value of the variable in the current bb.
7677
7678 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
7679
7680         PR target/49600
7681         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7682         general register to memory for !TARGET_INTER_UNIT_MOVES.
7683
7684 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7685
7686         PR target/44643
7687         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7688         instead of TREE_READONLY.
7689
7690 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7691
7692         * doc/extend.texi (AVR Built-in Functions): Update documentation
7693         of __builtin_avr_fmul*.
7694         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7695         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7696         * config/avr/avr.md (fmul): Rename to fmul_insn.
7697         (fmuls): Rename to fmuls_insn.
7698         (fmulsu): Rename to fmulsu_insn.
7699         (fmul,fmuls,fmulsu): New expander.
7700         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7701         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7702         * config/avr/libgcc.S (__fmul): New function.
7703         (__fmuls): New function.
7704         (__fmulsu,__fmulsu_exit): New function.
7705
7706 2011-07-04  Richard Guenther  <rguenther@suse.de>
7707
7708         PR tree-optimization/49615
7709         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7710         basic-block index check.
7711
7712 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7713
7714         * longlong.h (count_leading_zeros, count_trailing_zeros,
7715         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7716         resp. 64.
7717
7718 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
7719
7720         PR tree-optimization/49610
7721         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7722         a basic block.
7723
7724 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7725             Olivier Hainque  <hainque@adacore.com>
7726             Nicolas Setton  <setton@adacore.com>
7727
7728         * tree.h (TYPE_ARTIFICIAL): New flag.
7729         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7730         the DIE of the type if it is artificial.
7731         (gen_array_type_die): Likewise.
7732         (gen_enumeration_type_die): Likewise.
7733         (gen_struct_or_union_type_die): Likewise.
7734         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7735         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7736
7737 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7738
7739         * tree-object-size.c (pass_through_call): Handle
7740         BUILT_IN_ASSUME_ALIGNED.
7741
7742 2011-07-01  Martin Jambor  <mjambor@suse.cz>
7743
7744         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7745
7746 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7747
7748         PR middle-end/48016
7749         * explow.c (update_nonlocal_goto_save_area): Use proper mode
7750         for stack save area.
7751         * function.c (expand_function_start): Likewise.
7752
7753 2011-07-01  Richard Guenther  <rguenther@suse.de>
7754
7755         PR middle-end/49596
7756         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7757         may have unknown refs.
7758
7759 2011-07-01  Kai Tietz  <ktietz@redhat.com>
7760
7761         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7762
7763 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7764
7765         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7766         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7767         (Specific, mips-sgi-irix6): Likewise.
7768
7769 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7770
7771         PR libmudflap/49549
7772         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7773
7774 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7777         [idx]= and [idx1 ... idx2]= before initializers if needed for
7778         array initializers.
7779
7780 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
7781
7782         * config.gcc (score-*-elf): Remove score7.o.
7783         * config/score/t-score-elf: Likewise.
7784         * config/score/score.c: Merge score7 to score.c and
7785         remove forwarding functions.
7786         * config/score/score7.c: Deleted.
7787         * config/score/score7.h: Deleted.
7788
7789 2011-07-01  Richard Guenther  <rguenther@suse.de>
7790
7791         PR tree-optimization/49603
7792         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7793
7794 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7795
7796         * tree-sra.c (struct access): Rename total_scalarization to
7797         grp_total_scalarization
7798         (completely_scalarize_var): New function.
7799         (sort_and_splice_var_accesses): Set total_scalarization in the
7800         representative access.
7801         (analyze_access_subtree): Propagate total scalarization accross the
7802         tree, no holes in totally scalarized trees, simplify coverage
7803         computation.
7804         (analyze_all_variable_accesses): Call completely_scalarize_var instead
7805         of completely_scalarize_record.
7806
7807 2011-06-30  Richard Henderson  <rth@redhat.com>
7808
7809         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7810         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7811         * config/i386/i386.c: Don't include dwarf2out.h.
7812         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7813         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7814         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
7815         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7816         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7817
7818 2011-06-30  Richard Henderson  <rth@redhat.com>
7819
7820         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7821         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7822         * final.c (final_scan_insn): Look for it, and invoke
7823         dwarf2out_frame_debug before the insn if found.
7824
7825 2011-06-30  Richard Henderson  <rth@redhat.com>
7826
7827         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7828         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7829
7830 2011-06-30  Richard Henderson  <rth@redhat.com>
7831
7832         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7833         Define a vector of this type.
7834         (regs_saved_in_regs): Use a VEC.
7835         (num_regs_saved_in_regs): Remove.
7836         (compare_reg_or_pc): New.
7837         (record_reg_saved_in_reg): Split out from...
7838         (dwarf2out_flush_queued_reg_saves): ... here.
7839         (clobbers_queued_reg_save): Update for VEC.
7840         (reg_saved_in): Likewise.
7841         (dwarf2out_frame_debug_init): Likewise.
7842         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7843         (dwarf2out_frame_debug_cfa_register): Likewise.
7844
7845 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7846
7847         PR tree-optimization/49572
7848         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7849         type of the RHS instead of that of the LHS for the expression type.
7850
7851 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7852
7853         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7854         unconditionally.
7855
7856 2011-06-30  Richard Guenther  <rguenther@suse.de>
7857
7858         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7859         * tree-ssa-structalias.c (create_variable_info_for): Do not
7860         add initial constraints for non-var-decls.  Properly handle
7861         globals in other ltrans partitions.
7862         (intra_create_variable_infos): Manually create constraints for
7863         the fake no-alias parameter.
7864         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7865         and assert there are no clones.
7866
7867 2011-06-30  Richard Guenther  <rguenther@suse.de>
7868
7869         PR tree-optimization/46787
7870         * tree-data-ref.c (dr_address_invariant_p): Remove.
7871         (find_data_references_in_stmt): Invariant accesses are ok now.
7872         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7873         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7874         invariant loads.
7875
7876 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7877
7878         PR tree-optimization/49094
7879         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7880         (build_accesses_from_assign): Use it.
7881
7882 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7883
7884         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7885         handling of BUILT_IN_ASSUME_ALIGNED.
7886
7887         PR debug/49364
7888         * dwarf2out.c (output_abbrev_section): Don't return early
7889         if abbrev_die_table_in_use is 1.
7890         (dwarf2out_finish): Instead don't call output_abbrev_section
7891         nor emit abbrev_section_label in that case.
7892
7893 2011-06-30  Nick Clifton  <nickc@redhat.com>
7894
7895         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7896         for the V850E.
7897
7898 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7899
7900         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7901         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7902
7903 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
7904
7905         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7906         both pattern and original statements if necessary.
7907         (vect_transform_loop): Likewise.
7908         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7909         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7910         Mark the pattern statement only if the original statement doesn't
7911         have its own uses.
7912         (process_use): Call vect_mark_relevant with additional parameter.
7913         (vect_mark_stmts_to_be_vectorized): Likewise.
7914         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7915         (vect_analyze_stmt): Handle both pattern and original statements
7916         if necessary.
7917         (vect_transform_stmt): Don't store vectorized pattern statement
7918         in the original statement.
7919         (vect_is_simple_use_1): Use related pattern statement only if the
7920         original statement is irrelevant.
7921         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7922
7923 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
7924
7925         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7926         option.
7927         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7928         entry.
7929         (TARGET_AVX128_OPTIMAL): New definition.
7930         * config/i386/i386.c (initial_ix86_tune_features): Initialize
7931         X86_TUNE_AVX128_OPTIMAL entry.
7932         (ix86_option_override_internal): Enable the generation
7933         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7934         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7935         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7936
7937 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7938
7939         PR tree-optimization/49539
7940         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7941         names by means of stmt_references_abnormal_ssa_name.
7942         (associate_plusminus): Call can_propagate_from before propagating
7943         from definition statements.
7944         (ssa_forward_propagate_and_combine): Remove superfluous newline.
7945
7946 2011-06-29  Richard Guenther  <rguenther@suse.de>
7947
7948         * doc/invoke.texi: Document -scev dump modifier.
7949         * tree-pass.h (TDF_SCEV): New dump flag.
7950         * tree-dump.c (dump_option_value_in): Add scev.
7951         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7952         * tree-scalar-evolution.c: Likewise.
7953
7954 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
7955
7956         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7957         (cxa_type_match): Correct declaration.
7958         (__gnu_unwind_pr_common): Reconstruct additional indirection
7959         when __cxa_type_match returns succeeded_with_ptr_to_base.
7960
7961 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7962
7963         PR rtl-optimization/49114
7964         * reload.c (struct replacement): Remove SUBREG_LOC member.
7965         (push_reload): Do not set it.
7966         (push_replacement): Likewise.
7967         (subst_reload): Remove dead code.
7968         (copy_replacements): Remove assertion.
7969         (copy_replacements_1): Do not handle SUBREG_LOC.
7970         (move_replacements): Likewise.
7971         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
7972         Detect subregs via recursive descent instead of via SUBREG_LOC.
7973
7974 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7975
7976         * config/avr/avr.c (avr_encode_section_info): Dispatch to
7977         default_encode_section_info.
7978
7979 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
7980
7981         PR tree-optimization/49545
7982         * builtins.c (get_object_alignment_1): Update function comment.
7983         Do not use DECL_ALIGN for functions, but test
7984         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7985         * fold-const.c (get_pointer_modulus_and_residue): Don't check
7986         for functions here.
7987         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7988
7989 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
7990
7991         PR debug/49567
7992         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
7993         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
7994
7995 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7996
7997         PR target/34734
7998         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
7999         about uninitialized data attributed 'progmem' from here...
8000         (avr_encode_section_info): ...to this new function.
8001         (TARGET_ENCODE_SECTION_INFO): New define.
8002         (avr_section_type_flags): For data in ".progmem.data", remove
8003         section flag SECTION_WRITE.
8004
8005 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8006
8007         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8008         _xmulhisi3_exit.
8009         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8010         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8011         (__umulhisi3): Ditto.
8012         * config/avr/avr.md (mulhisi3): New insn expender.
8013         (umulhisi3): New insn expender.
8014         (*mulhisi3_call): New insn.
8015         (*umulhisi3_call): New insn.
8016
8017 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8018
8019         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8020
8021 2011-06-28  Richard Henderson  <rth@redhat.com>
8022
8023         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8024         all code and arguments that handled pushes.  Update all callers.
8025
8026 2011-06-28  Richard Henderson  <rth@redhat.com>
8027
8028         * config/arm/arm.c (arm_output_function_prologue): Don't call
8029         thumb1_output_function_prologue.
8030         (arm_expand_prologue): Avoid dead store.
8031         (number_of_first_bit_set): Use ctz_hwi.
8032         (thumb1_emit_multi_reg_push): New.
8033         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8034         to emit the entire prologue as rtl.
8035         (thumb1_output_interwork): Split out from
8036         thumb1_output_function_prologue.
8037         (thumb1_output_function_prologue): Remove.
8038         (arm_attr_length_push_multi): Handle thumb1.
8039         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8040         (prologue_thumb1_interwork): New.
8041         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8042         * config/arm/predicates.md (push_mult_memory_operand): New.
8043
8044 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8045
8046         * config/sparc/sync.md (*stbar): Delete.
8047         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8048
8049 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8050
8051         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8052
8053 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8054
8055         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8056         (TARGET_64BIT_DEFAULT): Define.
8057         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8058         of tm_file.
8059         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8060
8061 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8062
8063         * common.opt (in_lto_p): New Variable entry.
8064         * flags.h (in_lto_p): Move to common.opt.
8065         * gcc.c: Include params.h.
8066         (set_option_handlers): Also use common_handle_option and
8067         target_handle_option.
8068         (main): Call global_init_params, finish_params and init_options_struct.
8069         * opts.c (debug_type_names): Move from toplev.c.
8070         (print_filtered_help): Access quiet_flag through opts pointer.
8071         (common_handle_option): Return early in the driver for some options.
8072         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8073         opts pointer.
8074         * toplev.c (in_lto_p): Move to common.opt.
8075         (debug_type_names): Move to opts.c.
8076         * Makefile.in (OBJS): Remove opts.o.
8077         (OBJS-libcommon-target): Add opts.o.
8078         (gcc.o): Update dependencies.
8079
8080 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8081
8082         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8083
8084 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8085
8086         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8087         with '=' constraint modifier.
8088         (*divdf3_vfp): Likewise.
8089         ("*mulsf3_vfp"): Likewise.
8090         ("*muldf3_vfp"): Likewise.
8091         ("*mulsf3negsf_vfp"): Likewise.
8092         ("*muldf3negdf_vfp"): Likewise.
8093
8094 2011-06-28  Nick Clifton  <nickc@redhat.com>
8095
8096         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8097         relaxation when performing an incremental link.
8098
8099 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8100
8101         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8102         within BB from last to first.
8103
8104 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * genattr-common.c: New.  Based on genattr.c.
8107         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8108         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8109         (opts.o): Update dependencies.
8110         (.PRECIOUS): Add insn-attr-common.h.
8111         (simple_rtl_generated_h): Add insn-attr-common.h.
8112         (build/genattr-common.o): New.
8113         (genprogrtl): Add attr-common.
8114         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8115         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8116         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8117
8118 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8119
8120         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8121         avr-*-* and avr-*-rtems* targets.
8122
8123         * config/avr/elf.h: New file.
8124         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8125         (TARGET_ASM_SELECT_SECTION): Define.
8126         (INIT_SECTION_ASM_OP): Undefine.
8127         (FINI_SECTION_ASM_OP): Undefine.
8128         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8129         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8130         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8131         * config/avr/avr.h:
8132         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8133         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8134         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8135         (STRING_LIMIT): Move to elf.h.
8136         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8137         (ASM_DECLARE_OBJECT_NAME): Remove.
8138         (ESCAPES): Remove.
8139         (ASM_OUTPUT_SKIP): Remove.
8140         (DWARF2_DEBUGGING_INFO): Remove.
8141         (OBJECT_FORMAT_ELF): Remove.
8142         (USER_LABEL_PREFIX): Remove.
8143         (ASM_OUTPUT_EXTERNAL): Remove.
8144         (ASM_OUTPUT_ASCII): Remove.
8145         (TYPE_ASM_OP): Remove.
8146         (SIZE_ASM_OP): Remove.
8147         (WEAK_ASM_OP): Remove.
8148         (STRING_ASM_OP): Remove.
8149         (SET_ASM_OP): Remove.
8150         (ASM_WEAKEN_LABEL): Remove.
8151         (TYPE_OPERAND_FMT): Remove.
8152         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8153         (ASM_FINISH_DECLARE_OBJECT): Remove.
8154         (NO_DOLLAR_IN_LABEL): Remove.
8155         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8156         (ASM_OUTPUT_CASE_LABEL): Remove.
8157         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8158         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8159         (gas_output_ascii): Remove.
8160         (gas_output_limited_string): Remove.
8161         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8162         * config/avr/avr-protos.h
8163         (gas_output_ascii): Remove prototye.
8164         (gas_output_limited_string): Remove prototype.
8165
8166 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8167
8168         PR target/48637
8169         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8170         asm operands.
8171
8172 2011-06-27  Jan Hubicka  <jh@suse.cz>
8173
8174         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8175         node instead of references in node.
8176
8177 2011-06-27  Richard Henderson  <rth@redhat.com>
8178
8179         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8180         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8181         inside ifdef.
8182
8183 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8184
8185         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8186
8187         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8188         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8189         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8190         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8191         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8192         (evaluate_stmt, execute_fold_all_builtins): Handle
8193         BUILT_IN_ASSUME_ALIGNED.
8194         * tree-ssa-dce.c (propagate_necessity): Likewise.
8195         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8196         call_may_clobber_ref_p_1): Likewise.
8197         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8198         (expand_builtin_assume_aligned): New function.
8199         * doc/extend.texi (__builtin_assume_aligned): Document.
8200
8201         PR debug/49544
8202         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8203         and l has two DEBUG_INSN owned locs instead of just one, adjust
8204         the second location's setting_insn too.
8205
8206 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8207
8208         PR libmudflap/38738
8209         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8210
8211 2011-06-27  Nick Clifton  <nickc@redhat.com>
8212
8213         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8214         bit position of highest bit set into a count of the high zero bits.
8215
8216 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8217
8218         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8219
8220 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8221
8222         PR lto/48492
8223         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8224         to a NULL parent.
8225
8226 2011-06-27  Richard Guenther  <rguenther@suse.de>
8227
8228         PR tree-optimization/49394
8229         * passes.c (execute_one_pass): Restore current_pass after
8230         applying IPA transforms.
8231
8232 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8233
8234         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8235         out of type precision after operation.
8236         (find_bswap): Take for limit value the integer auto-promotion
8237         into account.
8238
8239 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8240
8241         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8242         forward scan as well.
8243
8244 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8245
8246         PR target/44241
8247         * config/vms/vms-protos.h: New file.
8248         * config/vms/vms-crtlmap.map: New file.
8249         * config/vms/vms.c: New file.
8250         * config/vms/make-crtlmap.awk: New file.
8251         * config/vms/vms-crtl.h: File removed.
8252         * config/vms/vms-crtl-64.h: File removed.
8253         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8254         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8255         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8256         clear some builtins on VMS.  Calls vms_patch_builtins.
8257         (avms_asm_output_external): Remove.
8258         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8259         (struct crtl_name_spec): Remove
8260         (DO_CTRL_NAMES): Remove.
8261         * config/ia64/vms.h (struct crtl_name_spec): Remove
8262         (DO_CTRL_NAMES): Remove.
8263         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8264         clear some builtins on VMS.  Calls vms_patch_builtins.
8265         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8266         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8267         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8268
8269 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8270
8271         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8272         directive on VMS.
8273
8274 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8275
8276         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8277         the function receives nonlocal gotos.
8278
8279 2011-06-27  Richard Guenther  <rguenther@suse.de>
8280
8281         PR tree-optimization/49536
8282         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8283         For non-scalar inner types use a scalar type according to
8284         the scalar inner mode.
8285
8286 2011-06-27  Richard Guenther  <rguenther@suse.de>
8287
8288         PR tree-optimization/49365
8289         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8290
8291 2011-06-27  Richard Guenther  <rguenther@suse.de>
8292
8293         PR tree-optimization/49169
8294         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8295         the alignment of function decls.
8296
8297 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8298
8299         PR target/47997
8300         * config/darwin.c (darwin_mergeable_string_section): Place string
8301         constants in '.cstring' rather than '.const' when CF/NSStrings are
8302         active.
8303
8304 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8305
8306         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8307         (emit_save_register_window): Likewise.
8308         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8309         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
8310         Swap back %o7/%i7 in register naming.
8311
8312 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
8313
8314         PR driver/49371
8315         * config/darwin.c (darwin_override_options): Improve warning when
8316         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8317         is given with fpie/fPIE.
8318         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8319         * config/darwin9.h (PIE_SPEC): New.
8320
8321 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
8322
8323         * timevar.c (timevar_print): Increase width for display of timevar
8324         name.
8325
8326 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
8327
8328         PR c++/46400
8329         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8330         instead of TYPE_CHAIN for chain_next for types.
8331
8332 2011-06-24  Richard Henderson  <rth@redhat.com>
8333
8334         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8335         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8336         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8337         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8338         (sparc_flat_expand_prologue): Emit individual instructions
8339         instead of one of the above.
8340
8341 2011-06-24  Easwaran Raman  <eraman@google.com>
8342
8343         PR rtl-optimization/49429
8344         PR target/49454
8345         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
8346         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8347         used to copy y into x.
8348         * calls.c (initialize_argument_information): Mark
8349         an argument addressable if it is passed by invisible reference.
8350         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8351         if it is passed by reference.
8352
8353 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8354
8355         PR rtl-optimization/49504
8356         * rtlanal.c (nonzero_bits1): Properly handle addition or
8357         subtraction of a pointer in Pmode if pointers extend unsigned.
8358         (num_sign_bit_copies1): Likewise.
8359
8360 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8361
8362         PR tree-optimizations/49516
8363         * tree-sra.c (sra_modify_assign): Choose the safe path for
8364         aggregate copies if we also did scalar replacements.
8365
8366 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8367
8368         PR target/49335
8369         * config/arm/predicates.md (add_operator): New.
8370         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8371
8372 2011-06-24  Andi Kleen  <ak@linux.intel.com>
8373
8374         * tree-sra.c (type_internals_preclude_sra_p): Add msg
8375         parameter. Split up ifs and report reason in *msg.
8376         (reject): Add.
8377         (find_var_candiate): Add msg variable.
8378         Split up ifs and report reason to reject.
8379         (find_param_candidates): Add msg variable.
8380         Pass msg to type_internals_preclude_sra_p.
8381
8382 2011-06-23  Jeff Law  <law@redhat.com>
8383
8384         PR middle-end/48770
8385         * reload.h (reload): Change to return a bool.
8386         * ira.c (ira): If requested by reload, run a fast DCE pass after
8387         reload has completed.  Fix comment typo.
8388         * reload1.c (need_dce): New file scoped static.
8389         (reload): Set reload_completed here.  Return whether or not a DCE
8390         pass after reload is needed.
8391         (delete_dead_insn): Set need_dce as needed.
8392
8393         PR middle-end/49465
8394         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8395         to detect threading through joiner block.  If there was already
8396         an edge to the new target, then do not change the PHI nodes.
8397
8398 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
8399
8400         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8401         get_pointer_alignment to see if base isn't sufficiently aligned.
8402
8403 2011-06-23  Jan Hubicka  <jh@suse.cz>
8404
8405         PR tree-optimize/49373
8406         * tree-pass.h (all_late_ipa_passes): Declare.
8407         * cgraphunit.c (init_lowered_empty_function): Fix properties.
8408         (cgraph_optimize): Execute late passes; remove unreachable funcions
8409         after materialization.
8410         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8411         LTOing.
8412         * passes.c (all_late_ipa_passes): Declare.
8413         (dump_passes, register_pass): Handle late ipa passes.
8414         (init_optimization_passes): Move ipa_pta to late passes; schedule
8415         fixup_cfg at beggining of all_passes.
8416         (apply_ipa_transforms): New function.
8417         (execute_one_pass): When doing simple ipa pass, apply all transforms.
8418
8419 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * params.c: Include common/common-target.h.  Don't include tm.h.
8422         (lang_independent_params): Move from toplev.c.
8423         (global_init_params): New.
8424         * params.h (global_init_params): Declare.
8425         * target.def (default_params): Move to common-target.def.
8426         * toplev.c (lang_independent_options): Remove.
8427         (lang_independent_params): Move to params.c.
8428         (general_init): Use global_init_params.
8429         * common/common-target.def (option_default_params): Move from
8430         target.def.
8431         * common/config/ia64/ia64-common.c: Include params.h.
8432         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8433         from ia64.c.
8434         * common/config/rs6000/rs6000-common.c: Include params.h.
8435         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8436         from rs6000.c.
8437         * common/config/sh/sh-common.c: Include params.h.
8438         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8439         from sh.c.
8440         * common/config/spu/spu-common.c: Include params.h.
8441         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8442         from spu.c.
8443         * config/ia64/ia64.c (ia64_option_default_params,
8444         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8445         * config/rs6000/rs6000.c (rs6000_option_default_params,
8446         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8447         * config/sh/sh.c (sh_option_default_params,
8448         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8449         * config/spu/spu.c (spu_option_default_params,
8450         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8451         * Makefile.in (OBJS): Remove params.o.
8452         (OBJS-libcommon-target): Add params.o.
8453         (params.o, $(common_out_object_file)): Update dependencies.
8454         * doc/tm.texi: Regenerate.
8455
8456 2011-06-23  Alan Modra  <amodra@gmail.com>
8457
8458         PR bootstrap/49383
8459         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8460         invocation for 2011-06-09 changes.
8461
8462 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8463
8464         PR libgomp/49490
8465         * omp-low.c (expand_omp_for_static_nochunk): Only
8466         use n ceil/ nthreads size for the first n % nthreads threads in the
8467         team instead of all threads except for the last few ones which
8468         get less work or none at all.
8469
8470         PR debug/49496
8471         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8472         uses.
8473
8474 2011-06-22  Richard Guenther  <rguenther@suse.de>
8475
8476         PR tree-optimization/49493
8477         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8478         Refer to the alias target of variables.
8479         (associate_varinfo_to_alias_1): Remove.
8480         (ipa_pta_execute): Do not associate aliases with anything.
8481         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8482         (cgraph_function_node): Likewise.
8483         (cgraph_function_or_thunk_node): Likewise.
8484         (varpool_variable_node): Likewise.
8485
8486 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8487
8488         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8489         * config.gcc (arm*-*-linux*): Default to gnu tls.
8490         (arm*-*-*): Add --with-tls option.
8491         (all_defaults): Add 'tls'.
8492
8493 2011-06-22  Richard Henderson  <rth@redhat.com>
8494
8495         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8496         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8497         (dwarf2out_frame_debug_cfa_window_save): Rename from
8498         dwarf2out_window_save; make static.
8499         * tree.h (dwarf2out_window_save): Don't declare.
8500
8501         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8502         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8503         (emit_save_register_window): Rename from gen_save_register_window;
8504         emit the insn and add REG_CFA_* notes.
8505         (sparc_expand_prologue): Update to match.
8506         * config/sparc/sparc.md (save_register_window_1): Simplify from
8507         save_register_window<P:mode>.
8508
8509 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8510
8511         PR target/49497
8512         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8513         (*lea_general_2_zext): Likewise.
8514         (imul to lea peepholes): Use const359_operand and check
8515         TARGET_PARTIAL_REG_STALL.
8516
8517         * config/i386/predicates.md (const359_operand): New.
8518
8519 2011-06-22  Michael Matz  <matz@suse.de>
8520
8521         * cgraphunit.c (assemble_thunk): Use correct return type.
8522
8523 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8524             Dmitry Melnik  <dm@ispras.ru>
8525
8526         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8527         (neon_output_shift_immediate): Ditto.
8528         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8529         prototype.
8530         (neon_output_shift_immediate): Ditto.
8531         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8532         (vashr<mode>3_imm): New insn pattern.
8533         (vlshr<mode>3_imm): Ditto.
8534         (vashr<mode>3): Modified constraint.
8535         (vlshr<mode>3): Ditto.
8536         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8537         predicate.
8538         (imm_for_neon_rshift_operand): Ditto.
8539         (imm_lshift_or_reg_neon): Ditto.
8540         (imm_rshift_or_reg_neon): Ditto.
8541
8542         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8543
8544 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8545
8546         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8547         builtin calls even if likelyvalue is not CONSTANT.
8548         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8549         Return get_value_for_expr of first operand
8550         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8551         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8552         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8553         their non-checking counterparts.
8554         (call_may_clobber_ref_p_1): Likewise.
8555         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8556         like their non-checking counterparts.
8557         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8558         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8559         like their non-checking counterparts.
8560         (find_func_clobbers): Likewise.
8561         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8562         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8563
8564         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8565         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8566         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8567         of base type reference as argument.
8568         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8569         (convert_descriptor_to_signed): Renamed to...
8570         (convert_descriptor_to_mode): ... this.  For wider types convert to
8571         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8572         (typed_binop): New function.
8573         (scompare_loc_descriptor, ucompare_loc_descriptor,
8574         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8575         default to unsigned type instead of signed.
8576
8577         PR debug/47858
8578         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8579         (gimple_build_debug_source_bind_stat): New prototype.
8580         (gimple_build_debug_source_bind): Define.
8581         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8582         gimple_debug_source_bind_get_value,
8583         gimple_debug_source_bind_get_value_ptr,
8584         gimple_debug_source_bind_set_var,
8585         gimple_debug_source_bind_set_value): New inlines.
8586         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8587         * gimple-pretty-print.c (dump_gimple_debug): Handle
8588         GIMPLE_DEBUG_SOURCE_BIND.
8589         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8590         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8591         * tree-parloops.c (eliminate_local_variables,
8592         separate_decls_in_region): Likewise.
8593         (separate_decls_in_region_debug): Renamed from
8594         separate_decls_in_region_debug_bind.  Handle
8595         gimple_debug_source_bind_p.
8596         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8597         prototypes.
8598         (DECL_HAS_DEBUG_ARGS_P): Define.
8599         (struct tree_function_decl): Add has_debug_args_flag field.
8600         * tree.c (debug_args_for_decl): New variable.
8601         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8602         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8603         (rewrite_debug_stmt_uses): New function.
8604         (rewrite_stmt): Use it to rewrite debug stmt uses.
8605         * rtl.def (DEBUG_PARAMETER_REF): New.
8606         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8607         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8608         DEBUG_PARAMETER_REF.
8609         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8610         * print-rtl.c (print_rtx): Likewise.
8611         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8612         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8613         debug stmts in the first bb.
8614         * tree-inline.c (remap_ssa_name): If remapping default def
8615         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8616         a source bind debug stmt.
8617         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8618         (maybe_move_debug_stmts_to_successors): Likewise.
8619         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8620         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8621         debug args vector from old_decl to new_decl.
8622         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8623         or modified parameters, add debug bind stmts before call
8624         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8625         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8626         on DECL_DEBUG_EXPRs from debug args vector.
8627         (expand_debug_source_expr): New function.
8628         (expand_debug_locations): Use it for source bind insns.
8629         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8630         * var-tracking.c (prepare_call_arguments): Add debug args
8631         to call_arguments if any.
8632         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8633         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8634         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8635         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8636         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8637         (gen_subprogram_die): Handle parameters identified by
8638         DEBUG_PARAMETER_REF.
8639
8640 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8641
8642         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8643         * doc/install.texi (Configuration): Document --with-tls.
8644         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8645         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8646         (arm_tls_descseq_addr): New.
8647         (legitimize_tls_address): Add tlsdesc support.
8648         (arm_cannot_copy_insn_p): Check for tlscall.
8649         (arm_emit_tls_decoration): Likewise.
8650         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8651         (OPTION_DEFAULT_SPECS): Add with-tls support.
8652         * config/arm/arm.md (R1_REGNUM): Define.
8653         (tlscall): New.
8654         * config/arm/arm.opt (tls_type): New enumeration type and values.
8655         (mtls-dialect): New switch.
8656         * config/arm/arm-opts.h (enum tls_type): New.
8657
8658 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8659
8660         * attribs.c (register_attribute): Added assert to check that all
8661         attribute specs are registered with a name that is not empty and
8662         does not start with '_'.
8663         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8664         if the function has no attributes.
8665         * tree.c (is_attribute_with_length_p): Removed.
8666         (is_attribute_p): Removed.
8667         (private_is_attribute_p): New.
8668         (private_lookup_attribute): New.
8669         (lookup_attribute): Removed.
8670         (lookup_ident_attribute): New.
8671         (remove_attribute): Require the first argument to be in the form
8672         'text', not '__text__'.  Updated asserts.
8673         (merge_attributes): Use lookup_ident_attributes instead of
8674         lookup_attribute.
8675         (merge_dllimport_decl_attributes): Use remove_attribute.
8676         (attribute_list_contained): Likewise.
8677         (attribute_list_equal): Immediately return 1 if the arguments are
8678         identical pointers.
8679         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
8680         'int'.  Require the first argument to be in the form 'text', not
8681         '__text__'.  Require the second argument to be an identifier.
8682         (lookup_attribute): Made inline.  Require the first argument to be
8683         in the form 'text', not '__text__'.
8684         (private_is_attribute_p, private_lookup_attribute): New.
8685         Updated comments.
8686
8687 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8688
8689         * builtins.c: Add sync_ or SYNC__ to builtin names.
8690         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8691         * omp-low.c: Add sync_ or SYNC__ to builtin names.
8692
8693 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8694
8695         PR target/33049
8696         * config/avr/avr.md (extzv): New expander.
8697         (*extzv): New insn.
8698         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8699         * config/avr/constraints.md (C04): New constraint.
8700         * doc/md.texi (Machine Constraints): Document it.
8701
8702 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8703
8704         PR middle-end/49489
8705         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8706         unsignedp argument instead of 1 for clrsb_optab.
8707         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8708         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
8709         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8710         * optabs.c (widen_leading): Call widen_operand and expand_unop
8711         with 0 as unsignedp argument instead of 1 for clrsb_optab.
8712         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8713
8714 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8715
8716         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8717
8718 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
8719
8720         * gensupport.c (add_define_attr): New static function.
8721         (is_predicable): Allow multi-alternative lists for the "predicable"
8722         attribute.
8723         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8724         (process_one_cond_exec): Call alter_attrs_for_insn.
8725         * doc/md.texi (Defining Attributes): Mention some standard names.
8726         (Conditional Execution): Update documentation for "predicable".
8727
8728         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8729         __builtin_clrsbll): Document.
8730         * doc/rtl.texi (clrsb): New entry.
8731         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
8732         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
8733         (expand_unop): Handle clrsb_optab.
8734         (init_optabs): Initialize it.
8735         * optabs.h (enum optab_index): New entry OTI_clrsb.
8736         (clrsb_optab): Define.
8737         * genopinit.c (optabs): Add an entry for it.
8738         * builtins.c (expand_builtin): Handle clrsb builtin functions.
8739         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8740         BUILT_IN_CLRSBLL): New.
8741         * rtl.def (CLRSB): New code.
8742         * dwarf2out.c (mem_loc_descriptor): Handle it.
8743         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8744         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8745         and popcount.
8746         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8747         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8748         (__ctzDI2): Move declaration.
8749         * config/bfin/bfin.md (clrsbsi2): New expander.
8750         (signbitssi2): Use the CLRSB rtx.
8751         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
8752         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8753
8754 2011-06-21  Richard Guenther  <rguenther@suse.de>
8755
8756         * ipa-inline-transform.c (inline_transform): Fix previous change.
8757
8758 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
8759
8760         PR tree-optimization/49478
8761         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8762         with constant operand.
8763
8764 2011-06-21  Richard Guenther  <rguenther@suse.de>
8765
8766         * ipa-inline-transform.c (inline_transform): Fix typo.
8767
8768 2011-06-21  Richard Guenther  <rguenther@suse.de>
8769
8770         PR tree-optimization/49483
8771         * tree-vect-stmts.c (vectorizable_assignment): Also handle
8772         VIEW_CONVERT_EXPR conversions.
8773
8774 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
8775
8776         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8777         * config/avr/avr-tables.opt: New file (generated).
8778         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8779         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8780         avr-mcus.def.
8781         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8782         (avr_option_override): Don't process -mmcu= argument here.  Set
8783         avr_current_device using avr_mcu_index.
8784         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8785         * config/avr/avr.opt (mmcu=): Use Enum.
8786         * config/avr/t-avr (avr-devices.o): Update dependencies.
8787         ($(srcdir)/config/avr/avr-tables.opt): New.
8788         * target.def (help): Remove.
8789         * doc/tm.texi.in (TARGET_HELP): Remove.
8790         * doc/tm.texi: Regenerate.
8791         * opts.c: Don't include target.h.
8792         (common_handle_option): Don't call targetm.help.
8793         * system.h (TARGET_HELP): Poison.
8794         * Makefile.in (opts.o): Update dependencies.
8795
8796 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8797
8798         * config/usegld.h: New file.
8799         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8800         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8801         (LIB_SPEC): Likewise.  Search /lib.
8802         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8803         (RDYNAMIC_SPEC): Handle GNU ld.
8804         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8805         Define.
8806         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8807         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8808         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8809         (STACK_CHECK_STATIC_BUILTIN): Define.
8810         * config/sol2.opt (compat-bsd): Remove.
8811         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8812         * config/sol2-bi.h: New file.
8813         * config/sol2-gld.h: Remove.
8814         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8815         (NO_DBX_BNSYM_ENSYM): Remove.
8816         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8817         (STACK_CHECK_STATIC_BUILTIN): Remove.
8818         Test USE_GLD instead of TARGET_GNU_LD.
8819         * config/i386/sol2-10.h: Rename to ...
8820         * config/i386/sol2-bi.h .. this.
8821         (SUBTARGET_EXTRA_SPECS): Redefine.
8822         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8823         (MULTILIB_DEFAULTS): Remove.
8824         (DEFAULT_ARCH32_P): Define.
8825         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8826         (ARCH64_SUBDIR): Define.
8827         Test USE_GLD instead of TARGET_GNU_LD.
8828         (I386_EMULATION): Rename to ...
8829         (ARCH32_EMULATION): ... this.
8830         (X86_64_EMULATION): Rename to ...
8831         (ARCH64_EMULATION): ... this.
8832         (TARGET_LD_EMULATION): Remove.
8833         (LINK_ARCH_SPEC): Remove.
8834         * config/i386/sol2-gas.h: Remove.
8835         * config/i386/t-sol2-10: Rename to ...
8836         * config/i386/t-sol2-64: ... this.
8837         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8838         (AS_SPARC64_FLAG): Define.
8839         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8840         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8841         depending on TARGET_CPU_DEFAULT.
8842         (CPP_CPU_SPEC): Redefine.
8843         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8844         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8845         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8846         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8847         ASM_ARCH_DEFAULT_SPEC): Redefine.
8848         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8849         LINK_ARCH_DEFAULT_SPEC.
8850         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8851         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8852         (ARCH64_SUBDIR): Define.
8853         (LINK_ARCH64_SPEC): Redefine.
8854         (CC1_SPEC): Redefine.
8855         (OPTION_DEFAULT_SPECS): Redefine.
8856         (MULTILIB_DEFAULTS): Define.
8857         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8858         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8859         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8860         (NO_DBX_BNSYM_ENSYM): Remove.
8861         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8862         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8863         (TARGET_ASM_NAMED_SECTION): Likewise.
8864         (STACK_CHECK_STATIC_BUILTIN): Remove.
8865         * config/sparc/sol2-bi.h: Remove.
8866         * config/sparc/sol2-gas-bi.h: Remove.
8867         * config/sparc/sol2-gas.h: Remove.
8868         * config/sparc/sol2-gld-bi.h: Remove.
8869         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8870         common parts ...
8871         (*-*-solaris2*): ... here.
8872
8873 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8874
8875         PR other/43564
8876         * ipa-inline.c (can_inline_edge_p): Check
8877         !DECL_DISREGARD_INLINE_LIMITS.
8878
8879 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8880
8881         PR middle-end/49139
8882         * cgraphunit.c (process_function_and_variable_attributes): warn when
8883         always_inline functions that are not inline.
8884         * ipa-inline-transform.c (inline_transform): Always call
8885         optimize_inline.
8886         * tree-inline.c (tree_inlinable_function_p): Use error instead
8887         of sorry.
8888         (expand_call_inline): Likewise.
8889
8890 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8891
8892         * Makefile.in (dg_target_exps): Set.
8893         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8894         instead of 7, try to divide it more evenly.
8895
8896 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
8897
8898         PR target/49089
8899         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8900         (avx256_split_unaligned_store): New definition.
8901         (ix86_option_override_internal): Enable avx256 unaligned load/store
8902         splitting only when avx256_split_unaligned_load/store is set.
8903
8904 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8905
8906         * regrename.c (scan_rtx_reg): Handle the case where we write to an
8907         open chain in a smaller mode without failing the entire block.
8908
8909 2011-06-21  Alan Modra  <amodra@gmail.com>
8910
8911         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8912         CONST high part large-toc address.
8913         (rs6000_tls_referenced_p): Make static.
8914         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8915
8916 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8917
8918         PR target/49385
8919         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8920         one of the operands is a register.
8921
8922 2011-06-20  Kai Tietz  <ktietz@redhat.com>
8923
8924         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8925         operations in combination with binary and.
8926
8927 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8928
8929         * regrename.c (do_replace): Don't update notes.
8930
8931 2011-06-20  Alan Modra  <amodra@gmail.com>
8932
8933         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8934         of toc-relative address in CONST.
8935         (rs6000_delegitimize_address): Recognize changed address.
8936         (rs6000_legitimize_reload_address): Likewise.
8937         (rs6000_emit_move): Don't force these constants to memory.
8938         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8939         toc-relative address in CONST.
8940         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8941         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8942
8943 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8946         (count_trailing_zeros): Likewise.
8947
8948 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8949
8950         PR other/49325
8951         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8952         .init_array can be used with .ctors on targets.
8953         * configure: Regenerated.
8954
8955 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8956
8957         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8958         if the element type is volatile.
8959
8960 2011-06-18  Jan Hubicka  <jh@suse.cz>
8961
8962         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
8963         extra name aliases.
8964         (lto_symtab_resolve_can_prevail_p): Likewise.
8965         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
8966         * cgraphbuild.c (record_reference): Remove extra body alias code.
8967         (mark_load): Likewise.
8968         (mark_store): Likewise.
8969         * cgraph.h (varpool_node): Remove extra_name filed;
8970         add alias_of and extraname_alias.
8971         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
8972         (varpool_alias_aliased_node): New inline function.
8973         (varpool_variable_node): New function.
8974         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
8975         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
8976         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
8977         (input_varpool_node): Likewise.
8978         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
8979         (varpool_externally_visible_p): Remove extra body alias code.
8980         (function_and_variable_visibility): Likewise.
8981         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
8982         (ipa_pta_execute): Use it.
8983         * varpool.c (varpool_remove_node): Remove extra name alias code.
8984         (varpool_mark_needed_node): Likewise.
8985         (varpool_analyze_pending_decls): Analyze aliases.
8986         (assemble_aliases): New functoin.
8987         (varpool_assemble_decl): Use it.
8988         (varpool_create_variable_alias): New function.
8989         (varpool_extra_name_alias): Rewrite.
8990         (varpool_for_node_and_aliases): New function.
8991
8992 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
8993
8994         PR target/49411
8995         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
8996         last_arg_constant and last argument doesn't match its predicate,
8997         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
8998         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
8999         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9000         spelling of error message.
9001         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9002         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9003         const_0_to_255_operand instead of const_int_operand.
9004
9005         Revert:
9006         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9007
9008         * config/i386/sse.md (blendbits): Remove mode attribute.
9009         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9010         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9011         Check integer value of operand 3 in insn constraint.
9012
9013 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9014
9015         PR rtl-optimization/48542
9016         * reload.c (find_equiv_reg): Stop looking when finding a
9017         setjmp-type call.
9018         * reload1.c (reload_as_needed): Invalidate all reload
9019         registers when crossing a setjmp-type call.
9020
9021 2011-06-16  Jeff Law  <law@redhat.com>
9022
9023         * tree-ssa-threadupdate.c (struct redirection_data): New field
9024         intermediate_edge.
9025         (THREAD_TARGET2): Define.
9026         (redirection_data_eq): Also check that the intermediate edge is equal.
9027         (lookup_redirection_data): Drop useless argument.  Extract the
9028         outgoing_edge and intermediate edge from E.  Callers updated.
9029         (copy_phi_args, update_destination_phis): New functions.
9030         (fix_duplicate_block_edges): Likewise.
9031         (create_edge_and_update_destination_phis): Duplicate all the edges
9032         hung off e->aux.  Use copy_phi_args.
9033         (create_duplicates): Use fix_duplicate_block_edges.
9034         (fixup_template_block): Likewise.
9035         (redirect_edges): If necessary, redirect the joiner block's incoming
9036         edge to the duplicate of the joiner block.
9037         (thread_block): Don't muck up loops when threading through a joiner
9038         block.
9039         (thread_through_loop_header): Handle threading through a joiner block.
9040         (mark_threaded_blocks, register_jump_thread): Likewise.
9041         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9042         updated.
9043         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9044         (thread_across_edge): Handle threading through a joiner block.
9045
9046 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9047
9048         PR tree-optimization/49343
9049         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9050         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9051
9052 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9053
9054         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9055         inside RTX_CODE ifdef.
9056
9057 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9058
9059         PR target/45098
9060         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9061         Disallow NULL pointer for pointer arithmetic.
9062
9063 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9064
9065         PR target/49398
9066         Revert.
9067         2011-06-10  Wei Guozhi  <carrot@google.com>
9068
9069         PR target/45335
9070         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9071         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9072         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9073         related peephole2.
9074         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9075         related peephole2.
9076         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9077         (arm_legitimate_ldrd_p): New prototype.
9078         (arm_output_ldrd): New prototype.
9079         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9080         (arm_legitimate_ldrd_p): New function.
9081         (arm_output_ldrd): New function.
9082
9083 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9084
9085         PR middle-end/46500
9086         * doc/tm.texi.in: Update Copyright date.
9087         * doc/tm.texi: Regenerate.
9088         * targhooks.c (default_setup_incoming_varargs): Replace
9089         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9090         (default_pretend_outgoing_varargs_named): Likewise.
9091         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9092         (hook_callee_copies_named): Likewise.
9093         (default_function_arg_advance): Likewise.
9094         (default_function_arg): Likewise.
9095         (default_function_incoming_arg): Likewise.
9096         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9097         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9098         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9099         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9100         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9101         * targhooks.h (default_setup_incoming_varargs): Likewise.
9102         (default_pretend_outgoing_varargs_named): Likewise.
9103         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9104         (hook_callee_copies_named): Likewise.
9105         (default_function_arg_advance): Likewise.
9106         (default_function_arg): Likewise.
9107         (default_function_incoming_arg): Likewise.
9108         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9109         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9110         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9111         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9112         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9113         * target.def (pass_by_reference): Likewise.
9114         (setup_incoming_varargs, strict_argument_naming): Likewise.
9115         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9116         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9117         (function_incoming_arg): Likewise.
9118         * target.h: Don't include "tm.h" .
9119         (cumulative_args_t): New typedef.
9120         [GCC_TM_H] (get_cumulative_args): New static inline function.
9121         [GCC_TM_H] (pack_cumulative_args): Likewise.
9122         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9123         argument type with cumulative_args_t.
9124         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9125         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9126         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9127         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9128         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9129         (frv_function_arg_1): Likewise.
9130         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9131         (s390_function_arg_advance, s390_function_arg): Likewise.
9132         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9133         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9134         (m32c_strict_argument_naming): Likewise.
9135         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9136         (spu_function_arg_advance): Likewise.
9137         (spu_setup_incoming_varargs): Likewise.  Make static.
9138         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9139         Remove prototype.
9140         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9141         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9142         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9143         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9144         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9145         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9146         (mep_pass_by_reference, mep_function_arg): Likewise.
9147         (mep_function_arg_advance): Likewise.
9148         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9149         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9150         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9151         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9152         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9153         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9154         (ix86_setup_incoming_varargs): Likewise.
9155         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9156         (sh_strict_argument_naming): Likewise.
9157         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9158         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9159         (sh_function_arg_advance, sh_function_arg): Likewise.
9160         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9161         (pdp11_function_arg_advance): Likewise.
9162         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9163         Likewise.
9164         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9165         * config/avr/avr.c (avr_function_arg): Likewise.
9166         (avr_function_arg_advance): Likewise.
9167         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9168         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9169         (xtensa_function_arg_1): Likewise.
9170         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9171         Likewise.
9172         (xstormy16_function_arg): Likewise.
9173         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9174         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9175         (fr30_function_arg_advance): Likewise.
9176         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9177         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9178         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9179         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9180         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9181         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9182         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9183         (cris_function_arg, cris_function_incoming_arg): Likewise.
9184         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9185         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9186         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9187         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9188         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9189         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9190         (mn10300_arg_partial_bytes): Likewise.
9191         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9192         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9193         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9194         (ia64_function_arg_1): Likewise.
9195         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9196         (m68k_function_arg): Likewise.
9197         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9198         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9199         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9200         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9201         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9202         (picochip_arg_advance): Likewise.
9203         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9204         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9205         (mcore_function_arg_advance): Likewise.
9206         * config/score/score.c (score_pass_by_reference): Likewise.
9207         (score_function_arg_advance): Likewise.
9208         (score_arg_partial_bytes): Likewise.  Make static.
9209         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9210         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9211         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9212         (arm_function_arg, arm_function_arg_advance): Likewise.
9213         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9214         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9215         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9216         (pa_function_arg): Likewise.
9217         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9218         (mips_function_arg, mips_function_arg_advance): Likewise.
9219         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9220         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9221         * config/vax/vax.c (vax_function_arg): Likewise.
9222         (vax_function_arg_advance): Likewise.
9223         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9224         (h8300_function_arg_advance): Likewise.
9225         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9226         (v850_strict_argument_naming, v850_function_arg): Likewise.
9227         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9228         (v850_setup_incoming_varargs): Likewise.
9229         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9230         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9231         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9232         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9233         with const void *.
9234         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9235         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9236         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9237         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9238         * calls.c (emit_call_1): Change type of args_so_far to
9239         cumulative_args_t.  Changed all callers.
9240         (initialize_argument_information): Likewise.
9241         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9242         * dse.c (get_call_args): Likewise.
9243         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9244         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9245         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9246         New member args_so_far_v.  Changed all users.
9247         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9248         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9249         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9250         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9251         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9252         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9253         Likewise.
9254         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9255         m32r_pass_by_reference.
9256
9257 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9258
9259         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9260         argument to be a VEC of statements.
9261         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9262         assert that pattern statements have to have their vector type set.
9263         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9264         Change the first argument to be a VEC of statements.  Update
9265         documentation.
9266         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9267         (vect_handle_widen_mult_by_const): New function.
9268         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9269         VEC of statements.  Update documentation.  Check that the constant is
9270         INTEGER_CST.  Support multiplication by a constant that fits an
9271         intermediate type - call vect_handle_widen_mult_by_const.
9272         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9273         call.  Handle additional pattern statements if necessary.
9274
9275 2011-06-16  Nick Clifton  <nickc@redhat.com>
9276
9277         PR target/49427
9278         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9279         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9280         md_file, extra_modes, out_file and extra_options are these are all
9281         deduced from cpu_type.
9282
9283 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9284
9285         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9286         truncation mask to 63.
9287
9288 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9289
9290         PR target/49313
9291         PR target/29524
9292         * longlong.h: Add AVR support:
9293         (count_leading_zeros): New macro.
9294         (count_trailing_zeros): New macro.
9295         (COUNT_LEADING_ZEROS_0): New macro.
9296         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9297         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9298         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9299         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9300         (LIB2FUNCS_EXCLUDE): Add _clz.
9301         * config/avr/libgcc.S (XCALL): Move up in file.
9302         (XJMP): New C Macro.
9303         (DEFUN): New asm macro.
9304         (ENDF): New asm macro.
9305         (__ffssi2): New function.
9306         (__ffshi2): New function.
9307         (__loop_ffsqi2): New function.
9308         (__ctzsi2): New function.
9309         (__ctzhi2): New function.
9310         (__clzdi2): New function.
9311         (__clzsi2): New function.
9312         (__clzhi2): New function.
9313         (__paritydi2): New function.
9314         (__paritysi2): New function.
9315         (__parityhi2): New function.
9316         (__parityqi2): New function.
9317         (__popcounthi2): New function.
9318         (__popcountsi2): New function.
9319         (__popcountdi2): New function.
9320         (__popcountqi2): New function.
9321         (__bswapsi2): New function.
9322         (__bswapdi2): New function.
9323         (__ashldi3): New function.
9324         (__ashrdi3): New function.
9325         (__lshrdi3): New function.
9326         Fix suspicous lines.
9327
9328 2011-06-16  Richard Guenther  <rguenther@suse.de>
9329
9330         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9331         the same as x != 0.
9332         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9333         to (bool) X & 1.
9334         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9335         equality compares against zero for the lower bit.
9336
9337 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
9338
9339         PR tree-optimization/49419
9340         * tree-vrp.c (execute_vrp): Call init_range_assertions
9341         before estimate_numbers_of_iterations, call
9342         free_number_of_iterations_estimates before calling
9343         remove_range_assertions.
9344
9345 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9346
9347         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9348         (struct partial_schedule): Add rows_length field.
9349         (verify_partial_schedule): Check rows_length.
9350         (ps_insert_empty_row): Handle rows_length.
9351         (create_partial_schedule): Likewise.
9352         (free_partial_schedule): Likewise.
9353         (reset_partial_schedule): Likewise.
9354         (create_ps_insn): Remove rest_count argument.
9355         (remove_node_from_ps): Update rows_length.
9356         (add_node_to_ps): Update rows_length and call create_ps_insn
9357         without passing row_rest_count.
9358         (rotate_partial_schedule): Update rows_length.
9359
9360 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9361
9362         * ddg.c (add_intra_loop_mem_dep): New function.
9363         (build_intra_loop_deps): Call it.
9364
9365 2011-06-13  Jeff Law  <law@redhat.com>
9366
9367         * df-problems.c (df_lr_local_compute): Manually CSE
9368         PIC_OFFSET_TABLE_REGNUM.
9369         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9370         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9371
9372 2011-06-13  Jan Hubicka  <jh@suse.cz>
9373
9374         * cgraphunit.c (handle_alias_pairs): New function.
9375         (cgraph_finalize_compilation_unit): Use it.
9376         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9377         as externally visible.
9378
9379 2011-06-15  Richard Guenther  <rguenther@suse.de>
9380
9381         * expr.c (expand_expr_real_2): Reduce all integral types to
9382         bitfield precision.
9383         (expand_expr_real_1): Likewise.
9384
9385 2011-06-15  Martin Jambor  <mjambor@suse.cz>
9386
9387         PR tree-optimization/48613
9388         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9389         ipa_node_params_vector is NULL.
9390
9391 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
9392
9393         PR debug/49382
9394         * dwarf2out.c (dw_loc_list_node): Add force field.
9395         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9396         location in the list, even if it is modified before first real insn.
9397         (output_loc_list): Emit empty ranges with force flag set.
9398         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9399
9400 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
9401
9402         PR target/49349
9403         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9404         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
9405         above a fence.  Update comments.
9406         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9407         placed just above it.  Do not allow NULL place_to_insert.
9408
9409 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
9410
9411         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9412         (slpeel_tree_peel_loop_to_edge): Don't call
9413         remove_dead_stmts_from_loop.
9414         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9415         remove irrelevant pattern statements.  For irrelevant statements
9416         check if it is the last statement of a detected pattern, use
9417         corresponding pattern statement instead.
9418         (destroy_loop_vec_info): No need to remove pattern statements,
9419         only free stmt_vec_info.
9420         (vect_transform_loop): For irrelevant statements check if it is
9421         the last statement of a detected pattern, use corresponding
9422         pattern statement instead.
9423         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9424         pattern statements.  Set basic block for the new statement.
9425         (vect_pattern_recog): Update documentation.
9426         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9427         operands of pattern statements.
9428         (vectorizable_call): Fix printing.  In case of a pattern statement
9429         use the lhs of the original statement when creating a dummy
9430         statement to replace the original call.
9431         (vect_analyze_stmt): For irrelevant statements check if it is
9432         the last statement of a detected pattern, use corresponding
9433         pattern statement instead.
9434         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9435         statements use gsi of the original statement.
9436
9437 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9438
9439         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9440         common/common-target-def.h.
9441         * target.def (default_target_flags, handle_option,
9442         supports_split_stack, optimization_table, init_struct,
9443         except_unwind_info, unwind_tables_default, have_named_sections):
9444         Move to common/common-target.def.
9445         * target.h (enum opt_levels, struct default_options): Move to
9446         common/common-target.h.
9447         * targhooks.c (default_except_unwind_info,
9448         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9449         default_target_handle_option, empty_optimization_table): Move to
9450         common/common-targhooks.c.
9451         * targhooks.h (default_except_unwind_info,
9452         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9453         default_target_handle_option, empty_optimization_table): Move to
9454         common/common-targhooks.h.
9455         * common/common-target-def.h: Include common/common-targhooks.h.
9456         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9457         defined.
9458         * common/common-target.def (handle_option, option_init_struct,
9459         option_optimization_table, default_target_flags,
9460         except_unwind_info, supports_split_stack, unwind_tables_default,
9461         have_named_sections): Move from target.def.
9462         (HOOK_PREFIX): Undefine at end of file.
9463         * common/common-target.h: Include input.h.
9464         (enum opt_levels, struct default_options): Move from target.h.
9465         * common/common-targhooks.c, common/common-targhooks.h: New.
9466         * config.gcc (target_has_targetm_common): Default to yes.
9467         (moxie*): Set target_has_targetm_common=no.
9468         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9469         * doc/tm.texi: Regenerate.
9470         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9471         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9472         (GCC_OBJS): Remove vec.o.
9473         (OBJS): Remove hooks.o and vec.o.
9474         (OBJS-libcommon-target): Add vec.o, hooks.o and
9475         common/common-targhooks.o.
9476         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9477         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9478         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9479         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9480         Update dependencies.
9481         (common/common-targhooks.o): New.
9482         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9483         * common/config/pa/pa-common.c: Include more headers.  Take
9484         copyright dates from pa.c.
9485         (pa_option_optimization_table, pa_handle_option,
9486         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9487         TARGET_HANDLE_OPTION): Move from pa.c.
9488         * common/config/alpha/alpha-common.c,
9489         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9490         common/config/bfin/bfin-common.c,
9491         common/config/cris/cris-common.c,
9492         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9493         common/config/h8300/h8300-common.c,
9494         common/config/i386/i386-common.c,
9495         common/config/ia64/ia64-common.c,
9496         common/config/iq2000/iq2000-common.c,
9497         common/config/lm32/lm32-common.c,
9498         common/config/m32c/m32c-common.c,
9499         common/config/m32r/m32r-common.c,
9500         common/config/m68k/m68k-common.c,
9501         common/config/mcore/mcore-common.c,
9502         common/config/mep/mep-common.c,
9503         common/config/microblaze/microblaze-common.c,
9504         common/config/mips/mips-common.c,
9505         common/config/mmix/mmix-common.c,
9506         common/config/mn10300/mn10300-common.c,
9507         common/config/pdp11/pdp11-common.c,
9508         common/config/picochip/picochip-common.c,
9509         common/config/rs6000/rs6000-common.c,
9510         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9511         common/config/score/score-common.c, common/config/sh/sh-common.c,
9512         common/config/sparc/sparc-common.c,
9513         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9514         common/config/vax/vax-common.c,
9515         common/config/xstormy16/xstormy16-common.c,
9516         common/config/xtensa/xtensa-common.c: New.
9517         * config/alpha/alpha.c: Include common/common-target.h.
9518         (alpha_option_optimization_table, alpha_handle_option,
9519         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9520         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9521         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9522         * config/arm/arm.c (arm_option_optimization_table,
9523         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9524         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9525         arm-common.c.
9526         * config/avr/avr.c (avr_option_optimization_table,
9527         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9528         to avr-common.c.
9529         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9530         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9531         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9532         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9533         * config/cris/cris.c (cris_option_optimization_table,
9534         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9535         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9536         cris-common.c.
9537         * config/fr30/fr30.c (fr30_option_optimization_table,
9538         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9539         to fr30-common.c.
9540         * config/frv/frv.c (frv_option_optimization_table,
9541         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9542         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9543         * config/h8300/h8300.c (h8300_option_optimization_table,
9544         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9545         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9546         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9547         * config/i386/i386.c: Include common/common-target.h.
9548         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9549         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9550         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9551         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9552         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9553         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9554         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9555         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9556         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9557         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9558         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9559         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9560         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9561         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9562         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9563         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9564         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9565         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9566         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9567         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9568         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9569         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9570         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9571         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9572         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9573         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9574         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9575         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9576         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9577         ix86_option_optimization_table, ix86_option_init_struct,
9578         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9579         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9580         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9581         i386-common.c.
9582         * config/i386/t-i386 (i386.o): Update dependencies.
9583         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9584         * config/ia64/ia64.c (ia64_option_optimization_table,
9585         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9586         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9587         ia64_handle_option): Move to ia64-common.c.
9588         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9589         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9590         * config/lm32/lm32.c (lm32_option_optimization_table,
9591         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9592         to lm32-common.c.
9593         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9594         m32c-common.c.
9595         * config/m32r/m32r.c (m32r_option_optimization_table,
9596         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9597         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9598         m32r_handle_option): Move to m32r-common.c.
9599         (m32r_memory_move_cost): Remove comment referring to
9600         TARGET_HANDLE_OPTION.
9601         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9602         Move to m68k-common.c.
9603         * config/mcore/mcore.c (mcore_option_optimization_table,
9604         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9605         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9606         * config/mep/mep.c (mep_option_optimization_table,
9607         mep_handle_option, TARGET_HANDLE_OPTION,
9608         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9609         Move to mep-common.c.
9610         * config/microblaze/microblaze.c
9611         (microblaze_option_optimization_table,
9612         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9613         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9614         * config/mips/mips.c (mips_handle_option,
9615         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9616         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9617         mips-common.c.
9618         * config/mmix/mmix.c (mmix_option_optimization_table,
9619         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9620         Move to mmix-common.c.
9621         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9622         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9623         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9624         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9625         * config/pa/pa.c: Include common/common-target.h.
9626         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9627         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9628         pa_handle_option): Move to pa-common.c.
9629         (pa_option_override): Use targetm_common.except_unwind_info.
9630         (pa_asm_output_mi_thunk, pa_function_section): Use
9631         targetm_common.have_named_sections.
9632         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9633         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9634         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9635         pdp11_handle_option, pdp11_option_init_struct): Move to
9636         pdp11-common.c.
9637         * config/picochip/picochip.c (picochip_option_optimization_table,
9638         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9639         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9640         * config/rs6000/rs6000.c: Include common/common-target.h.
9641         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9642         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9643         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9644         rs6000_handle_option): Move to rs6000-common.c.
9645         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9646         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9647         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9648         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9649         * config/s390/s390.c (processor_flags_table,
9650         s390_option_optimization_table, s390_option_init_struct,
9651         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9652         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9653         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9654         * config/s390/s390.h (processor_flags_table): Declare.
9655         * config/score/score.c (score_option_optimization_table,
9656         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9657         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9658         score_handle_option): Move to score-common.c.
9659         * config/sh/sh.c (sh_option_optimization_table,
9660         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9661         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9662         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9663         * config/sparc/sparc.c: Include common/common-target.h.
9664         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9665         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9666         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9667         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9668         spu_option_init_struct): Move to spu-common.c.
9669         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9670         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9671         * config/v850/v850.c (small_memory_physical_max,
9672         v850_handle_memory_optionn v850_handle_option,
9673         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9674         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9675         v850-common.c.
9676         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9677         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9678         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9679         Move to xtensa-common.c.
9680         * cfglayout.c: Include common/common-target.h.
9681         (fixup_reorder_chain): Use targetm_common.have_named_sections.
9682         * cfgrtl.c: Include common/common-target.h.
9683         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9684         targetm_common.have_named_sections.
9685         * dbxout.c: Include common/common-target.h.
9686         (dbxout_function_end): Use targetm_common.have_named_sections.
9687         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9688         targetm_common.except_unwind_info.
9689         * dwarf2out.c: Include common/common-target.h.
9690         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9691         dwarf2out_begin_prologue, dwarf2out_frame_init,
9692         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9693         targetm_common.except_unwind_info.
9694         * except.c: Include common/common-target.h.
9695         (init_eh, finish_eh_generation,
9696         output_one_function_exception_table): Use
9697         targetm_common.except_unwind_info.
9698         (switch_to_exception_section): Use targetm_common.have_named_sections.
9699         * explow.c: Include common/common-target.h.
9700         * expr.c: Include common/common-target.h.
9701         (build_personality_function): Use targetm_common.except_unwind_info.
9702         * function.c: Include common/common-target.h.
9703         (expand_function_end): Use targetm_common.except_unwind_info.
9704         * haifa-sched.c: Include common/common-target.h.
9705         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9706         * lto-opts.c: Include common/common-target.h instead of target.h.
9707         (lto_reissue_options): Use targetm_common.handle_option.
9708         * opts.c: Include common/common-target.h.
9709         (target_handle_option): Use targetm_common.handle_option.
9710         (init_options_struct): Update comment referring to
9711         targetm.target_option.optimization.  Use
9712         targetm_common.default_target_flags,
9713         targetm_common.unwind_tables_default and
9714         targetm_common.option_init_struct.
9715         (default_options_optimization): Use
9716         targetm_common.option_optimization_table.
9717         (finish_options): Use targetm_common.except_unwind_info,
9718         targetm_common.unwind_tables_default,
9719         targetm_common.have_named_sections and
9720         targetm_common.supports_split_stack.
9721         * toplev.c: Include common/common-target.h.
9722         (process_options): Use targetm_common.have_named_sections.
9723         * tree-tailcall.c: Include common/common-target.h.
9724         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9725         * tree.c: Include common/common-target.h.
9726         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9727         * varasm.c: Include common/common-target.h.
9728         (resolve_unique_section, hot_function_section,
9729         default_function_section): Use targetm_common.have_named_sections.
9730
9731 2011-06-14  Easwaran Raman  <eraman@google.com>
9732
9733         PR rtl-optimization/44194
9734         * dse.c: Include tree-flow.h
9735         (insn_info): Add new field non_frame_wild_read.
9736         (group_info): Add new fields escaped_n and escaped_p.
9737         (kill_on_calls): New variable.
9738         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9739         (dse_step0): Initialize kill_on_calls.
9740         (can_escape): New function.
9741         (set_usage_bits): Add additional parameter; record information
9742         about escaped locations.
9743         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9744         (dse_step2_nospill): Set kill_on_calls based on
9745         group->escaped_n and group->escaped_n.
9746         (add_wild_read): Refactor into...
9747         (reset_active_stores): ... New function, and
9748         (free_read_records): ... New function.
9749         (add_non_frame_wild_read): New function.
9750         (scan_insn): Call add_non_frame_wild_read on non-const calls.
9751         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9752         (dse_step5_nospill): Call scan_reads_nospill for instructions
9753         marked as non_frame_wild_read.
9754         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9755
9756 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9757
9758         * common/common-target-def.h, common/common-target.def,
9759         common/common-target.h, common/config/default-common.c,
9760         common/config/pa/pa-common.c: New files.
9761         * Makefile.in (common_out_file, common_out_object_file,
9762         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9763         (OBJS-libcommon-target): Include $(common_out_object_file).
9764         (prefix.o): Update dependencies.
9765         ($(common_out_object_file), common/common-target-hooks-def.h,
9766         s-common-target-hooks-def-h): New.
9767         (s-tm-texi): Also check timestamp on common-target.def.
9768         (build/genhooks.o): Update dependencies.
9769         * config.gcc (common_out_file, target_has_targetm_common): Define.
9770         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9771         TARGET_ALWAYS_STRIP_DOTDOT.
9772         * configure.ac (common_out_object_file): Define.
9773         (common_out_file, common_out_object_file): Substitute.
9774         (common): Create directory.
9775         * configure: Regenerate.
9776         * doc/tm.texi.in (targetm_common): Document.
9777         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9778         * doc/tm.texi: Regenerate.
9779         * genhooks.c (hook_array): Also include common/common-target.def.
9780         * prefix.c (tm.h): Don't include.
9781         (common/common-target.h): Include.
9782         (ALWAYS_STRIP_DOTDOT): Don't define.
9783         (update_path): Use targetm_common.always_strip_dotdot instead of
9784         ALWAYS_STRIP_DOTDOT.
9785         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9786
9787 2011-06-14  David Li  <davidxl@google.com>
9788
9789         * passes.c (execute_function_todo): Remove TODO_dump_func.
9790         (execute_one_pass): Remove TODO_dump_func.
9791         (execute_function_dump): New function.
9792         * tree-vrp.c: Remove TODO_dump_func.
9793         * regrename.c: Remove TODO_dump_func.
9794         * fwprop.c: Remove TODO_dump_func.
9795         * tree-into-ssa.c: Remove TODO_dump_func.
9796         * tree-complex.c: Remove TODO_dump_func.
9797         * tracer.c: Remove TODO_dump_func.
9798         * tree-loop-distribution.c: Remove TODO_dump_func.
9799         * postreload-gcse.c: Remove TODO_dump_func.
9800         * postreload.c: Remove TODO_dump_func.
9801         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9802         * tree-tailcall.c: Remove TODO_dump_func.
9803         * ipa-cp.c: Remove TODO_dump_func.
9804         * final.c: Remove TODO_dump_func.
9805         * tree-emutls.c: Remove TODO_dump_func.
9806         * omp-low.c: Remove TODO_dump_func.
9807         * tree-ssa-dse.c: Remove TODO_dump_func.
9808         * tree-ssa-uncprop.c: Remove TODO_dump_func.
9809         * auto-inc-dec.c: Remove TODO_dump_func.
9810         * reorg.c: Remove TODO_dump_func.
9811         * tree-ssa-copyrename.c: Remove TODO_dump_func.
9812         * tree-ssa-ccp.c: Remove TODO_dump_func.
9813         * compare-elim.c: Remove TODO_dump_func.
9814         * mode-switching.c: Remove TODO_dump_func.
9815         * modulo-sched.c: Remove TODO_dump_func.
9816         * tree-call-cdce.c: Remove TODO_dump_func.
9817         * cse.c: Remove TODO_dump_func.
9818         * web.c: Remove TODO_dump_func.
9819         * tree-stdarg.c: Remove TODO_dump_func.
9820         * lto-streamer-out.c: Remove TODO_dump_func.
9821         * tree-ssa-math-opts.c: Remove TODO_dump_func.
9822         * tree-ssa-dom.c: Remove TODO_dump_func.
9823         * tree-nrv.c: Remove TODO_dump_func.
9824         * loop-init.c: Remove TODO_dump_func.
9825         * gimple-low.c: Remove TODO_dump_func.
9826         * ipa-inline.c: Remove TODO_dump_func.
9827         * tree-ssa-sink.c: Remove TODO_dump_func.
9828         * jump.c: Remove TODO_dump_func.
9829         * ifcvt.c: Remove TODO_dump_func.
9830         * tree-ssa-loop.c: Remove TODO_dump_func.
9831         * recog.c: Remove TODO_dump_func.
9832         * dse.c: Remove TODO_dump_func.
9833         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9834         * matrix-reorg.c: Remove TODO_dump_func.
9835         * tree-eh.c: Remove TODO_dump_func.
9836         * regmove.c: Remove TODO_dump_func.
9837         * function.c: Remove TODO_dump_func.
9838         * tree-vectorizer.c: Remove TODO_dump_func.
9839         * ipa-split.c: Remove TODO_dump_func.
9840         * gcse.c: Remove TODO_dump_func.
9841         * tree-if-conv.c: Remove TODO_dump_func.
9842         * init-regs.c: Remove TODO_dump_func.
9843         * tree-ssa-phiopt.c: Remove TODO_dump_func.
9844         * implicit-zee.c: Remove TODO_dump_func.
9845         * lower-subreg.c: Remove TODO_dump_func.
9846         * bt-load.c: Remove TODO_dump_func.
9847         * tree-dfa.c: Remove TODO_dump_func.
9848         * except.c: Remove TODO_dump_func.
9849         * emit-rtl.c: Remove TODO_dump_func.
9850         * store-motion.c: Remove TODO_dump_func.
9851         * cfgexpand.c: Remove TODO_dump_func.
9852         * tree-cfgcleanup.c: Remove TODO_dump_func.
9853         * cfgcleanup.c: Remove TODO_dump_func.
9854         * tree-ssa-pre.c: Remove TODO_dump_func.
9855         * tree-sra.c: Remove TODO_dump_func.
9856         * tree-mudflap.c: Remove TODO_dump_func.
9857         * tree-ssa-copy.c: Remove TODO_dump_func.
9858         * cfglayout.c: Remove TODO_dump_func.
9859         * tree-ssa-forwprop.c: Remove TODO_dump_func.
9860         * tree-ssa-dce.c: Remove TODO_dump_func.
9861         * ira.c: Remove TODO_dump_func.
9862         * tree-ssa.c: Remove TODO_dump_func.
9863         * integrate.c: Remove TODO_dump_func.
9864         * tree-optimize.c: Remove TODO_dump_func.
9865         * tree-ssa-phiprop.c: Remove TODO_dump_func.
9866         * tree-object-size.c: Remove TODO_dump_func.
9867         * combine.c: Remove TODO_dump_func.
9868         * bb-reorder.c: Remove TODO_dump_func.
9869         * cprop.c: Remove TODO_dump_func.
9870         * var-tracking.c: Remove TODO_dump_func.
9871         * tree-profile.c: Remove TODO_dump_func.
9872         * tree-vect-generic.c: Remove TODO_dump_func.
9873         * reg-stack.c: Remove TODO_dump_func.
9874         * sched-rgn.c: Remove TODO_dump_func.
9875         * tree-ssa-structalias.c: Remove TODO_dump_func.
9876         * tree-switch-conversion.c: Remove TODO_dump_func.
9877         * tree-cfg.c: Remove TODO_dump_func.
9878         * tree-ssa-reassoc.c: Remove TODO_dump_func.
9879         * combine-stack-adj.c: Remove TODO_dump_func.
9880         * dce.c: Remove TODO_dump_func.
9881         * tree-ssanames.c: Remove TODO_dump_func.
9882         * regcprop.c: Remove TODO_dump_func.
9883
9884 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9885
9886         PR middle-end/47364
9887         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9888         and properly handle result not in Pmode.
9889
9890 2011-06-14  Robert Millan  <rmh@gnu.org>
9891
9892         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9893         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9894         `config/linux.h'.
9895
9896         * config/i386/kfreebsd-gnu64.h: New file.
9897         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9898         with `i386/kfreebsd-gnu64.h'.
9899
9900         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9901         (GNU_USER_LINK_EMULATION64): New macros.
9902         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9903         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9904         of hardcoding `elf_i386' and `elf_x86_64'.
9905
9906 2011-06-14  Nick Clifton  <nickc@redhat.com>
9907
9908         PR target/49403
9909         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9910
9911         PR target/49402
9912         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9913
9914 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
9915
9916         PR fortran/49103
9917         * tree.h (DECL_NONSHAREABLE): Define.
9918         (struct tree_decl_common): Change decl_common_unused to
9919         decl_nonshareable_flag.
9920         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9921         Ignore vars with DECL_NONSHAREABLE bit set.
9922         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9923         on stores to automatic aggregate vars.
9924
9925         PR rtl-optimization/49390
9926         Revert:
9927         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9928
9929         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9930         MEM_ALIAS_SET.
9931
9932 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
9933             Tom de Vries  <tom@codesourcery.com>
9934
9935         PR target/45098
9936         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9937         Document changed semantics.
9938         (max_stmt_executions, max_stmt_executions_int): Declare.
9939         * tree-data-ref.c (estimated_loop_iterations)
9940         (estimated_loop_iterations_int): Move functions...
9941         * tree-ssa-loop-niter.c (estimated_loop_iterations)
9942         (estimated_loop_iterations_int): here.
9943         (record_estimate): Change nb_iterations_upper_bound and
9944         nb_iterations_estimate semantics.
9945         (max_stmt_executions, max_stmt_executions_int): New function.
9946         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9947         (max_stmt_executions_tree): this.
9948         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9949         estimated_loop_iterations_tree.
9950         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9951         max_stmt_executions_int instead of estimated_loop_iterations_int.
9952         * predict.c (predict_loops): Idem.
9953         * tree-parloops.c (parallelize_loops): Idem.
9954         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9955         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9956         (init_omega_for_ddr_1): Idem.
9957         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9958         (loop_prefetch_arrays): Idem
9959         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9960         max_stmt_executions instead of estimated_loop_iterations.
9961         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
9962         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
9963         instead of nb_iterations_upper_bound.
9964
9965 2011-06-13  Jan Hubicka  <jh@suse.cz>
9966
9967         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
9968
9969 2011-06-14  Richard Henderson  <rth@redhat.com>
9970
9971         PR debug/48459
9972         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9973         (based_loc_descr): Assert it's true.
9974         (compute_frame_pointer_to_fb_displacement): Set it, rather than
9975         aborting immediately.
9976
9977 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
9978             Mingfeng Wu  <mingfeng@faraday-tech.com>
9979
9980         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
9981
9982 2011-06-13  Jan Hubicka  <jh@suse.cz>
9983
9984         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
9985
9986 2011-06-13  Jan Hubicka  <jh@suse.cz>
9987
9988         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
9989         similarly to DECL_COMDAT.
9990         * cgraphunit.c (cgraph_analyze_function): Likewise.
9991         * ipa.c (function_and_variable_visibility): Likewise.
9992
9993 2011-06-13  Jan Hubicka  <jh@suse.cz>
9994
9995         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
9996         BINFO_VIRTUALS when streaming for ltrans unit.
9997
9998 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
9999
10000         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10001         (movdi_internal64): Same.
10002
10003 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10004
10005         PR target/44618
10006         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10007         a set of similar patterns, where the MATCH_OPERAND for the function
10008         argument is replaced with individual references to hardware registers.
10009         (save_fpregs_<mode>): Ditto
10010         (restore_gpregs_<mode>): Ditto
10011         (return_and_restore_gpregs_<mode>): Ditto
10012         (return_and_restore_fpregs_<mode>): Ditto
10013         (return_and_restore_fpregs_aix_<mode>): Ditto
10014
10015 2011-06-13  Jan Hubicka  <jh@suse.cz>
10016
10017         * ipa-utils.c (postorder_stack): New structure.
10018         (ipa_reverse_postorder): Handle aliases.
10019
10020 2011-06-13  Jan Hubicka  <jh@suse.cz>
10021
10022         * ipa-inline.c (reset_edge_caches): Walk aliases.
10023         (update_caller_keys): Do not test inlinability of aliases.
10024         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10025         (do_estimate_growth): Fix typo.
10026
10027 2011-06-13  Jan Hubicka  <jh@suse.cz>
10028
10029         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10030         (can_remove_node_now_p): ... here; handle same comdat groups.
10031         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10032         (inline_call): Update use of can_remove_node_now_p.
10033
10034 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10035
10036         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10037         condition to disallow non-identical memory locations.
10038         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10039         preference to bit manipulation instructions.
10040
10041 2011-06-13  Jan Hubicka  <jh@suse.cz>
10042
10043         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10044         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10045         (nonremovable_p): New function.
10046         (cgraph_can_remove_if_no_direct_calls_p): New function.
10047         (used_from_object_file_p): New functoin.
10048         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10049         references from aliases.
10050         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10051         * ipa-inline.c (check_caller_edge): New function.
10052         (want_inline_function_called_once_p): Use it; accept aliases called
10053         once, too.
10054         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10055
10056 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10057
10058         PR target/48454
10059         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10060         correctly for the case with Quad vectors.
10061
10062 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10063            Ira Rosen  <ira.rosen@linaro.org>
10064
10065         PR tree-optimization/49352
10066         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10067         all, make sure loop_use_stmt after the loop is a def stmt of a used
10068         SSA_NAME that is the only one defined inside of the loop.  Don't
10069         check for COND_EXPR and GIMPLE_BINARY_RHS.
10070         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10071         check_reduction is true.
10072
10073 2011-06-11  Jan Hubicka  <jh@suse.cz>
10074
10075         PR middle-end/49373
10076         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10077
10078 2011-06-11  Jan Hubicka  <jh@suse.cz>
10079
10080         PR middle-end/48836
10081         * ipa-inline-transform.c: Include tree-pass.h
10082         (inline_transform): Set TODO_update_ssa_only_virtuals.
10083         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10084
10085 2011-06-11  Jan Hubicka  <jh@suse.cz>
10086
10087         PR middle-end/49378
10088         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10089         aliases and thunks.
10090
10091 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10092
10093         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10094         Take number of iterations to peel into account for equally frequent
10095         misalignment values.
10096
10097 2011-06-11  Jan Hubicka  <jh@suse.cz>
10098
10099         * lto-streamer-out.c (produce_symtab): Stream out the newly
10100         represented aliases.
10101
10102 2011-06-11  Jan Hubicka  <jh@suse.cz>
10103
10104         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10105         varying args.
10106         (ipa_update_after_lto_read): Likewise.
10107         (ipa_write_node_info): Do not sream call_with_var_arguments.
10108         (ipa_read_node_info): Likewise.
10109
10110 2011-06-11  Jan Hubicka  <jh@suse.cz>
10111
10112         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10113
10114 2011-06-11  Jan Hubicka  <jh@suse.cz>
10115
10116         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10117         (lto_symtab_resolve_can_prevail_p): Likewise.
10118         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10119         * cgraph.c (same_body_aliases_done): New global var.
10120         (cgraph_same_body_alias_1): Rename to ...
10121         (cgraph_create_function_alias): ... this one; reorg to new
10122         representation.
10123         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10124         record references when asked to.
10125         (cgraph_add_thunk): Fix formating.
10126         (cgraph_get_node): Kill same body alias code.
10127         (cgraph_node_for_asm): Likewise.
10128         (cgraph_remove_same_body_alias): Remove.
10129         (cgraph_remove_node): Kill same body alias code.
10130         (cgraph_mark_address_taken_node): Mark also the aliased function
10131         as having address taken.
10132         (dump_cgraph_node): Dump same body aliases.
10133         (cgraph_for_node_thunks_and_aliases): Update for new alias
10134         representation.
10135         (cgraph_for_node_and_aliases): Likewise.
10136         * cgraph.h (same_body): Kll pointer.
10137         (same_body_alias): Update comment.
10138         (same_body_aliases_done): Declare.
10139         (cgraph_remove_same_body_alias): Remove declaration.
10140         (cgraph_create_function_alias): Declare.
10141         (cgraph_process_same_body_aliases): Declare.
10142         (cgraph_function_with_gimple_body_p): Check for alias.
10143         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10144         (cgraph_alias_aliased_node): New function.
10145         (cgraph_function_node): Update for new aliases.
10146         (cgraph_function_or_thunk_node): Likewise.
10147         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10148         (inline_call): Remove dead aliases.
10149         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10150         name hack for same body aliases.
10151         (clone_of_p): Look through aliases.
10152         (verify_cgraph_node): Verify aliases.
10153         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10154         (cgraph_process_same_body_aliases): New function.
10155         (process_function_and_variable_attributes): Disable weakref warning on
10156         alias.
10157         (cgraph_analyze_functions): Handle aliases.
10158         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10159         (assemble_thunks): Rename to ...
10160         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10161         (cgraph_expand_function): Remove alias output code.
10162         (cgraph_output_in_order): Skip aliases.
10163         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10164         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10165         (ipa_record_reference): Do not assert on alias references.
10166         (ipa_ref_has_aliases_p): New function.
10167         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10168         (ipa_ref_has_aliases_p): Declare.
10169         * lto-cgraph.c (lto_output_node): Handle aliases.
10170         (input_node): Likewise.
10171         * lto-streamer-out.c (lto_output): Skip aliases.
10172         (produce_symtab): Kill same_body_alias code.
10173         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10174         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10175         * ipa-inline.c (update_caller_keys): Walk aliases.
10176         (inline_small_functions): Fix thinko in previous patch.
10177         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10178         (function_and_variable_visibility): Do not walk same body aliases.
10179         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10180         (ipa_pta_execute): Use it.
10181
10182 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10183
10184         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10185         (*vec_dupv2df): Rename from vec_dupv2df.
10186         (vec_dupv2df): New expander.
10187
10188 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10189
10190         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10191
10192 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10193
10194         * config/i386/i386.md: Use default value in "isa" attribute.
10195         * config/i386/sse.md: Ditto.
10196         * config/i386/mmx.md: Ditto.
10197
10198 2011-06-10  Wei Guozhi  <carrot@google.com>
10199
10200         PR target/45335
10201         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10202         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10203         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10204         related peephole2.
10205         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10206         related peephole2.
10207         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10208         (arm_legitimate_ldrd_p): New prototype.
10209         (arm_output_ldrd): New prototype.
10210         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10211         (arm_legitimate_ldrd_p): New function.
10212         (arm_output_ldrd): New function.
10213
10214 2011-06-10  David Li  <davidxl@google.com>
10215
10216         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10217         * passes.c (passr_eq): New function.
10218         (create_pass_tab): New function.
10219         (pass_traverse): New function.
10220         (dump_one_pass): New function.
10221         (dump_pass_list): New function.
10222         (dump_passes): New function.
10223
10224 2011-06-10  Jan Hubicka  <jh@suse.cz>
10225
10226         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10227         setting the nothrow flag.
10228         * ipa-reference.c (propagate): Skip aliases.
10229         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10230         (propagate_nothrow): Skip aliases; do not update cgraph.
10231         (local_pure_const): Do not update cgraph.
10232         * tree-profile.c (tree_profiling): Do fixup_cfg.
10233
10234 2011-06-10  Jan Hubicka  <jh@suse.cz>
10235
10236         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10237         (cgraph_local_node_p): ... here; handle aliases.
10238         (has_addr_references_p): Break out from ...;
10239         (cgraph_remove_unreachable_nodes) ... here.
10240
10241 2011-06-10  Jan Hubicka  <jh@suse.cz>
10242
10243         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10244         * common.opt (flag_inline_functions_called_once): Do not
10245         initialize to 1.
10246
10247 2011-06-10  Jan Hubicka  <jh@suse.cz>
10248
10249         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10250         (ipcp_initialize_node_lattices): Do not deal with aliases;
10251         Do not try to propagate through thunks.
10252         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10253
10254 2011-06-10  Jan Hubicka  <jh@suse.cz>
10255
10256         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10257         for indirect calls.
10258         (ipa_read_node_info): Likewise.
10259
10260 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10261
10262         PR lto/49302
10263         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10264         (build_and_insert_call): Likewise.
10265         (build_and_insert_ref): New.
10266         (gimple_expand_builtin_pow): Minor cleanup.
10267         (gimple_expand_builtin_cabs): New.
10268         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10269
10270 2011-06-10  Jan Hubicka  <jh@suse.cz>
10271
10272         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10273         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10274         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10275         (ipcp_propagate_stage): Skip aliases when propagating.
10276         (ipcp_need_redirect_p): Skip aliases.
10277         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10278         collect_callers_of_node.
10279         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10280         for aliases.
10281         (ipa_compute_jump_functions): Look through aliases.
10282
10283 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10284
10285         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10286
10287 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10288
10289         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10290         Adjust comments.
10291         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10292
10293 2011-06-10  Jan Hubicka  <jh@suse.cz>
10294
10295         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10296         Update call of gimple_get_virt_method_for_binfo.
10297         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10298         refuse_thunks parameter.
10299         (gimple_fold_call): Update.
10300         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10301
10302 2011-06-10  Jan Hubicka  <jh@suse.cz>
10303
10304         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10305         (not_all_callers_have_enough_arguments_p): ... this one; turn into
10306         worker for cgraph_for_node_and_aliases.
10307         (convert_callers_for_node): Break out from ...
10308         (convert_callers): ... here.
10309         (modify_function): Use collect_callers_of_node.
10310         (ipa_early_sra): Use cgraph_for_node_and_aliases.
10311
10312 2011-06-10  Richard Guenther  <rguenther@suse.de>
10313
10314         PR tree-optimization/49361
10315         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10316         when not already in gimple form.
10317
10318 2011-06-10  Richard Guenther  <rguenther@suse.de>
10319
10320         PR bootstrap/49344
10321         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10322         FOR_EACH_PHI_OR_STMT_USE.
10323
10324 2011-06-10  Jan Hubicka  <jh@suse.cz>
10325
10326         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10327         (clone_inlined_nodes): ... here.
10328         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10329         to real destination prior inlining.
10330         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10331         can_early_inline_edge_p, want_early_inline_function_p,
10332         want_early_inline_function_p, want_inline_small_function_p,
10333         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10334         edge_badness, update_all_callee_keys, lookup_recursive_calls,
10335         add_new_edges_to_heap, inline_small_functions, flatten_function,
10336         inline_always_inline_functions, early_inline_small_functions): Use
10337         cgraph_function_or_thunk_node.
10338         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10339         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10340         (do_estimate_edge_growth_1): Break out from ...
10341         (do_estimate_growth) ... here; walk aliases.
10342         (inline_generate_summary): Skip aliases.
10343
10344 2011-06-10  Richard Guenther  <rguenther@suse.de>
10345
10346         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10347         forward when combining, visit inserted stmts when a stmt was changed.
10348
10349 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10350
10351         * tree.h (error_operand_p): Add.
10352         * dbxout.c (dbxout_type_fields): Use the latter.
10353         * c-decl.c (add_stmt): Likewise.
10354         * gimplify.c (omp_add_variable, omp_notice_variable,
10355         gimplify_scan_omp_clauses): Likewise.
10356
10357 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10358
10359         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10360         when a value is actually passed in regs.
10361
10362 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
10363             Laurent Rougé  <laurent.rouge@menta.fr>
10364
10365         * doc/invoke.texi (SPARC options): Add -mflat.
10366         * config/sparc/sparc.opt: Likewise.
10367         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10368         (sparc_flat_expand_prologue): Declare.
10369         (sparc_flat_expand_epilogue): Likewise.
10370         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10371         (CPP_ENDIAN_SPEC): Replace with...
10372         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
10373         (CPP_SPEC): Adjust to above change.
10374         (EXTRA_SPECS): Likewise.
10375         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10376         (INCOMING_REGNO): Likewise.
10377         (OUTGOING_REGNO): Likewise.
10378         (LOCAL_REGNO): Likewise.
10379         (SETUP_FRAME_ADDRESSES): Likewise.
10380         (FIXED_REGISTERS): Set 0 for %fp.
10381         (CALL_USED_REGISTERS): Likewise.
10382         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10383         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10384         (RETURN_ADDR_REGNUM): Define.
10385         (RETURN_ADDR_RTX): Use it.
10386         (INCOMING_RETURN_ADDR_REGNUM): Define.
10387         (INCOMING_RETURN_ADDR_RTX): Use it.
10388         (DWARF_FRAME_RETURN_COLUMN): Likewise.
10389         (EH_RETURN_REGNUM): Define.
10390         (EH_RETURN_STACKADJ_RTX): Use it.
10391         (EH_RETURN_HANDLER_RTX): Delete.
10392         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10393         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10394         Delete.
10395         (struct machine_function): Add frame_size, apparent_frame_size,
10396         frame_base_reg, frame_base_offset, n_global_fp_regs and
10397         save_local_in_regs_p fields.
10398         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10399         sparc_frame_base_offset, sparc_n_global_fp_regs,
10400         sparc_save_local_in_regs_p): New macros.
10401         (sparc_option_override): Error out if -fcall-saved-REG is specified
10402         for Out registers.
10403         (eligible_for_restore_insn): Fix formatting.
10404         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
10405         (eligible_for_sibcall_delay): Likewise.
10406         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10407         (sparc_legitimate_address_p): Adjust to above change.
10408         (save_global_or_fp_reg_p): New predicate.
10409         (return_addr_reg_needed_p): Likewise.
10410         (save_local_or_in_reg_p): Likewise.
10411         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
10412         (SORR_SAVE, SORR_RESTORE): Delete.
10413         (sorr_pred_t): New typedef.
10414         (sorr_act_t): New enum.
10415         (save_or_restore_regs): Rename to...
10416         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
10417         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10418         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
10419         mechanism.  Add CFI information for double-word saves in 32-bit mode.
10420         (emit_adjust_base_to_offset): New function extracted from...
10421         (emit_save_or_restore_regs): ...this.  Rename the rest to...
10422         (emit_save_or_restore_regs_global_fp_regs): ...this.
10423         (emit_save_or_restore_regs_local_in_regs): New function.
10424         (gen_create_flat_frame_[123]): New functions.
10425         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
10426         (sparc_flat_expand_prologue): New function.
10427         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10428         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
10429         (sparc_flat_expand_epilogue): New function.
10430         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10431         (output_return): Likewise.
10432         (output_sibcall): Likewise.
10433         (sparc_output_mi_thunk): Likewise.
10434         (sparc_frame_pointer_required): Likewise.
10435         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10436         function optimization.
10437         * config/sparc/sparc.md (flat): New attribute.
10438         (prologue): Add TARGET_FLAT handling.
10439         (save_register_window): Disable if TARGET_FLAT.
10440         (create_flat_frame_[123]): New patterns.
10441         (epilogue): Add TARGET_FLAT handling.
10442         (sibcall_epilogue): Likewise.
10443         (eh_return): New expander.
10444         (eh_return_internal): New insn and splitter.
10445         (return_internal): Add TARGET_FLAT handling.
10446         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10447         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10448         (nonlocal_goto): Add TARGET_FLAT handling.
10449         * config/sparc/t-elf: Add -mflat multilib.
10450         * config/sparc/t-leon: Likewise.
10451
10452 2011-06-10  Jan Hubicka  <jh@suse.cz>
10453
10454         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10455         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10456         (self_recursive_p): Use cgraph_function_node.
10457         (propagate_pure_const): Likewise.
10458         (propagate_nothrow): Likewise.
10459         * ipa-reference.c (ipa_reference_get_not_read_global): Use
10460         cgraph_function_node.
10461         (propagate_bits): Likewise.
10462         (propagate): Likewise.
10463
10464 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10465             Richard Earnshaw  <rearnsha@arm.com>
10466
10467         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10468         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10469         (*thumb2_movdi_vfp): Delete.
10470         (*arm_movdi_vfp_cortexa8): Delete.
10471         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10472         (*movdi_vfp_cortexa8): Likewise.
10473
10474 2011-06-10  Richard Guenther  <rguenther@suse.de>
10475
10476         * stor-layout.c (initialize_sizetypes): Give names to all
10477         sizetype kinds.
10478
10479 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10480
10481         PR tree-optimization/49318
10482         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10483         irrelevant pattern statements.
10484
10485 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10486
10487         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10488
10489         PR bootstrap/49354
10490         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10491         to last assignment.
10492
10493 2011-06-09  Jan Hubicka  <jh@suse.cz>
10494
10495         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10496         do not recompute reachable flag.
10497         (cgraph_finalize_function, cgraph_analyze_functions): Set
10498         redefined_extern_inline here.
10499
10500 2011-06-09  Jan Hubicka  <jh@suse.cz>
10501
10502         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10503         (cgraph_only_called_directly_p): ... this one; bring offline.
10504         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10505         varpool_used_from_object_file_p): Drop names from the declaratoin.
10506         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10507         collect_callers_of_node): New.
10508         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10509         (cgraph_edge_recursive_p): Use cgraph_function_node.
10510         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10511         (cgraph_node_cannot_be_local_p_1): Break out from ...
10512         (cgraph_node_can_be_local_p): ... here; walk aliases.
10513         (cgraph_for_node_thunks_and_aliases): New function.
10514         (cgraph_for_node_and_aliases): New function.
10515         (cgraph_make_node_local_1): Break out from ...
10516         (cgraph_make_node_local) ... here; use
10517         cgraph_for_node_thunks_and_aliases.
10518         (cgraph_set_nothrow_flag_1): Break out from ...
10519         (cgraph_set_nothrow_flag) ... here;
10520         use cgraph_for_node_thunks_and_aliases.
10521         (cgraph_set_const_flag_1): Break out from ...
10522         (cgraph_set_const_flag) ... here;
10523         use cgraph_for_node_thunks_and_aliases.
10524         (cgraph_set_pure_flag_1): Break out from ...
10525         (cgraph_set_pure_flag) ... here;
10526         use cgraph_for_node_thunks_and_aliases.
10527         (cgraph_propagate_frequency_1): Break out from ...
10528         (cgraph_propagate_frequency) ... here; use
10529         cgraph_for_node_thunks_and_aliases.
10530         (cgraph_used_from_object_file_p): Do not care about aliases.
10531         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10532         New functions.
10533         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10534
10535 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10536
10537         PR rtl-optimization/49154
10538         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10539         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10540         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10541         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10542         * config/cris/cris.h (cris_register_move_cost): Remove
10543         !TARGET_V32 code.  Tweak comments.
10544
10545 2011-06-09  Jan Hubicka  <jh@suse.cz>
10546
10547         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10548         address taken.
10549
10550 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10551
10552         PR rtl-optimization/49154
10553         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10554         is a matching slot in the hashtable, assign it to classes_ptr.
10555
10556         PR rtl-optimization/49154
10557         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10558         register classes.
10559         * doc/tm.texi: Regenerate.
10560
10561 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10562
10563         PR target/49307
10564         * config/sh/sh.md (UNSPEC_CHKADD): New.
10565         (chk_guard_add): New define_insn_and_split.
10566         (symGOT_load): Use chk_guard_add instead of blockage.
10567
10568 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10569
10570         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10571
10572 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10573
10574         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10575
10576 2011-06-09  Wei Guozhi  <carrot@google.com>
10577
10578         PR target/46975
10579         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10580         (peephole2 for conditional move): Generate 16 bit instructions.
10581
10582 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10583
10584         * config/i386/i386.md (*movdi_internal_rex64): Merge
10585         alternatives 6 and 8.
10586
10587 2011-06-09  David Li  <davidxl@google.com>
10588
10589         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10590         * passes.c (passr_eq): New function.
10591         (create_pass_tab): New function.
10592         (pass_traverse): New function.
10593         (dump_one_pass): New function.
10594         (dump_pass_list): New function.
10595         (dump_passes): New function.
10596
10597 2011-06-09  David Li  <davidxl@google.com>
10598
10599         * tree-complex.c (tree_lower_complex): Gate cleanup.
10600         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10601         (execute_optimize_stdarg): Ditto.
10602         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10603         (execute_cleanup_eh_1): Ditto.
10604         (execute_cleanup_eh): Ditto.
10605         * gcse.c (gate_rtl_pre): Ditto.
10606         (execute_rtl_pre): Ditto.
10607         * except.c (finish_eh_generation): Ditto.
10608         (convert_to_eh_region_ranges): Ditto.
10609         * cprop.c (one_cprop_pass): Ditto.
10610
10611 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10612
10613         PR target/48673
10614         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10615         in all basic blocks.
10616
10617 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10618
10619         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10620         (HAVE_ENABLE_EXECUTE_STACK): Define.
10621         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10622         (HAVE_ENABLE_EXECUTE_STACK): Define.
10623         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10624         (HAVE_ENABLE_EXECUTE_STACK): Define.
10625         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10626         (ENABLE_EXECUTE_STACK): Remove.
10627         (HAVE_ENABLE_EXECUTE_STACK): Define.
10628         [IN_LIBGCC2]: Don't include <windows.h>.
10629         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10630         (HAVE_ENABLE_EXECUTE_STACK): Define.
10631         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10632         (HAVE_ENABLE_EXECUTE_STACK): Define.
10633         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10634         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10635         (HAVE_ENABLE_EXECUTE_STACK): Define.
10636         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10637         (HAVE_ENABLE_EXECUTE_STACK): Define.
10638         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10639         (HAVE_ENABLE_EXECUTE_STACK): Define.
10640         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10641         (HAVE_ENABLE_EXECUTE_STACK): Define.
10642         * config/alpha/alpha.c (alpha_trampoline_init): Test
10643         HAVE_ENABLE_EXECUTE_STACK.
10644         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10645         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10646         (sparc64_initialize_trampoline): Likewise.
10647         * libgcc2.c [L_enable_execute_stack]: Remove.
10648         * system.h (ENABLE_EXECUTE_STACK): Poison.
10649         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10650         * doc/tm.texi: Regenerate.
10651         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10652
10653 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10654
10655         PR middle-end/49308
10656         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10657         variable.  After resetting and rescanning insn continue with previous
10658         statement.
10659
10660 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10661
10662         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10663         (gcc_cv_ld_hidden): Likewise.
10664         * configure: Regenerate.
10665         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10666         (ix86_stack_protect_fail): Mark unused.
10667         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10668         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10669         [TARGET_MACHO]: Don't define.
10670         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10671         (TARGET_STACK_PROTECT_FAIL): Likewise.
10672         (rs6000_stack_protect_fail): Mark unused.
10673         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10674         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
10675
10676 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10677
10678         * varasm.c (get_section): Print location of other conflict
10679         for section conflicts.
10680
10681 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10682
10683         * config/i386/driver-i386.c (host_detect_local_cpu):
10684         Add model 0x2d Intel CPU.
10685
10686 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10687
10688         * reginfo.c (global_regs_decl): Add.
10689         (globalize_reg): Add decl parameter. Compute location.  Pass location
10690         to warnings and add inform. Store decl in global_regs_decl.
10691         * rtl.h (globalize_reg): Update prototype.
10692         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10693
10694 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
10695
10696         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10697
10698 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10699
10700         PR target/49305
10701         * config/sh/predicates.md (general_movsrc_operand): Check
10702         mode for memory with indexed address for QI and HImode.
10703         (general_movdst_operand): Likewise.
10704
10705 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10706
10707         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10708
10709 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
10710
10711         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10712         (num_ssa_operands): Likewise.
10713         (op_iter_init_phiuse): Forward-declare.
10714         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10715
10716 2011-06-08  Nick Clifton  <nickc@redhat.com>
10717
10718         * doc/invoke.texi (ARM Options): Update description of
10719         -mthumb-interwork.
10720
10721 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
10722
10723         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10724         unknown Intel family 0x6 CPUs.
10725
10726 2011-06-08  Martin Jambor  <mjambor@suse.cz>
10727
10728         * tree-sra.c (mark_rw_status): Removed.
10729         (analyze_access_subtree): New parameter parent instead of
10730         mark_read and mark_write, propagate from that.
10731
10732 2011-06-08  Julian Brown  <julian@codesourcery.com>
10733
10734         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10735         for double-precision helper functions in hard-float mode if only
10736         single-precision arithmetic is supported in hardware.
10737
10738 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
10739
10740         PR rtl-optimization/49303
10741         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
10742         code_motion_path_driver returned 0 or 1.
10743         (sel_region_finish): Clear h_d_i_d.
10744
10745 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10746
10747         * config/sh/sh.c (prepare_move_operands): Set pic register
10748         appropriately for global and local dynamic tls models even
10749         if flag_pic is unset.
10750
10751 2011-06-07  Jason Merrill  <jason@redhat.com>
10752
10753         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10754
10755 2011-06-07  Xinliang David Li  <davidxl@google.com>
10756         * passes.c (enable_disable_pass): Handle assembler name.
10757         (is_pass_explicitly_enabled_or_disabled): Ditto.
10758
10759 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10760
10761         PR tree-optimization/48497
10762         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10763
10764 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10765
10766         PR tree-optimization/46728
10767         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10768         to use gimple_val_nonnegative_real_p.
10769         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10770         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10771
10772 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
10773
10774         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10775
10776 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
10777
10778         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10779         constant vectors.
10780
10781 2011-06-07  Richard Guenther  <rguenther@suse.de>
10782
10783         * stor-layout.c (initialize_sizetypes): Initialize all
10784         sizetypes based on target definitions.
10785         (set_sizetype): Remove.
10786         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10787         * tree.h (set_sizetype): Remove.
10788
10789 2011-06-07  Nick Clifton  <nickc@redhat.com>
10790
10791         * config.gcc: Unify V850 architecture options and add support for
10792         newer V850 architectures.
10793         * config/v850/t-v850e: Delete.
10794
10795 2011-06-07  Richard Guenther  <rguenther@suse.de>
10796
10797         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10798         Call set_sizetype from here.
10799
10800 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
10801
10802         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10803         (*maddhisi4tb, *maddhisi4tt): New define_insns.
10804
10805 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
10806             Andrew Stubbs  <ams@codesourcery.com>
10807
10808         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10809         multiplies.
10810         * doc/md.texi (Canonicalization of Instructions): Document widening
10811         multiply canonicalization.
10812
10813 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
10814
10815         PR gcov-profile/49299
10816         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10817
10818 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
10819
10820         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10821         a pointer.
10822         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10823         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10824         vect_recog_pow_pattern): Likewise.
10825         (vect_pattern_recog_1): Remove declaration.
10826         (widened_name_p): Remove declaration.  Add new argument to specify
10827         whether to check that both types are either signed or unsigned.
10828         (vect_recog_widen_mult_pattern): Update documentation.  Handle
10829         unsigned patterns and multiplication by constants.
10830         (vect_pattern_recog_1): Update vect_recog_func references.  Use
10831         statement information from the statement returned from pattern
10832         detection functions.
10833         (vect_pattern_recog): Update vect_recog_func reference.
10834         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10835         multiplication by a constant use the type of the other operand.
10836
10837 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
10838
10839         PR rtl-optimization/49145
10840         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10841
10842 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
10843
10844         PR debug/49262
10845         * dwarf2out.c (native_encode_initializer): Decrement count in each
10846         iteration.
10847
10848         PR debug/49294
10849         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10850         non-MODE_INT modes.
10851
10852         PR c++/49264
10853         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10854         if stmt folded into nothing.
10855         * tree-inline.c (fold_marked_statements): If a builtin at the end of
10856         a bb folded into nothing, just update cgraph edges and move to next bb.
10857         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10858         to be NULL.  Don't compute count and frequency if new_call is NULL.
10859
10860 2011-06-04  Diego Novillo  <dnovillo@google.com>
10861
10862         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10863         (cgraph.o): Likewise.
10864         (cgraphunit.o): Likewise.
10865         * cgraphunit.c: Include lto-streamer.h
10866         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10867         if LTO is enabled.
10868         * lto-streamer-in.c (unpack_value_fields): Call
10869         streamer_hooks.unpack_value_fields if set.
10870         (lto_materialize_tree): For unhandled nodes, first try to
10871         call lto_streamer_hooks.alloc_tree, if it exists.
10872         (lto_input_ts_decl_common_tree_pointers): Move reading of
10873         DECL_INITIAL to lto_streamer_read_tree.
10874         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10875         (lto_streamer_read_tree): New.
10876         (lto_reader_init): Rename from lto_init_reader.
10877         Move initialization code to lto/lto.c.
10878         * lto-streamer-out.c (pack_value_fields): Call
10879         streamer_hooks.pack_value_fields if set.
10880         (lto_output_tree_ref): For tree nodes that are not normally indexable,
10881         call streamer_hooks.indexable_with_decls_p before giving up.
10882         (lto_output_ts_decl_common_tree_pointers): Move handling
10883         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10884         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10885         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
10886         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10887         (lto_streamer_write_tree): New.
10888         (lto_output): Call lto_streamer_init directly.
10889         (lto_writer_init): Remove.
10890         * lto-streamer.c (streamer_hooks): New.
10891         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10892         instead of lto_preload_common_nodes.
10893         (lto_is_streamable): Move from lto-streamer.h
10894         (lto_streamer_hooks_init): New.
10895         (streamer_hooks): New.
10896         (streamer_hooks_init): New.
10897         * lto-streamer.h (struct output_block): Forward declare.
10898         (struct lto_input_block): Likewise.
10899         (struct data_in): Likewise.
10900         (struct bitpack_d): Likewise.
10901         (struct streamer_hooks): Declare.
10902         (streamer_hooks): Declare.
10903         (lto_streamer_hooks_init): Declare.
10904         (lto_streamer_write_tree): Declare.
10905         (lto_streamer_read_tree): Declare.
10906         (streamer_hooks_init): Declare.
10907         (lto_is_streamable): Move to lto-streamer.c
10908
10909 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10910
10911         * longlong.h (smul_ppmm): The resulting register pair contains the
10912         higher order word first.
10913
10914 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10915
10916         PR tree-optimization/46728
10917         * builtins.c (powi_table): Remove.
10918         (powi_lookup_cost): Remove.
10919         (powi_cost): Remove.
10920         (expand_powi_1): Remove.
10921         (expand_powi): Remove.
10922         (expand_builtin_pow_root): Remove.
10923         (expand_builtin_pow): Remove.
10924         (expand_builtin_powi): Eliminate handling of constant exponent.
10925         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10926
10927 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10928
10929         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10930
10931 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10932
10933         * dce.c (reset_unmarked_insns_debug_uses): New.
10934         (delete_unmarked_insns): Skip debug insns.
10935         (prescan_insns_for_dce): Likewise.
10936         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10937         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10938         active reg can be found.
10939         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
10940         (convert_regs_1): Use it.
10941
10942 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10943
10944         * tree-pretty-print.c (dump_function_header): Add flags.
10945         Don't dump decl_uid with nouid.
10946         * tree-pretty-print.h (dump_function_header): Adjust.
10947         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10948         * passes.c (pass_init_dump_file): Pass dump_flags on.
10949         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10950
10951 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10952
10953         PR bootstrap/49270
10954         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10955
10956 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
10957
10958         PR tree-optimization/49243
10959         * calls.c (setjmp_call_p): Also check if fndecl has the
10960         returns_twice attribute.
10961
10962 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10963
10964         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
10965         -ffast-math etc.
10966
10967 2011-06-06  Richard Henderson  <rth@redhat.com>
10968             Georg-Johann Lay  <avr@gjlay.de>
10969
10970         PR target/42210
10971         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
10972         New predicates.
10973         * config/avr/avr.md ("insv"): New insn expander.
10974         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
10975         "*insv.not.io", "*insv.reg"): New insns.
10976
10977 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
10978
10979         PR target/49285
10980         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
10981         to nonimmediate_operand from memory_operand for the operand that is to
10982         be forced to memory by the expander.  Lose the constraints.
10983
10984 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10985
10986         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
10987         EH return when delayed branches are disabled.
10988
10989 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
10990
10991         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
10992         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
10993         calculation.
10994         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
10995         Simplify MODE_V1DF and MODE_V2SF handling.
10996         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
10997         Simplify MODE_SF handling.
10998
10999 2011-06-04  Jan Hubicka  <jh@suse.cz>
11000
11001         PR tree-optimization/48893
11002         PR tree-optimization/49091
11003         PR tree-optimization/49179
11004         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11005         Bounds check.
11006
11007 2011-06-04  Jan Hubicka  <jh@suse.cz>
11008
11009         PR lto/48954
11010         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11011         bitmaps.
11012
11013 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11014
11015         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11016
11017 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11018
11019         PR target/49281
11020         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11021         to be strictly smaller than 1 << shiftcount.
11022
11023 2011-06-04  Jan Hubicka  <jh@suse.cz>
11024
11025         PR tree-optimize/48929
11026         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11027         of empty predicate.
11028
11029 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11030
11031         PR debug/48333
11032         * calls.c (emit_call_1): Prefer the __builtin declaration of
11033         builtin functions.
11034
11035 2011-06-03   Diego Novillo  <dnovillo@google.com>
11036
11037         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11038         (lto_input_tree_pointers): Likewise.
11039         * lto-streamer-out.c (pack_value_fields): Likewise.
11040         (lto_output_tree_pointers): Likewise.
11041         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11042         and OPTIMIZATION_NODE.
11043
11044 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11045
11046         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11047         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11048         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11049         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11050         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11051         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11052         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11053         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11054         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11055         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11056         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11057         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11058         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11059         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11060         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11061         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11062         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11063         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11064         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11065         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11066         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11067         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11068         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11069         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11070         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11071         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11072         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11073         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11074         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11075         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11076         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11077         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11078         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11079         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11080         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11081         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11082         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11083         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11084         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11085         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11086         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11087         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11088         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11089         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11090         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11091         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11092         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11093         * system.h (MD_UNWIND_SUPPORT): Poison.
11094         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11095         * doc/tm.texi: Regenerate.
11096         * unwind-dw2.c: Include md-unwind-support.h instead of
11097         MD_UNWIND_SUPPORT.
11098         * config/ia64/unwind-ia64.c: Likewise.
11099         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11100
11101 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11102
11103         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11104
11105 2011-06-03  Richard Henderson  <rth@redhat.com>
11106             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11107
11108         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11109         (sigill_hdlr): Correct insn, insn size.
11110         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11111
11112 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11113
11114         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11115         t-slibgcc-dummy.
11116         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11117         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11118         * config/mips/t-iris: Remove.
11119         * config/mips/t-irix6: New file.
11120         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11121
11122 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11123
11124         * Makefile.in (LIB2ADDEHDEP): Remove.
11125         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11126         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11127         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11128         * config/t-darwin (LIB2ADDEHDEP): Remove.
11129         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11130         * config/t-linux (LIB2ADDEHDEP): Remove.
11131
11132 2011-06-03  Diego Novillo  <dnovillo@google.com>
11133
11134         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11135         (lto_register_var_decl_in_symtab): Likewise.
11136         (lto_register_function_decl_in_symtab): Likewise.
11137         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11138         logic to uniquify_nodes.
11139
11140 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11141
11142         * config/alpha/t-osf5: Remove.
11143         * config/alpha/t-osf-pthread: Remove.
11144         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11145         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11146
11147 2011-06-03  Julian Brown  <julian@codesourcery.com>
11148
11149         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11150         (strongarm1110): Use strongarm tuning.
11151         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11152         * config/arm/arm.c (arm_strongarm_tune): New.
11153         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11154         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11155         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11156         setting, using previous defaults or 1 for Cortex-A5.
11157         (arm_option_override): Set max_insns_skipped from current tuning.
11158
11159 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11160
11161         * doc/install.texi (Options specification): Document --with-specs.
11162
11163 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11164
11165         * config/arm/neon.md (orndi3_neon): Actually split it.
11166
11167 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11168
11169         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11170         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11171
11172 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11173
11174         PR debug/47590
11175         * target.def (delay_sched2, delay_vartrack): New.
11176         * doc/tm.texi.in: Update.
11177         * doc/tm.texi: Rebuild.
11178         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11179         * var-tracking.c (gate_handle_var_tracking): Likewise.
11180         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11181         (bfin_flag_var_tracking): Drop.
11182         (output_file_start): Don't save and override flag_var_tracking.
11183         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11184         (bfin_reorg): Test original variables.
11185         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11186         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11187         (ia64_flag_var_tracking): Drop.
11188         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11189         (ia64_file_start): Don't save and override flag_var_tracking.
11190         (ia64_override_options_after_change): Ditto
11191         flag_schedule_insns_after_reload.
11192         (ia64_reorg): Test original variables.
11193         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11194         (picochip_flag_var_tracking): Drop.
11195         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11196         (picochip_option_override): Don't save and override
11197         flag_schedule_insns_after_reload.
11198         (picochip_asm_file_start): Ditto flag_var_tracking.
11199         (picochip_reorg): Test original variables.
11200         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11201         (TARGET_DELAY_VARTRACK): Define.
11202         (spu_var_tracking): New.
11203         (spu_machine_dependent_reorg): Call it.
11204         (asm_file_start): Don't save and override flag_var_tracking.
11205
11206 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11207
11208         PR target/49163
11209         * config/sh/predicates.md (general_movsrc_operand): Return 0
11210         for memory and memory subreg of which address is an invalid
11211         indexed address for QI and HImode.
11212         (general_movdst_operand): Likewise.
11213
11214 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11215
11216         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11217         edges only, when there is a non-local label in the function.
11218         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11219
11220 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11221
11222         * config/i386/constraints.md (Y3): New register constraint.
11223         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11224         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11225         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11226         *sse2_interleave_lowv2df.
11227
11228 2011-06-02  Julian Brown  <julian@codesourcery.com>
11229
11230         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11231         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11232         (arm_cortex_a5_tune): New.
11233
11234 2011-06-02  Julian Brown  <julian@codesourcery.com>
11235
11236         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11237         * config/arm/arm.c (arm_default_branch_cost): New.
11238         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11239         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11240         (arm_fa726_tune): Set branch_cost field using
11241         arm_default_branch_cost.
11242         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11243         current_tune structure.
11244         * dojump.c (tm_p.h): Include file.
11245
11246 2011-06-02  Julian Brown  <julian@codesourcery.com>
11247
11248         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11249         tuning.
11250         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11251         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11252         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11253         field.
11254         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11255         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11256         (arm_fa726te_tune): Add prefer_constant_pool setting.
11257         (arm_v6t2_tune, arm_cortex_tune): New.
11258         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11259         prefer_constant_pool setting.
11260
11261 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11262
11263         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11264         switch statement.
11265         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11266         (*movdf_internal) <case 6,7,8>: Ditto.
11267
11268         * config/i386/constraints.md (Y4): New register constraint.
11269         * config/i386/sse.md (vec_set<mode>_0): Merge with
11270         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11271         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11272         *vec_extractv2di_1_sse.
11273         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11274         and *vec_concatv2di_rex64_sse.
11275
11276 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11277
11278         PR target/48807
11279         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11280         of cgraph_local_info for null before attempting to use it.
11281
11282 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11283
11284         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11285         (current_function_dynamic_alloc_count): Delete.
11286         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11287         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11288         (expand_builtin_update_setjmp_buf): Remove dead code.
11289         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11290         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11291         support.
11292         * function.c (instantiate_virtual_regs): Likewise.
11293         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11294         for a block with a single abnormal incoming edge.
11295         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11296         (SETJMP_VIA_SAVE_AREA): Delete.
11297         * config/sparc/sparc-protos.h (load_got_register): Declare.
11298         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11299         (load_got_register): Make global.
11300         (sparc_frame_pointer_required): Add 'static'.
11301         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11302         (sparc_builtin_setjmp_frame_value): New function.
11303         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11304         (save_stack_nonlocal): New expander.
11305         (restore_stack_nonlocal): Likewise.
11306         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11307         (nonlocal_goto_internal): New insn.
11308         (goto_handler_and_restore): Delete.
11309         (builtin_setjmp_setup): Likewise.
11310         (do_builtin_setjmp_setup): Likewise.
11311         (setjmp): Likewise.
11312         (builtin_setjmp_receiver): New expander.
11313
11314 2011-06-01  David Li  <davidxl@google.com>
11315
11316         PR middle-end/49261
11317         * tree-pretty-print.c (dump_function_header): Format cleanup.
11318
11319 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11320
11321         PR target/49238
11322         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11323         needed when original operands are used for msw_skip comparison.
11324
11325 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11326
11327         PR debug/49250
11328         * var-tracking.c (add_uses, add_stores): Don't call
11329         cselib_subst_to_values on ENTRY_VALUE.
11330
11331 2011-06-01  Diego Novillo  <dnovillo@google.com>
11332
11333         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11334         output_record_start with LTO_null instead of output_zero.
11335         (lto_output_ts_binfo_tree_pointers): Likewise.
11336         (lto_output_tree): Likewise.
11337         (output_eh_try_list): Likewise.
11338         (output_eh_region): Likewise.
11339         (output_eh_lp): Likewise.
11340         (output_eh_regions): Likewise.
11341         (output_bb): Likewise.
11342         (output_function): Likewise.
11343         (output_unreferenced_globals): Likewise.
11344         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11345         instead of NUM_TREE_CODES.
11346         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11347         (lto_output_int_in_range): Change << to >> when shifting VAL.
11348
11349 2011-06-01  Diego Novillo  <dnovillo@google.com>
11350
11351         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11352         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11353
11354 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11355
11356         PR target/45074
11357         * optabs.h (valid_multiword_target_p): Declare.
11358         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11359         doing multi-word operations.
11360         * optabs.c (expand_binop): Likewise.
11361         (expand_doubleword_bswap): Likewise.
11362         (expand_absneg_bit): Likewise.
11363         (expand_unop): Likewise.
11364         (expand_copysign_bit): Likewise.
11365         (multiword_target_p): New function.
11366
11367 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11368
11369         PR rtl-optimization/48830
11370         PR rtl-optimization/48808
11371         PR rtl-optimization/48792
11372         * reload.c (push_reload): Check contains_reg_of_mode.
11373         * reload1.c (strip_paradoxical_subreg): New function.
11374         (gen_reload_chain_without_interm_reg_p): Use it to handle
11375         paradoxical subregs.
11376         (emit_output_reload_insns, gen_reload): Likewise.
11377
11378 2011-06-01  David Li  <davidxl@google.com>
11379
11380         * predict.c : Change pass name
11381         * ipa.c: Ditto.
11382         * dce.c: Ditto.
11383         * tree-profile.c: Ditto.
11384         * except.c: Ditto.
11385
11386 2011-06-01  David Li  <davidxl@google.com>
11387
11388         * tree-pretty-print.c (dump_function_header): New function.
11389         * final.c (rest_of_clean_state): Use header dumper.
11390         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11391         * passes.c (pass_init_dump_file): Use header dumper.
11392
11393 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11394
11395         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11396         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11397         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11398         New functions.
11399         (mem_loc_descriptor): Use them.
11400
11401         * var-tracking.c (create_entry_value): New function.
11402         (vt_add_function_parameter): Use it.
11403
11404 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11405
11406         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11407         Include <signal.h>, <ucontext.h>.
11408         (sigill_caught): Define.
11409         (sigill_hdlr): New function.
11410         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11411         insns can be executed.
11412         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11413         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11414
11415 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11416
11417         * config/t-slibgcc-darwin: Move to ...
11418         * config/t-slibgcc-dummy: ... this.  Clarify comments.
11419         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11420         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11421         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11422         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
11423         Remove i386/t-crtstuff from tmake_file.
11424         (i[34567]86-*-solaris2*): Remove t-svr4,
11425         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11426         t-slibgcc-dummy.
11427         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11428         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11429         sparc/t-crtfm from tmake_file.
11430         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11431         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11432         Remove extra_parts.
11433         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11434         * config/i386/t-nwld (SHLIB_LINK): Remove.
11435         * config/i386/t-rtems-i386: Rename to ...
11436         * config/i386/t-rtems: ... this.
11437         ($(T)crti.o, $(T)crtn.o): Remove.
11438         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11439         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11440         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11441         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11442         EXTRA_MULTILIB_PARTS): Remove.
11443         * config/sparc/t-sol2-64: Likewise.
11444         * config/sparc/t-sol2: Remove.
11445         * config/sparc/t-crtin: Remove.
11446         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11447         * config/i386/gmon-sol2.c: Remove.
11448         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11449         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11450         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11451         * config/i386/sol2-gc1.asm: Remove.
11452         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11453         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11454         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11455         * config/t-slibgcc-sld: Remove.
11456
11457 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11458
11459         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11460         base_type_for_mode with op_mode instead of mode.
11461
11462 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
11463
11464         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
11465         Cortex-A15.
11466         * config/arm/arm-tune.md: Regenerate.
11467         * config/arm/arm-tables.opt: Regenerate.
11468         * config/arm/arm.c (FL_DIV): Rename...
11469         (FL_THUMB_DIV): ... to this.
11470         (FL_ARM_DIV): Define.
11471         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11472         (arm_arch_hwdiv): Remove.
11473         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11474         (arm_issue_rate): Add cortexr5.
11475         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11476         __ARM_ARCH_EXT_IDIV__.
11477         (TARGET_IDIV): Define.
11478         (arm_arch_hwdiv): Remove.
11479         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11480         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11481         (divsi3, udivsi3): New patterns.
11482         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11483         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11484
11485 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11486
11487         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11488         * ipa-utils.c (searchc): Set scc_no.
11489
11490 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11491
11492         * ipa-utils.c (searchc_env): New field allow_overwritable.
11493         (searchc): do not ignore edges to overwritable nodes if indicated
11494         by env->allow_overwritable.
11495         (ipa_reduced_postorder): Set env.allow_overwritable.
11496
11497 2011-06-01  Richard Guenther  <rguenther@suse.de>
11498
11499         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11500         char_type_node.
11501         * lto-streamer.c (lto_record_common_node): Take node pointer,
11502         do not register types.
11503         (lto_preload_common_nodes): Explicitly skip preloading nodes
11504         that differ between frontends.
11505
11506 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11507
11508         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11509         NON_FLOAT_REGS.
11510
11511 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11512
11513         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11514         parameter value for dump. Dump cost on outermost call only.
11515         (rs6000_memory_move_cost): Dump cost on outermost call only.
11516
11517 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11518
11519         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11520         DW_OP_GNU_convert ops.
11521
11522         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11523         cselib_preserve_constants.
11524         (cselib_lookup_1): If cselib_preserve_constants,
11525         a new VALUE is being created for REG and there is a VALUE for the
11526         same register in wider mode, add another loc with lowpart SUBREG of
11527         the wider VALUE.
11528         (cselib_subst_to_values): Handle ENTRY_VALUE.
11529         * var-tracking.c  (replace_expr_with_values): Return NULL for
11530         ENTRY_VALUE too.
11531         * dwarf2out.c (convert_descriptor_to_signed): New function.
11532         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11533         instead of two shifts.
11534         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11535         the right mode if needed.
11536         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11537         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11538         convert_descriptor_to_signed.
11539         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11540         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11541
11542         PR target/48688
11543         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11544
11545 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11546
11547         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11548         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11549         (SWI248x): New mode iterator, rename from X87MODEI.
11550         (X87MODEI): Remove mode iterator.
11551         (X87MODEI12): Ditto.
11552         (SSEMODEI24): Ditto.
11553
11554 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11555
11556         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11557         * doc/invoke.texi: Document max-vartrack-expr-depth.
11558         * var-tracking.c (EXPR_DEPTH): New.
11559         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11560
11561 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11562
11563         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11564         * config/i386/sse.md: Add n to negated FMA pattern names.
11565
11566 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11567
11568         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11569
11570 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11571
11572         * gengtype-state.c (read_state_params_structs): Initialize previous.
11573
11574 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11575
11576         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11577         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11578
11579 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11580
11581         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11582         registers.  Penalize F*r->o alternative to prevent partial memory
11583         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11584         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11585         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11586         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11587         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11588         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11589         alternatives.
11590         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11591
11592         (fp_register_operand splitters): Use fp_register_operand
11593         constraint.  Do not use FP_REG_P in insn condition.
11594         (any_fp_register_operand splitters): Use any_fp_register_operand
11595         constraint.  Do not use ANY_FP_REG_P in insn condition.
11596
11597 2011-05-31  Jan Hubicka  <jh@suse.cz>
11598
11599         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11600         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11601         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11602         (lto_output_edge): Use output_enum and var_len_unsigned.
11603         (lto_output_varpool_node): Likewise.
11604         (input_overwrite_node): Do not take resolution parameter;
11605         extract it from a bitpack.
11606         (input_node): Do not read resolution; use input_enum and
11607         var_len_unsigned.
11608         (input_varpool_node): Likewise.
11609         (input_edge): Likewise.
11610         (input_cgraph_1): Likewise.
11611
11612 2011-05-31  Richard Guenther  <rguenther@suse.de>
11613
11614         * gimple.c (gimple_register_canonical_type): Do not register
11615         any types via gimple_register_type.
11616
11617 2011-05-31  Jan Hubicka  <jh@suse.cz>
11618
11619         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11620         of thunks.
11621
11622 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11623
11624         PR rtl-optimization/49235
11625         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11626         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11627
11628 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11629
11630         PR tree-optimization/49093
11631         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11632         data references.
11633
11634 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11635
11636         PR debug/49047
11637         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11638         for concrete functions containing the code of cloned functions.
11639
11640 2011-05-31  Richard Guenther  <rguenther@suse.de>
11641
11642         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11643         to ...
11644         (forward_propagate_into_comparison_1): ... this.
11645         (forward_propagate_comparison): Rename to ...
11646         (forward_propagate_into_comparison): ... this.  Split out
11647         real forward propagation code to ...
11648         (forward_propagate_comparison): ... this.
11649         (forward_propagate_into_gimple_cond): Remove looping.
11650         (forward_propagate_into_cond): Likewise.
11651         (simplify_not_neg_expr): Return whether we have done something.
11652         (simplify_gimple_switch): Likewise.
11653         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11654         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11655         to do a forward forward-propagation walk on BBs and a backward
11656         stmt combining walk on BBs.  Consistently re-scan changed statements.
11657         (pass_forwprop): Adjust.
11658
11659 2011-05-30  Ian Lance Taylor  <iant@google.com>
11660
11661         * godump.c (go_format_type): Correct length of name added to
11662         obstack for anonymous field.
11663
11664 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11665
11666         PR target/49186
11667         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11668         part of the second operand is 0.
11669
11670 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11671
11672         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11673         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
11674         to memory for !TARGET_MEMORY_MISMATCH_STALL.
11675         (*movdf_internal_rex64): Do not penalize F->r alternative.
11676         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11677         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
11678         when optimizing function for size.  Do not move CONST_DOUBLEs
11679         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11680         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
11681         SUBREGs.  Do not check for MEM_P operands in the insn condition,
11682         check for ANY_FP_REGNO_P instead.
11683         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11684         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11685         function for speed.
11686         * config/i386/i386.c (ix86_option_override_internal): Do not
11687         set TARGET_INTEGER_DFMODE_MOVES here.
11688
11689 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11690
11691         PR target/49168
11692         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11693
11694 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11695
11696         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11697         DW_TAG_rvalue_reference_type even for
11698         -gdwarf-4 -fno-debug-types-section.
11699
11700 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11701
11702         PR tree-optimization/46728
11703         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11704         (build_and_insert_binop): New.
11705         (gimple_expand_builtin_pow): Reorder args for
11706         build_and_insert_call; use build_and_insert_binop; add more
11707         optimizations for fractional exponents.
11708
11709 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11710
11711         PR bootstrap/49190
11712
11713         Revert:
11714         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11715
11716         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11717         tree_common.
11718         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11719         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11720         TS_BASE instead of TS_COMMON.
11721         * varasm.c (assemble_name): Remove assert.
11722
11723 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
11724
11725         * config.gcc: Keep obselete list sorted.
11726
11727 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11728             Eric Botcazou  <ebotcazou@adacore.com>
11729
11730         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11731         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11732         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11733         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11734         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11735
11736 2011-05-30  Richard Guenther  <rguenther@suse.de>
11737
11738         * gimple.c (gimple_types_compatible_p_1): Compare record
11739         and union type members properly.
11740
11741 2011-05-30  Richard Guenther  <rguenther@suse.de>
11742
11743         PR tree-optimization/49210
11744         * ipa-split.c (split_function): Care for the case where the call
11745         result is not trivially convertible to the result holding variable.
11746
11747 2011-05-30  Richard Guenther  <rguenther@suse.de>
11748
11749         PR tree-optimization/49218
11750         * tree-vrp.c (adjust_range_with_scev): Properly check whether
11751         overflow occured.
11752
11753 2011-05-30  Richard Guenther  <rguenther@suse.de>
11754
11755         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11756         New function split out from ...
11757         (forward_propagate_into_gimple_cond): ... here.  Adjust.
11758         (forward_propagate_into_cond): Likewise.
11759         (forward_propagate_comparison): Also propagate into
11760         comparisons on assignment RHS.  Change return value to
11761         behave similar to forward_propagate_into_cond.
11762         (tree_ssa_forward_propagate_single_use_vars): Handle
11763         strict-overflow warnings properly for forward_propagate_comparison.
11764
11765 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11766
11767         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11768         from plugin linker.
11769         * configure: Regenerate.
11770
11771 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
11772
11773         PR tree-optimization/49199
11774         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11775         non-reduction operands are either defined in the loop or by induction.
11776
11777 2011-05-29  Xinliang David Li  <davidxl@google.com>
11778
11779         * opts-global.c (handle_common_deferred_options): Handle new options.
11780         * passes.c (register_one_dump_file): Call register_pass_name.
11781         (execute_one_pass): Check explicit enable/disable flag.
11782         (passr_hash): New function.
11783         (passr_eq): Ditto.
11784         (register_pass_name): Ditto.
11785         (get_pass_by_name): Ditto.
11786         (pass_hash): Ditto.
11787         (pass_eq): Ditto.
11788         (enable_pass): Ditto.
11789         (disable_pass): Ditto.
11790         (is_pass_explicitly_enabled_or_disabled): Ditto.
11791
11792 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
11793
11794         * config/i386/i386.md (*movoi_internal_avx): Use
11795         standard_sse_constant_opcode for alternative 0.
11796         (*movti_internal_sse): Ditto.
11797         (*movti_internal_rex64): Use standard_sse_constant_opcode for
11798         alternative 2.
11799         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11800         sselog1 type moves.
11801         (*movsi_internal): Ditto.
11802         (*movdi_internal): Ditto.  Add ssecvt type moves.
11803
11804 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11805
11806         PR target/48830
11807         * rtlanal.c (simplify_subreg_regno): Adjust comment.
11808
11809 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
11810
11811         PR rtl-optimization/49095
11812         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11813         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11814
11815 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11816
11817         PR target/43995
11818         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11819         recurse_p argument.  Only follow register copies if it is set,
11820         and prevent mips_find_pic_call_symbol from recursing.
11821         (mips_find_pic_call_symbol): Add a recurse_p argument.
11822         Pass it to mips_pic_call_symbol_from_set.
11823         (mips_annotate_pic_calls): Update accordingly.
11824
11825 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11826
11827         * emit-rtl.c (try_split): Use a loop to search for
11828         NOTE_INSN_CALL_ARG_LOCATIONs.
11829
11830 2011-05-29  Richard Guenther  <rguenther@suse.de>
11831
11832         PR tree-optimization/49217
11833         * ipa-pure-const.c (propagate_pure_const): Fix typos.
11834
11835 2011-05-28  Jan Hubicka  <jh@suse.cz>
11836
11837         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11838         length.
11839         (string_slot_free): Remove
11840         (create_output_block): Initialize obstack.
11841         (destroy_output_block): Free obstack.
11842         (lto_string_index): Add PERSISTENT parameter; do not duplicate
11843         the string unless it needs to be added into the hash.
11844         (lto_output_string_with_length): Add persistent attribute;
11845         handle NULL strings.
11846         (lto_output_string): Add PERSISTENT parameter.
11847         (output_string_cst, output_identifier): Simplify.
11848         (lto_output_location_bitpack): Update.
11849         (lto_output_builtin_tree): Update.
11850         * lto-streamer.h (struct output_block): Add obstack.
11851         (lto_output_string, lto_output_string_with_length): Remove
11852         declarations; functions are static now.
11853
11854 2011-05-28  Jan Hubicka  <jh@suse.cz>
11855
11856         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11857         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11858         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11859         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11860         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11861         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11862         unpack_ts_decl_with_vis_value_fields,
11863         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11864         lto_get_builtin_tree): Use enum and variable length i/o.
11865         * basic-block.h (profile_status_d): Add PROFILE_LAST.
11866         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11867         New functions.
11868         (bp_pack_enum, bp_unpack_enum): New macros.
11869
11870 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11871
11872         * genrecog.c: Remove redundant forward declarations.
11873
11874 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11875
11876         * config.gcc: Deprecate mips*-*-openbsd*.
11877
11878 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11879
11880         PR bootstrap/49195
11881         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11882         for match_op_dup.
11883
11884 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
11885
11886         PR middle-end/48981
11887         * gengtype.c (vec_prefix_type): New function.
11888         (note_def_vec): Use vec_prefix_type and change the length
11889         attribute to be based on the prefix.
11890         * vec.c: Include coretypes.h before vec.h.
11891         (struct vec_prefix): Remove.
11892         (vec_gc_p_reserve): Change the offsetof to sizeof.
11893         (vec_gc_p_reserve_exact): Likewise.
11894         (vec_heap_p_reserve): Likewise.
11895         (vec_heap_p_reserve_exact): Likewise.
11896         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11897         (vec_stack_p_reserve): Change the offsetof to sizeof.
11898         (vec_stack_p_reserve_exact): Likewise.
11899         * vec.h (struct vec_prefix): New struct definition.
11900         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11901         (VEC_T_GTY(T,B)): Likewise.
11902         (DEF_VEC_FUNC_P(T)): Use prefix field.
11903         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11904         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11905
11906 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11907
11908         PR tree-optimization/46728
11909         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11910         (powi_as_mults): Add gimple_set_location.
11911         (build_and_insert_call): New.
11912         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11913         0.5, 0.25, 0.75, 1./3., or 1./6.
11914
11915 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
11916
11917         * doc/contrib.texi: Update copyright years.
11918         (Contributors): Add Zdenek Sojka.
11919
11920 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11921
11922         * c-decl.c (c_push_function_context): Copy the current statement
11923         list stack.
11924         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11925         (finish_struct): Call building_stmt_list_p instead of checking
11926         cur_stmt_list.
11927         * c-parser.c (c_parser_postfix_expression): Likewise.
11928         * c-typeck.c (c_end_compound_stmt): Likewise.
11929         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11930         * tree-iterator.c (stmt_list_cache): Change to a VEC.
11931         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11932         (free_stmt_list): Likewise.
11933         * tree.h (struct tree_statement_list): Include typed_tree instead
11934         of tree_common.
11935         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11936         as TS_TYPED instead of TS_COMMON.
11937
11938 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11939             Uros Bizjak  <ubizjak@gmail.com>
11940
11941         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11942         (HAVE_AS_IX86_TLSGDPTL): Define.
11943         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11944         (HAVE_AS_IX86_TLSLDMPLT): Define.
11945         * configure: Regenerate.
11946         * config.in: Regenerate.
11947         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11948         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11949         TARGET_SUN_TLS, use @tlsgdplt or @plt.
11950         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11951         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11952         @tlsldmplt or @plt.
11953         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11954
11955 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11956
11957         * sched-int.h (struct _haifa_deps_insn_data): New members cond
11958         and reverse_cond.
11959         (INSN_COND, INSN_REVERSE_COND): New macros.
11960         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
11961         once.
11962         (sched_get_condition_with_rev): Cache the results, and look them up
11963         if possible.
11964         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
11965         are clobbered by the current insn.
11966         * target.def (exposed_pipline): New sched data hook.
11967         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
11968         * doc/tm.texi: Regenerate.
11969
11970 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11971
11972         PR tree-optimization/49170
11973         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
11974         sincos or cexp.
11975
11976 2011-05-27  Richard Guenther  <rguenther@suse.de>
11977
11978         PR middle-end/49189
11979         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
11980         of comparisons.
11981
11982 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11983
11984         * haifa-sched.c (sched_scan_info): Remove.
11985         (schedule_block): Call sched_extend_luids rather than sched_init_luids
11986         with NULL args.
11987         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
11988         Remove functions.
11989         (sched_scan): Remove.
11990         (sched_extend_luids): Renamed from luids_extend_insn and no longer
11991         static.  All callers changed.
11992         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
11993         static.  All callers changed.
11994         (sched_init_luids): Remove all arguments except the first.  All
11995         callers changed.  Don't use sched_scan.
11996         (haifa_init_h_i_d): Likewise.
11997         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
11998         manually rather than using sched_init_luids.  Likewise with
11999         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12000         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12001         rather than sched_init_luids with NULL args.
12002         * sel-sched-ir.c (new_insns): Remove variable.
12003         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12004         all arguments but the first two; all callers changed.
12005         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12006         rather than sched_init_luids.
12007         (sel_init_bbs): Remove second argument.  All callers changed.
12008         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12009         with NULL arguments.
12010         (create_insn_rtx_from_pattern): Likewise.
12011         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12012         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12013         (sched_init_insn_luid, sched_extend_luids): Declare.
12014         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12015         declarations.
12016
12017 2011-05-27  Richard Guenther  <rguenther@suse.de>
12018
12019         PR middle-end/49177
12020         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12021         A CMP B ? (T) true : (T) false for non-integral types T again.
12022
12023 2011-05-27  Jan Hubicka  <jh@suse.cz>
12024
12025         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12026         so 0 means NULL string.
12027         (lto_output_string_with_length): ... here.
12028         (lto_output_string, output_string_cst, output_identifier): Update
12029         handling of NULL strings.
12030         (lto_output_location_bitpack): New function.
12031         (lto_output_location): Use it.
12032         (lto_output_tree_ref): Use output_record_start.
12033         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12034         len values.
12035         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12036         values by 1.
12037         (input_string_internal): ... here;
12038         (input_string_cst, input_identifier, lto_input_string): Update handling
12039         of NULL strings.
12040         (lto_input_location_bitpack): New function
12041         (lto_input_location): Use it.
12042         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12043         values.
12044         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12045         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12046         (bp_pack_value): Sanity check the value range.
12047         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12048         New functions.
12049         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12050         New functions.
12051
12052 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12053
12054         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12055         call_arg_location instructions down the floor.
12056
12057 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12058
12059         PR rtl-optimization/49154
12060         * ira.c (setup_pressure_classes): Process class without sublcasses
12061         as a candidate for pressure classes.
12062
12063 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12064
12065         PR rtl-optimization/48575
12066         * genrecog.c (position_type): New enum.
12067         (position): New structure.
12068         (decision): Use position structure instead of a string.
12069         (root_pos, peep2_insn_pos_list): New variables.
12070         (next_position, compare_positions): New functions.
12071         (new_decision): Use position structures instead of strings.
12072         (maybe_both_true): Likewise.
12073         (change_state): Likewise.
12074         (write_tree): Likewise.
12075         (make_insn_sequence): Likewise.
12076
12077 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12078
12079         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12080         TS_BASE instead of TS_COMMON.
12081         (find_decls_types_r): Check for TS_TYPED structure before looking at
12082         TREE_TYPE.
12083         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12084         Add chain field.
12085         (BLOCK_CHAIN): Use new chain field.
12086
12087 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12088
12089         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12090         moves expensive on Power7 also.
12091
12092 2011-05-26  Richard Guenther  <rguenther@suse.de>
12093
12094         * fold-const.c (fold_unary_loc): Remove bogus code.
12095
12096 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12097
12098         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12099         tree_common.
12100         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12101         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12102         TS_BASE instead of TS_COMMON.
12103         * varasm.c (assemble_name): Remove assert.
12104
12105 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12106
12107         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12108         substituted first.
12109         * libgcc-std.ver: Delete file.
12110
12111 2011-05-26  Richard Guenther  <rguenther@suse.de>
12112
12113         PR tree-optimization/48702
12114         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12115         only when we know the base address is within bounds.
12116         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12117         assume the base address of TARGET_MEM_REFs is in bounds.
12118
12119 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12120
12121         PR target/49099
12122         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12123         declaration in TARGET_SOLARIS.
12124
12125 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12126
12127         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12128         The instruction is then expanded explicitly.
12129         (supported_compare): Callable instruction.
12130         (compare): Likewise.
12131
12132 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12133
12134         PR c++/49165
12135         * gimplify.c (shortcut_cond_r): Don't special case
12136         COND_EXPRs if they have void type on one of their arms.
12137
12138 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12139
12140         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12141         to reduce duplication, and to achieve a slightly more logical order
12142         of operations.
12143
12144 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12145
12146         PR tree-optimization/49161
12147         * tree-vrp.c (struct case_info): New type.
12148         (compare_case_labels): Sort case_info structs instead of
12149         trees, and not primarily by CASE_LABEL uids but by
12150         label_for_block indexes.
12151         (find_switch_asserts): Put case labels into struct case_info
12152         array instead of TREE_VEC, adjust sorting, compare label_for_block
12153         values instead of CASE_LABELs.
12154
12155 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12156
12157         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12158         ("orndi3_neon"): Likewise.
12159         ("bic<mode>3_neon"): Likewise.
12160
12161 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12162
12163         PR tree-optimization/49038
12164         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12165         Ensure at least one epilogue iteration if required by data
12166         accesses with gaps.
12167         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12168         to mark loops that require peeling for gaps.
12169         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12170         (vect_get_known_peeling_cost): Take peeling for gaps into
12171         account.
12172         (vect_transform_loop): Generate epilogue if required by data
12173         access with gaps.
12174         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12175         loop as requiring an epilogue if there are gaps in the end of
12176         the strided group.
12177
12178 2011-05-25  Ian Lance Taylor  <iant@google.com>
12179
12180         * godump.c (go_format_type): Output the first field with a usable
12181         Go type, if any.
12182
12183 2011-05-25  Ian Lance Taylor  <iant@google.com>
12184
12185         * godump.c (go_format_type): Check for invalid type names, pointer
12186         target types, and struct field types.
12187
12188 2011-05-25  Jason Merrill  <jason@redhat.com>
12189
12190         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12191
12192 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12193
12194         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12195
12196 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12197
12198         * config/i386/i386.md (*movqi_extv_1)): Put back
12199         "register_operand" check in "type" calculation.
12200         (*movqi_extzv_2): Likewise.
12201
12202 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12203
12204         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12205
12206 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12207
12208         PR bootstrap/49160
12209         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12210         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12211         __divxc3, __divtc3): Wrap definitions in #ifndef.
12212
12213 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12214
12215         PR target/49142
12216         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12217         "register_operand" check and replace q_regs_operand with
12218         QIreg_operand in "type" calculation.
12219         (*movqi_extv_1): Likewise.
12220         (*movqi_extzv_2_rex64): Likewise.
12221         (*movqi_extzv_2): Likewise.
12222
12223         * config/i386/predicates.md (QIreg_operand): New.
12224
12225 2011-05-25  Richard Guenther  <rguenther@suse.de>
12226
12227         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12228         type-based offset disambiguation, streamline MEM_REF and
12229         TARGET_MEM_REF handling.
12230
12231 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12232
12233         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12234         (bdesc_special_args): Add pause intrinsic.
12235
12236         * config/i386/i386.md (UNSPEC_PAUSE): New.
12237         (pause): Likewise.
12238         (*pause): Likewise.
12239         * config/i386/ia32intrin.h (__pause): Likewise.
12240
12241         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12242         pause intrinsic.
12243
12244 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12245
12246         PR tree-optimization/46728
12247         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12248         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12249
12250 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12251
12252         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12253         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12254         instead of TS_COMMON.
12255
12256 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12257
12258         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12259         LIBGCC2_GNU_PREFIX is defined.
12260         (__N): New macro.
12261         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12262         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12263         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12264         __clz_tab): Define using __N.
12265         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12266         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12267         * target.def (libfunc_gnu_prefix): New hook.
12268         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12269         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12270         * doc/tm.texi: Regenerate.
12271         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12272         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12273         account.
12274         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12275         (init_optabs): Likewise for the bswap libfuncs.
12276         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12277         and divide.
12278         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12279         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12280         * libgcc-std.ver: Remove.
12281         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12282         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12283         libgcc-std.ver.
12284         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12285         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12286         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12287         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12288         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12289         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12290         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12291         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12292         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12293         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12294
12295 2011-05-25  Jan Hubicka  <jh@suse.cz>
12296
12297         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12298         (lto_output_tree): Use output_record_start.
12299         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12300         (lto_get_pickled_tree): Use input_record_start.
12301         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12302         (lto_value_range_error): New function.
12303         * lto-streamer.h (lto_value_range_error): Declare.
12304         (lto_output_int_in_range, lto_input_int_in_range): New functions.
12305         (lto_output_enum, lto_input_enum): New macros.
12306
12307 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12308
12309         * common.opt (flag_stack_usage_info): New variable.
12310         (-Wstack-usage): New option.
12311         * doc/invoke.texi (Warning options): Document -Wstack-usage.
12312         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12313         <OPT_fstack_usage>: Likewise.
12314         * toplev.c (output_stack_usage): Handle -Wstack-usage.
12315         * calls.c (expand_call): Test flag_stack_usage_info variable instead
12316         of flag_stack_usage.
12317         (emit_library_call_value_1): Likewise.
12318         * explow.c (allocate_dynamic_stack_space): Likewise.
12319         * function.c (instantiate_virtual_regs ): Likewise.
12320         (prepare_function_start): Likewise.
12321         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12322         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12323         * config/arm/arm.c (arm_expand_prologue): Likewise.
12324         (thumb1_expand_prologue): Likewise.
12325         * config/avr/avr.c (expand_prologue): Likewise.
12326         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12327         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12328         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12329         * config/mips/mips.c (mips_expand_prologue): Likewise.
12330         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12331         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12332         * config/s390/s390.c (s390_emit_prologue): Likewise.
12333         * config/sh/sh.c (sh_expand_prologue): Likewise.
12334         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12335         * config/spu/spu.c (spu_expand_prologue): Likewise.
12336
12337 2011-05-25  Richard Guenther  <rguenther@suse.de>
12338
12339         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12340         (gimple_canonical_types_compatible_p): Likewise.
12341
12342 2011-05-25  Jan Hubicka  <jh@suse.cz>
12343
12344         PR middle-end/49062
12345         * ipa.c (function_and_variable_visibility): Only add to same
12346         comdat group list if DECL_ONE_ONLY.
12347
12348 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
12349
12350         PR rtl-optimization/49014
12351         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12352
12353 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12354
12355         PR target/49128
12356         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12357
12358 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12359
12360         PR rtl-optimization/48757
12361         * ira-build.c (loop_with_eh_edge_p): Rename to
12362         loop_with_complex_edge_p, check edges on complexity, make function
12363         conditional.
12364         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12365         conditional.
12366
12367 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12368
12369         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12370         force flag_ira_share_save_slots to 0.
12371
12372 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12373
12374         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12375         (vt_initialize): Set PROLOGUE_BB unconditionally.
12376         Add block comment about CFA_BASE_RTX machinery.
12377         Reset FP_CFA_OFFSET to -1 on all invalid paths.
12378         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12379
12380 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12381
12382         PR objc/48187
12383         * c-parser.c (c_parser_objc_class_instance_variables): More robust
12384         parsing of syntax error in ObjC instance variable lists.  In
12385         particular, avoid an infinite loop if there is a stray ']'.
12386         Updated error message.
12387
12388 2011-05-24  Ian Lance Taylor  <iant@google.com>
12389
12390         * godump.c (go_define): Don't accept a string immediately after
12391         another operand.
12392
12393 2011-05-24  Ian Lance Taylor  <iant@google.com>
12394
12395         * godump.c (struct godump_container): Add invalid_hash field.
12396         (go_format_type): Return false if type is found in invalid_hash.
12397         (go_output_typedef): Add invalid type to invalid_hash.
12398         (go_finish): Create and delete invalid_hash.
12399
12400 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12401
12402         PR tree-optimization/46728
12403         * tree-ssa-math-opts.c (powi_table): New.
12404         (powi_lookup_cost): New.
12405         (powi_cost): New.
12406         (powi_as_mults_1): New.
12407         (powi_as_mults): New.
12408         (gimple_expand_builtin_powi): New.
12409         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12410         (gate_cse_sincos): Remove sincos/cexp restriction.
12411
12412 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12413
12414         PR target/3746
12415         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12416         mips-tdump native.
12417         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12418         * mips-tdump.c: Likewise.
12419
12420 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12421
12422         PR target/49128
12423         * config/i386/driver-i386.c (host_detect_local_cpu): Always
12424         add -mno-XXX.  Handle FMA.
12425
12426 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12427
12428         PR rtl-optimization/48633
12429         * ira-build.c (loop_with_eh_edge_p): New function.
12430         (mark_loops_for_removal): Use it.
12431
12432 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12433
12434         PR rtl-optimization/48971
12435         * ira.c (setup_pressure_classes): Don't check register move cost
12436         for classes with one registers.  Don't add pressure class if there
12437         is a pressure class with the same available hard registers.
12438         Check contains_reg_of_mode.  Fix a typo in collecting
12439         temp_hard_regset.  Ignore hard registers not belonging to a class.
12440
12441 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12442
12443         PR target/49133
12444         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12445
12446 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12447             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12448
12449         PR gcov-profile/48845
12450         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12451
12452 2011-05-24  Richard Guenther  <rguenther@suse.de>
12453
12454         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12455         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12456         (gimple_types_compatible_p_1): Adjust.
12457         (iterative_hash_canonical_type): Do not bother about complete vs.
12458         incomplete types.
12459         (gimple_canonical_types_compatible_p): Likewise.
12460
12461 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12462
12463         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12464
12465 2011-05-24  Richard Guenther  <rguenther@suse.de>
12466
12467         PR bootstrap/49078
12468         * gimple.c (gimple_register_canonical_type): Revert
12469         previous change.
12470         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12471         does not for a tree for the case where it matters.  Cache
12472         pointer-type alias-sets.
12473
12474 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12475
12476         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12477         (OBJS): Remove options.o, opts-common.o and prefix.o.
12478         (OBJS-libcommon-target): New.
12479         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12480         (BACKEND): Include libcommon-target.a.
12481         (MOSTLYCLEANFILES): Include libcommon-target.a.
12482         (libcommon-target.a): New.
12483         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12484         prefix.o.
12485
12486 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12487
12488         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12489         parts of output shared with the driver.
12490         * optc-gen.awk: Don't generate parts of output not shared with the
12491         driver.
12492         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12493         * doc/options.texi (SourcerInclude): Mention options-save.c.
12494         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12495         (OBJS): Add options-save.o.
12496         (options-save.c, options-save.o): New.
12497         (options.o): Update dependencies.
12498         (gcc-options.o): Remove.
12499         (mostlyclean): Remove options-save.c.
12500
12501 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12502
12503         PR debug/49032
12504         * dbxout.c: Include cgraph.h.
12505         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12506         and without value expr, return NULL if no varpool node exists for
12507         it or if it is not needed.
12508         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12509
12510         PR c/49120
12511         * c-decl.c (start_decl): Convert expr to void_type_node.
12512
12513 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12514
12515         PR rtl-optimization/48826
12516         * emit-rtl.c (try_split): When splitting a call that is followed
12517         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12518
12519 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12520
12521         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12522         parameters passed in memory prefer using DECL_INCOMING_RTL over
12523         the pseudos it will be copied into.
12524
12525 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12526
12527         PR target/47315
12528         * config/i386/i386.c (ix86_option_override_internal): Save the
12529         initial options after checking vzeroupper.
12530
12531 2011-05-23  David Li  <davidxl@google.com>
12532
12533         PR tree-optimization/48988
12534         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12535         Initialize has_valid_pred for each pred chain.
12536
12537 2011-05-23  Richard Guenther  <rguenther@suse.de>
12538
12539         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12540         (iterative_hash_gimple_type): Always hash type names.
12541
12542 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12543
12544         * c-typeck.c (build_function_call_vec): Tweak call to
12545         check_function_arguments.
12546
12547 2011-05-23  Richard Guenther  <rguenther@suse.de>
12548
12549         PR tree-optimization/49115
12550         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12551         is not necessarily carried out, do not claim it kills the ref.
12552         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12553
12554 2011-05-23  Richard Guenther  <rguenther@suse.de>
12555
12556         PR middle-end/15419
12557         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12558         what pointer types we accept for folding.
12559
12560 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12561
12562         * gthr-gnat.c: Remove.
12563         * gthr-gnat.h: Remove.
12564         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12565         * config/t-freebsd (LIB2ADDEH): Likewise.
12566         * config/t-linux (LIB2ADDEH): Likewise.
12567         * config/t-sol2 (LIB2ADDEH): Likewise.
12568         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12569         * configure.ac (target_thread_file): Remove gnat handling.
12570         * configure: Regenerate.
12571         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12572
12573 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12574             Eric Botcazou  <ebotcazou@adacore.com>
12575
12576         * gcov.c (create_file_names): If no object directory is specified,
12577         keep the directory of the file.
12578
12579 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12580
12581         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12582         * configure: Regenerate.
12583
12584 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12585
12586         PR middle-end/48973
12587         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12588         failed and the comparison has a single bit signed type, use
12589         constm1_rtx instead of const1_rtx for true value.
12590         (do_store_flag): If ops->type is single bit signed type, disable
12591         signel bit test optimization and pass -1 instead of 1 as last
12592         parameter to emit_store_flag_force.
12593
12594 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12595
12596         PR target/45098
12597         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12598         function.
12599         (infer_loop_bounds_from_undefined): Use new function.
12600
12601 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12602
12603         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12604         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12605         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12606         and -O0 otherwise.
12607         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12608
12609 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12610
12611         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12612         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12613         returns true.
12614
12615 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12616
12617         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12618
12619 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12620
12621         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12622         UNSPEC_MOVE_PIC pattern.
12623
12624 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12625
12626         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12627         (sparc-*-rtems*): Likewise.
12628         (sparc64-*-elf*): Likewise.
12629         (sparc64-*-rtems*): Likewise.
12630         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12631         * config/sparc/t-crtin: New file.
12632         * config/sparc/t-sol2 (crti.o): Delete rule.
12633         (crtn.o): Likewise.
12634         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12635         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12636         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12637         (ENDFILE_SPEC): Add crtn.o.
12638
12639 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12640
12641         PR middle-end/48689
12642         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12643         CODE_CONTAINS_STRUCT (TS_COMMON).
12644
12645 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12646
12647         PR middle-end/49029
12648         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12649         only after deciding which mode to use.
12650
12651 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12652
12653         PR target/45098
12654         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12655         for call to get_shiftadd_cost.
12656
12657 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12658
12659         PR target/49104
12660         * config/i386/cpuid.h (bit_MMXEXT): New define.
12661
12662 2011-05-22  Nick Clifton  <nickc@redhat.com>
12663
12664         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12665         initialisation of non-existant args[2] element.  Use args[] array
12666         not arg[] array to pass arguments to build_function_type_list.
12667
12668 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12669
12670         PR tree-optimization/49087
12671         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12672
12673 2011-05-21  Jason Merrill  <jason@redhat.com>
12674
12675         PR c++/49092
12676         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12677         static storage duration.
12678
12679 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12680
12681         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12682         frame pointer.
12683
12684 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12685
12686         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12687         false if there are call-saved registers here...
12688         (sparc_can_use_return_insn_p): ...but here instead.
12689         (save_or_restore_regs): Fix thinko.
12690         (sparc_expand_prologue): Use current_function_is_leaf.
12691         (sparc_frame_pointer_required): Likewise.
12692
12693 2011-05-21  Nick Clifton  <nickc@redhat.com>
12694
12695         PR target/49098
12696         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12697
12698 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12699
12700         * gengtype.c (walk_type): Implemented "atomic" GTY option.
12701         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12702
12703 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12704
12705         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
12706         * optc-gen.awk: Move common code to opt-read.awk.
12707         * opth-gen.awk: Likewise.
12708         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12709
12710 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
12711
12712         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12713
12714 2011-05-20  Tom de Vries  <tom@codesourcery.com>
12715
12716         PR target/45098
12717         * tree-ssa-loop-ivopts.c: Include expmed.h.
12718         (get_shiftadd_cost): New function.
12719         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
12720
12721 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12722
12723         PR bootstrap/49086
12724         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12725         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12726
12727 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12728
12729         * Makefile.in: Update comment referring to $(OBJS-common).
12730
12731 2011-05-20  Ian Lance Taylor  <iant@google.com>
12732
12733         * godump.c (go_output_typedef): Put enum constants in the macro
12734         hash table to avoid duplicate Go const definitions.
12735
12736 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12737
12738         * Makefile.in (LIBDEPS): Add libcommon.a.
12739         (LIBS): Likewise.
12740         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12741         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12742         pretty-print.o and version.o.
12743         (OBJS-libcommon): New.
12744         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12745         (BACKEND): Add libcommon.a.
12746         (MOSTLYCLEANFILES): Likewise.
12747         (libcommon.a): New.
12748         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12749         (cpp$(exeext)): Likewise.
12750         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12751         pretty-print.o and input.o.
12752         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12753         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12754         (errors.o): Remove.
12755         (mips-tfile): Don't explicitly use version.o.
12756         (mips-tdump): Likewise.
12757         (gcov.o): Depend on $(DIAGNOSTIC_H).
12758         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12759         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12760         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12761         * gcov-dump.c: Include intl.h and diagnostic.h.
12762         (main): Initialize diagnostics.
12763         * gcov.c: Include diagnostic.h.
12764         (fnotice): Remove.
12765         (main): Initialize diagnostics.
12766         * lto-wrapper.c: Include diagnostic.h.
12767         (main): Initialize diagnostics.
12768
12769 2011-05-20  Michael Matz  <matz@suse.de>
12770
12771         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12772
12773 2011-05-20  Michael Matz  <matz@suse.de>
12774             Richard Guenther  <rguenther@suse.de>
12775
12776         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12777         use lto_streamer_cache_append directly instead of returning a VEC.
12778         (preload_common_node): Remove.
12779         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12780         track seen nodes.
12781         (lto_streamer_cache_create): Call lto_preload_common_nodes.
12782
12783 2011-05-20  Richard Guenther  <rguenther@suse.de>
12784
12785         PR tree-optimization/49079
12786         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12787         MEM_REFs correctly for the trailing array access detection.
12788         Special case constants the same way as decls for overall size
12789         constraining.
12790
12791 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
12792
12793         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12794         argument expansion.
12795
12796 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12797
12798         PR tree-optimization/49073
12799         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12800         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12801         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12802
12803 2011-05-20  Richard Guenther  <rguenther@suse.de>
12804
12805         PR middle-end/48849
12806         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12807         of pointer types the same way the middle-end does.
12808
12809 2011-05-20  Richard Guenther  <rguenther@suse.de>
12810
12811         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12812         or pointer-to chains.  Delay all fixup to uniquify_nodes.
12813
12814 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
12815
12816         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12817         (fma4_fmaddsub): Likewise
12818
12819 2011-05-19  Jan Hubicka  <jh@suse.cz>
12820
12821         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12822         (GIMPLE_TYPE_PAIR_SIZE): New macro.
12823         (type_pair_cache): New static var.
12824         (lookup_type_pair): Use fixed sized custom hash; make inline.
12825         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12826         calls of lookup_type_pair.
12827         (print_gimple_types_stats): Remove cache stats.
12828         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12829         and gtc_ob.
12830
12831 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
12832
12833         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12834         when TARGET_RDRND is active.
12835         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12836         Generate dummy SImode target register when target is NULL.
12837
12838 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12839
12840         * config/arm/arm-fpus.def: New.
12841         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12842         arm-fpus.def.
12843         * config/arm/arm-tables.opt: Regenerate.
12844         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12845         (arm_option_override): Don't decode FPU name to string here.
12846         * config/arm/arm.opt (mfpu=): Use Enum.
12847         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12848         Update dependencies.
12849
12850 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12851
12852         * collect2.c: Include diagnostic.h.
12853         (fatal_perror, fatal, error, fancy_abort): Remove.
12854         (main): Set progname.  Call xmalloc_set_program_name and
12855         diagnostic_initialize.
12856         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12857         scan_libraries, resolve_lib_name): Call fatal_error instead of
12858         fatal and fatal_perror.
12859         * collect2.h (error, fatal, fatal_perror): Don't declare.
12860         * tlink.c: Include diagnostic-core.h.
12861         (recompile_files): Call fatal_error instead of fatal_perror.
12862         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12863         pretty-print.o and input.o.
12864         (collect2.o, tlink.o): Update dependencies.
12865
12866 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12867
12868         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12869
12870 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12871
12872         PR target/40483
12873         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12874         COMDAT group syntax, both SPARC and x86 variants.
12875         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12876         * configure: Regenerate.
12877         * config/sol2.h (TARGET_SOLARIS): Define.
12878         (PUSHSECTION_FORMAT): Remove.
12879         (SECTION_NAME_FORMAT): Define.
12880         * config/sol2.c: Include hashtab.h.
12881         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12882         expansion, using SECTION_NAME_FORMAT.
12883         (solaris_comdat_htab): New variable.
12884         (struct comdat_entry): Define.
12885         (comdat_hash): New function.
12886         (comdat_eq): New function.
12887         (solaris_elf_asm_comdat_section): New function.
12888         (solaris_define_comdat_signature): New function.
12889         (solaris_code_end): New function.
12890         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12891         (solaris_code_end): Declare.
12892         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12893         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12894         solaris_code_end.
12895         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12896         Remove ATTRIBUTE_UNUSED.
12897         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12898         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12899         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12900         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12901         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12902         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12903         (PUSHSECTION_FORMAT): Remove.
12904         (SECTION_NAME_FORMAT): Redefine.
12905
12906 2011-05-19  Kai Tietz  <ktietz@redhat.com>
12907
12908         * tree-cfg.c (verify_gimple_assign_binary): Barf on
12909         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12910         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12911
12912 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
12913             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12914
12915         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12916
12917 2011-05-19  Richard Guenther  <rguenther@suse.de>
12918
12919         PR middle-end/48985
12920         * tree-object-size.c (addr_object_size): If the pointed-to
12921         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12922
12923 2011-05-19  Richard Guenther  <rguenther@suse.de>
12924
12925         * gimple.c (gimple_types_compatible_p_1): Compare names of
12926         the types themselves.
12927         (iterative_hash_gimple_type): And hash them that way.
12928         (gimple_register_type_1): If we register a main variant properly
12929         initialize the leader to ourselves.
12930
12931 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12932
12933         PR target/45098
12934         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12935         get_loop_invariant_expr_id.
12936         (get_loop_invariant_expr_id): Use get_expr_id.
12937         (parm_decl_cost): New function.
12938         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12939         Improve bound cost estimation.  Use different inv_expr_id for elim and
12940         express cases.
12941
12942 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12943
12944         PR target/45098
12945         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12946         cost_base.cost == 0.
12947
12948 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12949
12950         PR target/49002
12951         * config/i386/sse.md
12952         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12953         load cast.
12954
12955 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12956
12957         PR tree-optimization/49039
12958         * tree-vrp.c (extract_range_from_binary_expr): For
12959         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12960         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
12961
12962 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12963
12964         PR target/45098
12965         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
12966
12967 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
12968
12969         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
12970         (*tls_global_dynamic_64): Ditto.
12971         (*tls_local_dynamic_base_32_gnu): Ditto.
12972         (*tls_local_dynamic_base_64): Ditto.
12973         (tls_initial_exec_64_sun): Ditto.
12974
12975 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
12976
12977         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12978         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
12979         bf592-none.
12980         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
12981         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
12982         * config/bfin/bfin.c (bfin_cpus): Add bf592.
12983         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12984         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
12985         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12986         * config/bfin/elf.h (LIB_SPEC): Add bf592.
12987
12988 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
12989
12990         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
12991         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
12992         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
12993         target_thread_pointer, arm_structure_size_boundary, struct
12994         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
12995         struct abi_name, arm_all_abis): Remove.
12996         (arm_option_override) Don't process most enumerated option values here.
12997         Don't process target_fpe_name here.  Work with integer not string for
12998         structure size boundary; use separate diagnostics for each case.
12999         * config/arm/arm.h (enum float_abi_type, enum
13000         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13001         to arm-opts.h.
13002         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13003         arm_structure_size_boundary): Remove.
13004         * config/arm/arm.opt (mabi=): Use Enum and Init.
13005         (arm_abi_type): New Enum and EnumValue entries.
13006         (mfloat-abi=): Use Enum and Init.
13007         (float_abi_type): New Enum and EnumValue entries.
13008         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13009         (mfp16-format=): Use Enum and Init.
13010         (arm_fp16_format_type): New Enum and EnumValue entries.
13011         (mstructure-size-boundary=): Use UInteger and Init.
13012         (mtp=): Use Enum and Init.
13013         (arm_tp_type): New Enum and EnumValue entries.
13014
13015 2011-05-18  Richard Guenther  <rguenther@suse.de>
13016
13017         PR tree-optimization/49018
13018         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13019         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13020         gimple_has_side_effects.
13021
13022 2011-05-18  Richard Guenther  <rguenther@suse.de>
13023
13024         * gimple.c (gimple_register_type_1): New function, split out from ...
13025         (gimple_register_type): ... here.  Avoid infinite recursion.
13026
13027 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13028
13029         PR tree-optimization/41881
13030         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13031         reduction_chains along with a macro for its access.
13032         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13033         (destroy_loop_vec_info): Free reduction chains.
13034         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13035         (vect_is_slp_reduction): New function.
13036         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13037         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13038         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13039         definition types for reduction chains.
13040         (vect_supported_load_permutation_p): Don't allow permutations for
13041         reduction chains.
13042         (vect_analyze_slp_instance): Support reduction chains.
13043         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13044         (vect_get_constant_vectors):  Handle reduction chains.
13045         (vect_schedule_slp_instance): Mark the first statement of the
13046         reduction chain as reduction.
13047
13048 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13049
13050         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13051         names for group elements access.
13052         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13053         reduction chains as well.  Remove data reference and interleaving
13054         related words from the fields names.
13055         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13056         elements access.
13057         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13058         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13059         vect_update_interleaving_chain, vect_same_range_drs,
13060         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13061         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13062         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13063         vect_analyze_group_access, vect_analyze_data_ref_access,
13064         vect_create_data_ref_ptr, vect_transform_strided_load,
13065         vect_record_strided_load_vectors): Likewise.
13066         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13067         vect_model_load_cost, vectorizable_store, vectorizable_load,
13068         vect_remove_stores, new_stmt_vec_info): Likewise.
13069         * tree-vect-slp.c (vect_build_slp_tree,
13070         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13071
13072 2011-05-18  Richard Guenther  <rguenther@suse.de>
13073
13074         PR middle-end/48989
13075         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13076         operand verification.
13077         (verify_gimple_assign_binary): Likewise.
13078         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13079         to non-1-precision BOOLEAN_TYPEs.
13080
13081 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13082
13083         PR target/45098
13084         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13085
13086 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13087
13088         PR tree-optimization/49000
13089         * tree-ssa.c (execute_update_addresses_taken): Call
13090         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13091         be rewritten and decl has been marked for renaming, reset
13092         the debug stmt.
13093
13094 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13095
13096         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13097         enum_opts_set when testing if attributes have set -mfpmath=.
13098
13099 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13100
13101         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13102
13103 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13104
13105         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13106         info->entry with 0
13107         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13108         id.transform_lang_insert_block with NULL.
13109
13110 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13111
13112         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13113         (output_fp_compare): Change args 3 and 4 to bool.
13114         (ix86_expand_call): Change arg 6 to bool.
13115         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13116         (ix86_attr_length_vex_default): Change arg 3 to bool.
13117         * config/i386/i386.md: Update all uses.
13118         * config/i386/i386.c: Ditto.
13119         (ix86_flags_dependent): Change return type to bool.
13120
13121 2011-05-17  Richard Guenther  <rguenther@suse.de>
13122
13123         * gimple.c (type_hash_pair_compare): Fix comparison.
13124
13125 2011-05-17  Richard Guenther  <rguenther@suse.de>
13126
13127         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13128         case some more, fix final hash value of the non-singleton case.
13129
13130 2011-05-17  Richard Guenther  <rguenther@suse.de>
13131
13132         PR bootstrap/49013
13133         Revert
13134         2011-05-16  Richard Guenther  <rguenther@suse.de>
13135
13136         * gimple.c (gimple_types_compatible_p_1): Use names of the
13137         type itself, not its main variant.
13138         (iterative_hash_gimple_type): Likewise.
13139
13140 2011-05-17  Richard Guenther  <rguenther@suse.de>
13141
13142         * gimple.c (gimple_register_canonical_type): Use the main-variant
13143         leader for computing the canonical type.
13144
13145 2011-05-17  Nick Clifton  <nickc@redhat.com>
13146
13147         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13148         moves.
13149
13150         * config/rx/rx.md: Add peephole to remove redundant extensions
13151         after loads.
13152         (bitset_in_memory): Use rx_restricted_mem_operand.
13153         (bitinvert_in_memory): Likewise.
13154         (bitclr_in_memory): Likewise.
13155
13156 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13157             Nick Clifton  <nickc@redhat.com>
13158
13159         * config/rx/rx.md: Add peepholes to match a register move followed
13160         by a comparison of the moved register.  Replace these with an
13161         addition of zero that does both actions in one instruction.
13162
13163 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13164
13165         PR target/48986
13166         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13167         predicate to allow CONST_INT.
13168         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13169
13170 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13171
13172         * opts-common.c (opt_enum_arg_to_value): New.
13173         * opts.h (opt_enum_arg_to_value): Declare.
13174         * config/i386/i386.opt (fpmath): Remove.
13175         (mfpmath=): Use Enum, Init and Save.
13176         (fpmath_unit): New Enum and EnumValue entries.
13177         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13178         name for function fpmath state.
13179         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13180         * config/i386/i386.c: Include diagnostic.h.
13181         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13182         (ix86_target_string): Take enum fpmath_unit value instead of string.
13183         (ix86_debug_options): Update call to ix86_target_string.
13184         (ix86_option_override_internal): Don't process fpmath strings here.
13185         (x86_function_specific_save, ix86_function_specific_restore):
13186         Don't handle fpmath state specially.
13187         (ix86_function_specific_print): Pass fpmath state to
13188         ix86_target_string instead of printing in this function.
13189         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13190         Handle enum attributes.
13191         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13192         (ix86_valid_target_attribute_tree): Update option_strings
13193         handling.  Handle fpmath as enum option.
13194         (ix86_can_inline_p): Update field names for function fpmath state.
13195         (ix86_expand_builtin): Update call to ix86_target_string.
13196         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13197         (ix86_fpmath): Remove.
13198         * config/i386/t-i386 (i386.o): Update dependencies.
13199
13200 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13201
13202         PR preprocessor/48677
13203         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13204         from decoded_options[0], not from itself.
13205
13206 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13207
13208         * config/i386/constraints.md (z): New constraint.
13209         * config/i386/i386.c (c): New mode attribute.
13210         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13211         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13212         constraint for operand 0.
13213         (*call_vzeroupper): Ditto.
13214         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13215         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13216         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13217         Use "lzm" constraint for operand 0.
13218         (*call_pop_vzeroupper): Ditto.
13219         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13220         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13221         constraint for operand 0.
13222         (*sibcall_vzeroupper): Ditto.
13223         (*sibcall_rex64_ms_sysv): Ditto.
13224         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13225         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13226         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13227         (*sibcall_pop_vzeroupper): Ditto.
13228         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13229         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13230         mode iterator.  Use "<c>zm" constraint for operand 1.
13231         (*call_value_vzeroupper): Ditto.
13232         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13233         for operand 1.
13234         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13235         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13236         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13237         (*call_value_pop_vzeroupper): Ditto.
13238         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13239         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13240         mode iterator.  Use "Uz" constraint for operand 1.
13241         (*sibcall_value_vzeroupper): Ditto.
13242         (*sibcall_value_rex64_ms_sysv): Ditto.
13243         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13244         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13245         constraint for operand 1.
13246         (*sibcall_value_pop_vzeroupper): Ditto.
13247         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13248         and "z" constraint for operand 2.
13249         (*tls_global_dynamic_32_gnu): Ditto.
13250         (*tls_local_dynamic_base_32_gnu): Ditto.
13251         (*tls_local_dynamic_base_64): Ditto.
13252         (*tls_local_dynamic_32_once): Ditto.
13253         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13254         Update all callers.
13255         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13256
13257 2011-05-16  Richard Guenther  <rguenther@suse.de>
13258
13259         * gimple.c (gimple_types_compatible_p_1): Use names of the
13260         type itself, not its main variant.
13261         (iterative_hash_gimple_type): Likewise.
13262
13263 2011-05-16  Richard Guenther  <rguenther@suse.de>
13264
13265         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13266         always visit pointer target and function result and argument types.
13267
13268 2011-05-16  Jason Merrill  <jason@redhat.com>
13269
13270         PR c++/48999
13271         * tree-inline.c (copy_statement_list): Put back recursion.
13272
13273 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13274
13275         PR target/27663
13276         PR target/41076
13277         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13278         * config/avr/avr.md ("*ior<mode>qi.byte0",
13279         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13280
13281 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13282
13283         PR target/45099
13284         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13285         register is needed for a function argument.
13286
13287 2011-05-16  Richard Guenther  <rguenther@suse.de>
13288
13289         * gimple.c (struct type_hash_pair): New type.
13290         (type_hash_pair_compare): New function.
13291         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13292
13293 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13294
13295         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13296
13297 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13298
13299         * config/i386/i386.md (floating point move splitters): Fix
13300         usage of standard_80387_constant_p.
13301         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13302
13303 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13304
13305         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13306
13307 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13308
13309         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13310         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13311         (tree_ssa_lim_finalize): Likewise.
13312
13313 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
13314
13315         * config/i386/constraint.md (Yd, Yx): New register constraints.
13316         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
13317         Yd conditional register constraint.
13318         (*movtf_internal): Use standard_sse_constant_opcode.
13319         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
13320         Yx conditional register constraint.
13321         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
13322         Yd conditional register constraint.  Use standard_sse_constant_p to
13323         check for valid SSE constants and call standard_sse_constant_opcode to
13324         output SSE insn.
13325         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13326         constants and call standard_sse_constant_opcode to output SSE insn.
13327         * config/i386/i386.c (ix86_option_ovverride_internal): Set
13328         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
13329         optimize_size is set.
13330         (standard_sse_constant_opcode): Output conditional AVX insn templates.
13331
13332 2011-05-14  Tobias Burnus  <burnus@net-b.de>
13333
13334         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13335
13336 2011-05-13  Martin Jambor  <mjambor@suse.cz>
13337
13338         * ipa-prop.c (ipa_cst_from_jfunc): New function.
13339         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13340         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13341         (evaluate_conditions_for_ipcp_clone): Removed.
13342         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13343         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13344         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13345
13346 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13347
13348         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13349         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13350         lieu of MAY_HAVE_DEBUG_STMTS.
13351         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13352         debug statements if !MAY_HAVE_DEBUG_STMTS.
13353
13354 2011-05-13  Martin Thuresson  <martint@google.com>
13355
13356         PR gcov-profile/47793
13357         * libgcov.c (gcov_exit): Support relative profile paths.
13358         * doc/invoke.texi (-fprofile-dir): Update for above change.
13359
13360 2011-05-13  Richard Guenther  <rguenther@suse.de>
13361
13362         * gimple.c (gimple_canonical_types_compatible_p): Do not use
13363         type-pair caching, do not compare hashes.
13364
13365 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
13366
13367         PR middle-end/48965
13368         * tree-cfg.c (edge_to_cases_cleanup): Return true.
13369         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13370
13371 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13372
13373         * gimplify.c (gimplify_expr): Make sure operand is boolified.
13374         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13375         compatible type for TRUTH_NOT_EXPR.
13376
13377 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13378
13379         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13380         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
13381         can_create_pseudo_p ().
13382
13383 2011-05-13  Richard Guenther  <rguenther@suse.de>
13384
13385         PR lto/48978
13386         * gimple.c (iterative_hash_gimple_type): Revert change in
13387         pointer target and function result and argument hashing.
13388
13389 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
13390
13391         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13392         (*movxf_internal_nointeger): Ditto.
13393         (*movdf_internal_rex64): Ditto.
13394         (*movdf_internal): Ditto.
13395         (*movdf_internal_nointeger): Ditto.
13396         (*movsf_internal): Ditto.
13397         (sincos splitters): Use can_create_pseudo ().
13398
13399 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
13400
13401         * config/i386/i386-opts.h: New.
13402         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13403         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13404         ix86_section_threshold): Remove.
13405         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
13406         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13407         OPT_mbranch_cost_.
13408         (ix86_option_override_internal): Don't decode strings for options
13409         other than -march=, -mtune= and -mfpmath=.  Don't allow for
13410         __attribute__ uses in remaining diagnostics for options with
13411         string arguments.  Don't check for integer arguments being negative.
13412         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13413         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13414         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13415         ix86_branch_cost, ix86_section_threshold): Remove.
13416         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13417         HeaderInclude.
13418         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13419         but not Var.
13420         (masm=): Use Enum and Init.
13421         (asm_dialect): New Enum and EnumValue entries.
13422         (mbranch-cost=): Use UInteger.
13423         (mlarge-data-threshold=): Use UInteger and Init.
13424         (mcmodel=): Use Enum and Init.
13425         (cmodel): New Enum and EnumValue entries.
13426         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13427         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13428         mregparm=): Use UInteger.
13429         (mstringop-strategy=): Use Enum and Init.
13430         (stringop_alg): New Enum and EnumValue entries.
13431         (mtls-dialect=): Use Enum and Init.
13432         (tls_dialect): New Enum and EnumValue entries.
13433         (mabi=): Use Enum and Init.
13434         (calling_abi): New Enum and EnumValue entries.
13435         (mveclibabi=): Use Enum and Init.
13436         (ix86_veclibabi): New Enum and EnumValue entries.
13437
13438 2011-05-13  Nick Clifton  <nickc@redhat.com>
13439
13440         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13441         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13442
13443 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13444
13445         PR middle-end/48984
13446         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13447         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13448         (gimple_boolify): Check for cast for boolean_type_node instead for
13449         BOOLEAN_TYPE.
13450
13451 2011-05-13  Richard Guenther  <rguenther@suse.de>
13452
13453         PR tree-optimization/48172
13454         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13455         multiplying by number of iterations for equal step.
13456         (vect_create_cond_for_alias_checks): Likewise.
13457
13458 2011-05-13  Andreas Schwab  <schwab@redhat.com>
13459
13460         * configure.ac: Use AS_HELP_STRING throughout.
13461         * configure: Regenerate.
13462
13463 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13464
13465         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13466         (ix86_emit_restore_regs_using_mov): Likewise.
13467         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13468
13469 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13470
13471         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13472         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13473         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13474         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13475         RTX_OK_FOR_OLO10_P): ...here.
13476         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13477         SYMBOLIC_CONST.
13478
13479 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13480
13481         * gimplify.c (gimple_boolify): Re-boolify expression
13482         arguments even if expression type is of kind BOOLEAN_TYPE.
13483         (gimplify_boolean_expr): Removed.
13484         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13485         and XOR. Additional take care that we keep expression's type.
13486         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13487         of TRUTH_AND|OR|XOR_EXPR.
13488
13489 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13490
13491         PR tree-optimization/48975
13492         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13493         on all bbs here and free and clear ifc_bbs at the end.
13494
13495 2011-05-12  Richard Guenther  <rguenther@suse.de>
13496
13497         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13498         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13499         until after simple checks.
13500         (gimple_types_compatible_p): Likewise.
13501         (iterative_hash_gimple_type): Always hash pointer targets
13502         and function return and argument types.
13503         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13504         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13505         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13506         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13507         completely in the simple compare section.
13508         (gimple_register_canonical_type): Query the cache again after
13509         registering.
13510
13511 2011-05-12  Richard Guenther  <rguenther@suse.de>
13512
13513         PR tree-optimization/48172
13514         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13515         the number of iterations from the segment size calculation.
13516         (vect_create_cond_for_alias_checks): Adjust.
13517
13518 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13519
13520         PR debug/48967
13521         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13522         if validate_subreg fails.
13523
13524 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13525
13526         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13527         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13528         early.
13529
13530 2011-05-12  DJ Delorie  <dj@redhat.com>
13531
13532         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13533         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13534         created builtin into rx_builtins array.
13535         (rx_builtin_decl): New function.
13536         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13537
13538 2011-05-12  DJ Delorie  <dj@redhat.com>
13539             Nick Clifton  <nickc@redhat.com>
13540
13541         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13542         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13543         (rx_is_legitimate_address): Add pre-decrement and post-increment
13544         addressing in HImode and QImode.  Fix test for out of range
13545         REG+INT addressing.
13546         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13547         (rx_align_for_label): Test label before extracting its usage count.
13548         (rx_adjust_insn_lengths): Fix selection of insn codes.
13549         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13550
13551 2011-05-11  Jason Merrill  <jason@redhat.com>
13552
13553         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13554
13555 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13556
13557         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13558         reindent the subsequent block.
13559
13560 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13561             Paul Pluzhnikov  <ppluzhnikov@google.com>
13562
13563         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13564         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13565         * config.in: Add LINKER_HASH_STYLE.
13566         * configure.ac: Add --with-linker-hash-style.
13567         * configure: Regenerate.
13568
13569 2011-05-11  Richard Guenther  <rguenther@suse.de>
13570
13571         PR middle-end/48964
13572         * gimple.c (iterative_hash_canonical_type): Fix typo.
13573
13574 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13575
13576         * config/i386/i386.c (legitimize_tls_address)
13577         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13578         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13579         __tls_get_addr symbol reference here.  Update call to
13580         gen_tls_global_dynamic_{32,64} for added arguments.
13581         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13582         expanders directly for TARGET_GNU2_TLS.  Determine
13583         __tls_get_addr symbol reference here.  Update call to
13584         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13585         unique UNSPEC REG_EQUIV to libcall block.
13586         (ix86_tls_get_addr): Declare static.
13587         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13588         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13589         Do not determine pic and __tls_get_addr symbol reference here. Do not
13590         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13591         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13592         (tls_global_dynamic_64): Add operand 2.  Do not determine
13593         __tls_get_addr symbol reference here.  Do not call
13594         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13595         (tls_local_dynamic_base64): Ditto for operand 1.
13596
13597 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13598
13599         * function.c (expand_function_start): Initialize stack_check_probe_note
13600         only if the generic stack checking mechanism is used.
13601
13602 2011-05-11  Richard Guenther  <rguenther@suse.de>
13603
13604         PR tree-optimization/15256
13605         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13606         (A & B) | C, combine (A op CST1) op CST2.
13607         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13608         visit assigns that have uses.
13609
13610 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13611
13612         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13613         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13614         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13615         (unpack_value_fields): Adjust for renaming.
13616         (lto_input_ts_type_tree_pointers): Split into...
13617         (lto_input_ts_type_common_tree_pointer): ...this and...
13618         (lto_input_ts_type_non_common_tree_pointers): ...this.
13619         (lto_input_tree_pointers): Adjust for above split.
13620         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13621         (pack_ts_type_common_value_fields): ...this.  Update comment.
13622         (lto_output_ts_type_tree_pointers): Split into...
13623         (lto_output_ts_type_common_tree_pointers): ...this and...
13624         (lto_output_ts_type_non_common_tree_pointers): ...this.
13625         (lto_output_tree_pointers): Adjust for above split.
13626         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13627         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13628         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13629         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13630         Define.
13631         (struct tree_type): Split into...
13632         (struct tree_type_common: ...this and...
13633         (struct tree_type_with_lang_specific): ...this and...
13634         (struct tree_type_non_common): ...this.  Adjust accessor macros
13635         accordingly.
13636         (TYPE_VALUES_RAW): Define.
13637         (union tree_node): Update for above changes.
13638         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13639         TS_TYPE_NON_COMMON.
13640         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13641         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13642         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13643         * treestructu.def (TS_TYPE): Remove.
13644         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13645         Define.
13646
13647 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13648
13649         PR debug/48159
13650         * tree-ssa.c (reset_debug_uses): New function.
13651         * tree-flow.h (reset_debug_uses): New prototype.
13652         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13653         * tree-loop-distribution.c (generate_loops_for_partition): Call
13654         reset_debug_uses on the stmts that will be removed.  Keep around
13655         all debug stmts, don't count them as bits in partition bitmap.
13656         (generate_builtin): Don't count debug stmts or labels as bits in
13657         partition bitmap.
13658
13659 2011-05-11  Richard Guenther  <rguenther@suse.de>
13660
13661         * gimple.c (gimple_type_hash_1): Merge with ...
13662         (gimple_type_hash): ... this.
13663         (gtc_visit): Remove mode parameter and simplify accordingly.
13664         (gimple_types_compatible_p_1): Likewise.
13665         (gimple_types_compatible_p): Likewise.
13666         (iterative_hash_gimple_type): Likewise.
13667         (visit): Likewise.
13668         (gimple_type_eq): Adjust.
13669
13670 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13671
13672         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13673         enters the branch create an anti edge in the opposite direction
13674         to prevent the creation of reg-moves.
13675         * modulo-sched.c: Adjust comment to reflect the fact we are
13676         scheduling closing branch.
13677         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13678         (stage_count): New field in struct partial_schedule.
13679         (calculate_stage_count): New function.
13680         (normalize_sched_times): Rename to reset_sched_times and handle
13681         incrementing the sched time of the nodes by a constant value
13682         passed as parameter.
13683         (duplicate_insns_of_cycles): Skip closing branch.
13684         (sms_schedule_by_order): Schedule closing branch.
13685         (ps_insn_find_column): Handle closing branch.
13686         (sms_schedule): Call reset_sched_times and adjust the code to
13687         support scheduling of the closing branch.
13688         (ps_insert_empty_row): Update calls to normalize_sched_times
13689         and rotate_partial_schedule functions.
13690
13691 2011-05-11  Richard Guenther  <rguenther@suse.de>
13692
13693         PR middle-end/48953
13694         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13695
13696 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * opts.c (finish_options): Move warning settings from process_options.
13699         * toplev.c (process_options): Move warning settings to finish_options.
13700
13701 2011-05-11  Richard Guenther  <rguenther@suse.de>
13702
13703         PR tree-optimization/18041
13704         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13705         (simplify_bitwise_binary): ... this.  Handle operand conversions
13706         by applying them to the result instead.
13707         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
13708
13709 2011-05-11  Richard Guenther  <rguenther@suse.de>
13710
13711         * gimple.c (gimple_canonical_types_compatible_p): Split out
13712         from gimple_types_compatible_p and friends.  Do not recurse
13713         to pointed-to types.
13714         (gimple_canonical_type_eq): Use it.
13715         (iterative_hash_canonical_type): Split out from
13716         iterative_hash_gimple_type and friends.  Do not recurse
13717         to pointed-to types.
13718         (gimple_canonical_type_hash): Use it, allocate the hash here.
13719
13720 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13721
13722         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13723         recognizing doloop.
13724
13725 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13726
13727         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13728         instead of PREV_INSN.
13729
13730 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13731
13732         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13733         * loop-doloop.c (doloop_condition_get): Likewise.
13734         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13735         (doloop_end): New.
13736         * config/arm/arm.md (*addsi3_compare0): Remove "*".
13737
13738 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13739
13740         * tree.def (CASE_LABEL_EXPR): Add an operand.
13741         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13742
13743 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13744
13745         * c-decl.c (c_override_global_bindings_to_false): Remove.
13746         (global_bindings_p): Don't check
13747         c_override_global_bindings_to_false.
13748         * c-tree.h (c_override_global_bindings_to_false): Remove.
13749         * c-typeck.c (composite_type): Don't set
13750         c_override_global_bindings_to_false.
13751
13752 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13753
13754         PR target/48857, 48495
13755         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13756         (VSX_MODE): Ditto.
13757         (VSX_MOVE_MODE): Ditto.
13758         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13759         VSX vector types.  Add V2DImode.
13760         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13761         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13762         (MODES_TIEABLE_P): Ditto.
13763
13764         * config/rs6000/rs6000.c (rs6000_emit_move): Use
13765         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13766         VSX_VECTOR_MODE.
13767         (init_cumulative_args): Ditto.
13768         (rs6000_function_arg_boundary): Ditto.
13769         (rs6000_function_arg_advance_1): Ditto.
13770         (rs6000_function_arg): Ditto.
13771         (rs6000_function_ok_for_sibcall): Ditto.
13772         (emit_frame_save): Ditto.
13773         (rs6000_function_value): Ditto.
13774         (rs6000_libcall_value): Ditto.
13775
13776 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13777
13778         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13779         i386/darwin-lib.h to $libgcc_tm_file.
13780         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13781
13782 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13783
13784         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13785
13786 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13787
13788         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13789         * config/rs6000/rs6000-tables.opt: New file (generated).
13790         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13791         rs6000/rs6000-tables.opt to extra_options.
13792         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13793         * config/rs6000/rs6000.c (rs6000_select): Remove.
13794         (processor_target_table): Move contents to rs6000-cpus.def.
13795         (darwin_rs6000_override_options): Check
13796         global_options_set.x_rs6000_cpu_index instead of
13797         rs6000_select[1].string.
13798         (rs6000_option_override_internal): Likewise.
13799         (rs6000_handle_option): Don't assert that global structures are in
13800         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
13801         (rs6000_default_cpu): New variable.
13802         (rs6000_file_start): Set it instead of local default_cpu.  Check
13803         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13804         global_options_set.x_rs6000_tune_index instead of rs6000_select.
13805         (rs6000_darwin_file_start): Check rs6000_default_cpu and
13806         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13807         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13808         rs6000_select): Remove.
13809         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13810         Remove.
13811         (mcpu=, mtune=): Use Var, Init, Enum and Save.
13812         * config/rs6000/t-rs6000
13813         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13814         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13815         global_options_set.x_rs6000_cpu_index instead of
13816         rs6000_select[1].string.
13817         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13818         global_options_set.x_rs6000_cpu_index instead of
13819         rs6000_select[1].string.
13820
13821 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13822
13823         * config.gcc (libgcc_tm_file): Define instead of including files
13824         from ../../libgcc/config/ in tm_file.
13825         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13826         * configure: Regenerate.
13827         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13828         libgcc_tm.h, cs-libgcc_tm.h): New.
13829         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13830         (clean): Remove libgcc_tm.h.
13831         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13832         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13833         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13834
13835 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
13836
13837         PR target/48896
13838         * config/avr/avr.c (avr_ret_register): Return unsigned int
13839         instead of int.
13840         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13841         it to avr_libcall_value.
13842         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13843         expand_expr.
13844         (avr_expand_binop_builtin): Ditto.
13845         (avr_expand_unop_builtin): Ditto.
13846
13847 2011-05-10  DJ Delorie  <dj@redhat.com>
13848
13849         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13850         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13851         * config/rx/rx.c (rx_align_for_label): Add label and
13852         uses_threshold parameters.  Do not align when the label is not
13853         used enough.
13854         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13855
13856 2011-05-10  Richard Guenther  <rguenther@suse.de>
13857
13858         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13859         a series of conversions and apply foldings similar to what
13860         fold-const does.
13861         (tree_ssa_forward_propagate_single_use_vars): Call it.
13862
13863 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
13864
13865         PR tree-optimization/48611
13866         PR tree-optimization/48794
13867         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13868         referenced from RESX or EH_DISPATCH arguments.
13869
13870         PR debug/48928
13871         * dfp.c (decimal_to_decnumber): Handle conversion from
13872         dconst{1,2,m1,half}.
13873
13874 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13875
13876         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13877         for !flag_prefer_avx128.
13878         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13879
13880 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13881
13882         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13883         (fold_ternary_loc): Use expr_location_or.
13884
13885 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13886
13887         PR debug/48853
13888         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13889         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13890         Pmode and mem_mode is not VOIDmode.
13891
13892 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
13893
13894         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13895         TYPE_QUAL_RESTRICT): Convert to enum.
13896
13897 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13898
13899         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13900         (const_pow2_1_to_8_operand): Ditto.
13901         (const_pow2_1_to_128_operand): Ditto.
13902         (const_pow2_1_to_32768_operand): Ditto.
13903         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13904         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
13905         in insn constraint to check integer value of operand 3.
13906         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13907
13908         (PINSR_MODE): New mode iterator.
13909         (sse2p4_1): New mode attribute.
13910         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13911         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13912         iterator.  Use const_int_operand instead of
13913         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
13914         exact_log2 in insn constraint to check integer value of operand 3.
13915
13916 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13917
13918         * config/i386/sse.md (blendbits): Remove mode attribute.
13919         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13920         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13921         Check integer value of operand 3 in insn constraint.
13922
13923 2011-05-09  Richard Guenther  <rguenther@suse.de>
13924
13925         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13926         for diagnostics.
13927         (lto_symtab_merge): Likewise.  Do not register types here.
13928         (lto_symtab_merge_decls_2): Likewise.
13929         (lto_symtab_merge_decls_1): Likewise.
13930         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13931         * gimple.c (enum gtc_mode): Declare.
13932         (gimple_types_compatible_p): Make static.
13933
13934 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13935
13936         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13937         temporary register to match Pmode.
13938
13939 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13940
13941         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13942         and *vec_concatv4si_1_avx.
13943
13944 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13945
13946         PR rtl-optimization/48927
13947         * ira-conflicts.c (commutative_constraint_p): Use
13948         recog_data.alternative_enabled_p to disable alternatives where
13949         "enabled" attribute is false.
13950         (get_dup_num): Ditto.
13951         * ira-lives.c (single_reg_class): Ditto.
13952         (ira_implicitly_set_insn_hard_regs): Ditto.
13953
13954 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13955
13956         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13957         (dataflow_set_preserve_mem_locs): Likewise.
13958
13959 2011-05-09  Philipp Thomas  <pth@suse.de>
13960
13961         * config/mep/mep.c (mep_validate_vliw): Syntax description
13962         should not be translated.
13963
13964 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
13965
13966         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
13967         * config/mips/mips-tables.opt: New file (generated).
13968         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
13969         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
13970         MIPS_ARCH_OPTION_NATIVE): Define.
13971         * config/mips/mips.c (mips_cpu_info_table): Move contents to
13972         mips-cpus.def.
13973         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
13974         mips_parse_cpu): Remove.
13975         (mips_cpu_info_from_opt, mips_default_arch): New.
13976         (mips_handle_option): Don't assert that global structures are in
13977         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
13978         (mips_option_override): Use new variables and functions to set
13979         state of these options.  Use strcmp to check for individual CPU names.
13980         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
13981         definition.
13982         * config/mips/mips.opt (march=): Use ToLower and Enum.
13983         (mips): Use ToLower, Enum and Var.
13984         (mtune=): Use ToLower and Enum.
13985         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
13986
13987 2011-05-08  Jan Hubicka  <jh@suse.cz>
13988
13989         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
13990         Arrange type pairs to be UID ordered.
13991         (gimple_lookup_type_leader): Make inline.
13992
13993 2011-05-09  Nick Clifton  <nickc@redhat.com>
13994
13995         PR target/48899
13996         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
13997         PROCESSOR_DEFAULT.
13998
13999         PR target/48897
14000         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14001         variable 's'.
14002
14003 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14004
14005         * combine.c (simplify_comparison): Abstract out parts into...
14006         (simplify_compare_const): ... new function.
14007         (try_combine): Generalize parallel arithmetic/compare combining
14008         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14009
14010 2011-05-08  Jan Hubicka  <jh@suse.cz>
14011
14012         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14013         (cgraph_create_virtual_clone): Call hooks once virtual clone
14014         is finished.
14015         * cgraph.h (cgraph_clone_node): Update prototype.
14016         * ipa-cp.c (ipcp_estimate_growth): Use
14017         estimate_ipcp_clone_size_and_time.
14018         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14019         * lto-cgraph.c (input_node): Update.
14020         * ipa-inline.c (recursive_inlining): Update.
14021         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14022         (evaluate_conditions_for_known_args): Break out from ...
14023         (evaluate_conditions_for_edge): ... here.
14024         (evaluate_conditions_for_ipcp_clone): New function.
14025         (inline_node_duplication_hook): Update clone summary based
14026         on parameter map.
14027         (estimate_callee_size_and_time): Rename to ...
14028         (estimate_node_size_and_time): take NODE instead of EDGE;
14029         take POSSIBLE_TRUTHS as argument.
14030         (estimate_callee_size_and_time): Update.
14031         (estimate_ipcp_clone_size_and_time): New function.
14032         (do_estimate_edge_time): Update.
14033
14034 2011-05-08  Richard Guenther  <rguenther@suse.de>
14035
14036         PR middle-end/48908
14037         PR middle-end/48905
14038         * expmed.c (expand_shift_1): Compute adjusted constant shift
14039         amount manually.
14040
14041 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14042
14043         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14044
14045 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14046
14047         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14048
14049 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14050
14051         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14052
14053 2011-05-07  Jan Hubicka  <jh@suse.cz>
14054
14055         * ipa-inline-transform.c (inline_call): Account when program size
14056         decreases.
14057         * ipa-inline.c (relative_time_benefit): New function.
14058         (edge_badness): Reorganize to be power 2 based; fix thinko when
14059         computing badness for negative growth; update comments to match
14060         reality; better dumps.
14061
14062 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14063
14064         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14065         type to bool and adjust comment.
14066         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14067         (fold_mathfn_compare): Remove calls to global_bindings_p.
14068         (fold_inf_compare): Likewise.
14069         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14070         * c-tree.h (global_bindings_p): Adjust prototype.
14071         * c-decl.c (global_bindings_p): Return bool and simplify.
14072
14073 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14074
14075         PR tree-optimization/48837
14076         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14077         when accumulator transformation is performed.
14078
14079 2011-05-06  Jan Hubicka  <jh@suse.cz>
14080
14081         * i386.h (ix86_tune_indices): Add
14082         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14083         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14084         * i386.c (initial_ix86_tune_features): Add
14085         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14086         (software_prefetching_beneficial_p): Remove predicate.
14087         (ix86_option_override_internal): Use new macro.
14088
14089 2011-05-06  Jan Hubicka  <jh@suse.cz>
14090
14091         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14092
14093 2011-05-06  Jan Hubicka  <jh@suse.cz>
14094
14095         * cgraph.c (cgraph_add_thunk): Create real function node instead
14096         of alias node; finalize it and mark needed/reachale; arrange visibility
14097         to be right and add it into the corresponding same comdat group list.
14098         (dump_cgraph_node): Dump thunks.
14099         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14100         cgraph_function_with_gimple_body_p,
14101         cgraph_first_function_with_gimple_body,
14102         cgraph_next_function_with_gimple_body): New functions.
14103         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14104         New macros.
14105         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14106         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14107         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14108         devirtualization when optimizing.
14109         (verify_cgraph_node): Verify thunks.
14110         (cgraph_analyze_function): Analyze thunks.
14111         (cgraph_mark_functions_to_output): Output thunks only in combination
14112         with function they are assigned to.
14113         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14114         alias into normal node.
14115         (assemble_thunks): New functoin.
14116         (cgraph_expand_function): Use it.
14117         * lto-cgraph.c (lto_output_node): Stream thunks.
14118         (input_overwrite_node): Stream in thunks.
14119         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14120         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14121         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14122         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14123         (inline_analyze_function): Do not care about thunk jump functions.
14124         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14125         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14126         cgraph_function_with_gimple_body_p.
14127         * passes.c (do_per_function_toporder): Use
14128         cgraph_function_with_gimple_body_p.
14129         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14130         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14131         (function_called_by_processed_nodes_p): Likewise.
14132
14133 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14134
14135         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14136         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14137         entries.
14138         (mabi=): Replace with separate entries for mabi=altivec,
14139         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14140         mabi=ieeelongdouble and mabi=ibmlongdouble.
14141         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14142         check for -mabi=spe without SPE ABI support here.
14143         (rs6000_handle_option): Replace OPT_mabi_ handling with
14144         OPT_mabi_altivec and OPT_mabi_spe handling.
14145
14146 2011-05-06  Cary Coutant  <ccoutant@google.com>
14147
14148         * dwarf2out.c (contains_subprogram_definition): New function.
14149         (should_move_die_to_comdat): Call it.
14150
14151 2011-05-06  Jeff Law  <law@redhat.com>
14152
14153         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14154         remove_ctrl_stmt_and_useless_edges.
14155         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14156         (fixup_template_block, thread_single_edge): Likewise.
14157         (mark_threaded_blocks): Use THREAD_TARGET.
14158
14159 2011-05-06  Alan Modra  <amodra@gmail.com>
14160
14161         PR target/48900
14162         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14163         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14164
14165 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14166
14167         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14168         constraint modifier to "r".
14169
14170 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14171
14172         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14173         fall through for OPT_mcmodel_.
14174
14175 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14176
14177         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14178         instruction sizes.
14179         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14180
14181 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14182
14183         PR target/47930
14184         * config/arm/arm.opt (marm): Document it.
14185         (mthumb): Reject negative variant.
14186
14187 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14188
14189         PR target/48898
14190         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14191         Fix typo in "ccvt" variable name.
14192
14193 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14194
14195         PR target/48895
14196         * config/vms/vms-ar.c (main): Remove cwd variable.
14197
14198 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14199
14200         PR debug/48902
14201         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14202
14203 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14204
14205         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14206         * gimplify.c (gimplify_switch_expr): Likewise.
14207         * omp-low.c (expand_omp_sections): Likewise.
14208         * tree-eh.c (lower_try_finally_switch): Likewise.
14209         (lower_eh_dispatch): Likewise.
14210         * tree.h (build_case_label): Declare.
14211         * tree.c (build_case_label): Define.
14212
14213 2011-05-05  Jason Merrill  <jason@redhat.com>
14214
14215         PR c++/40975
14216         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14217         (copy_statement_list): Don't recurse.
14218         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14219         STATEMENT_LIST.
14220
14221 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14222
14223         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14224         through from -mfpu= handling.
14225         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14226
14227 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14228
14229         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14230         POST_MODIFY.
14231
14232 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14233
14234         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14235         for 11.31.
14236         (hppa[12]*-*-hpux11*): Ditto.
14237         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14238         * config/ia64/hpux-unix2003.h: New.
14239         * config/pa/pa-hpux1131.opt: New.
14240         * config/pa/pa-hpux1131.h: New.
14241         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14242         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14243         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14244
14245 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14246
14247         PR debug/48853
14248         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14249         instead of mode as 3rd argument to recursive call.
14250         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14251         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14252         VOIDmode.
14253         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14254         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14255         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14256         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14257
14258 2011-05-05  Julian Brown  <julian@codesourcery.com>
14259
14260         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14261         parenthesis in D-register case.
14262
14263 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14264
14265         * opt-functions.awk (var_type_struct): Handle Enum options.
14266         * optc-gen.awk: Don't check range of variables of character type.
14267         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14268         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14269         rs6000_sdata_name, rs6000_explicit_options): Remove.
14270         (rs6000_option_override_internal): Check for -malign-power here.
14271         Use global_options_set instead of rs6000_explicit_options.
14272         (rs6000_parse_fpu_option): Remove.
14273         (rs6000_handle_option): Access variables via opts and opts_set
14274         pointers.  Use error_at and warning_at.  Add fall-through
14275         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14276         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14277         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14278         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14279         here.  Don't use rs6000_parse_fpu_option.
14280         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14281         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14282         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14283         (mrecip=): Use Var.
14284         (mspe): Use Var and Save.
14285         (mtraceback=): Use Enum and Var.
14286         (rs6000_traceback_type): New Enum and EnumValue entries.
14287         (mfloat-gprs=): Use Enum, Var and Save.
14288         (rs6000_float_gprs): New Enum and EnumValue entries.
14289         (mlong-double-): use Var and Save.
14290         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14291         (malign-): Use Enum and Var.
14292         (rs6000_alignment_flags): New Enum and EnumValue entries.
14293         (mfpu=): Use Enum.
14294         (fpu_type_t): New Enum and EnumValue entries.
14295         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14296         global_options_set instead of rs6000_explicit_options.
14297         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14298         global_options_set instead of rs6000_explicit_options.
14299         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14300         global_options_set instead of rs6000_explicit_options.
14301         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14302         global_options_set instead of rs6000_explicit_options.
14303         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14304         global_options_set instead of rs6000_explicit_options.
14305         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14306         global_options_set instead of rs6000_explicit_options.
14307         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14308         definition.
14309         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14310         global_options_set instead of rs6000_explicit_options.
14311         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14312         (rs6000_cmodel): New Enum and EnumValue entries.
14313         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14314         global_options_set instead of rs6000_explicit_options.
14315         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14316         (mtls-size=): Use Enum and Var.
14317         (rs6000_tls_size): New Enum and EnumValue entries.
14318
14319 2011-05-05  Michael Matz  <matz@suse.de>
14320
14321         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14322         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14323         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14324         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14325         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14326         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14327         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14328         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14329         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14330         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14331         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14332         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14333         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14334         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14335         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14336         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14337
14338 2011-05-05  Richard Guenther  <rguenther@suse.de>
14339
14340         * expmed.c (expand_variable_shift): Rename to ...
14341         (expand_shift_1): ... this.  Take an expanded shift amount.
14342         For rotates recurse directly not building trees for the shift amount.
14343         (expand_variable_shift): Wrap around expand_shift_1.
14344         (expand_shift): Adjust.
14345
14346 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14347
14348         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14349
14350 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14351
14352         * tree.h (get_pending_sizes): Remove prototype.
14353         (put_pending_size): Likewise.
14354         (put_pending_sizes): Likewise.
14355         * stor-layout.c (pending_sizes): Delete.
14356         (get_pending_sizes): Likewise.
14357         (put_pending_size): Likewise.
14358         (put_pending_sizes): Likewise.
14359         (variable_size): Do not call put_pending_size and tidy up.
14360         * function.h (struct function): Remove dont_save_pending_sizes_p.
14361         * lto-streamer-in.c (input_function): Do not stream it.
14362         * lto-streamer-out.c (output_function): Likewise.
14363         * tree-inline.c (initialize_cfun): Do not copy it.
14364         * c-decl.c (store_parm_decls): Do not set it.
14365         * omp-low.c (create_task_copyfn): Likewise.
14366         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14367
14368 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
14369
14370         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14371         conditions.
14372         (*movdf_internal): Ditto.
14373         (*movdf_internal_nointeger): Ditto.
14374         (*movsf_internal): Ditto.
14375
14376 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14377
14378         * c-decl.c (finish_decl): Don't call get_pending_sizes.
14379         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
14380         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
14381         (c_variable_size): Remove.
14382         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
14383         call put_pending_sizes.
14384         (get_parm_info): Add parameter expr.  Use it to set
14385         arg_info->pending_sizes.
14386         (store_parm_decls): Use arg_info->pending_sizes instead or calling
14387         get_pending_sizes.
14388         * c-parser.c (c_parser_parms_declarator): Update call to
14389         c_parser_parms_list_declarator.
14390         (c_parser_parms_list_declarator): Take parameter expr.  Update
14391         call to push_parm_decl.  Update recursive call.  Don't call
14392         get_pending_sizes.  Update calls to get_parm_info.
14393         (c_parser_objc_method_definition): Update calls to
14394         c_parser_objc_method_decl and objc_start_method_definition.
14395         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14396         (c_parser_objc_method_decl): Add parameter expr.  Update call to
14397         grokparm.
14398         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14399         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14400         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14401
14402 2011-05-05  Michael Hope  <michael.hope@linaro.org>
14403
14404         PR pch/45979
14405         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14406         __ARM_EABI__ hosts.
14407
14408 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14409
14410         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14411         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14412         (spu_output_mi_thunk): New function.
14413
14414 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14415
14416         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14417         targetm.asm_out.print_operand.
14418         * config/sol2.c: Include target.h.
14419
14420 2011-05-04  Jan Hubicka  <jh@suse.cz>
14421
14422         * ipa-inline.c (reset_edge_caches): New function.
14423         (update_caller_keys): Add check_inlinablity_for; do not
14424         reset edge caches; remove now unnecesary loop.
14425         (update_callee_keys): Add comments; reset node_growth_cache of callee.
14426         (update_all_callee_keys): Likewise.
14427         (inline_small_functions): Sanity check cache; update code
14428         recomputing it.
14429
14430 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
14431
14432         PR rtl-optimization/47612
14433         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14434         as the last insn of the sequence to be moved.
14435
14436 2011-05-04  Tobias Burnus  <burnus@net-b.de>
14437
14438         PR fortran/48864
14439         * doc/invoke.texi (Ofast): Document that it
14440         enables Fortran's -fno-protect-parens.
14441
14442 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14443
14444         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14445
14446 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14447
14448         * stor-layout.c (variable_size): Do not issue errors.
14449
14450 2011-05-04  Richard Guenther  <rguenther@suse.de>
14451
14452         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14453         for array-ref indices.
14454         (tree_coverage_counter_addr): Likewise.
14455         (build_fn_info_type): Use size_int for index types.
14456         (build_gcov_info): Likewise.
14457
14458 2011-05-04  Richard Guenther  <rguenther@suse.de>
14459
14460         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14461         to build_int_cst.
14462         * c-typeck.c (really_start_incremental_init): Use bitsize_int
14463         for constructor indices.
14464         (push_init_level): Likewise.
14465
14466 2011-05-04  Richard Guenther  <rguenther@suse.de>
14467
14468         * explow.c (promote_mode): Move variable declarations before code.
14469
14470 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14471
14472         * tree.h (build_function_type_array): Declare.
14473         (build_varargs_function_type_array): Declare.
14474         (build_function_type_vec, build_varargs_function_type_vec): Define.
14475         * tree.c (build_function_type_array_1): New function.
14476         (build_function_type_array): New function.
14477         (build_varargs_function_type_array): New function.
14478
14479 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14480
14481         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14482         before setting STMT_VINFO_TYPE.
14483
14484 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14485
14486         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14487         instead of spu_pass_by_reference.
14488
14489 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14490
14491         * calls.c (emit_library_call_value_1): Invoke
14492         promote_function_mode hook on libcall arguments.
14493         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14494         argument being NULL.
14495         * targhooks.c (default_promote_function_mode): Lisewise.
14496         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14497         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14498
14499         * doc/tm.texi: Document that TYPE argument might be NULL.
14500
14501 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14502
14503         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14504
14505 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14506
14507         From Bernd Schmidt
14508         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14509
14510 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14511
14512         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14513         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14514         Move ...
14515         * mips-tfile.c: ... here.
14516         Don't include coretypes.h, tm.h, filenames.h.
14517         (saber_stop): Remove definition and all calls.
14518         [__SABER__]: Remove.
14519         (__LINE__): Remove default.
14520         (Size_t, Ptrdiff_t): Remove definitions.
14521         Replace by size_t, ptrdiff_t.
14522         [!MIPS_DEBUGGING_INFO]: Remove.
14523         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14524         (progname): Add const.
14525         (STATIC): Remove.
14526         Replace all uses by static.
14527         (ALIGN_SYMTABLE_OFFSET): Remove default.
14528         * mips-tdump.c: Don't include coretypes.h, tm.h.
14529         Remove !MIPS_IS_STAB guard.
14530         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14531         $(TM_H), filenames.h dependencies.
14532         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14533
14534 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14535
14536         From Jie Zhang
14537         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14538         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14539
14540 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14541
14542         From Bernd Schmidt
14543         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14544         account and save/restore RETS.
14545         (PROFILE_BEFORE_PROLOGUE): Define.
14546         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14547         the push insn to use predecrement.
14548
14549 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14550
14551         From Jie Zhang
14552         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14553
14554 2011-05-04  Nick Clifton  <nickc@redhat.com>
14555
14556         * config/mn10300/mn10300.c: Include cfgloop.h.
14557         (DUMP): New macro.
14558         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14559         Lcc or a FLcc insn into the instruction stream.
14560         (mn10300_block_contains_call): New function.  Returns true if the
14561         given basic block contains a CALL insn.
14562         (mn10300_loop_contains_call_insn): New function.  Returns true if
14563         the given loop contains a CALL insn.
14564         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14565         to use the SETLB and Lcc or FLcc insns.
14566         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14567         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14568         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14569         disable the SETLB optimization.
14570         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14571         __SETLB__ or __NO_SETLB__.
14572         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14573         (movsf_internal): Handle MDR register.
14574         (cmpsi): Make visible.
14575         (setlb): New pattern.
14576         (Lcc): New pattern.
14577         (FLcc): New pattern.
14578
14579 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14580
14581         PR target/48860
14582         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14583         for reg<->xmm moves.
14584         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14585         (vec_concatv2di_rex64_sse): Ditto.
14586         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14587         (*vec_extractv2di_1_rex64): Ditto.
14588
14589         Revert:
14590         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14591
14592         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14593         reg<->xmm moves.
14594         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14595
14596 2011-05-04  Richard Guenther  <rguenther@suse.de>
14597
14598         * tree.h (int_const_binop): Remove notrunc argument.
14599         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14600         create integer constants that are properly truncated.
14601         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14602         (const_binop): Remove zero notrunc argument to int_const_binop.
14603         (size_binop_loc): Likewise.
14604         (fold_div_compare): Likewise.
14605         (maybe_canonicalize_comparison_1): Likewise.
14606         (fold_comparison): Likewise.
14607         (fold_binary_loc): Likewise.
14608         (multiple_of_p): Likewise.
14609         * expr.c (store_constructor): Likewise.
14610         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14611         (maybe_fold_stmt_addition): Likewise.
14612         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14613         * stor-layout.c (layout_type): Likewise.
14614         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14615         * tree-sra.c (build_ref_for_offset): Likewise.
14616         (build_user_friendly_ref_for_offset): Likewise.
14617         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14618         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14619         * tree-ssa-loop-niter.c (inverse): Likewise.
14620         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14621         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14622         * tree-switch-conversion.c (check_range): Likewise.
14623         (build_constructors): Likewise.
14624         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14625         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14626         (extract_range_from_assert): Likewise.
14627         (vrp_int_const_binop): Likewise.
14628         (extract_range_from_binary_expr): Likewise.
14629         (extract_range_from_unary_expr): Likewise.
14630         (check_array_ref): Likewise.
14631         (find_case_label_range): Likewise.
14632         (simplify_div_or_mod_using_ranges): Likewise.
14633         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14634         comparing case labels for merging.
14635
14636 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14637
14638         * dwarf2out.c (debug_str_hash_forced): Removed.
14639         (gen_label_for_indirect_string): Removed.
14640         (get_debug_string_label): Removed.
14641         (AT_string_form): Generate label directly.
14642         (output_indirect_string): Test indirect_string_node for
14643         DW_FORM_strp instead of checking label and refcount.
14644         (prune_indirect_string): Removed.
14645         (prune_unused_types): Don't check debug_str_hash_forced or
14646         call prune_indirect_string.
14647
14648 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14649
14650         PR other/48093
14651         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14652
14653 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14654
14655         PR debug/47994
14656         PR debug/47919
14657         * combine.c (try_combine): Skip debug insns at m_split tests.
14658
14659 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14660
14661         PR42288
14662         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14663         when info_section_emitted.
14664
14665 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14666
14667         * config/mips/mips-opts.h: New.
14668         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14669         to mips-opts.h.
14670         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14671         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14672         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
14673         via opts pointer.
14674         * config/mips/mips.h (enum mips_code_readable_setting): Move to
14675         mips-opts.h.
14676         (mips_abi, mips_code_readable): Don't declare.
14677         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14678         (mabi=): Use Enum and Var.
14679         (mips_abi): New Enum and EnumValue entries.
14680         (mcode-readable=): Use Enum and Var.
14681         (mips_code_readable_setting): New Enum and EnumValue entries.
14682         (mr10k-cache-barrier=): Use Enum and Var.
14683         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14684
14685 2011-05-03  Jan Hubicka  <jh@suse.cz>
14686
14687         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14688         replace hash by pointer map.
14689         (cgraph_node_set_element_def, cgraph_node_set_element,
14690         const_cgraph_node_set_element, varpool_node_set_element_def,
14691         varpool_node_set_element, const_varpool_node_set_element): Remove.
14692         (free_cgraph_node_set, free_varpool_node_set): New function.
14693         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14694         * tree-emutls.c: Free varpool node set.
14695         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14696         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14697         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14698         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14699         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14700         Move here from ipa.c; implement using pointer_map
14701         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14702         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14703         debug_cgraph_node_set, varpool_node_set_new,
14704         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14705         dump_varpool_node_set, debug_varpool_node_set):
14706         Move to ipa-uitls.c.
14707         * passes.c (ipa_write_summaries): Update.
14708
14709 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14710
14711         From Mike Frysinger:
14712         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14713         bf542/bf544/bf547/bf548/bf549.
14714
14715 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14716
14717         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14718
14719 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14720
14721         From Bernd Schmidt:
14722         * config/bfin/bfin.md (MOVCC): New mode_macro.
14723         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14724         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
14725         comments from generated assembly.
14726
14727 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14728
14729         From Bernd Schmidt
14730         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14731         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14732         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14733         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14734         * config/bfin/lib1funcs.asm (___muldi3): New function.
14735
14736 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14737
14738         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14739         build_function_type_list instead of build_function_type.
14740         Rearrange initialization of `args' to do so.
14741
14742 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14743
14744         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14745         instead of build_function_type.
14746
14747 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14748
14749         * config/rs6000/rs6000.c (spe_init_builtins): Call
14750         build_function_type_list instead of build_function_type.
14751         (paired_init_builtins, altivec_init_builtins): Likewise.
14752         (builtin_function_type): Likewise.
14753
14754 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14755
14756         * config/sh/sh.c (sh_media_init_builtins): Call
14757         build_function_type_list instead of build_function_type.
14758
14759 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14760
14761         * config/sparc/sparc.c (sparc_file_end): Call
14762         build_function_type_list instead of build_function_type.
14763
14764 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14765
14766         * config/alpha/alpha.c (alpha_init_builtins): Call
14767         build_function_type_list instead of build_function_type.
14768
14769 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14770
14771         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14772         build_function_type_list instead of build_function_type.
14773
14774 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14775
14776         * config/iq2000/i2000.c (iq2000_init_builtins): Call
14777         build_function_type_list instead of build_function_type.
14778         Delete `endlink' variable.
14779
14780 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14781
14782         * config/avr/avr.c (avr_init_builtins): Call
14783         build_function_type_list instead of build_function_type.
14784
14785 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14786
14787         * config/picochip/picochip.c (picochip_init_builtins): Call
14788         build_function_type_list instead of build_function_type.
14789         Delete `endlink' variable.
14790
14791 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14792
14793         * config/bfin/bfin.c (bfin_init_builtins): Call
14794         build_function_type_list instead of build_function_type.
14795
14796 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14797
14798         From Bernd Schmidt
14799         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14800         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
14801
14802 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14803
14804         From Jie Zhang:
14805         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14806         libbffastfp overrides libgcc when -mfast-fp.
14807
14808 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14809
14810         Originally from Bernd Schmidt
14811         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14812         * config/bfin/bfin.c (override_options): Test it and error if
14813         TARGET_FDPIC.
14814
14815 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14816
14817         Originally From Bernd Schmidt
14818         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14819         FD-PIC.
14820
14821 2011-05-03  Jeff Law  <law@redhat.com>
14822
14823         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14824         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14825         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14826         than accessing AUX field directly.  Free the AUX field before
14827         clearing it.
14828         (thread_block, thread_through_loop_header): Likewise.
14829         (thread_single_edge, mark_threaded_blocks): Likewise.
14830         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
14831         (register_jump_thread): Do not attempt to thread to a NULL edge.
14832
14833 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14834
14835         * function.c (init_function_start): Call decide_function_section.
14836         * varasm.c (decide_function_section): New function.
14837         (assemble_start_function): When not using
14838         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14839         or first_function_block_is_cold.
14840         * rtl.h (decide_function_section): Declare.
14841
14842 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14843             Jakub Jelinek  <jakub@redhat.com>
14844
14845         PR target/48774
14846         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14847         only succeed if req_mode is the same as set_mode.
14848
14849 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14850
14851         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14852         * genemit.c (gen_exp): Handle RETURN.
14853         * emit-rtl.c (verify_rtx_sharing): Likewise.
14854         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14855         * rtl.c (copy_rtx): RETURN is shared.
14856         * rtl.h (enum global_rtl_index): Add GR_RETURN.
14857         (ret_rtx): New.
14858         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14859         * config/s390/s390.c (s390_emit_epilogue): Likewise.
14860         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14861         * config/cris/cris.c (cris_expand_return): Likewise.
14862         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14863         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14864         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14865         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14866         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14867         Likewise.
14868         * config/v850/v850.c (expand_epilogue): Likewise.
14869         * config/bfin/bfin.c (bfin_expand_call): Likewise.
14870         * config/arm/arm.md (epilogue): Likewise.
14871         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14872         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14873         variable to ret_reg.
14874
14875 2011-05-03  Richard Guenther  <rguenther@suse.de>
14876
14877         PR lto/48846
14878         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14879         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14880         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14881
14882 2011-05-03  Richard Guenther  <rguenther@suse.de>
14883
14884         * c-decl.c (grokdeclarator): Instead of looking at
14885         TREE_OVERFLOW check if the constant fits in the index type.
14886
14887 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14888
14889         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14890         (vec_store_lanes<mode><mode>): Likewise.
14891
14892 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14893
14894         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14895         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14896         convert_optab_index values.
14897         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14898         * genopinit.c (optabs): Initialize the new optabs.
14899         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14900         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14901         (expand_STORE_LANES): New functions.
14902         * tree.h (build_array_type_nelts): Declare.
14903         * tree.c (build_array_type_nelts): New function.
14904         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14905         (vect_model_load_cost): Likewise.
14906         (vect_store_lanes_supported, vect_load_lanes_supported)
14907         (vect_record_strided_load_vectors): Declare.
14908         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14909         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14910         (vect_transform_strided_load): Split out statement recording into...
14911         (vect_record_strided_load_vectors): ...this new function.
14912         * tree-vect-stmts.c (create_vector_array, read_vector_array)
14913         (write_vector_array, create_array_ref): New functions.
14914         (vect_model_store_cost): Add store_lanes_p argument.
14915         (vect_model_load_cost): Add load_lanes_p argument.
14916         (vectorizable_store): Try to use store-lanes functions for
14917         interleaved stores.
14918         (vectorizable_load): Likewise load-lanes and loads.
14919         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14920         to vect_model_store_cost.
14921         (vect_build_slp_tree): Likewise vect_model_load_cost.
14922
14923 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14924
14925         * hooks.h (hook_bool_mode_uhwi_false): Declare.
14926         * hooks.c (hook_bool_mode_uhwi_false): New function.
14927         * target.def (array_mode_supported_p): New hook.
14928         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14929         * doc/tm.texi: Regenerate.
14930         * stor-layout.c (mode_for_array): New function.
14931         (layout_type): Use it.
14932         * config/arm/arm.c (arm_array_mode_supported_p): New function.
14933         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14934
14935 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
14936
14937         PR target/48723
14938         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14939         for -fstack-check if the size to allocate is negative.
14940
14941 2011-05-02  Lawrence Crowl  <crowl@google.com>
14942
14943         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14944         (timevar_cond_start): New for starting a timer only when it is not
14945         already running.
14946         (timevar_cond_stop): New for stopping a timer when it was not already
14947         running.
14948
14949         * timevar.c (timevar_stop): Enable start/stop timers to start again.
14950         (timevar_cond_start): New as above.
14951         (timevar_cond_stop): New as above.
14952
14953         * timevar.def: Add start/stop timers for compiler phases,
14954         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14955         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14956         and TV_PHASE_FINALIZE.
14957         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14958         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14959         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14960         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14961         Make unused TV_OVERLOAD into a start/stop timer.
14962
14963         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
14964         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
14965         to indicate that they are start/stop timers.
14966
14967         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
14968         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
14969         Move initialization to do_compile.
14970         (do_compile): Add initialization from above.
14971         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
14972
14973         * c-decl.c (c_write_global_declarations): Add start/stop of
14974         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
14975
14976         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
14977         or TV_PARSE_INLINE, as appropriate.
14978         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
14979         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
14980
14981 2011-05-02  Jason Merrill  <jason@redhat.com>
14982
14983         PR c++/40975
14984         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
14985
14986 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
14987
14988         PR c/35445
14989         * c-decl.c (finish_decl): Only create a composite if the types are
14990         compatible.
14991
14992 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14993
14994         * config/fr30/fr30-protos.h (Mmode): Don't define.
14995         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
14996         definition where used.
14997         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
14998         define.  Expand definitions where used.
14999         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15000         Expand definitions where used.
15001         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15002         rx_function_arg, rx_function_arg_advance,
15003         rx_function_arg_boundary): Expand definitions of those macros.
15004         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15005         definition where used.
15006
15007 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15008
15009         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15010         reg<->xmm moves.
15011         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15012         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15013         with *movv2sf_internal_rex64_avx.
15014         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15015         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15016         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15017         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15018         "vex" in "prefix" attribute calculation.
15019         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15020
15021 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15022
15023         PR target/47951
15024         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15025         inputs match the output.
15026
15027 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15028
15029         PR target/47955
15030         * config/m68k/m68k.c (m68k_expand_prologue): Set
15031         current_function_static_stack_size.
15032
15033 2011-05-02   Jan Hubicka  <jh@suse.cz>
15034
15035         * lto-streamer.c (lto_streamer_cache_insert_1,
15036         lto_streamer_cache_lookup, lto_streamer_cache_create,
15037         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15038         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15039
15040 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15041
15042         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15043         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15044         config/m68k/t-opts: New files.
15045         * config/m68k/m68k-tables.opt: New file (generated).
15046         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15047         extra_options and m68k/t-opts to tmake_file.
15048         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15049         (all_isas): Initialize using m68k-isas.def.
15050         (all_microarchs): Initialize using m68k-microarchs.def.
15051         (m68k_find_selection): Remove.
15052         (m68k_handle_option): Don't assert that global structures are in
15053         use.  Use error_at.  Access variables via opts pointer.  Don't
15054         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15055         directly for -m68020-40 and -m68020-60.
15056         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15057         m68k_tune_entry here.
15058         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15059         to m68k-opts.h.
15060         (m68k_library_id_string): Remove declaration.
15061         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15062         (m68k_library_id_string): New Variable.
15063         (march=, mcpu=, mtune=): Use Enum and Var.
15064
15065 2011-05-02  Richard Guenther  <rguenther@suse.de>
15066
15067         * varasm.c (output_constructor_regular_field): Compute zero-based
15068         index with double-ints.  Make sure to ICE instead of producing
15069         wrong code.
15070         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15071         in asserts.  Properly use a signed type.
15072
15073 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15074
15075         * config/i386/sse.md (V): New mode iterator.
15076         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15077         TARGET_SSE2.
15078         (V_256): Rename from AVX256MODE.
15079         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15080         condition to all users.
15081         (VF1): Ditto.
15082         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15083         condition to all users.
15084         (VF_128): Make V4SF mode unconditional.
15085         (VF_256): Rename from AVX256MODEF2P.
15086         (VI4F_128): Rename from SSEMODE4S.
15087         (VI8F_128): Rename from SSEMODE2D.
15088         (VI4F_256): Rename from AVX256MODE8P.
15089         (VI8F_256): Rename from AVX256MODE4P.
15090         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15091         (ssescalarmodesuffix): Remove SF and DF modes.
15092         (SSEMODE124): Remove.
15093         (SSEMODE1248): Ditto.
15094         (SSEMODEF2P): Ditto.
15095         (AVXMODEF2P): Ditto.
15096         (AVXMODEFDP): Ditto.
15097         (AVXMODEFSP): Ditto.
15098         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15099         unconditional.
15100         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15101         unconditional.
15102         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15103         xop_pcmov_<mode>256.  Use V mode iterator.
15104
15105         Adjust RTX patterns globally for renamed mode attributes.
15106
15107 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15108
15109         * haifa-sched.c (sched_emit_insn): Emit insn before first
15110         non-scheduled insn.  Inform back-end about new insn.  Add
15111         new insn to scheduled_insns list.
15112
15113 2011-05-02  Richard Guenther  <rguenther@suse.de>
15114
15115         PR tree-optimization/48822
15116         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15117         (process_scc): Indicate which iteration we start.
15118
15119 2011-05-02  Jan Hubicka  <jh@suse.cz>
15120
15121         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15122         (lto_section_overrun): New.
15123         * lto-section-out.c (append_block): Rename to ...
15124         (lto_append_block): ... this one; export.
15125         (lto_output_1_stream): Move lto lto-streamer.h
15126         (lto_output_data_stream): Update.
15127         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15128         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15129         functions.
15130
15131 2011-05-02  Richard Guenther  <rguenther@suse.de>
15132
15133         * tree.c (tree_code_counts): New global array.
15134         (record_node_allocation_statistics): Count individual tree codes.
15135         (dump_tree_statistics): Dump individual code stats.
15136
15137 2011-05-01  Jan Hubicka  <jh@suse.cz>
15138
15139         * ipa-inline.c (caller_growth_limits): Fix thinko when
15140         looking for largest stack frame.
15141         * ipa-inline.h (dump_inline_summary): Declare.
15142         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15143         on stack usage.
15144         (dump_inline_summary): Export.
15145         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15146
15147 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15148
15149         * reginfo.c (memory_move_cost): Change rclass argument type form
15150         'enum reg_class' to reg_class_t.
15151         * reload.h (memory_move_cost): Update prototype.
15152         * postreload.c reload_cse_simplify_set): Change type dclass var to
15153         reg_class_t.
15154         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15155         Update prototype.
15156         (ira_allocate_and_set_costs): Change aclass argument type form
15157         'enum reg_class' to reg_class_t.
15158         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15159         Change aclass argument type to reg_class_t.
15160         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15161         to reg_class_t.
15162         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15163         memory_move_cost call.
15164
15165         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15166         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15167         Change type tmp var to reg_class_t.
15168
15169 2011-04-30  Jan Hubicka  <jh@suse.cz>
15170
15171         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15172         inlining into function with flatten attribute.
15173         (want_inline_small_function_p): Be more realistic about inlining
15174         cold calls where callee size grows.
15175
15176 2011-04-30  Jan Hubicka  <jh@suse.cz>
15177
15178         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15179         flags.
15180
15181 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15182
15183         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15184         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15185         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15186         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15187         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15188         (print_operand): Rename to...
15189         (sparc_print_operand): ...this. Make static. Adjust
15190         sparc_print_operand function call.
15191         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15192         functions.
15193
15194 2011-04-30  Jan Hubicka  <jh@suse.cz>
15195
15196         PR middle-end/48752
15197         * ipa-inline.c (early_inliner): Disable when doing late
15198         addition of function.
15199
15200 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15201
15202         * dwarf2out.c (get_address_mode): New inline.
15203         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15204         if not dwarf_strict emit
15205         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15206         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15207         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15208         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15209         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15210         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15211         mem_loc_descriptor callers.
15212         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15213         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15214         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15215         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15216         (base_types): New variable.
15217         (get_base_type_offset, calc_base_type_die_sizes,
15218         base_type_for_mode, mark_base_types, base_type_cmp,
15219         move_marked_base_types): New functions.
15220         (calc_die_sizes): Assert that die_offset is 0 or equal to
15221         next_die_offset.
15222         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15223         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15224         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15225         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15226         (gen_subprogram_die): Don't give up on call site parameters
15227         with non-integral or large integral modes.  Adjust
15228         mem_loc_descriptor callers.
15229         (prune_unused_types): Call prune_unused_types_mark on base_types
15230         vector entries.
15231         (resolve_addr): Call mark_base_types.
15232         (dwarf2out_finish): Call move_marked_base_types.
15233
15234         PR tree-optimization/48809
15235         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15236         type.
15237         (gen_inbound_check): Don't compute index_expr - range_min in utype
15238         again, instead reuse SSA_NAME initialized in build_arrays.
15239         Remove two useless gsi_for_stmt calls.
15240
15241 2011-04-29  Jeff Law  <law@redhat.com>
15242
15243         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15244
15245 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15246
15247         * cgraph.h (cgraph_postorder): Remove declaration.
15248         * ipa-utils.h (ipa_free_postorder_info): Declare.
15249         (ipa_reverse_postorder): Likewise.
15250         * cgraphunit.c: Include ipa-utils.h.
15251         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15252         * ipa-inline.c: Include ipa-utils.h.
15253         (ipa_inline): Update call to ipa_reverse_postorder.
15254         * ipa-pure-const.c (propagate_pure_const): Update call to
15255         ipa_reduced_postorder and ipa_print_order.  Call
15256         ipa_free_postorder_info to clean up.
15257         (propagate_nothrow): Likewise.
15258         * ipa-reference.c (propagate): Removed a useless call to
15259         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15260         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15261         * ipa.c: Include ipa-utils.h.
15262         (ipa_profile): Update call to ipa_reverse_postorder.
15263         (cgraph_postorder): Moved to...
15264         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15265         (ipa_utils_print_order): Renamed to ipa_print_order.
15266         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15267         comments.
15268         (ipa_free_postorder_info): New function.
15269         * passes.c: Include ipa-utils.h.
15270         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15271         (ipa_write_summaries): Likewise.
15272         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15273         (cgraphunit.o): Likewise.
15274         (ipa.o): Likewise.
15275         (ipa-inline.o): Likewise.
15276
15277 2011-04-29  Jan Hubicka  <jh@suse.cz>
15278
15279         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15280         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15281         * ipa-inline.h (clause_t): Turn into unsigned int.
15282         * ipa-inline-analysis.c (add_clause): Do more simplification.
15283         (and_predicates): Shortcut more cases.
15284         (predicates_equal_p): Move forward; check that clauses are properly
15285         ordered.
15286         (or_predicates): Shortcut more cases.
15287         (edge_execution_predicate): Rewrite as...
15288         (set_cond_stmt_execution_predicate): ... this function; handle
15289         __builtin_constant_p.
15290         (set_switch_stmt_execution_predicate): New .
15291         (compute_bb_predicates): New.
15292         (will_be_nonconstant_predicate): Update TODO.
15293         (estimate_function_body_sizes): Use compute_bb_predicates
15294         and free them later, always try to estimate if stmt is constant.
15295         (estimate_time_after_inlining, estimate_size_after_inlining):
15296         Gracefully handle optimized out edges.
15297         (read_predicate): Fix off by one error.
15298
15299 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15300
15301         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15302
15303 2011-04-27  Xinliang David Li  <davidxl@google.com>
15304
15305         * tree-profile.c (init_ic_make_global_vars): Set
15306         tls attribute on ic vars.
15307         * coverage.c (coverage_end_function): Initialize
15308         function_list with zero.
15309
15310 2011-04-29  Richard Guenther  <rguenther@suse.de>
15311
15312         * builtins.c (fold_builtin_classify_type): Use integer_type_node
15313         for the type of the result.
15314         (fold_builtin_isascii): Likewise.
15315         (fold_builtin_toascii): Use integer_type_node where appropriate.
15316         (fold_builtin_logb): Likewise.
15317         (fold_builtin_frexp): Likewise.
15318         (fold_builtin_strstr): Likewise.
15319         (fold_builtin_strpbrk): Likewise.
15320         (fold_builtin_fputs): Likewise.
15321         (fold_builtin_sprintf): Likewise.
15322         (fold_builtin_snprintf): Likewise.
15323         (fold_builtin_printf): Likewise.
15324         (do_mpfr_remquo): Use a proper type for the assigned constant.
15325         (do_mpfr_lgamma_r): Likewise.
15326         * dwarf2out.c (resolve_one_addr): Use size_int.
15327         * except.c (init_eh): Likewise.
15328         (assign_filter_values): Use integer_type_node for filter values.
15329         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15330         indices.
15331         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15332         for EH region numbers.
15333         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15334         for the shift amount.
15335
15336 2011-04-29  Richard Guenther  <rguenther@suse.de>
15337
15338         * expr.h (expand_shift): Rename to ...
15339         (expand_variable_shift): ... this.
15340         (expand_shift): Take a constant shift amount.
15341         * expmed.c (expand_shift): Rename to ...
15342         (expand_variable_shift): ... this.
15343         (expand_shift): New wrapper around expand_variable_shift.
15344         * expr.c (convert_move, emit_group_load_1, emit_group_store,
15345         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15346         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15347         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15348         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15349         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15350         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15351         emit_store_flag_1, emit_store_flag): Likewise.
15352         * builtins.c (expand_builtin_signbit): Likewise.
15353         * calls.c (load_register_parameters): Likewise.
15354         * function.c (assign_parm_setup_block): Likewise.
15355         * lower-subreg.c (resolve_shift_zext): Likewise.
15356         * optabs.c (widen_bswap, expand_abs_nojump,
15357         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15358         * spu/spu.c (spu_expand_extv): Likewise.
15359         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15360
15361 2011-04-29  Richard Guenther  <rguenther@suse.de>
15362
15363         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15364         for the remapped region number.
15365         * predict.c (build_predict_expr): Use integer_type_node for the
15366         predict kind.
15367         * fold-const.c (fold_binary_loc): Use integer_type_node for
15368         the shift amount.  Use a proper type for the PLUS_EXPR operand.
15369
15370 2011-04-29  Michael Matz  <matz@suse.de>
15371
15372         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15373         other trees that just builtins.
15374         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15375
15376 2011-04-29  Richard Guenther  <rguenther@suse.de>
15377
15378         * tree-nested.c (get_trampoline_type): Use size_int.
15379         (get_nl_goto_field): Likewise.
15380         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15381         for all indexes.
15382         (lower_eh_constructs_2): Likewise.
15383         (lower_resx): Likewise.
15384         (lower_eh_dispatch): Likewise.
15385         * tree-mudflap.c (mf_build_string): Use size_int.
15386         (mudflap_register_call): Use integer_type_node for the flag.
15387         (mudflap_enqueue_constant): Use size_int.
15388         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15389         instead of rebuilding it.
15390
15391 2011-04-29  Richard Guenther  <rguenther@suse.de>
15392
15393         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15394         Handle OBJ_TYPE_REF.
15395         (find_func_aliases_for_call): Use it more consistently.
15396
15397 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
15398
15399         * haifa-sched.c (last_nondebug_scheduled_insn): New.
15400         (rank_for_schedule): Use it.
15401         (schedule_block): Set it.
15402
15403 2011-04-28  David Li  <davidxl@google.com>
15404
15405         * tree.c (crc32_string): Use crc32_byte.
15406         (crc32_byte): New function.
15407         * tree.h (crc32_byte): New function.
15408         * gcov.c (read_graph_file): Handle new cfg_cksum.
15409         (read_count_file): Ditto.
15410         * profile.c (instrument_values): Ditto.
15411         (get_exec_counts): Ditto.
15412         (read_profile_edge_counts): Ditto.
15413         (compute_branch_probabilities): Ditto.
15414         (compute_value_histograms): Ditto.
15415         (branch_prob): Ditto.
15416         (end_branch_prob): Ditto.
15417         * coverage.c (read_counts_file): Ditto.
15418         (get_coverage_counts): Ditto.
15419         (tree_coverage_counter_addr): Ditto.
15420         (coverage_checksum_string): Ditto.
15421         (coverage_begin_output): Ditto.
15422         (coverage_end_function): Ditto.
15423         (build_fn_info_type): Ditto.
15424         (build_fn_info_value): Ditto.
15425         * libgcov.c (gcov_exit): Ditto.
15426         * gcov-dump.c (tag_function): Ditto.
15427         (compute_checksum): Remove.
15428
15429 2011-04-29  Alan Modra  <amodra@gmail.com>
15430
15431         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15432         unspec plus offset.  Tidy macho code.
15433
15434 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15435
15436         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15437         node instead of a decl.  Update all callers.
15438         * cgraph.h: Update declaration.
15439
15440 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
15441
15442         PR tree-optimization/48765
15443         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15444         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15445         to indicate if loop aware SLP is being used.  Scan the statements
15446         and update the vectorization factor according to the type of
15447         vectorization before statement analysis.
15448         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15449         pass it to vect_analyze_loop_operations.
15450         (vectorizable_reduction): Set number of copies to 1 in case of pure
15451         SLP statement.
15452         * tree-vect-stmts.c (vectorizable_conversion,
15453         vectorizable_assignment, vectorizable_shift,
15454         vectorizable_operation, vectorizable_type_demotion,
15455         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15456         Likewise.
15457         (vectorizable_condition): Move the check that it is not SLP
15458         vectorization before the number of copies check.
15459         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15460         to vectorize the loop using SLP.
15461
15462 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
15463
15464         PR middle-end/48597
15465         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15466         inline asm.
15467
15468 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15469
15470         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15471         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15472         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15473         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15474         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15475         linux*.h headers.
15476         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15477         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15478         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15479         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15480         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15481         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15482         REG_NAME.
15483         * config/i386/linux.h (REG_NAME): Don't define.
15484         * config/i386/linux64.h (REG_NAME): Don't define.
15485         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15486         Undefine before defining.
15487
15488 2011-04-28  Jan Hubicka  <jh@suse.cz>
15489
15490         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15491         nonconstant_names array.
15492         (estimate_function_body_sizes): Build nonconstant_names array; handle
15493         BUILT_IN_CONSTANT_P.
15494
15495 2011-04-28  Richard Guenther  <rguenther@suse.de>
15496
15497         PR bootstrap/48804
15498         Revert
15499         2011-04-28  Richard Guenther  <rguenther@suse.de>
15500
15501         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15502         as late as possible.
15503
15504 2011-04-28  Richard Guenther  <rguenther@suse.de>
15505
15506         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15507         (debug_constraint): Do it here.
15508         (dump_constraints): And here.
15509         (rewrite_constraints): And here.
15510         (dump_constraint_edge): Remove.
15511         (dump_constraint_graph): Rewrite to produce DOT output.
15512         (solve_constraints): Build succ graph as late as possible.
15513         Dump constraint graphs before and after solving.
15514
15515 2011-04-28  Richard Guenther  <rguenther@suse.de>
15516
15517         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15518         New function split out from ...
15519         (find_func_aliases): ... here.  Call it.
15520         (find_func_aliases_for_call): Likewise.
15521
15522 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15523
15524         * internal-fn.h (internal_fn_name_array): Declare.
15525         (internal_fn_flags_array): Likewise.
15526
15527 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15528
15529         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15530         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15531         Move from sse.md.
15532         (ssemodefsuffix): Remove.
15533         (ssevecmodesuffix): New mode attribute.
15534         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15535         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15536         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15537         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15538         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15539         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15540         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15541         ssemodesuffix mode attribute.
15542         (float splitters): Use ssevecmodesuffix mode attribute.
15543         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15544         (sseinsmode): Rename from avxvecmode.
15545         (avxsizesuffix): Rename from avxmodesuffix.
15546         (sseintvecmode): Rename from avxpermvecmode.
15547         (ssedoublevecmode): Rename from ssedoublesizemode.
15548         (ssehalfvecmode): Rename from avxhalfvecmode.
15549         (ssescalarmode): Rename from avxscalarmode.
15550         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15551         templates for ssemodesuffix mode attribute.
15552         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15553         mode attribute.
15554
15555         Adjust RTX patterns globally for renamed mode attributes.
15556
15557 2011-04-27  Jan Hubcika  <jh@suse.cz>
15558
15559         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15560         * ipa-inline-analysis.c: Include alloc-pool.h.
15561         (edge_predicate_pool): New.
15562         (trye_predicate_p): New function
15563         (false_predicate_p): New function.
15564         (add_clause): Sanity check that false clauses are "optimized";
15565         never add clauses to predicate that is already known to be false.
15566         (and_predicate): Use flase_predicate_p.
15567         (evaulate_predicate): Rename to ...
15568         (evaluate_predicate): ... this one; update all callers; assert
15569         that false is not listed among possible truths.
15570         (dump_predicate): Use true_predicate_p.
15571         (account_size_time): Use false_predicate_p.
15572         (evaulate_conditions_for_edge): Rename to ...
15573         (evaluate_conditions_for_edge) ... this one.
15574         (edge_set_predicate): New function.
15575         (inline_edge_duplication_hook): Duplicate edge predicates.
15576         (inline_edge_removal_hook): Free edge predicates.
15577         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15578         (dump_inline_summary): Update.
15579         (estimate_function_body_sizes): Set edge predicates.
15580         (estimate_calls_size_and_time): Handle predicates.
15581         (estimate_callee_size_and_time): Update.
15582         (remap_predicate): Add toplev_predicate; update comment.
15583         (remap_edge_predicates): New function.
15584         (inline_merge_summary): Compute toplev predicate; update.
15585         (read_predicate): New function.
15586         (read_inline_edge_summary): Use it.
15587         (inline_read_section): Likewise.
15588         (write_predicate): New function.
15589         (write_inline_edge_summary): Use it.
15590         (inline_write_summary): Likewise.
15591         (inline_free_summary): Free alloc pool and edge summary vec.
15592
15593 2011-04-27  Richard Guenther  <rguenther@suse.de>
15594
15595         * tree-ssa-structalias.c (changed_count): Remove.
15596         (changed): Use a bitmap.
15597         (unify_nodes): Adjust.
15598         (do_sd_constraint): Likewise.
15599         (do_ds_constraint): Likewise.
15600         (do_complex_constraint): Likewise.
15601         (solve_graph): Likewise.
15602
15603 2011-04-27  Jan Hubicka  <jh@suse.cz>
15604
15605         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15606
15607 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15608
15609         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15610         (avx_vperm2f128_*_operand): Ditto.
15611         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15612         Use avx_vpermilp_parallel in insn condition.
15613         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15614         Use avx_vperm2f128_parallel in insn condition.
15615
15616 2011-04-27  Richard Guenther  <rguenther@suse.de>
15617
15618         * Makefile.in (tree-ssa-structalias.o): Remove
15619         gt-tree-ssa-structalias.h dependency.
15620         (GTFILES): Remove tree-ssa-structalias.c.
15621         * tree.c (allocate_decl_uid): New function.
15622         (make_node_stat): Use it.
15623         (copy_node_stat): Likewise.
15624         * tree.h (allocate_decl_uid): Declare.
15625         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15626         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15627         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15628         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15629         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15630         (struct heapvar_map): Likewise.
15631         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15632         heapvar_insert): Likewise.
15633         (make_heapvar_for): Rename to ...
15634         (make_heapvar): ... this.  Simplify.
15635         (fake_var_decl_obstack): New global var.
15636         (build_fake_var_decl): New function.
15637         (make_constraint_from_heapvar): Adjust.
15638         (handle_lhs_call): Likewise.
15639         (create_function_info_for): Likewise.
15640         (intra_create_variable_infos): Likewise.
15641         (init_alias_vars): Allocate fake_var_decl_obstack.
15642         (init_alias_heapvars, delete_alias_heapvars): Remove.
15643         (compute_points_to_sets): Do not call init_alias_heapvars.
15644         (ipa_pta_execute): Likewise.
15645         (delete_points_to_sets): Free fake_var_decl_obstack.
15646
15647 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15648
15649         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15650         (si_from_UTItype, si_to_UTItype): New functions.
15651         (__udivmodti4): Use them to implement type-punning.
15652         * config/spu/multi3.c (union qword_TItype): New data type.
15653         (si_from_TItype, si_to_TItype): New functions.
15654         (__multi3): Use them to implement type-punning.
15655
15656 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15657
15658         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15659
15660 2011-04-27  Jan Hubicka  <jh@suse.cz>
15661
15662         * ipa-prop.c (function_insertion_hook_holder): New holder.
15663         (ipa_add_new_function): New function.
15664         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15665         Register/deregister holder.
15666
15667 2011-04-27  Richard Guenther  <rguenther@suse.de>
15668
15669         PR tree-optimization/48772
15670         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15671
15672 2011-04-27  Richard Guenther  <rguenther@suse.de>
15673
15674         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15675         TARGET_MEM_REF handling.
15676
15677 2011-04-27  Nick Clifton  <nickc@redhat.com>
15678
15679         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15680         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15681         (REG_CLASS_NAMES): Likewise.
15682         (REG_CLASS_CONTENTS): Likewise.
15683         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15684         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15685         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
15686         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
15687         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
15688         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15689         duplicate register classes.
15690         (frv_class_likely_spilled_p): Likewise.
15691         (frv_register_move_cost): Likewise.
15692
15693         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15694         end of the regno_reg_class array.
15695
15696 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
15697
15698         PR c/48742
15699         * c-typeck.c (build_binary_op): Don't wrap arguments if
15700         int_operands is true.
15701
15702 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
15703
15704         PR target/48767
15705         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15706         targetm.calls.must_pass_in_stack for void type.
15707
15708 2011-04-26  Jan Hubicka  <jh@suse.cz>
15709
15710         * cgraphbuild.c (build_cgraph_edges): Update call
15711         of cgraph_create_edge and cgraph_create_indirect_edge.
15712         * cgraph.c (cgraph_create_edge_including_clones,
15713         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15714         cgraph_update_edges_for_call_stmt_node): Do not take nest
15715         argument; do not initialize call_stmt_size/time.
15716         (dump_cgraph_node): Do not dump nest.
15717         (cgraph_clone_edge): Do not take loop_nest argument;
15718         do not propagate it; do not clone call_stmt_size/time.
15719         (cgraph_clone_node): Likewise.
15720         (cgraph_create_virtual_clone): Update.
15721         * cgraph.h (struct cgraph_edge): Remove
15722         call_stmt_size/call_stmt_time/loop_nest.
15723         (cgraph_create_edge, cgraph_create_indirect_edge,
15724         cgraph_create_edge_including_clones, cgraph_clone_node): Update
15725         prototype.
15726         * tree-emutls.c (gen_emutls_addr): Update.
15727         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15728         loop_nest; handle indirect calls, too.
15729         (clone_inlined_nodes): Do not care about updating inline summaries.
15730         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15731         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15732         stream call_stmt_size/call_stmt_time/loop_nest.
15733         * ipa-inline.c (edge_badness): Update.
15734         (ipa_inline): dump summaries after inlining.
15735         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15736         New.
15737         (inline_edge_summary): New function.
15738         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15739         (inline_edge_removal_hook): Handle edge summaries.
15740         (inline_edge_duplication_hook): New hook.
15741         (inline_summary_alloc): Alloc hooks.
15742         (initialize_growth_caches): Do not register removal hooks.
15743         (free_growth_caches); Do not free removal hook.
15744         (dump_inline_edge_summary): New function.
15745         (dump_inline_summary): Use it.
15746         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15747         (inline_update_callee_summaries): New function.
15748         (inline_merge_summary): Use it.
15749         (do_estimate_edge_time, do_estimate_edge_growth): Update.
15750         (read_inline_edge_summary): New function.
15751         (inline_read_section): Use it.
15752         (write_inline_edge_summary): New function.
15753         (inline_write_summary): Use it.
15754         (inline_free_summary): Free edge new holders.
15755         * tree-inline.c (copy_bb): Update.
15756
15757 2011-04-26  Jason Merrill  <jason@redhat.com>
15758
15759         * tree-eh.c (lower_try_finally_switch): Create the label along with
15760         the CASE_LABEL_EXPR.
15761
15762 2011-04-26  David S. Miller  <davem@davemloft.net>
15763             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15764
15765         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15766         * configure: Regenerate.
15767
15768 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15769
15770         PR target/48258
15771         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15772         reduction.
15773         (VEC_reduc): New code iterator and splitters for vector reduction.
15774         (VEC_reduc_name): Ditto.
15775         (VEC_reduc_rtx): Ditto.
15776         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15777         (reduc_<VEC_reduc_name>_v4sf): Ditto.
15778
15779         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15780         support for extracting SF on VSX.
15781
15782         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15783         generating xscvspdp.
15784         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15785         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15786         double add, minimum, maximum vector reduction.
15787         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15788         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15789         optimize double vector reduction.
15790         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15791
15792 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
15793
15794         * config/fr30/fr30.h (inhibit_libc): Don't define.
15795         * config/m32r/m32r-protos.h: Correct comment.
15796         * config/v850/v850.h (GHS_default_section_names,
15797         GHS_current_section_names): Use tree, not union tree_node *.
15798
15799 2011-04-26  Xinliang David Li  <davidxl@google.com>
15800
15801         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15802         * c-family/c-opts.c (c_common_handle_option): Set
15803         warn_maybe_uninitialized.
15804         * opts.c (common_handle_option): Ditto.
15805         * common.opt:  New option.
15806         * tree-ssa.c (warn_uninit): Add one more parameter.
15807         (warn_uninitialized_var): Pass warning code.
15808         * tree-flow.h: Interface change.
15809
15810 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15811
15812         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15813         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15814         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15815
15816 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15817
15818         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15819         * config/mips/mips.opt (mmips-tfile): Remove.
15820
15821         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15822         mips-tdump reference to ...
15823         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
15824         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15825         reference by Tru64 UNIX.
15826
15827 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
15828
15829         PR debug/48768
15830         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15831         is error_mark_node, set value to NULL.
15832
15833         PR tree-optimization/48734
15834         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15835         if return value from maybe_fold_*_comparsions isn't something
15836         the code is prepared to handle.
15837
15838 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
15839
15840         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15841         mode check.
15842         (ext_QIreg_nomode_operands): Remove.
15843         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15844         (*andsi_1): Ditto.
15845         (*andhi_1): Ditto.
15846
15847 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
15848
15849         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15850
15851 2011-04-26  Richard Guenther  <rguenther@suse.de>
15852
15853         * c-typeck.c (build_unary_op): Do not expand array-refs via
15854         pointer arithmetic.  Only adjust qualifiers for function types.
15855
15856 2011-04-26  Richard Guenther  <rguenther@suse.de>
15857
15858         PR middle-end/48694
15859         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15860         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15861         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
15862         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15863
15864 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
15865
15866         * doc/extend.texi: Document __underlying_type.
15867
15868 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
15869
15870         * config/rs6000/titan.md (automata_option "progress"): Remove.
15871
15872 2011-04-25  Jeff Law  <law@redhat.com>
15873
15874         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15875
15876 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15877
15878         * system.h (ENUM_BITFIELD): Remove.
15879
15880 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
15881             Eric Botcazou  <ebotcazou@adacore.com>
15882
15883         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15884         for STORE_FLAG_VALUE==-1 case.
15885
15886 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
15887
15888         PR target/43804
15889         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15890         LEGITIMATE_PIC_OPERAND_P.
15891
15892 2011-04-24  Jan Hubicka  <jh@suse.cz>
15893
15894         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15895         WPA hack.
15896         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15897         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15898         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15899         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15900         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15901         Sanity check predicate length.
15902         (remap_predicate): Likewise; sanity check jump functions.
15903         (inline_read_section, inline_write_summary): Sanity check
15904         predicate length.
15905
15906 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15907
15908         PR other/48748
15909         * doc/extend.texi (Type Traits): Document __is_standard_layout,
15910         __is_literal_type, and __is_trivial; update throughout about
15911         possibly cv-qualified void types.
15912
15913 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15914
15915         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15916         testsuite and make it version agnostic.
15917
15918 2011-04-22  Jan Hubicka  <jh@suse.cz>
15919
15920         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15921
15922 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
15923
15924         PR c/48685
15925         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15926         to VOID_TYPE even around MODIFY_EXPR.
15927
15928 2011-04-22  Mike Stump  <mikestump@comcast.net>
15929
15930         * gensupport.c (read_md_rtx): Fix typo in comment.
15931         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15932         comment.
15933
15934 2011-04-22  Jan Hubicka  <jh@suse.cz>
15935
15936         * gengtype.c (open_base_files): Add ipa-inline.h include.
15937         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15938         ipa-prop.c; update all uses.
15939         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15940         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15941         merge summary of inlined function into former caller.
15942         * ipa-inline.c (max_benefit): Remove.
15943         (edge_badness): Compensate for removal of benefits.
15944         (update_caller_keys): Use
15945         reset_node_growth_cache/reset_edge_growth_cache.
15946         (update_callee_keys): Likewise.
15947         (update_all_callee_keys): Likewise.
15948         (inline_small_functions): Do not collect max_benefit; do not reset
15949         estimated_growth; call free_growth_caches and initialize_growth_caches.
15950         * ipa-inline.h (struct condition, type clause_t, struct predicate,
15951         struct size_time_entry): New structures.
15952         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15953         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15954         and estimated_growth.
15955         (edge_growth_cache_entry): New structure.
15956         (node_growth_cache, edge_growth_cache): New global vars.
15957         (estimate_growth): Turn into inline.
15958         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15959         initialize_growth_caches, free_growth_caches): Declare.
15960         (estimate_edge_growth): Rewrite.
15961         (estimate_edge_time): Implement as inline cache lookup.
15962         (reset_node_growth_cache, reset_edge_growth_cache): New inline
15963         functions.
15964         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
15965         (NUM_CONDITIONS): New constant.
15966         (predicate_conditions): New enum.
15967         (IS_NOT_CONSTANT): New constant.
15968         (edge_removal_hook_holder): New var.
15969         (node_growth_cache, edge_growth_cache): New global vars.
15970         (true_predicate, single_cond_predicate, false_predicate,
15971         not_inlined_predicate, add_condition, add_clause, and_predicates,
15972         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
15973         dump_clause, dump_predicate, account_size_time,
15974         evaulate_conditions_for_edge): New functions.
15975         (inline_summary_alloc): Move to heap.
15976         (inline_node_removal_hook): Clear condition and entry vectors.
15977         (inline_edge_removal_hook): New function.
15978         (initialize_growth_caches, free_growth_caches): New function.
15979         (dump_inline_summary): Update.
15980         (edge_execution_predicate): New function.
15981         (will_be_nonconstant_predicate): New function.
15982         (estimate_function_body_sizes): Compute BB and constantness predicates.
15983         (compute_inline_parameters): Do not clear estimated_growth.
15984         (estimate_edge_size_and_time): New function.
15985         (estimate_calls_size_and_time): New function.
15986         (estimate_callee_size_and_time): New function.
15987         (remap_predicate): New function.
15988         (inline_merge_summary): New function.
15989         (do_estimate_edge_time): New function based on...
15990         (estimate_edge_time): ... this one.
15991         (do_estimate_edge_growth): New function.
15992         (do_estimate_growth): New function based on....
15993         (estimate_growth): ... this one.
15994         (inline_analyze_function): Analyze after deciding on jump functions.
15995         (inline_read_section): New function.
15996         (inline_read_summary): Use it.
15997         (inline_write_summary): Write all the new data.
15998         * ipa-prop.c (ipa_get_param_decl_index): Export.
15999         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16000         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16001         Declare.
16002         (ipa_get_lattice): Move here from ipa-cp.c
16003         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16004         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16005         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16006         cgraph_edge_inlinable_p): Remove.
16007         * cgraphunit.c: Include ipainline.h
16008         (cgraph_process_new_functions): Update call of
16009         compute_inline_parameters.
16010
16011 2011-04-22  Richard Guenther  <rguenther@suse.de>
16012
16013         * tree.c (build_int_cst): Properly create canonicalized integer
16014         constants.
16015         (build_int_cst_type): Remove scary comments.
16016
16017 2011-04-22  Xinliang David Li  <davidxl@google.com>
16018
16019         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16020         by default when -Wno-error is not specified.
16021         * opts-global.c (decode_options): Remove call to
16022         control_warning_options.
16023
16024 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16025
16026         PR tree-optimization/48717
16027         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16028         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16029
16030 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16031
16032         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16033         definition where used.
16034
16035 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16036
16037         PR c/48716
16038         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16039         TREE_STATIC variables declared inside of some OpenMP construct.
16040
16041 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16042
16043         PR middle-end/48585
16044         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16045
16046 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16047
16048         PR c/36750
16049         * c-typeck.c (pop_init_level): Do not warn about initializing
16050         with ` = {0}'.
16051
16052 2011-04-22  Alan Modra  <amodra@gmail.com>
16053
16054         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16055         when returning call_cookie.
16056         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16057         pointers, to functions with no more vector args than the current
16058         function, and some non-local calls for ABI_V4.
16059         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16060         sibcall_nonlocal_aix64): Combine to ..
16061         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16062         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16063         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16064         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16065         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16066         operand.
16067         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16068         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16069         sibcall_value_symbolic_64): Delete.
16070
16071 2011-04-21  Xinliang David Li  <davidxl@google.com>
16072
16073         * cgraph.h: Remove pid.
16074         * cgraph.c: Remove pid.
16075         * value-prof.c (init_node_map): New function.
16076         (del_node_map): New function.
16077         (find_func_by_funcdef_no): New function.
16078         (gimple_ic_transform): Call new function.
16079         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16080         * function.c (get_last_funcdef_no): New function.
16081         * function.h (get_last_funcdef_no): New function.
16082         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16083         to libgcov function.
16084         (tree-profiling): Call node map init and delete function.
16085
16086 2011-04-21  Ian Lance Taylor  <iant@google.com>
16087
16088         * godump.c (go_format_type): Use exported Go name for anonymous
16089         field name.
16090
16091 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16092
16093         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16094         Call builtin_function_type_list instead of builtin_function_type.
16095         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16096
16097 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16098
16099         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16100         build_function_type_list instead of build_function_type.
16101         Delete variable `endlink'.
16102
16103 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16104
16105         * config/s390/s390.c (s390_init_builtins): Call
16106         build_function_type_list instead of build_function_type.
16107
16108 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16109
16110         * config/ia64/ia64.c (ia64_init_builtins): Call
16111         build_function_type_list instead of builtin_function_type.
16112
16113 2011-04-21  Easwaran Raman  <eraman@google.com>
16114
16115         * cfgexpand.c (stack_var): Remove OFFSET...
16116         (add_stack_var): ...and its reference here...
16117         (expand_stack_vars): ...and here.
16118         (stack_var_cmp): Sort by descending order of size.
16119         (partition_stack_vars): Change heuristic.
16120         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16121         (dump_stack_var_partition): Add newline after each partition.
16122
16123 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16124             Jeff Law  <law@redhat.com>
16125
16126         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16127         * gengtype.c (matching_file_name_substitute): Likewise.
16128
16129 2011-04-21  Richard Guenther  <rguenther@suse.de>
16130
16131         PR lto/48703
16132         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16133
16134 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16135
16136         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16137
16138 2011-04-21  Richard Guenther  <rguenther@suse.de>
16139
16140         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16141         file name.
16142
16143 2011-04-21  Richard Guenther  <rguenther@suse.de>
16144
16145         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16146         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16147         Use DECL_P, not SSA_VAR_P.
16148         (ptr_derefs_may_alias_p): Likewise.
16149         (ptr_deref_may_alias_ref_p_1): Likewise.
16150         (decl_refs_may_alias_p): Likewise.
16151         (refs_may_alias_p_1): Likewise.
16152         (ref_maybe_used_by_call_p_1): Likewise.
16153         (call_may_clobber_ref_p_1): Likewise.
16154         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16155         are either MEM_REF or TARGET_MEM_REF.
16156         (indirect_refs_may_alias_p): Likewise.
16157         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16158         for MEM_EXPR of indirect calls.
16159
16160 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16161
16162         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16163         (dst_file_info_struct): Remove flen field.
16164         (lookup_filename): Remove code that set flen field.
16165
16166 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16167
16168         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16169
16170 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16171
16172         PR target/48708
16173         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16174         vec_extract and vec_concat for non-SSE4_1 targets.
16175
16176 2011-04-21  Richard Guenther  <rguenther@suse.de>
16177
16178         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16179         return statements.
16180
16181 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16182
16183         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16184         undefine.
16185         (FILE): Don't undefine.
16186
16187 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16188
16189         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16190         struct rtx_def *.
16191         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16192         struct rtx_def *.
16193         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16194         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16195         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16196         rtx_def *.
16197         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16198         definitions where used.
16199         * config/microblaze/microblaze.h (struct microblaze_args): Use
16200         rtx, not struct rtx_def *.
16201         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16202         rtx_def *.
16203         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16204         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16205         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16206         not struct rtx_def *.
16207         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16208         struct rtx_def *.
16209         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16210         rtx_def *.
16211         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16212
16213 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16214
16215         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16216         operand_equal_p to compare DR_BASE_ADDRESSes.
16217         (vect_check_interleaving): Likewise.
16218
16219 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16220
16221         PR target/46329
16222         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16223         for all Neon struct constants.
16224
16225 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16226
16227         * target.def (legitimate_constant_p): New hook.
16228         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16229         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16230         * doc/tm.texi: Regenerate.
16231         * hooks.h (hook_bool_mode_rtx_true): Declare.
16232         * hooks.c (hook_bool_mode_rtx_true): Define.
16233         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16234         * calls.c (precompute_register_parameters): Replace uses of
16235         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16236         (emit_library_call_value_1): Likewise.
16237         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16238         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16239         * ira-costs.c (scan_one_insn): Likewise.
16240         * recog.c (general_operand, immediate_operand): Likewise.
16241         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16242         * reload1.c (init_eliminable_invariants): Likewise.
16243
16244         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16245         mode argument.
16246         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16247         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16248         argument.
16249         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16250         * config/alpha/predicates.md (input_operand): Update call to
16251         alpha_legitimate_constant_p.
16252
16253         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16254         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16255         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16256         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16257         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16258         (arm_legitimate_constant_p): New functions.
16259         (arm_cannot_force_const_mem): Make static.
16260
16261         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16262
16263         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16264         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16265         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16266         instead of bfin_legitimate_constant_p.
16267         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16268         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16269
16270         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16271
16272         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16273
16274         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16275         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16276         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16277         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16278
16279         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16280         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16281         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16282
16283         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16284         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16285         * config/i386/i386.c (legitimate_constant_p): Rename to...
16286         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16287         argument.
16288         (ix86_cannot_force_const_mem): Update accordingly.
16289         (ix86_legitimate_address_p): Likewise.
16290         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16291         * config/i386/i386.md: Update commentary.
16292
16293         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16294         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16295         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16296         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16297
16298         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16299
16300         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16301         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16302         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16303         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
16304
16305         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16306         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16307         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16308
16309         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16310         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16311         (m32r_legitimate_constant_p): New function.
16312
16313         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16314         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16315         LEGITIMATE_CONSTANT_P.
16316         (LEGITIMATE_CONSTANT_P): Delete.
16317         * config/m68k/m68k.c (m68k_expand_prologue): Call
16318         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16319         (m68k_legitimate_constant_p): New function.
16320         * config/m68k/m68k.md: Update comments.
16321
16322         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16323         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16324         (mcore_legitimate_constant_p): New function.
16325
16326         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16327         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16328         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16329         Add a mode argument.
16330         (mep_legitimate_address): Update accordingly.
16331         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16332
16333         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16334         Delete.
16335         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16336         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16337         static.  Check OP's mode for VOIDmode.
16338         (microblaze_legitimate_constant_p): New function.
16339         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16340
16341         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16342         * config/mips/mips.c (mips_legitimate_constant_p): New function.
16343         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16344         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16345         * config/mips/predicates.md: Update comments.
16346
16347         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16348         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16349         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16350         (mmix_legitimate_constant_p): Make static, return a bool, and take
16351         a mode argument.
16352         (mmix_print_operand_address): Update accordingly.
16353
16354         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16355         Delete.
16356         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16357         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16358         static.  Add a mode argument.
16359         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16360
16361         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16362
16363         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16364         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16365         (pa_legitimate_constant_p): New function.
16366
16367         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16368
16369         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16370         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16371         (pdp11_legitimate_constant_p): New function.
16372
16373         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16374         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16375         (rs6000_legitimate_constant_p): New function.
16376
16377         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16378         (rx_legitimate_constant_p): ...this.
16379         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16380         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16381         (rx_legitimate_constant_p): ...this.
16382         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16383         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16384
16385         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16386         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16387         * config/s390/s390.c (legitimate_constant_p): Rename to...
16388         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
16389         and add a mode argument.
16390         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16391
16392         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16393
16394         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16395         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16396         (sh_legitimate_constant_p): New function.
16397
16398         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16399         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16400         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16401         (legitimate_constant_p): Rename to...
16402         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
16403         argument.
16404         (constant_address_p): Update accordingly.
16405
16406         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16407         argument and return a bool.
16408         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16409         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16410         (spu_legitimate_constant_p): Add a mode argument and return a bool.
16411         (spu_rtx_costs): Update accordingly.
16412         * config/spu/predicates.md (vec_imm_operand): Likewise.
16413
16414         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16415
16416         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16417         * config/v850/v850.c (v850_legitimate_constant_p): New function.
16418         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16419
16420         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16421         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16422         * config/vax/vax.c (legitimate_constant_p): Likewise.
16423
16424         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16425         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16426         (xtensa_legitimate_constant_p): New function.
16427
16428 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16429
16430         * target.def (cannot_force_const_mem): Add a mode argument.
16431         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16432         * doc/tm.texi: Regenerate.
16433         * hooks.h (hook_bool_mode_rtx_false): Declare.
16434         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16435         (hook_bool_mode_const_rtx_true): Likewise.
16436         (hook_bool_mode_rtx_false): New function.
16437         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16438         to be non-VOID.  Update call to cannot_force_const_mem.
16439         (find_reloads): Update accordingly.
16440         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16441         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16442         argument.
16443         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16444         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16445         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16446         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16447         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16448         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16449         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16450         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16451         (m68k_cannot_force_const_mem): ...this new function.
16452         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16453         argument.
16454         (mips_const_insns, mips_legitimize_const_move): Update calls.
16455         (mips_secondary_reload_class): Likewise.
16456         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16457         (pa_cannot_force_const_mem): ...this new function.
16458         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16459         (rs6000_cannot_force_const_mem): ...this new function.
16460         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16461         argument.
16462         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16463         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16464         to...
16465         (xtensa_cannot_force_const_mem): ...this new function.
16466
16467 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16468
16469         * config/mips/mips.c (mips16_build_function_stub): Call
16470         build_function_type_list instead of build_function_type.
16471         (mips16_build_call_stub): Likewise.
16472
16473 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16474
16475         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16476         instead of build_function_type.
16477
16478 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16479
16480         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16481         instead of build_function_type.
16482
16483 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16484
16485         PR target/48678
16486         * config/i386/i386.md (insv): Change operand 0 constraint to
16487         "register_operand".  Change operand 1 and 2 constraint to
16488         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16489         * config/i386/sse.md (sse4_1_pinsrb): Export.
16490         (sse2_pinsrw): Ditto.
16491         (sse4_1_pinsrd): Ditto.
16492         (sse4_1_pinsrq): Ditto.
16493         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16494         * config/i386/i386.c (ix86_expand_pinsr): New.
16495
16496 2011-04-20  Easwaran Raman  <eraman@google.com>
16497
16498         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16499         containing union type only with -fstrict-aliasing.
16500
16501 2011-04-20  Jim Meyering  <meyering@redhat.com>
16502
16503         Remove useless if-before-free tests.
16504         * calls.c (expand_call, save_area): Likewise.
16505         * cfgcleanup.c (try_forward_edges): Likewise.
16506         * collect2.c (collect_execute): Likewise.
16507         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16508         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16509         * coverage.c (coverage_checksum_string): Likewise.
16510         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16511         * cselib.c (cselib_init): Likewise.
16512         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16513         (df_set_clean_cfg): Likewise.
16514         * function.c (free_after_compilation): Likewise.
16515         * gcc.c (do_spec_1, main): Likewise.
16516         * gcov.c (create_file_names): Likewise.
16517         * gensupport.c (identify_predicable_attribute): Likewise.
16518         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16519         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16520         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16521         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16522         * ipa-pure-const.c (local_pure_const): Likewise.
16523         * ipa-reference.c (propagate): Likewise.
16524         * ira-costs.c (free_ira_costs): Likewise.
16525         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16526         * matrix-reorg.c (mat_free): Likewise.
16527         * prefix.c (get_key_value): Likewise.
16528         * profile.c (compute_value_histograms): Likewise.
16529         * reload1.c (free_reg_equiv): Likewise.
16530         * sched-deps.c (free_deps): Likewise.
16531         * sel-sched-ir.c (fence_clear): Likewise.
16532         * sese.c (set_rename, if_region_set_false_region): Likewise.
16533         * tree-data-ref.c (free_rdg): Likewise.
16534         * tree-eh.c (lower_try_finally): Likewise.
16535         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16536         * tree-ssa-live.c (delete_var_map): Likewise.
16537         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16538         * tree-ssa-pre.c (phi_trans_add): Likewise.
16539
16540 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16541
16542         PR tree-optimization/48611
16543         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16544         beyond ERT_MUST_NOT_THROW region.
16545
16546 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16547
16548         * config/mips/mips.opt (mfix-24k): New.
16549         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16550         * config/mips/mips.md (length): Increase by 4 for stores if
16551         fixing 24K errata.
16552         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16553         all noreorder if fixing 24K errata.
16554         * doc/invoke.texi: Document mfix-24k.
16555
16556 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16557
16558         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16559         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16560
16561 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16562
16563         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16564         (const_ok_for_op): ... to here.
16565
16566 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16567
16568         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16569         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16570
16571 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16572
16573         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16574
16575 2011-04-20  Richard Guenther  <rguenther@suse.de>
16576
16577         PR tree-optimization/47892
16578         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16579         are if-convertible.
16580
16581 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16582
16583         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16584
16585 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16586
16587         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16588
16589 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16590
16591         PR target/18145
16592
16593         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16594         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16595         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16596         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16597         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16598
16599         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16600         New prototype.
16601
16602         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16603         (avr_asm_named_section, avr_asm_output_aligned_common,
16604         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16605         New functions to update...
16606         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16607         (avr_asm_init_sections): Overwrite section callbacks for
16608         data_section, bss_section.
16609         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16610         from here to...
16611         (avr_file_end): ...here.
16612
16613 2011-04-20  Richard Guenther  <rguenther@suse.de>
16614
16615         PR middle-end/48695
16616         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16617         objects and types here.  Adjust for their offset before comparing.
16618
16619 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16620
16621         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16622         statement per copy.
16623
16624 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16625
16626         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16627         (GIMPLE_H): Include $(INTERNAL_FN_H).
16628         (OBJS-common): Add internal-fn.o.
16629         (internal-fn.o): New rule.
16630         * internal-fn.def: New file.
16631         * internal-fn.h: Likewise.
16632         * internal-fn.c: Likewise.
16633         * gimple.h: Include internal-fn.h.
16634         (GF_CALL_INTERNAL): New gf_mask.
16635         (gimple_statement_call): Put fntype into a union with a new
16636         internal_fn field.
16637         (gimple_build_call_internal): Declare.
16638         (gimple_build_call_internal_vec): Likewise.
16639         (gimple_call_same_target_p): Likewise.
16640         (gimple_call_internal_p): New function.
16641         (gimple_call_internal_fn): Likewise.
16642         (gimple_call_fntype): Return null for internal calls.
16643         (gimple_call_set_fntype): Assert that the function is not internal.
16644         (gimple_call_set_fn): Likewise.
16645         (gimple_call_set_fndecl): Likewise.
16646         (gimple_call_set_internal_fn): New function.
16647         (gimple_call_addr_fndecl): Handle null functions.
16648         (gimple_call_return_type): Likewise null types.
16649         * gimple.c (gimple_build_call_internal_1): New function.
16650         (gimple_build_call_internal): Likewise.
16651         (gimple_build_call_internal_vec): Likewise.
16652         (gimple_call_same_target_p): Likewise.
16653         (gimple_call_flags): Handle calls to internal functions.
16654         (gimple_call_fnspec): New function.
16655         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16656         (gimple_has_side_effects): Handle null functions.
16657         (gimple_rhs_has_side_effects): Likewise.
16658         (gimple_call_copy_skip_args): Handle calls to internal functions.
16659         * cfgexpand.c (expand_call_stmt): Likewise.
16660         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16661         * gimple-fold.c (gimple_fold_call): Handle null functions.
16662         (gimple_fold_stmt_to_constant_1): Don't fold
16663         calls to internal functions.
16664         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16665         functions.
16666         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16667         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16668         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16669         (do_warn_unused_result): Likewise.
16670         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16671         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16672         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16673         the target of a call.
16674         (initialize_hash_element): Update accordingly.
16675         (hashable_expr_equal_p): Use gimple_call_same_target_p.
16676         (iterative_hash_hashable_expr): Handle calls to internal functions.
16677         (print_expr_hash_elt): Likewise.
16678         * tree-ssa-pre.c (can_value_number_call): Likewise.
16679         (eliminate): Handle null functions.
16680         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16681         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16682         (find_func_aliases): Likewise.
16683         * value-prof.c (gimple_ic_transform): Likewise.
16684         (gimple_indirect_call_to_profile): Likewise.
16685         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16686         * lto-streamer-out.c (output_gimple_stmt): Likewise.
16687
16688 2011-04-19  Jan Hubicka  <jh@suse.cz>
16689
16690         * ipa-inline-transform.c (save_inline_function_body): Add comments.
16691         * ipa-inline.c (inline_small_functions): Compute summaries first,
16692         populate heap later.
16693
16694 2011-04-19  Jan Hubicka  <jh@suse.cz>
16695
16696         * cgraph.h (save_inline_function_body): Remove.
16697         * ipa-inline-transform.c: New file, broke out of...
16698         * ipa-inline.c: ... this one; Update toplevel comment.
16699         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16700         make global.
16701         (update_noncloned_frequencies): Move to ipa-inline-transform.c
16702         (cgraph_mark_inline_edge): Rename to inline_call; move to
16703         ipa-inline-transform.c.
16704         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16705         move to ipa-inline-transform.c
16706         (recursive_inlining, inline_small_functions, flatten_function,
16707         ipa_inline, inline_always_inline_functions,
16708         early_inline_small_functions): Update.
16709         (inline_transform): Move to ipa-inline-transform.c.
16710         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16711         Declare.
16712         * Makefile.in (ipa-inline-transform.o): New file.
16713         * cgraphunit.c (save_inline_function_body): Move to
16714         ipa-inline-transform.c
16715
16716 2011-04-19  DJ Delorie  <dj@redhat.com>
16717
16718         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16719         registers if we already know there aren't any.
16720         (m32c_emit_epilogue): Don't emit a barrier here.
16721         (m32c_emit_eh_epilogue): Likewise.
16722         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16723         operands at expand time.
16724         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16725         int" wchar type.
16726         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16727         duplicates.  Provide aliases instead.
16728         * config/m32c/prologue.md (eh_return): Emit a barrier here.
16729         (eh_epilogue): Add a "(return)" here as a hint to other parts of
16730         the compiler.
16731
16732 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
16733
16734         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16735         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16736         (general_or_i64_p, sparc_register_move_cost): New function.
16737
16738 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16739
16740         * doc/install.texi (Configuration, --enable-threads): Remove mach.
16741         Add lynx, mipssde.  Sort table.
16742
16743 2011-04-19  Xinliang David Li  <davidxl@google.com>
16744
16745         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16746         not negative.
16747
16748 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
16749
16750         PR target/48678
16751         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16752         is a SUBREG with non-MODE_INT mode inside of it.
16753
16754 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16755
16756         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16757         also according to actual contants.
16758         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16759         (gimple_fold_call): Use it.
16760         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16761
16762 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16763
16764         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16765         non-pointer assignments.
16766
16767 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16768
16769         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16770         account anc_offset and otr_type from the indirect edge info.
16771         * ipa-prop.c (get_ancestor_addr_info): New function.
16772         (compute_complex_ancestor_jump_func): Assignment analysis moved to
16773         get_ancestor_addr_info, call it.
16774         (ipa_note_param_call): Do not initialize information about polymorphic
16775         calls, return the indirect call graph edge.  Remove the last
16776         parameter, adjust all callers.
16777         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16778         parameters.  Initialize polymorphic information in the indirect edge.
16779
16780 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16781
16782         PR lto/48148
16783         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16784         the types if they have different enumeration identifiers.
16785
16786 2011-04-19  Jan Hubicka  <jh@suse.cz>
16787
16788         * cgraph.h (cgraph_optimize_for_size_p): Declare.
16789         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16790         * predict.c (cgraph_optimize_for_size_p): Break out from ...
16791         (optimize_function_for_size_p) ... here.
16792
16793 2011-04-19  Richard Guenther  <rguenther@suse.de>
16794
16795         PR lto/48207
16796         * tree.c (free_lang_data): Do not reset the decl-assembler-name
16797         langhook.
16798
16799 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16800
16801         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16802         if DECL_NO_INLINE_WARNING_P is set on the function.
16803
16804 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
16805
16806         PR fortran/47976
16807         * reload1.c (inc_for_reload): Return void. All callers changed.
16808         (emit_input_reload_insns): Don't try to delete previous output
16809         reloads to a register, or record spill_reg_store for autoincs.
16810
16811 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
16812
16813         * gengtype.h: Updated copyright year.
16814         (struct input_file_st): Add inpisplugin field.
16815         (type_fileloc): New function.
16816         * gengtype.c
16817         (write_typed_struct_alloc_def): Add gcc_assert.
16818         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16819         (write_typed_alloc_defns): Don't output for plugin files.
16820         (input_file_by_name): Clear inpisplugin field.
16821         (main): Set inpisplugin field for plugin files.
16822
16823 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
16824
16825         * gengtype-state.c (string_eq): New.
16826         (read_state): Use string_eq instead of strcmp when creating the
16827         state_ident_tab.
16828
16829 2011-04-19  Wei Guozhi  <carrot@google.com>
16830
16831         PR target/47855
16832         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16833         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16834         linkage.
16835         * config/arm/constraints.md (Uu): New constraint.
16836         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16837
16838 2011-04-19  Tristan Gingold  <gingold@adacore.com>
16839
16840         * config.gcc (-*-*-*vms): Added.
16841         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16842         definitions moved.
16843         * config/vms/vms-ld.c: New file.
16844         * config/vms/vms-ar.c: New file.
16845         * config/vms/t-vmsnative: New file.
16846
16847 2011-04-18  Xinliang David Li  <davidxl@google.com>
16848
16849         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16850
16851 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16852
16853         PR middle-end/48661
16854         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16855         if TREE_TYPE (v) is non-NULL.
16856
16857         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16858         gimple_get_virt_mehtod_for_binfo.
16859         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16860         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16861         callers.
16862         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16863
16864 2011-04-18  Michael Matz  <matz@suse.de>
16865             Steve Ellcey  <sje@cup.hp.com>
16866
16867         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16868         use its mode as source mode if it isn't VOIDmode.
16869
16870 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
16871
16872         * doc/passes.texi: Fill crossref nodes.
16873
16874 2011-04-18  Jim Meyering  <meyering@redhat.com>
16875
16876         Fix doubled-word typos in comments and strings
16877         * config/alpha/vms-unwind.h: s/for for/for/
16878         * config/arm/unwind-arm.h: Likewise.
16879         * config/microblaze/microblaze.c: Likewise.
16880         * config/sh/constraints.md: s/in in/in/
16881         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16882
16883 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
16884
16885         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16886         (AVX_FLOAT_MODE_P): Ditto.
16887         (AVX128_VEC_FLOAT_MODE_P): Ditto.
16888         (AVX256_VEC_FLOAT_MODE_P): Ditto.
16889         (AVX_VEC_FLOAT_MODE_P): Ditto.
16890         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16891         (UNSPEC_MASKSTORE): Ditto.
16892         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16893         Merge from <sse>_movmsk<ssemodesuffix> and
16894         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
16895         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
16896         iterator.
16897         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16898         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16899         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16900
16901 2011-04-18  Jan Hubicka  <jh@suse.cz>
16902
16903         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16904
16905         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16906         (want_inline_function_called_once_p): Break out the logic from
16907         ipa_inline.
16908         (edge_badness): Ensure that profile is not misupdated.
16909         (lookup_recursive_calls): Prioritize by call frequencies.
16910         (inline_small_functions): Move program size estimates here;
16911         actually process whole queue even when unit growth has been
16912         met. (to properly compute inline_failed reasons and for the
16913         case unit size decrease.) Revisit comments on recursive inlining.
16914         (ipa_inline): Remove unit summary code; first inline hot calls
16915         of functions called once, cold calls next.
16916         (order, nnodes): Remove unused variables.
16917         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16918         (GTFILES): Remove ipa-inline.c
16919         * sel-sched.c (fill_insns): Silence uninitialized var warning.
16920
16921 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16922
16923         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16924
16925 2011-04-18  Jie Zhang  <jie@codesourcery.com>
16926             Richard Earnshaw  <rearnsha@arm.com>
16927
16928         * arm.c (neon_builtin_type_bits): Remove.
16929         (typedef enum neon_builtin_mode): New.
16930         (T_MAX): Don't define.
16931         (typedef enum neon_builtin_datum): Remove bits, codes[],
16932         num_vars and base_fcode.  Add mode, code and fcode.
16933         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16934         VAR10): Change accordingly.
16935         (neon_builtin_data[]): Change accordingly
16936         (arm_init_neon_builtins): Change accordingly.
16937         (neon_builtin_compare): Remove.
16938         (locate_neon_builtin_icode): Remove.
16939         (arm_expand_neon_builtin): Change accordingly.
16940
16941         * arm.h (enum arm_builtins): Move to ...
16942         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16943
16944         * arm.c (arm_builtin_decl): Declare.
16945         (TARGET_BUILTIN_DECL): Define.
16946         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16947         (arm_builtin_decls[]): New.
16948         (arm_init_neon_builtins): Store builtin declarations in
16949         arm_builtin_decls[].
16950         (arm_init_tls_builtins): Likewise.
16951         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
16952         (arm_builtin_decl): New.
16953
16954 2011-04-18  Richard Guenther  <rguenther@suse.de>
16955
16956         * tree.c (upper_bound_in_type): Build properly canonicalized
16957         INTEGER_CSTs.
16958         (lower_bound_in_type): Likewise.
16959
16960 2011-04-18  Richard Guenther  <rguenther@suse.de>
16961
16962         * gimple.h (gimple_call_addr_fndecl): New function.
16963         (gimple_call_fndecl): Use it.
16964         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
16965         for direct calls.
16966         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
16967         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
16968
16969 2011-04-18  Richard Guenther  <rguenther@suse.de>
16970
16971         PR middle-end/48650
16972         * tree.c (build_string): STRING_CST is now derived from tree_typed.
16973
16974 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16975
16976         PR lto/48492
16977         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
16978         DECL_IN_CONSTANT_POOL without RTL.
16979
16980 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
16981             Ira Rosen  <ira.rosen@linaro.org>
16982
16983         PR target/48252
16984         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
16985         to match neon_vzip/vuzp/vtrn_internal.
16986         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
16987         outputs explicitly dependent on both inputs.
16988         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16989
16990 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16991
16992         PR tree-optimization/48616
16993         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
16994         whether the shift is by scalar or vector based on whether all SLP
16995         scalar stmts have the same rhs.
16996
16997 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
16998
16999         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17000         memory operands.
17001
17002 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17003
17004         PR target/43700
17005         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17006         registers.
17007
17008 2011-04-17  Jan Hubicka  <jh@suse.cz>
17009
17010         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17011         * cgrpahunit.c (cgraph_finalize_function): Do not set
17012         finalized_by_frontend.
17013         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17014         finalized_by_frontend.
17015
17016 2011-04-17  Jan Hubicka  <jh@suse.cz>
17017
17018         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17019         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17020         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17021         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17022         method.
17023         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17024         gimple-fold.c
17025         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17026
17027 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17028
17029         PR lto/48538
17030         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17031         is non-null before accessing it.
17032         (input_cgraph): Remove trailing spaces.
17033
17034 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17035
17036         * params.def (sms-min-sc): New param flag.
17037         * modulo-sched.c (sms_schedule): Use it.
17038         * doc/invoke.texi (sms-min-sc): Document it.
17039
17040 2011-04-17  Jan Hubicka  <jh@suse.cz>
17041
17042         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17043         present, also set gimple_call_set_cannot_inline.
17044         * ipa-inline.c: Update toplevel comment.
17045         (MAX_TIME): Remove.
17046         (cgraph_clone_inlined_nodes): Fix linebreaks.
17047         (cgraph_check_inline_limits): Restructure to ...
17048         (caller_growth_limits): ... this one; be more tolerant
17049         on growth in nested inline chains; add explanatory comment;
17050         fix stack accounting thinko introduced by previous patch.
17051         (cgraph_default_inline_p): Remove.
17052         (report_inline_failed_reason): New function.
17053         (can_inline_edge_p): New function.
17054         (can_early_inline_edge_p): New function.
17055         (leaf_node_p): Move upwards in file.
17056         (want_early_inline_function_p): New function.
17057         (want_inline_small_function_p): New function.
17058         (want_inline_self_recursive_call_p): New function.
17059         (cgraph_edge_badness): Rename to ...
17060         (edge_badness) ... this one; fix linebreaks.
17061         (update_edge_key): Update call of edge_baddness; add
17062         detailed dump about queue updates.
17063         (update_caller_keys): Use can_inline_edge_p and
17064         want_inline_small_function_p.
17065         (cgraph_decide_recursive_inlining): Rename to...
17066         (recursive_inlining): Use can_inline_edge_p and
17067         want_inline_self_recursive_call_p; simplify and remove no longer
17068         valid FIXME.
17069         (cgraph_set_inline_failed): Remove.
17070         (add_new_edges_to_heap): Use can_inline_edge_p and
17071         want_inline_small_function_p.
17072         (cgraph_decide_inlining_of_small_functions): Rename to ...
17073         (inline_small_functions): ... this one; cleanup; use
17074         can/want predicates; cleanup debug ouput; work edges till fibheap
17075         is exhausted and do not stop once unit growth is reached; remove
17076         later loop processing remaining edges.
17077         (cgraph_flatten): Rename to ...
17078         (flatten_function): ... this one; use can_inline_edge_p
17079         and can_early_inline_edge_p predicates.
17080         (cgraph_decide_inlining): Rename to ...
17081         (ipa_inline): ... this one; remove unreachable nodes before
17082         inlining functions called once; simplify the pass.
17083         (cgraph_perform_always_inlining): Rename to ...
17084         (inline_always_inline_functions): ... this one; use
17085         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17086         (cgraph_decide_inlining_incrementally): Rename to ...
17087         (early_inline_small_functions): ... this one; simplify
17088         using new predicates; cleanup; make dumps prettier.
17089         (cgraph_early_inlining): Rename to ...
17090         (early_inliner): newer inline regular functions into always-inlines;
17091         fix updating of call stmt summaries.
17092         (pass_early_inline): Update for new names.
17093         (inline_transform): Fix formating.
17094         (gate_cgraph_decide_inlining): Rename to ...
17095         (pass_ipa_inline): ... this one.
17096         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17097         * ipa-inline-analysis.c (dump_inline_summary): Update.
17098         (compute_inline_parameters): Do not compute disregard_inline_limits;
17099         look for mismatching arguments.
17100         (estimate_growth): Fix handlig of non-trivial self recursion.
17101         (inline_read_summary): Do not read info->disregard_inline_limits.
17102         (inline_write_summary): Do not write info->disregard_inline_limits.
17103         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17104         and move all checks into can_inline_edge_p predicate; re-enable code
17105         comparing optimization levels.
17106         (expand_call_inline): Do not test inline_forbidden_into_p.
17107         * Makefile.in (ipa-inline.o): Update arguments.
17108
17109 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17110
17111         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17112
17113 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17114
17115         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17116
17117 2011-04-17  Michael Matz  <matz@suse.de>
17118
17119         PR tree-optimization/48622
17120         PR lto/48645
17121         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17122         in same order as they're written.
17123
17124 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17125
17126         * config/pa/predicates.md: Reorganize and simplify predicates.
17127         Eliminate duplicate code checks.
17128         (arith_operand): Rename to arith14_operand
17129         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17130         * config/pa/pa.md: Use renamed operands.
17131         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17132         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17133         arith11_operand, adddi3_operand, indexed_memory_operand,
17134         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17135         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17136         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17137         move_dest_operand, move_src_operand, prefetch_cc_operand,
17138         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17139         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17140         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17141         div_operand, int5_operand, movb_comparison_operator,
17142         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17143         arith_double_operand, ireg_operand, lhs_lshift_operand,
17144         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17145         integer_store_memory_operand): Likewise.
17146         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17147         (integer_store_memory_operand, read_only_operand,
17148         function_label_operand, borx_reg_operand,
17149         non_hard_reg_operand): Likewise.
17150         (eq_neq_comparison_operator): Delete unused operator.
17151         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17152         function_label_operand.
17153         (emit_move_sequence): Likewise.
17154
17155 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17156
17157         * config/i386/sse.md (sseunpackmode): New mode attribute.
17158         (ssepackmode): Ditto.
17159         (vec_pack_trunc_<mode>): Macroize expander from
17160         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17161         (vec_unpacks_lo_<mode>): Macroize expander from
17162         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17163         (vec_unpacks_hi_<mode>): Macroize expander from
17164         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17165         (vec_unpacku_lo_<mode>): Macroize expander from
17166         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17167         (vec_unpacku_hi_<mode>): Macroize expander from
17168         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17169         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17170         ix86_expand_sse4_unpack.
17171         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17172
17173 2011-04-16  Jan Hubicka  <jh@suse.cz>
17174
17175         * cgraphbuild.c: Include ipa-inline.h.
17176         (reset_inline_failed): Use initialize_inline_failed.
17177         * cgraph.c: Include ipa-inline.h.
17178         (cgraph_create_node_1): Do not initialize estimated_growth.
17179         (initialize_inline_failed): More to ipa-inline-analysis.c
17180         (dump_cgraph_node): Do not dump inline flags.
17181         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17182         and disregard_inline_limits flags.
17183         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17184         time, size, estimated_growth.
17185         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17186         Update.
17187         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17188         DECL_DISREGARD_INLINE_LIMITS.
17189         (cgraph_analyze_function): Do not initialize
17190         node->local.disregard_inline_limits.
17191         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17192         inlinable, versionable and disregard_inline_limits.
17193         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17194         cgraph_check_inline_limits, cgraph_default_inline_p,
17195         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17196         add_new_edges_to_heap): Update.
17197         (cgraph_decide_inlining_of_small_function): Update; set
17198         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17199         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17200         cgraph_decide_inlining_incrementally): Update.
17201         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17202         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17203         time, size and estimated_growth parameters.
17204         (estimate_edge_growth): Update.
17205         (initialize_inline_failed): Declare.
17206         * ipa-split.c: Include ipa-inline.h
17207         (execute_split_functions): Update.
17208         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17209         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17210         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17211         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17212         estimated_growth to INT_MIN.
17213         (inline_node_duplication_hook): Likewise.
17214         (dump_inline_summary): Dump new fields.
17215         (compute_inline_parameters): Update.
17216         (estimate_edge_time, estimate_time_after_inlining,
17217         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17218         inline_write_summary):
17219         (initialize_inline_failed): Move here from cgraph.c.
17220         * tree-sra.c: Include ipa-inline.h.
17221         (ipa_sra_preliminary_function_checks): Update.
17222         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17223         ipa-inline.h.
17224
17225 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17226
17227         * config/i386/sse.md (V16): New mode iterator.
17228         (VI1, VI8): Ditto.
17229         (AVXMODEQI, AVXMODEDI): Remove.
17230         (sse2, sse3): New mode attribute.
17231         (mov<mode>): Use V16 mode iterator.
17232         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17233         (push<mode>1): Use V16 mode iterator.
17234         (movmisalign<mode>): Ditto.
17235         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17236         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17237         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17238         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17239         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17240         avx_movdqu<avxmodesuffix>.
17241         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17242         *avx_movdqu<avxmodesuffix>.
17243         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17244         avx_lddqu<avxmodesuffix>.
17245         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17246         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17247         avx_movnt<AVXMODEDI:mode>.
17248         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17249         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17250
17251 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17252
17253         PR target/48629
17254         * haifa-sched.c (prune_ready_list, schedule_block): Use
17255         sched_pressure_p rather than flag_sched_pressure.
17256
17257 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17258
17259         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17260         cgraph_get_node instead of cgraph_get_create_node.
17261
17262 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17263
17264         * cfgexpand.c (expand_debug_expr): Use
17265         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17266
17267 2011-04-15  Michael Matz  <matz@suse.de>
17268
17269         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17270         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17271         * function.c (gimplify_parameters): Ditto.
17272         * gimplify.c (gimplify_vla_decl): Ditto.
17273
17274         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17275         (gimple_call_set_alloca_for_var): New inline function.
17276         (gimple_call_alloca_for_var_p): Ditto.
17277         * gimple.c (gimple_build_call_from_tree): Remember
17278         CALL_ALLOCA_FOR_VAR_P state.
17279         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17280
17281         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17282         calls if they were for VLA objects.
17283
17284 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17285
17286         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17287         of ADR_EXPRs.
17288
17289 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17290
17291         PR middle-end/48601
17292         * tree-emutls.c (lower_emutls_function_body): Call
17293         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17294         result is non-NULL.
17295
17296 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17297
17298         * c-decl.c (detect_field_duplicates): Call
17299         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17300
17301 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17302
17303         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17304         * gimple.c (gimple_asm_clobbers_memory_p): Define.
17305         * ipa-pure-const.c (check_stmt): Call it.
17306         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17307
17308 2011-04-15  Richard Guenther  <rguenther@suse.de>
17309
17310         PR tree-optimization/48290
17311         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17312         Properly decide inhibiting propagation based on the valueized
17313         operand.  Do loop-closed SSA form preserving here ...
17314         (init_copy_prop): ... not here.
17315
17316 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17317
17318         PR target/48612
17319         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17320         (*ieee_smax<mode>3): Likewise.
17321
17322 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17323
17324         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17325         Replace match_operand with match_dup for the third operand in
17326         these expanders.
17327
17328 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17329
17330         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17331         to track processing of conditionals.  Update all callers.
17332         (try_combine, simplify_if_then_else): Update.
17333
17334 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17335
17336         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17337         -fsched-pressure.
17338
17339 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
17340
17341         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17342         instead of match_operand for operand 3.
17343
17344 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
17345
17346         * recog.h (insn_operand_data): Add an "allows_mem" field.
17347         * genoutput.c (output_operand_data): Initialize it.
17348         * optabs.c (maybe_legitimize_operand_same_code): New function.
17349         (maybe_legitimize_operand): Use it when matching the original
17350         op->value.
17351
17352 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17353
17354         * gimplify.c: Fix issues in comments throughout.
17355         (voidify_wrapper_expr): Fix long line.
17356         (build_stack_save_restore): Likewise.
17357         (gimplify_loop_expr): Likewise.
17358         (gimplify_compound_lval): Likewise.
17359         (gimplify_init_ctor_eval): Likewise.
17360         (gimplify_modify_expr_rhs): Likewise.
17361         (omp_notice_threadprivate_variable): Likewise.
17362
17363 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17364
17365         * cfgexpand.c (expand_call_stmt): Convert the function type to the
17366         original one if this is not a builtin function.
17367
17368 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
17369
17370         PR target/48605
17371         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17372         offset it as needed based on top 2 bits in operands[3], change
17373         MEM mode to SFmode and mask those 2 bits away from operands[3].
17374
17375 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17376
17377         * c-parser.c (c_parser_objc_protocol_definition): Updated for
17378         change from objc_declare_protocols() to objc_declare_protocol().
17379
17380 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
17381
17382         * config/i386/sse.md (sse4_1): New mode attribute.
17383         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17384         avx_blend<ssemodesuffix><avxmodesuffix> and
17385         sse4_1_blend<ssemodesuffix> using VF mode iterator.
17386         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17387         avx_blendv<ssemodesuffix><avxmodesuffix> and
17388         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17389         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17390         avx_dp<ssemodesuffix><avxmodesuffix> and
17391         sse4_1_dp<ssemodesuffix> using VF mode iterator.
17392         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17393         (sse4_1_packusdw): Merge with *avx_packusdw.
17394         (sse4_1_pblendvb): Merge with *avx_pblendvb.
17395         (sse4_1_pblendw): Merge with *avx_pblendw.
17396         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17397         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17398         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17399         VF mode iterator.
17400         (sse4_1_round<ssescalarmodesuffix>): Merge with
17401         *avx_round<ssescalarmodesuffix>.
17402         (aesenc): Merge with *avx_aesenc.
17403         (aesenclast): Merge with *avx_aesenclast.
17404         (aesdec): Merge with *avx_aesdec.
17405         (aesdeclast): Merge with *avx_aesdeclast.
17406         (pclmulqdq): Merge with *pclmulqdq.
17407         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17408         New predicate.
17409         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17410
17411 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
17412
17413         PR middle-end/48608
17414         * cfgexpand.c (get_decl_align_unit): Renamed to ...
17415         (align_local_variable): This.  Update DECL_ALIGN.
17416         (add_stack_var): Updated.
17417         (expand_one_stack_var): Likewise.
17418
17419 2011-04-14  Richard Guenther  <rguenther@suse.de>
17420
17421         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17422         Remove.
17423         (dse_initialize_block_local_data, dse_leave_block,
17424         record_voperand_set, get_stmt_uid): Likewise.
17425         (dse_possible_dead_store_p): Allow any kind of killing stmt.
17426         (dse_optimize_stmt): Remove voperand set handling code.
17427         Simplify and improve to handle any kind of killing stmt.
17428         (dse_record_phi): Remove.
17429         (dse_enter_block): Simplify.
17430         (tree_ssa_dse): Likewise.
17431         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17432
17433 2011-04-14  Jan Hubicka  <jh@suse.cz>
17434
17435         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17436         * cgraph.h (struct inline_summary): Move to ipa-inline.h
17437         (cgraph_local_info): Remove inline_summary.
17438         * ipa-cp.c: Include ipa-inline.h.
17439         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17440         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17441         accesor.
17442         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17443         (input_overwrite_node): Do not set inline summary.
17444         (input_node): Do not stream inline summary.
17445         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17446         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17447         growth; we do not have inline parameters computed for that anyway.
17448         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17449         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17450         (inline_summary_t): New type and VECtor.
17451         (debug_inline_summary, dump_inline_summaries): Declare.
17452         (inline_summary): Use VOCtor.
17453         (estimate_edge_growth): Kill hack computing call stmt size directly.
17454         * lto-section-in.c (lto_section_name): Add inline section.
17455         * ipa-inline-analysis.c: Include lto-streamer.h
17456         (node_removal_hook_holder, node_duplication_hook_holder): New holders
17457         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17458         (inline_summary_vec): Define.
17459         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17460         dump_inline_summaries): New functions.
17461         (estimate_function_body_sizes): Properly compute size/time of outgoing
17462         calls.
17463         (compute_inline_parameters): Alloc inline_summary; do not compute
17464         size/time of incomming calls.
17465         (estimate_edge_time): Avoid missing time summary hack.
17466         (inline_read_summary): Read inline summary info.
17467         (inline_write_summary): Write inline summary info.
17468         (inline_free_summary): Free all hooks and inline summary vector.
17469         * lto-streamer.h: Add LTO_section_inline_summary section.
17470         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17471         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17472
17473 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17474
17475         * tree-vectorizer.h (vect_strided_store_supported): Add a
17476         HOST_WIDE_INT argument.
17477         (vect_strided_load_supported): Likewise.
17478         (vect_permute_store_chain): Return void.
17479         (vect_transform_strided_load): Likewise.
17480         (vect_permute_load_chain): Delete.
17481         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17482         count argument.  Check that the count is a power of two.
17483         (vect_strided_load_supported): Likewise.
17484         (vect_permute_store_chain): Return void.  Update after above changes.
17485         Assert that the access is supported.
17486         (vect_permute_load_chain): Likewise.
17487         (vect_transform_strided_load): Return void.
17488         * tree-vect-stmts.c (vectorizable_store): Update calls after
17489         above interface changes.
17490         (vectorizable_load): Likewise.
17491         (vect_analyze_stmt): Don't check for strided powers of two here.
17492
17493 2011-04-14  Richard Guenther  <rguenther@suse.de>
17494
17495         PR tree-optimization/48590
17496         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17497         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17498         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17499         BUILT_IN_STACK_SAVE.
17500         * tree-ssa-dce.c (propagate_necessity): Handle
17501         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17502
17503 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17504
17505         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17506         objc_declare_class.
17507
17508 2011-04-14  Richard Guenther  <rguenther@suse.de>
17509
17510         * tree.h (get_object_alignment_1): Declare.
17511         * builtins.c (get_object_alignment_1): Split out worker from ...
17512         (get_object_alignment): ... here.
17513         * fold-const.c (get_pointer_modulus_and_residue): Use
17514         get_object_alignment_1.
17515
17516 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17517
17518         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17519         type parameter.
17520         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17521         parameter.  Generalise code to handle arrays as well as vectors.
17522         (vect_setup_realignment): Update accordingly.
17523         * tree-vect-stmts.c (vectorizable_store): Likewise.
17524         (vectorizable_load): Likewise.
17525
17526 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17527
17528         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17529         within the per-copy loop.
17530
17531 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17532
17533         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17534         in the dump file.
17535
17536 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17537
17538         * doc/options.texi (Negative): Explicitly mention that the
17539         Negative chain must be circular.
17540
17541 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17542
17543         * function.h (block_chainon): Declare.
17544         * function.c (block_chainon): Define.
17545
17546 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17547             Eric Weddington  <eric.weddington@atmel.com>
17548             Georg-Johann Lay  <avr@gjlay.de>
17549
17550         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17551         New Includes
17552         (avr_init_builtins, avr_expand_builtin,
17553         avr_expand_delay_cycles, avr_expand_unop_builtin,
17554         avr_expand_binop_builtin ): New functions.
17555         (avr_builtin_id): New enum
17556         (struct avr_builtin_description): New struct
17557         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17558         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17559
17560         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17561         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17562         UNSPECV_DELAY_CYCLES): new enumeration values
17563         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17564         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17565         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17566         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17567         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17568         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17569         "fmulsu"): New insns
17570
17571         * config/avr/avr-c.c: fix line endings
17572         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17573         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17574         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17575         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17576         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17577
17578         * doc/extend.texi (AVR Built-in Functions): New node
17579         (Target Builtins): Add documentation of AVR
17580         built-in functions.
17581
17582 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17583
17584         PR target/44643
17585         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17586         alone. Error if non-const data has attribute progmem.
17587
17588 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17589
17590         * tree.h (struct tree_constructor): Include tree_typed instead of
17591         tree_common.
17592         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17593         TS_TYPED instead of TS_COMMON.
17594
17595 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17596
17597         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17598         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17599         (sse2_psadbw): Merge with *avx_psadbw.
17600         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17601         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17602         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17603         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17604         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17605         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17606         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17607         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17608         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17609         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17610         (ssse3_palignrti): Merge with *avx_palignrti.
17611
17612 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17613
17614         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17615         * tree-ssanames.c (fini_ssanames): VEC_free it.
17616         (make_ssa_name_fn): Update for VECness of free_ssanames.
17617         (release_ssa_name, release_dead_ssa_names): Likewise.
17618         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17619         tree_common.
17620         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17621         TS_TYPED instead of TS_COMMON.
17622
17623 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17624
17625         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17626         statistics_counter_event.
17627         * tree-ssa-copyrename.c (stats): Define.
17628         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17629         statistics_counter_event.
17630         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17631         (bswap_stats, widen_mul_stats): Define.
17632         (insert_reciprocals): Increment rdivs_inserted.
17633         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17634         rfuncs_inserted.  Add calls to statistics_counter_event.
17635         (execute_cse_sincos_1): Increment inserted.
17636         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17637         statistics_counter_event.
17638         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17639         of bswap_stats.  Add calls to statistics_counter_event.
17640         (convert_mult_to_widen): Increment widen_mults_inserted.
17641         (convert_plusminus_to_widen): Increment maccs_inserted.
17642         (convert_mult_to_fma): Increment fmas_inserted.
17643         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17644         calls to statistics_counter_event.
17645
17646 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17647
17648         PR rtl-optimization/48455
17649         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17650         `temp_costs->mem_cost'.
17651
17652 2011-04-13  Jan Hubicka  <jh@suse.cz>
17653
17654         * ipa-inline.h: New file.
17655         * ipa-inline-analysis.c: New file. Broken out of ...
17656         * ipa-inline.c: ... this file; update toplevel comment;
17657         include ipa-inline.h
17658         (inline_summary): Move to ipa-inline.h
17659         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17660         ipa-inline-analysis.c.
17661         (cgraph_estimate_time_after_inlining): Rename to
17662         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17663         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17664         to estimate_edge_growth.
17665         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17666         rename to estimate_size_after_inlining.
17667         (cgraph_mark_inline_edge): Update for new naming convention.
17668         (cgraph_check_inline_limits): Likewise.
17669         (cgraph_edge_badness): Likewise.
17670         (cgraph_decide_recursive_inlining): Likewise.
17671         (cgraph_decide_inlining_of_small_functions): Likewise.
17672         (cgraph_decide_inlining_incrementally): Likewise.
17673         (cgraph_estimate_growth): Rename to estimate_growth; move to
17674         ipa-inline-analysis.c.
17675         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17676         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17677         (compute_inline_parameters): Likewise.
17678         (compute_inline_parameters_for_current): Likewise.
17679         (pass_inline_parameters): Likewise.
17680         (inline_indirect_intraprocedural_analysis): Likewise.
17681         (analyze_function): Rename to inline_analyze_function; likewise.
17682         (add_new_function): Move to ipa-inline-analysis.c.
17683         (inline_generate_summary): Likewise.
17684         (inline_read_summary): Likewise.
17685         (inline_write_summary): Likewise.
17686         * Makefile.in (ipa-inline-analysis.c): New file.
17687
17688 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17689
17690         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17691         * configure: Regenerate.
17692
17693 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17694
17695         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17696         instead of tree_common.
17697         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17698         Likewise.
17699         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17700         TS_TYPED rather than TS_COMMON.
17701         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17702
17703 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
17704
17705         PR target/45263
17706         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17707         r20 around calls of __tablejump_elpm__
17708
17709 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17710
17711         PR middle-end/48591
17712         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17713         NULL.
17714         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17715
17716 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
17717
17718         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17719         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17720         (cfi_vec): New typedef.
17721         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17722         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17723         (cie_cfi_vec): New static variable.
17724         (cie_cfi_head): Delete.
17725         (add_cfi): Accept a cfi_vec * as first argument. All callers and
17726         declaration changed. Use vector rather than list operations.
17727         (new_cfi): Don't initialize the dw_cfi_next field.
17728         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17729         rather than list operations.
17730         (lookup_cfa): Use vector rather than list operations.
17731         (output_cfis): New argument upto. Accept a cfi_vec rather than
17732         a dw_cfi_ref list head as argument. All callers changed.
17733         Iterate over the vector using upto as a maximum index.
17734         (output_all_cfis): New static function.
17735         (output_fde): Use vector rather than list operations. Use the
17736         new upto argument for output_cfis rather than manipulating a
17737         list.
17738         (dwarf2out_begin_prologue): Change initializations to match
17739         new struct members.
17740         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17741         from the vector length rather than searching for the end of a list.
17742         Use output_all_cfis.
17743         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17744
17745 2011-04-13  Nick Clifton  <nickc@redhat.com>
17746
17747         * config/rx/rx.md (movmemsi): Do not use this pattern when
17748         volatile pointers are involved.
17749
17750 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17751
17752         * config/i386/sse.md (pinsrbits): Remove.
17753         (sse2_packsswb): Merge with *avx_packsswb.
17754         (sse2_packssdw): Merge with *avx_packssdw.
17755         (sse2_packuswb): Merge with *avx_packuswb.
17756         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17757         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17758         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17759         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17760         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17761         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17762         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17763         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17764         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17765         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17766         (sse2_loadld): Merge with *avx_loadld.
17767         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17768         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17769         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17770         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17771         (vec_concatv2di): Merge with *vec_concatv2di_avx.
17772
17773 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
17774
17775         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17776         calling TREE_CHAIN.
17777         * print-tree.c (print_node): Likewise.
17778         * tree-inline.c (copy_tree_r): Likewise.
17779         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17780         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17781         instead of TS_COMMON.
17782         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17783         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17784         (copy_node_stat): Zero TREE_CHAIN only if necessary.
17785         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17786         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17787         ...and these...
17788         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17789         * tree.h: ...here.
17790         (TREE_CHAIN): Check for a TS_COMMON structure.
17791         (TREE_TYPE): Check for a TS_TYPED structure.
17792
17793 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
17794
17795         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17796         cgraph_get_create_node instead of cgraph_node.
17797
17798 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17799
17800         * c-parser.c (c_parser_initelt): Updated call to
17801         objc_build_message_expr.
17802         (c_parser_postfix_expression): Likewise.
17803
17804 2011-04-12  Kai Tietz  <ktietz@redhat.com>
17805
17806         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17807         MASK_MS_BITFIELD_LAYOUT bit.
17808
17809 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17810
17811         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17812         assert it is always true.
17813         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17814         moves.
17815
17816 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17817
17818         * c-parser.c (c_lex_one_token): Rewritten conditional used when
17819         compiling Objective-C to be more efficient.
17820
17821 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
17822
17823         * opts-common.c (decode_cmdline_options_to_array): Remove variable
17824         argv_copied.
17825
17826 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17827
17828         * recog.h, genoutput.c, optabs.c: Revert last patch.
17829
17830 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17831
17832         PR target/48090
17833         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17834
17835 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17836
17837         * recog.h (insn_operand_data): Add an "allows_mem" field.
17838         * genoutput.c (output_operand_data): Initialize it.
17839         * optabs.c (maybe_legitimize_operand_same_code): New function.
17840         (maybe_legitimize_operand): Use it when matching the original
17841         op->value.
17842
17843 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17844
17845         * genpreds.c (process_define_predicate): Move most processing
17846         to gensupport.c.  Continue to validate the expression.
17847         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17848         (process_define_predicate): Move processing to gensupport.c.
17849         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17850         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17851         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
17852         argument.
17853         (valid_predicate_name_p): New function, split out from old
17854         genpreds.c:process_define_predicate.
17855         (process_define_predicate): New function, combining code from
17856         old genpreds.c and genrecog.c functions.
17857         (process_rtx): Call it for DEFINE_PREDICATE and
17858         DEFINE_SPECIAL_PREDICATE.
17859
17860 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17861
17862         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17863         size of a '%A' memory reference.
17864         (T_DREG, T_QREG): New neon_builtin_type_bits.
17865         (arm_init_neon_builtins): Assert that the load and store operands
17866         are neon_struct_operands.
17867         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17868         (NEON_ARG_MEMORY): New builtin_arg.
17869         (neon_dereference_pointer): New function.
17870         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17871         Handle NEON_ARG_MEMORY.
17872         (arm_expand_neon_builtin): Update after above interface changes.
17873         Use NEON_ARG_MEMORY for loads and stores.
17874         * config/arm/predicates.md (neon_struct_operand): New predicate.
17875         * config/arm/iterators.md (V_two_elem): Tweak formatting.
17876         (V_three_elem): Use BLKmode for accesses that have no associated mode.
17877         (V_four_elem): Tweak formatting.
17878         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17879         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17880         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17881         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17882         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17883         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17884         (neon_vst4<mode>): Replace pointer operand with a memory operand.
17885         Use %A in the output template.
17886         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17887         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17888         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17889         the width of the memory access.  Remove post-increment.
17890         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17891
17892 2011-04-12  Nick Clifton  <nickc@redhat.com>
17893
17894         * config/v850/v850.c (expand_prologue): Do not use the CALLT
17895         instruction for interrupt handlers if the target is the basic V850
17896         architecture.
17897         (expand_epilogue): Likewise.
17898
17899 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17900
17901         PR rtl-optimization/48549
17902         * combine.c (propagate_for_debug): Also stop after BB_END of
17903         this_basic_block.  Process LAST and just stop processing after it.
17904         (combine_instructions): If last_combined_insn has been deleted,
17905         set last_combined_insn to its PREV_INSN.
17906
17907 2011-04-12  Richard Guenther  <rguenther@suse.de>
17908
17909         PR tree-optimization/46076
17910         * gimple.h (struct gimple_statement_call): Add fntype field.
17911         (gimple_call_fntype): Adjust.
17912         (gimple_call_set_fntype): New function.
17913         * gimple.c (gimple_build_call_1): Set the call function type.
17914         * gimplify.c (gimplify_call_expr): Preserve the function
17915         type the frontend used for the call.
17916         (gimplify_modify_expr): Likewise.
17917         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17918         function type.
17919         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17920         function type.
17921         * tree-ssa.c (useless_type_conversion_p): Function pointer
17922         conversions are useless.
17923
17924 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17925
17926         * cgraph.h (cgraph_node): Remove function declaration.
17927         (cgraph_create_node): Declare.
17928         (cgraph_get_create_node): Likewise.
17929         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17930         Updated all callers.
17931         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17932         the decl does not already exist.  Call cgraph_get_create_node instead
17933         of cgraph_node.
17934         (cgraph_get_create_node): New function.
17935         (cgraph_same_body_alias): Update comment.
17936         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17937         assert it does not return NULL.
17938         (cgraph_update_edges_for_call_stmt): Likewise.
17939         (cgraph_clone_edge): Likewise.
17940         (cgraph_create_virtual_clone): Likewise.
17941         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17942         instead of cgraph_node.
17943         (cgraph_add_new_function): Call cgraph_create_node or
17944         cgraph_get_create_node instead of cgraph_node.
17945         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17946         instead of cgraph_node.
17947         (record_eh_tables): Likewise.
17948         (mark_address): Likewise.
17949         (mark_load): Likewise.
17950         (build_cgraph_edges): Call cgraph_get_create_node instead
17951         of cgraph_node.
17952         (rebuild_cgraph_edges): Likewise.
17953         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17954         instead of cgraph_node.
17955         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17956         cgraph_node.
17957         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17958         cgraph_create_node instead of cgraph_node.
17959         * c-decl.c (finish_function): Call cgraph_get_create_node instead
17960         of cgraph_node.
17961         * lto-cgraph.c (input_node): Likewise.
17962         * lto-streamer-in.c (input_function): Likewise.
17963         * varasm.c (mark_decl_referenced): Likewise.
17964         (assemble_alias): Likewise.
17965
17966 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17967
17968         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
17969         instead of cgraph_node and assert it does not return NULL.
17970         * lto-streamer-in.c (lto_read_body): Likewise.
17971         * omp-low.c (new_omp_context): Likewise.
17972         (create_task_copyfn): Likewise.
17973         * tree-emutls.c (lower_emutls_function_body): Likewise.
17974         * matrix-reorg.c (transform_allocation_sites): Likewise.
17975
17976 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17977
17978         PR c/48552
17979         * c-typeck.c (build_asm_expr): Error out on attempts to use
17980         void type outputs or inputs for constraints that allow reg or
17981         don't allow memory.
17982
17983 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
17984             Richard Earnshaw  <rearnsha@arm.com>
17985
17986         PR target/48250
17987         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
17988         to use sign-magnitude offsets. Reject unsupported unaligned
17989         cases. Add detailed description in comments.
17990         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
17991         condition from TARGET_32BIT to TARGET_ARM.
17992
17993 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
17994
17995         * tree.h (struct typed_tree): New.
17996         (struct tree_common): Include it instead of tree_base.
17997         (TREE_TYPE): Update for new location of type field.
17998         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
17999         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18000         (union tree_node): Add typed field.
18001         * treestruct.def (TS_TYPED): New.
18002         * lto-streamer.c (check_handled_ts_structures): Handle it.
18003         * tree.c (MARK_TS_TYPED): New macro.
18004         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18005
18006 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18007
18008         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18009         (force_nonfallthru): Do not alter the loop nest if no basic block
18010         was created.
18011
18012 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18013
18014         * config/i386/sse.md (VI): New mode iterator.
18015         (SSEMODEI): Remove.
18016         (AVX256MODEI): Ditto.
18017         (AVXMODEF4P): Ditto.
18018         (avxvecpsmode): Ditto.
18019         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18020         (sse2_andnot<mode>3): New expander.
18021         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18022         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18023         (<any_logic:code><mode>3): Use VI mode iterator.
18024         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18025         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18026         (*andnottf3): Handle AVX three-operand constraints.
18027         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18028
18029 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18030             Robert Millan  <rmh@gnu.org>
18031
18032         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18033         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18034         GNU_USER_DYNAMIC_LINKER64): Define.
18035         (REG_NAME): Don't undefine.
18036         (MD_UNWIND_SUPPORT): Undefine.
18037         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18038         (REG_NAME): Don't undefine.
18039         (MD_UNWIND_SUPPORT): Undefine.
18040         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18041
18042 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18043
18044         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18045         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18046
18047 2011-04-11  Xinliang David Li  <davidxl@google.com>
18048
18049         * value-profile.c (check_ic_target): New function.
18050         (gimple_ic_transform): Sanity check indirect call target.
18051         * gimple-low.c (gimple_check_call_args): Interface change.
18052         (gimple_check_call_matching_types): New function.
18053         * tree-inline.c (tree_can_inline_p): Call new function.
18054
18055 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18056
18057         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18058         tree-pretty-print.h & realmpfr.h.
18059
18060 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18061
18062         PR middle-end/48464
18063         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18064         (setup_allocno_and_important_classes): Ditto.
18065
18066 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18067
18068         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18069         GNU_USER_DYNAMIC_LINKER.
18070         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18071         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18072         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18073         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18074         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18075         GNU_USER_TARGET_OS_CPP_BUILTINS.
18076         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18077         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18078         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18080         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18081         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18082         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18083         GNU_USER_TARGET_OS_CPP_BUILTINS.
18084         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18085         GNU_USER_DYNAMIC_LINKER.
18086         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18087         GNU_USER_TARGET_OS_CPP_BUILTINS.
18088         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18089         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18090         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18091         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18092         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18093         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18094         GNU_USER_DYNAMIC_LINKER64): Remove.
18095         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18096         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18097         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18098         GNU_USER_DYNAMIC_LINKER.
18099         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18100         GNU_USER_TARGET_OS_CPP_BUILTINS.
18101         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18102         GNU_USER_TARGET_OS_CPP_BUILTINS.
18103         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18104         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18105         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18106         GNU_USER_TARGET_OS_CPP_BUILTINS.
18107         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18108         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18109         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18110         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18111         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18112         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18113         GNU_USER_DYNAMIC_LINKER.
18114         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18115         GNU_USER_TARGET_OS_CPP_BUILTINS.
18116         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18117         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18118         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18119         GNU_USER_DYNAMIC_LINKER.
18120         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18121         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18122         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18123         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18124         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18125         GNU_USER_DYNAMIC_LINKER.
18126         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18127         GNU_USER_DYNAMIC_LINKERN32.
18128         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18129         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18130         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18131         GNU_USER_DYNAMIC_LINKER32.
18132         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18133         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18134         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18135         GNU_USER_DYNAMIC_LINKER.
18136         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18137         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18138         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18139         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18140         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18141         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18142         GNU_USER_DYNAMIC_LINKER32.
18143         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18144         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18145         GNU_USER_DYNAMIC_LINKER.
18146         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18147         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18148         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18149         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18150         GNU_USER_DYNAMIC_LINKER64.
18151         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18152         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18153         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18154         GNU_USER_DYNAMIC_LINKER.
18155         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18157         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18158         GNU_USER_DYNAMIC_LINKER.
18159         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18161         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18162         GNU_USER_DYNAMIC_LINKER32.
18163         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18164         GNU_USER_DYNAMIC_LINKER64.
18165         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18166         GNU_USER_DYNAMIC_LINKER64.
18167         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18168         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18169         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18170         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18171         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18172
18173 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18174
18175         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18176         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18177         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18178         GNU_USER_DYNAMIC_LINKER.
18179         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18180         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18181         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18182         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18183         GNU_USER_DYNAMIC_LINKER64.
18184         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18185         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18186         GNU_USER_LINK_EMULATION.
18187         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18188         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18189         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18190         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18191         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18192         CPP_SPEC, CC1_SPEC): Remove.
18193         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18194         (GNU_USER_DYNAMIC_LINKER): Define.
18195         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18196         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18197         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18198         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18199         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18200         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18201         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18202         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18203         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18204         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18205         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18206         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18207         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18208         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18209         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18210         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18211         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18212         GNU_USER_DYNAMIC_LINKER.
18213         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18214         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18215         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18216         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18217         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18218         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18219         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18220         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18221         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18222         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18223
18224 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18225
18226         PR target/9601
18227         PR target/11772
18228         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18229         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18230         comment.
18231         (ix86_is_msabi_thiscall): Removed.
18232         (ix86_is_type_thiscall): Likewise.
18233         (ix86_get_callcvt): New function.
18234         (ix86_comp_type_attributes): Simplify check.
18235         (ix86_function_regparm): Use ix86_get_callcvt for calling
18236         convention attribute checks.
18237         (ix86_return_pops_args): Likewise.
18238         (ix86_static_chain): Likewise.
18239         (x86_this_parameter): Likewise.
18240         (x86_output_mi_thunk): Likewise.
18241         (ix86_function_type_abi): Optimize check for types without attributes.
18242         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18243         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18244         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18245         by flag-values.
18246         (IX86_BASE_CALLCVT): Helper macro.
18247         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18248         Use ix86_get_callcvt for calling convention attribute checks and avoid
18249         symbol-decoration for stdcall in TARGET_RTD case.
18250         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18251         Likewise.
18252         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18253         for declaration.
18254
18255 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18256
18257         * config/i386/sse.md (VI_128): New mode iterator.
18258         (VI12_128): Rename from SSEMODE12.
18259         (VI14_128): Rename from SSEMODE14.
18260         (VI124_128): New mode iterator.
18261         (VI24_128): Rename from SSEMODE248.
18262         (VI248_128): Rename from SSEMODE248.
18263         (SSEMODE124C8): Remove.
18264         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18265         (*sse2_<plusminus_insn><mode>3): Merge with
18266         *avx_<plusminus_insn><mode>3.
18267         (*mulv8hi3): Merge with *avx_mulv8hi3.
18268         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18269         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18270         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18271         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18272         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18273         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18274         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18275         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18276         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18277         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18278         (*<smaxmin:code>v8hi3): Ditto.
18279         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18280         (*<smaxmin:code>v16qi3): Ditto.
18281         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18282         (*sse2_eq<mode>3): Ditto.
18283         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18284         (*sse2_gt<mode>3): Ditto.
18285         (vcondv2di): Split out of vcond<mode>.
18286         (vconduv2di): Split out of vcondu<mode>.
18287
18288 2011-04-11  Richard Guenther  <rguenther@suse.de>
18289
18290         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18291         before calling tree_low_cst.
18292
18293 2011-04-11  Richard Guenther  <rguenther@suse.de>
18294
18295         * stor-layout.c (layout_type): Compute all array index size operations
18296         in the original type.
18297         (initialize_sizetypes): Add comment.
18298         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18299
18300 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18301
18302         * common.opt (Tbss=, Tdata=, Ttext=): New options.
18303
18304 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18305
18306         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18307         of cgraph_node, handle NULL return value.
18308         (cgraph_global_info): Likewise.
18309         (cgraph_rtl_info): Likewise.
18310         * tree-inline.c (estimate_num_insns): Likewise.
18311         * gimplify.c (unshare_body): Likewise.
18312         (unvisit_body): Likewise.
18313         (gimplify_body): Likewise.
18314         * predict.c (optimize_function_for_size_p): Likewise.
18315         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18316         (call_may_clobber_ref_p_1): Likewise.
18317         * varasm.c (function_section_1): Likewise.
18318         (assemble_start_function): Likewise.
18319
18320 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18321
18322         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18323         of cgraph_node.
18324         * final.c (rest_of_clean_state): Likewise.
18325         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18326         * passes.c (pass_init_dump_file): Likewise.
18327         (execute_all_ipa_transforms): Likewise.
18328         (function_called_by_processed_nodes_p): Likewise.
18329         * predict.c (maybe_hot_frequency_p): Likewise.
18330         (probably_never_executed_bb_p): Likewise.
18331         (compute_function_frequency): Likewise.
18332         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18333         (unnest_nesting_tree_1): Likewise.
18334         (lower_nested_functions): Likewise.
18335         * tree-optimize.c (execute_fixup_cfg): Likewise.
18336         (tree_rest_of_compilation): Likewise.
18337         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18338         * tree-sra.c (ipa_early_sra): Likewise.
18339         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18340         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18341         * ipa.c (record_cdtor_fn): Likewise.
18342         * ipa-inline.c (cgraph_early_inlining): Likewise.
18343         (compute_inline_parameters_for_current): Likewise.
18344         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18345         * ipa-pure-const.c (local_pure_const): Likewise.
18346         * ipa-split.c (split_function): Likewise.
18347         (execute_split_functions): Likewise.
18348         * cgraphbuild.c (build_cgraph_edges): Likewise.
18349         (rebuild_cgraph_edges): Likewise.
18350         (cgraph_rebuild_references): Likewise.
18351         (remove_cgraph_callee_edges): Likewise.
18352         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18353         (verify_cgraph_node): Likewise.
18354         (cgraph_analyze_functions): Likewise.
18355         (cgraph_preserve_function_body_p): Likewise.
18356         (save_inline_function_body): Likewise.
18357         (save_inline_function_body): Likewise.
18358         * tree-inline.c (copy_bb): Likewise.
18359         (optimize_inline_calls): Likewise.
18360
18361 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18362
18363         PR tree-optimization/48195
18364         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18365         ipa_check_create_edge_args.
18366         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18367         ipa_check_create_edge_args.
18368         * ipa-inline.c (inline_generate_summary): Do not call
18369         ipa_check_create_node_params and ipa_check_create_edge_args.
18370         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18371         ipa_check_create_edge_args.
18372
18373 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
18374
18375         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18376         instead of loop.
18377         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18378         * function.c (record_hard_reg_sets): Likewise.
18379         * ira.c (compute_regs_asm_clobbered): Likewise.
18380         * sched-deps.c (sched_analyze_1): Likewise.
18381         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18382
18383 2011-04-09  Xinliang David Li  <davidxl@google.com>
18384
18385         PR tree-optimization/PR48484
18386         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18387         has_valid_pred lazily
18388
18389 2011-04-09  Duncan Sands  <baldrick@free.fr>
18390
18391         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18392
18393 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18394
18395         * combine.c (combine_validate_cost): Adjust comments.  Set registered
18396         cost of I0 to zero at the end, if any.
18397
18398 2011-04-08  Xinliang David Li  <davidxl@google.com>
18399
18400         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18401         to insane profile data.
18402
18403 2011-04-08  Xinliang David Li  <davidxl@google.com>
18404
18405         * ipa-cp.c (ipcp_update_profiling): Correct
18406          negative scale factor due to insane profile data.
18407
18408 2011-04-08  Xinliang David Li  <davidxl@google.com>
18409
18410         * final.c (dump_basic_block_info): New function.
18411         (final): Dump basic block.
18412         (final_scan_insn): Remove old dump.
18413
18414 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18415
18416         PR target/47829
18417         * config.gcc (i386-*-freebsd): Disable unwind table generation for
18418         crtbegin/crtend.
18419
18420 2011-04-08  Michael Matz  <matz@suse.de>
18421
18422         PR middle-end/48389
18423         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18424         functions.
18425         (rebuild_jump_labels): Call rebuild_jump_labels_1.
18426         * rtl.h (rebuild_jump_labels_chain): Declare.
18427         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18428         insns inserted on edges.
18429
18430 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
18431
18432         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18433         * config/arm/arm-arches.def: New.
18434         * config/arm/arm-opts.h: New.
18435         * config/arm/genopt.sh: New.
18436         * config/arm/arm-tables.opt: New (generated).
18437         * config/arm/arm.c (arm_handle_option, arm_target_help,
18438         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18439         (all_architectures): Get most table contents from arm-arches.def.
18440         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18441         arm_selected_tune here.
18442         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18443         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18444         (march=, mcpu=, mtune=): Use Enum and Var.
18445         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18446         (arm.o): Update dependencies.
18447
18448 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
18449
18450         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18451         of header_file.
18452         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18453         (write_typed_alloc_defns): Likewise.
18454         (main): Calls write_typed_alloc_defns with output_header.
18455
18456 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
18457
18458         PR inline-asm/48435
18459         * ira-color.c (setup_profitable_hard_regs): Add comments.
18460         Don't take prohibited hard regs into account.
18461         (setup_conflict_profitable_regs): Rename to
18462         get_conflict_profitable_regs.
18463         (check_hard_reg_p): Check prohibited hard regs.
18464
18465 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
18466
18467         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18468         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18469         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18470
18471 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18472
18473         PR target/48366
18474         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18475         move from floating point to shift amount register.
18476         (emit_move_sequence): Remove secondary reload support for floating
18477         point to shift amount amount register copies.
18478         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18479         amount register copies.
18480         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18481         register, return false if mode isn't a scalar integer mode.
18482         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18483
18484 2011-04-08  Richard Guenther  <rguenther@suse.de>
18485
18486         * gimple.c (gimple_call_flags): Remove kludge.
18487
18488 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18489
18490         * sel-sched.c (sel_region_init): Move call to
18491         sel_setup_region_sched_flags after setup_current_loop_nest.
18492
18493 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18494
18495         PR rtl-optimization/48272
18496         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18497         init_insn_reg_pressure_info.  Adjust a caller.
18498         * sched-int.h (init_insn_reg_pressure_info): Declare.
18499         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18500         when sched-pressure is enabled.
18501
18502 2011-04-08  Richard Guenther  <rguenther@suse.de>
18503
18504         * gimple.c (gimple_set_modified): Do not queue calls to
18505         MODIFIED_NORETURN_CALLS here ...
18506         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18507
18508 2011-04-08  Richard Guenther  <rguenther@suse.de>
18509
18510         PR lto/48467
18511         * toplev.c (lang_dependent_init): Do not open asm_out_file
18512         in WPA mode, nor perform debug machinery initialization.
18513         (finalize): Do not unlink asm_out_file in WPA mode.
18514
18515 2011-04-08  Richard Guenther  <rguenther@suse.de>
18516
18517         * gimple.h (gimple_call_fntype): New function.
18518         (gimple_call_return_type): Use it.
18519         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18520         * gimple-low.c (gimple_check_call_args): Likewise.
18521         * gimple.c (gimple_call_flags): Likewise.
18522         (gimple_call_arg_flags): Likewise.
18523         (gimple_call_return_flags): Likewise.
18524         * tree-cfg.c (verify_gimple_call): Likewise.
18525         (do_warn_unused_result): Likewise.
18526         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18527         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18528
18529 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18530
18531         PR rtl-optimization/48235
18532         * sel-sched.c (code_motion_process_successors): Recompute the last
18533         insn in basic block if control flow changed.
18534         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18535         Update condition for ilist_remove.
18536
18537 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18538
18539         PR rtl-optimization/48302
18540         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18541         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18542         it to record added preheader blocks.
18543         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18544         on to sel_add_loop_preheaders.
18545         (sel_region_init): Move call to setup_current_loop_nest after
18546         sel_init_bbs.
18547
18548 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18549
18550         PR target/48273
18551         * cfgloop.h (loop_has_exit_edges): New helper.
18552         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18553         non-clonable.
18554         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18555         that have no exit edges.
18556
18557 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18558
18559         PR rtl-optimization/48442
18560         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18561         all callers.  Adjust assert.
18562
18563 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18564
18565         PR tree-optimization/48377
18566         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18567         is_packed to true even for types with smaller TYPE_ALIGN than
18568         TYPE_SIZE.
18569
18570 2011-04-08  Richard Guenther  <rguenther@suse.de>
18571
18572         PR bootstrap/48513
18573         * doc/tm.texi: Re-generate.
18574
18575 2011-04-08  Wei Guozhi  <carrot@google.com>
18576
18577         PR target/47855
18578         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18579         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18580         * config/arm/arm.md (*push_multi): Change the length computation to
18581         call a C function.
18582
18583 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18584
18585         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18586         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18587         * doc/tm.texi: Regenerate.
18588         * system.h (ASM_OUTPUT_BSS): Poison.
18589         * varasm.c (asm_output_bss): Remove function.
18590         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18591
18592         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18593         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18594         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18595         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18596         Likewise.
18597         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18598         Likewise.
18599         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18600         Likewise.
18601         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18602
18603 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18604
18605         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18606         EnumValue lines.
18607
18608 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18609
18610         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18611         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18612         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18613         OPT_mcpu32.
18614         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18615         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18616         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18617         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18618         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18619         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18620         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18621         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18622         options.  Don't map other m68k options manually.  Don't handle
18623         old-style options as canonical.
18624         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18625         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18626
18627 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18628
18629         * basic-block.h (force_nonfallthru): Move to...
18630         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18631         (force_nonfallthru): ...here.
18632         * cfghooks.c (force_nonfallthru): New function.
18633         * cfgrtl.c (force_nonfallthru): Rename into...
18634         (rtl_force_nonfallthru): ...this.
18635         (commit_one_edge_insertion): Do not set AUX field.
18636         (commit_edge_insertions): Do not discover new basic blocks.
18637         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18638         (cfg_layout_rtl_cfg_hooks): Likewise.
18639         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18640         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18641         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18642
18643 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18644
18645         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18646         Remove macros.
18647
18648 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18649
18650         * config/i386/sse.md: Update copyright year.
18651         (avxcvtvecmode): Remove.
18652         (sse_movhlps): Merge with *avx_movhlps.
18653         (sse_movlhps): Merge with *avx_movlhps.
18654         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18655         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18656         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18657         (sse_loadhps): Merge with *avx_loadhps.
18658         (sse_storelps): Merge with *avx_storelps.
18659         (sse_loadlps): Merge with *avx_loadlps.
18660         (sse_movss): Merge with *avx_movss.
18661         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18662         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18663         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18664         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18665         (vec_set<mode>_0): Ditto.
18666         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18667         (sse4_1_insertps): Merge with *avx_insertps.
18668         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18669         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18670         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18671         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18672         (sse2_storehpd): Merge with *avx_storehpd.
18673         (sse2_loadhpd): Merge with *avx_loadhpd.
18674         (sse2_loadlpd): Merge with *avx_loadlpd.
18675         (sse2_movsd): Merge with *avx_movsd.
18676         (*vec_concatv2df): Merge with *vec_concatv2df.
18677
18678 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
18679
18680         PR debug/48343
18681         * combine.c (combine_instructions): Add last_combined_insn,
18682         update it if insn is after it, pass it to all try_combine calls.
18683         (try_combine): Add last_combined_insn parameter, pass it instead of
18684         i3 to propagate_for_debug.
18685
18686 2011-04-07  Nick Clifton  <nickc@redhat.com>
18687
18688         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18689         to handle MDR <-> data register transfers.
18690         (movhi_internal): Likewise.
18691
18692 2011-04-07  Alan Modra  <amodra@gmail.com>
18693
18694         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18695         previous stack info.
18696
18697 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18698
18699         PR target/43920
18700         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
18701         flow_find_cross_jump.  Swap variables to implement backward replacement.
18702         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18703
18704 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18705
18706         PR target/43920
18707         * cfgcleanup.c (walk_to_nondebug_insn): New function.
18708         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
18709         and bb2.
18710         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18711         src1 or src2.  Redirect edges to the last basic block.  Update
18712         frequency and count on multiple basic blocks in case of fallthru.
18713
18714 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18715
18716         PR target/43920
18717         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18718         function.
18719         (old_insns_match_p): Change return type.  Replace return false/true
18720         with return dir_none/dir_both.  Use can_replace_by.
18721         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
18722         direction from dir_p.  Register replacement direction in dir, last_dir
18723         and afterlast_dir.  Handle new return type of old_insns_match_p using
18724         merge_dir.  Return replacement direction in dir_p.
18725         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18726         return type of old_insns_match_p.
18727         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18728         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18729         flow_find_cross_jump.
18730         * basic-block.h (enum replace_direction): New type.
18731         (flow_find_cross_jump): Add parameter to declaration.
18732
18733 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18734
18735         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18736         (AVXMODEDCVTPS2DQ): Ditto.
18737         (VEC_FLOAT_MODE): Ditto.
18738         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
18739         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18740         (<any_logic:code><mode>3): Use VF mode iterator.
18741         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18742         Use VF mode iterator.
18743         (copysign<mode>3): Use VF mode iterator.
18744         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
18745         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18746         (*<any_logic:code><MODEF:mode>3): Merge with
18747         *avx_<any_logic:code><MODEF:mode>3.
18748         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18749         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18750         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18751         (avx_cvtdq2ps<avxmodesuffix>): Remove.
18752         (sse2_cvtdq2ps): Use %v modifier.
18753         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18754         (avx_cvtps2dq<avxmodesuffix>): Remove.
18755         (sse2_cvtps2dq): Use %v modifier.
18756         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18757         (avx_cvttps2dq<avxmodesuffix>): Remove.
18758         (sse2_cvttps2dq): Use %v modifier.
18759         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18760         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18761         (sse2_cvtsd2siq): Fix insn template.
18762         (sse2_cvtsd2siq_2): Ditto.
18763         (sse2_cvttsd2siq): Ditto.
18764         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18765         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18766
18767 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18768
18769         * gcov-io.c: Use GCC Runtime Library Exception.
18770
18771 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
18772
18773         PR debug/48466
18774         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18775         as base_reg whatever register reg has been eliminated to, instead
18776         of hardcoding STACK_POINTER_REGNUM.
18777
18778 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18779
18780         * doc/tm.texi.in: Document C target hooks as separate from general
18781         target hooks.
18782         * doc/tm.texi: Regenerate.
18783         * genhooks.c (struct hook_desc): Add docname field.
18784         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
18785         docname field.
18786         (hook_array): Include c-target.def.
18787         (emit_documentation): Use docname field in output.
18788         (emit_init_macros): Take docname argument.  Only emit definitions
18789         for hooks matching docname.
18790         (main): Expect additional arguments in all cases.  Pass argument
18791         to emit_init_macros.
18792         * target.def: Move initial macro definitions and comments to
18793         target-hooks-macros.h.
18794         (gcc_targetcm): Move to c-family/c-target.def.
18795         * target.h (targetcm): Move declaration to c-family/c-target.h.
18796         * targhooks.c (default_handle_c_option): Move to
18797         c-family/c-opts.c.
18798         * targhooks.h (default_handle_c_option): Move declaration to
18799         c-family/c-common.h.
18800         * target-hooks-macros.h: New file.
18801         * config.gcc (target_has_targetcm): Define and use to add to
18802         c_target_objs and cxx_target_objs.
18803         * config/default-c.c: New file.
18804         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18805         of target.h and target-def.h.
18806         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18807         (darwin_objc_construct_string, darwin_cfstring_ref_p,
18808         darwin_check_cfstring_format_arg): Make static.
18809         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18810         TARGET_STRING_OBJECT_REF_TYPE_P,
18811         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18812         * config/darwin-protos.h (darwin_objc_construct_string,
18813         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18814         declare.
18815         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18816         TARGET_STRING_OBJECT_REF_TYPE_P,
18817         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18818         * config/t-darwin (darwin-c.o): Update dependencies.
18819         * system.h (TARGET_HAS_TARGETCM): Poison.
18820         * Makefile.in (TARGET_H): Update.
18821         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18822         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18823         (default-c.o): New target.
18824         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18825         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18826         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
18827         c-target.def.
18828         (build/genhooks.o): Update dependencies.
18829
18830 2011-04-06  Richard Guenther  <rguenther@suse.de>
18831
18832         * ipa-inline.c (enum inlining_mode): Remove.
18833         (cgraph_flatten): Use some other token.
18834         (cgraph_edge_early_inlinable_p): New function, split out from ...
18835         (cgraph_perform_always_inlining): New function, split out from ...
18836         (cgraph_decide_inlining_incrementally): ... here.
18837         (cgraph_mark_inline_edge): Adjust.
18838         (cgraph_early_inlining): Re-structure.
18839         (pass_early_inline): Require SSA form.
18840
18841 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
18842             Julian Brown  <julian@codesourcery.com>
18843             Mark Shinwell  <shinwell@codesourcery.com>
18844
18845         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18846         LO_REGS only for Thumb-1.
18847         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18848         be used in short instructions when optimising for size on Thumb-2.
18849
18850 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18851
18852         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18853         associated with user returns to be preserved.
18854
18855 2011-04-06  Tristan Gingold  <gingold@adacore.com>
18856
18857         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18858         symbol_queue_size, DBXOUT_DECR_NESTING,
18859         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18860         if XCOFF_DEBUGGING_INFO.
18861
18862 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18863
18864         * config/i386/i386.md (attribute isa): New.
18865         (attribute enabled): New.
18866         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18867         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18868         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18869         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18870         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18871         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18872         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18873         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18874
18875         * config/i386/sse.md (VF): New mode iterator.
18876         (VF1): Ditto.
18877         (VF2): Ditto.
18878         (VF_128): Ditto.
18879         (SSEMODEF4): Remove.
18880         (attribute sse): Handle V8SF and V4DF modes.
18881         (<absneg:code><mode>2): Use VF mode iterator.
18882         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
18883         mode iterator.
18884         (<plusminus_insn><mode>3): Use VF mode iterator.
18885         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18886         Use VF mode iterator.
18887         (<sse>_vm<plusminus_insn><mode>3): Merge with
18888         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
18889         (mul<mode>3): Use VF mode iterator.
18890         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
18891         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
18892         mode iterator.
18893         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18894         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18895         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
18896         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
18897         mode iterator.
18898         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18899         Use VF1 mode iterator.
18900         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18901         (sqrt<VF2:mode>2): New expander.
18902         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18903         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18904         and sqrtv2df2.  Use VF mode iterator.
18905         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
18906         mode iterator.
18907         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18908         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18909         Use VF1 mode iterator.
18910         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18911         (<smaxmin:code><mode>3): Use VF mode iterator.
18912         (*<smaxmin:code><mode>3_finite): Merge with
18913         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
18914         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18915         (<sse>_vm<smaxmin:code><mode>2): Merge with
18916         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
18917         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
18918         mode iterator.
18919         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
18920         mode iterator.
18921         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18922         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18923         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18924         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18925         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
18926         VF mode iterator.
18927         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18928         Use VF_128 mode iterator.
18929         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
18930         mode iterator.
18931         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
18932         VF_128 mode iterator.
18933         (vcond<mode>): Use VF mode iterator.
18934         * config/i386/predicates.md (sse_comparison_operator): Merge with
18935         avx_comparison_float_operator.  Do not declare as special_predicate.
18936         * config/i386/i386.c (struct builtin_description): Update for renamed
18937         compare patterns.
18938         (ix86_expand_args_builtin): Ditto.
18939         (ix86_expand_sse_compare_mask): Ditto.
18940
18941 2011-04-06  Richard Guenther  <rguenther@suse.de>
18942
18943         * tree-inline.c (estimate_num_insns): For calls simply account
18944         for all passed arguments and a used return value.
18945
18946 2011-04-06  Richard Guenther  <rguenther@suse.de>
18947
18948         PR tree-optimization/47663
18949         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18950         call_stmt_time fields.
18951         (cgraph_edge_inlinable_p): Declare.
18952         (cgraph_edge_recursive_p): New inline function.
18953         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18954         (cgraph_clone_edge): Copy it.
18955         * ipa-inline.c (cgraph_estimate_edge_time): New function.
18956         Account for call stmt time.
18957         (cgraph_estimate_time_after_inlining): Take edge argument.
18958         (cgraph_estimate_edge_growth): Account call stmt size.
18959         (cgraph_estimate_size_after_inlining): Take edge argument.
18960         (cgraph_mark_inline_edge): Adjust.
18961         (cgraph_check_inline_limits): Likewise.
18962         (cgraph_recursive_inlining_p): Remove.
18963         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
18964         (cgraph_decide_recursive_inlining): Take edge argument and
18965         adjust.
18966         (cgraph_decide_inlining_of_small_functions): Do not avoid
18967         diags for recursive inlining here.
18968         (cgraph_flatten): Adjust.
18969         (cgraph_decide_inlining_incrementally): Likewise.
18970         (estimate_function_body_sizes): Remove call cost handling.
18971         (compute_inline_parameters): Initialize caller edge call costs.
18972         (cgraph_estimate_edge_growth): New function.
18973         (cgraph_estimate_growth): Use it.
18974         (cgraph_edge_badness): Likewise.
18975         (cgraph_check_inline_limits): Take an edge argument.
18976         (cgraph_decide_inlining_of_small_functions): Adjust.
18977         (cgraph_decide_inlining): Likewise.
18978         * tree-inline.c (estimate_num_insns): Only account for call
18979         return value if it is used.
18980         (expand_call_inline): Avoid diagnostics on recursive inline
18981         functions here.
18982         * lto-cgraph.c (lto_output_edge): Output edge call costs.
18983         (input_edge): Input edge call costs.
18984
18985 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18986
18987         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
18988
18989 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18990
18991         * doc/invoke.texi (Spec Files): Fix typo.
18992
18993 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18994
18995         * profile.c (branch_prob): Move declaration of local variable.  Remove
18996         obsolete ??? comment.  Expand the location explicitly instead of using
18997         the LOCATION_FILE and LOCATION_LINE macros.
18998
18999 2011-04-06  Wei Guozhi  <carrot@google.com>
19000
19001         PR target/47855
19002         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19003         (arm_cond_branch): Likewise.
19004         (arm_cond_branch_reversed): Likewise.
19005         (arm_jump): Likewise.
19006         (push_multi): Likewise.
19007         * config/arm/constraints.md (Py): New constraint.
19008
19009 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19010
19011         PR bootstrap/48471
19012         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19013         Move these...
19014         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19015         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19016         #ifdef DBX_DEBUGGING_INFO.
19017
19018 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19019
19020         PR bootstrap/48403
19021         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19022         if old and new states differ.
19023
19024 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19025
19026         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19027         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19028         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19029         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19030         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19031         mcfv4e): Use Alias.
19032         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19033         ColdFire options to -mcpu= options.
19034
19035 2011-04-05  Jeff Law  <law@redhat.com>
19036
19037         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19038         check if BB is a successor of LOOP->header and return
19039         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19040
19041 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19042
19043         * cprop.c (struct reg_use): Remove.
19044         (reg_use_table): Make an array of RTX.
19045         (find_used_regs, constprop_register, local_cprop_pass,
19046         bypass_block): Simplify users of reg_use_table.
19047         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19048         on one of the uses found by find_used_regs.
19049
19050 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19051
19052         PR bootstrap/48469
19053         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19054         declaration.
19055
19056 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19057
19058         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19059         as an rtx.
19060         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19061
19062 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19063
19064         PR middle-end/48441
19065         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19066
19067 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19068
19069         * combine.c: Include obstack.h.
19070         (struct insn_link): Define.
19071         (uid_log_links): Adjust type.
19072         (FOR_EACH_LOG_LINK): New macro.
19073         (insn_link_obstack): Declare.
19074         (alloc_insn_link): Define.
19075         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19076         type of link variables.
19077         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19078         (try_combine, record_promoted_values, distribute_notes): Likewise.
19079         (distribute_links): Likewise.  Tweak prototype.
19080         (clear_log_links): Delete.
19081         (adjust_for_new_dest): Call alloc_insn_link.
19082         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19083
19084 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19085
19086         * gcse.c (modify_mem_list): Convert to an array of VECs.
19087         (canon_modify_mem_list, compute_transp): Tweak formatting.
19088         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19089         (load_killed_in_block_p): Likewise.
19090         (record_last_mem_set_info): Likewise.
19091         (clear_modify_mem_tables): Likewise.
19092
19093 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19094
19095         PR middle-end/48461
19096         * function.c (emit_use_return_register_into_block): Only define if
19097         HAVE_return.
19098
19099 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19100
19101         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19102
19103 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19104
19105         * config/rx/rx-opts.h: New.
19106         * config/rx/rx.c (rx_cpu_type): Remove.
19107         (rx_handle_option): Don't assert that global structures are in
19108         use.  Access variables via opts pointer.  Defer most handling of
19109         OPT_mint_register_.  Use error_at.
19110         (rx_option_override): Handle deferred OPT_mint_register_ here.
19111         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19112         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19113         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19114         (rx_cpu_types): New Enum and EnumValue entries.
19115         (mint-register=): Use Defer and use Var accordingly.
19116
19117 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19118
19119         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19120         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19121         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19122         Move these...
19123         (debug_free_queue, debug_nesting, symbol_queue_index):
19124         ...and these...
19125         * dbxout.c: ...to here.  Make static.
19126
19127 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19128
19129         * gcse.c (modify_pair): Define.  Define a VEC of it.
19130         (canon_modify_mem_list): Convert to an array of VECs.
19131         (free_insn_expr_list_list): Delete.
19132         (clear_modify_mem_tables): Call VEC_free instead.
19133         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19134         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19135         (canon_list_insert, compute_transp): Likewise.
19136
19137 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19138
19139         PR target/43920
19140         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19141         for size.
19142
19143 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19144
19145         PR target/43920
19146         * function.c (emit_use_return_register_into_block): New function.
19147         (thread_prologue_and_epilogue_insns): Use
19148         emit_use_return_register_into_block.
19149
19150 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19151
19152         PR target/43920
19153         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19154         insn.
19155
19156 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19157
19158         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19159
19160 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19161
19162         * config/arm/arm.md (define_constants for unspec): Replace with
19163         define_c_enum.
19164         (define_constants for unspecv): Replace with define_c_enum.
19165         * config/arm/neon.md (define_constants for unspec): Replace with
19166         define_c_enum.
19167
19168 2011-04-04  Richard Henderson  <rth@redhat.com>
19169
19170         PR bootstrap/48400
19171         * dwarf2out.c (output_line_info): Always emit line info from
19172         at least one section.
19173         (dwarf2out_init): Create text_section_line_info here ...
19174         (set_cur_line_info_table): ... not here.
19175
19176 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19177
19178         PR target/48380
19179         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19180         not called.
19181
19182         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19183
19184 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19185
19186         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19187         (expr_equiv_p): Remove.
19188         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19189         (hash_scan_set): Update call to insert_set_in_table.
19190         (dump_hash_table): Dump <dest, src> pair.
19191         (lookup_set): Simplify.  Lookup <dest, src> pair.
19192         (compute_transp): Remove, fold heavily simplified code into...
19193         (compute_local_properties): ...here.  Expect COMP and TRANSP
19194         unconditionally.
19195         (find_avail_set): Take set directly from struct expr.
19196         (find_bypass-set): Likewise.
19197         (bypass_block): Likewise.
19198         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19199
19200         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19201         checks on form of COND from find_implicit_sets to here.
19202         (find_implicit_sets): Cleanup control flow. Split critical edges
19203         if it exposes implicit sets.  Allocate/resize implicit_sets as
19204         necessary.
19205         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19206         changed something.  Run df_analyze after find_implicit_sets if any
19207         edges were split.  Do not allocate implicit_sets here.
19208
19209         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19210         (gcse_obstack): Renamed to cprop_obstack.
19211         (GNEW, GNEWVEC, GNEWVAR): Remove.
19212         (gmalloc): Remove.
19213         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19214         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19215         (gcse_alloc): Likewise, and rename to cprop_alloc.
19216         (alloc_gcse_men, free_gcse_mem): Remove.
19217         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19218         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19219         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19220
19221         * cprop.c (oprs_not_set_p): Remove.
19222         (mark_set, mark_clobber): Remove.
19223         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19224         (reg_not_set_p): New function.
19225         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19226         (cprop_insn): Likewise.
19227         (cprop_jump): Use FOR_EACH_EDGE.
19228
19229 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19230
19231         PR bootstrap/48403
19232         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19233         (rank_for_schedule): Use scheduled_insns vector instead of
19234         last_scheduled_insn.
19235         (ok_for_early_queue_removal): Likewise.
19236         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19237         we have a dbg_cnt.
19238         (choose_ready): Likewise.
19239         (commit_schedule): Use VEC_iterate.
19240         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19241         a dbg_cnt, use it and ensure the first insn is in the ready list.
19242         (haifa_sched_init): Allocate scheduled_insns.
19243         (sched_extend_ready_list): Don't allocate it; reserve space.
19244         (haifa_sched_finish): Free it.
19245
19246 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19247
19248         * optc-gen.awk: Always remove type from Variable entry before
19249         recording in var_seen.
19250
19251 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19252
19253         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19254         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19255         call to tidy_fallthru_edges.
19256
19257 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19258
19259         * doc/options.texi (ToLower): Document.
19260         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19261         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19262         * opts.h (cl_option): Add cl_tolower field.
19263         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19264         arguments with lowercase strings.
19265         * config/rx/rx.opt (mcpu=): Add ToLower.
19266         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19267         argument.
19268
19269 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19270
19271         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19272
19273 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19274
19275         * config/vax/vax.c: Include reload.h.
19276
19277 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19278
19279         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19280         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19281         (sparc_preferred_reload_class): New function.
19282
19283 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19284
19285         PR debug/48401
19286         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19287         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19288
19289 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19290
19291         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19292         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19293
19294 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19295
19296         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19297         (ASM_OUTPUT_ALIGNED_BSS): Define.
19298
19299 2011-04-03  Michael Matz  <matz@suse.de>
19300
19301         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19302         and next_slot members.
19303         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19304         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19305         (lto_streamer_cache_append): Declare.
19306         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19307         unsigned index, remove offset parameter, ensure that we append
19308         or update existing entries.
19309         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19310         parameter, update next_slot for append.
19311         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19312         parameter.
19313         (lto_streamer_cache_insert_at): Likewise.
19314         (lto_streamer_cache_append): New function.
19315         (lto_streamer_cache_lookup): Use unsigned index.
19316         (lto_streamer_cache_get): Likewise.
19317         (lto_record_common_node): Don't test tree_node_can_be_shared.
19318         (preload_common_node): Adjust call to lto_streamer_cache_insert.
19319         (lto_streamer_cache_delete): Don't free offsets member.
19320         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19321         (lto_output_string_with_length): Use lto_output_data_stream.
19322         (lto_output_tree_header): Remove ix parameter, don't write it.
19323         (lto_output_builtin_tree): Likewise.
19324         (lto_write_tree): Adjust callers to above, don't track and write
19325         offset, write unsigned index.
19326         (output_unreferenced_globals): Don't emit all global vars.
19327         (write_global_references): Use unsigned indices.
19328         (lto_output_decl_state_refs): Likewise.
19329         (write_symbol): Likewise.
19330         * lto-streamer-in.c (lto_input_chain): Move earlier.
19331         (input_function): Use unsigned index.
19332         (input_alias_pairs): Don't read and then ignore all global vars.
19333         (lto_materialize_tree): Remove ix_p parameter, don't read index,
19334         don't pass it back, use lto_streamer_cache_append.
19335         (lto_register_var_decl_in_symtab): Use unsigned index.
19336         (lto_register_function_decl_in_symtab): Likewise.
19337         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19338         index.
19339         (lto_get_builtin_tree): Don't read index, use
19340         lto_streamer_cache_append.
19341         (lto_read_tree): Adjust call to lto_materialize_tree.
19342
19343         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19344         don't use function calls in arguments to MIN.
19345
19346         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19347         twice.
19348
19349         * gimple.c (gimple_type_leader_entry): Mark deletable.
19350
19351 2011-04-03  Alan Modra  <amodra@gmail.com>
19352
19353         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19354
19355 2011-04-03  Michael Matz  <matz@suse.de>
19356
19357         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19358         an integer.
19359         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19360
19361 2011-04-03  Michael Matz  <matz@suse.de>
19362
19363         * cgraphbuild.c (record_reference): Canonicalize constructor values.
19364         * gimple-fold.c (canonicalize_constructor_val): Accept being called
19365         without function context.
19366         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19367         current_function_decl and cfun.
19368
19369 2011-04-03  Michael Matz  <matz@suse.de>
19370
19371         * tree.c (decl_init_priority_insert): Don't create entry for
19372         default priority.
19373         (decl_fini_priority_insert): Ditto.
19374         (fields_compatible_p, find_compatible_field): Remove.
19375         * tree.h (fields_compatible_p, find_compatible_field): Remove.
19376         * gimple.c (gimple_compare_field_offset): Adjust block comment.
19377
19378 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
19379
19380         * combine.c (try_combine): Remove useless local variable.
19381
19382 2011-04-03  Richard Guenther  <rguenther@suse.de>
19383             Ira Rosen  <ira.rosen@linaro.org>
19384
19385         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19386         non-variable offsets and compare the remaining bases of the two
19387         accesses instead of looking for exact same data-ref.
19388
19389 2011-04-02  Kai Tietz  <ktietz@redhat.com>
19390
19391         PR target/48416
19392         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19393
19394         * i386.c (ix86_is_msabi_thiscall): New helper function.
19395         (ix86_is_type_thiscall): New helper function.
19396         (ix86_comp_type_attributes): Handle thiscall for method-functions
19397         special.
19398         (init_cumulative_args): Likewise.
19399         (find_drap_reg): Likewise.
19400         (ix86_static_chain): Likewise.
19401         (x86_this_parameter): Likewise.
19402         (x86_output_mi_thunk): Likewise.
19403
19404 2011-04-01  Olivier Hainque  <hainque@adacore.com>
19405             Nicolas Setton  <setton@adacore.com>
19406             Eric Botcazou  <ebotcazou@adacore.com>
19407
19408         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19409         (add_gnat_descriptive_type_attribute): New function.
19410         (gen_array_type_die): Call it.
19411         (gen_enumeration_type_die): Likewise.
19412         (gen_struct_or_union_type_die): Likewise.
19413         (modified_type_die): Likewise.
19414         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19415         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19416         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19417
19418 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19419
19420         PR bootstrap/48148
19421         * dwarf2out.c (resolve_addr): Don't call force_decl_die
19422         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19423
19424         Revert:
19425         2011-03-17  Richard Guenther  <rguenther@suse.de>
19426
19427         PR bootstrap/48148
19428         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19429         origin for decls in other ltrans units.
19430         (input_varpool_node): Likewise.
19431
19432 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19433
19434         PR middle-end/48335
19435         * expr.c (expand_assignment): Handle all possibilities
19436         if TO_RTX is CONCAT.
19437         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19438         (store_split_bit_field): If SUBREG_REG (op0) or
19439         op0 itself has smaller mode than word, return it
19440         for offset 0 and const0_rtx for out-of-bounds stores.
19441         If word is const0_rtx, skip it.
19442
19443 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
19444
19445         * config/h8300/h8300.c (print_operand_address): Rename to...
19446         (h8300_print_operand_address): ...this. Make static. Adjust comments.
19447         Call h8300_print_operand and h8300_print_operand_address instead of
19448         print_operand and print_operand_address. Declare.
19449         (print_operand): Renake to...
19450         (h8300_print_operand): ...this. Make static. Adjust comments.
19451         Call h8300_print_operand instead of print_operand. Declare.
19452         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19453         (h8300_register_move_cost): Likewise.
19454         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19455         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19456         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19457         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19458         * config/h8300/h8300-protos.h (print_operand): Delete.
19459         (print_operand_address): Delete.
19460
19461 2011-04-01  Richard Henderson  <rth@redhat.com>
19462
19463         PR 48400
19464         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19465         in strict mode before dwarf4.  Re-order tests to early out
19466         before switching sections.
19467
19468 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19469
19470         * config/h8300/constraints.md: New file.
19471         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19472         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19473         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19474         * config/h8300/predicates.md (bit_operand): Likewise.
19475         (incdec_operand): Use satisfies_constraint_M and
19476         satisfies_constraint_O.  Don't use C code block.
19477         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19478         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19479         (compute_mov_length): Use satisfies_constraint_G.
19480         (fix_bit_operand): Use satisfies_constraint_U.
19481         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19482         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19483         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19484         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19485         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19486         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19487         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19488         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19489         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19490         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19491         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19492         (EXTRA_MEMORY_CONSTRAINT): Delete.
19493
19494 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19495             Michael Meissner  <meissner@linux.vnet.ibm.com>
19496
19497         PR target/48262
19498         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19499         operands, as per the specifications.
19500
19501         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19502         (vec_extract_evenv4sf): Ditto.
19503         (vec_extract_evenv8hi): Ditto.
19504         (vec_extract_evenv16qi): Ditto.
19505         (vec_extract_oddv4si): Ditto.
19506
19507 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19508
19509         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19510         high_pc attribute if the CU has no associated code. Only output
19511         DW_AT_entry_pc for CU if not generating strict dwarf and
19512         dwarf_version < 4.
19513
19514 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19515
19516         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19517         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19518         out of ...
19519         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19520         * final.c (final_start_function): Call the new function rather
19521         than using a NULL argument for dwarf2out_frame_debug.
19522
19523         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19524         that contains the prologue.
19525
19526         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19527         changed.  Print it in debugging output.
19528
19529         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19530
19531         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19532         Split most of the code into...
19533         (begin_move_insn): ... here.  New function.
19534         (ebb_sched_info): Add a pointer to it.
19535         * haifa-sched.c (scheduled_insns): New static variable.
19536         (sched_extend_ready_list): Allocate it.
19537         (schedule_block): Use it to record the order of scheduled insns.
19538         Perform RTL changes to move insns only after all scheduling
19539         decisions have been made.
19540         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19541         begin_move_insn field.
19542         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19543         * sched-int.h (struct haifa_sched_info): Remove second argument
19544         from begin_schedule_ready hook.  Add new member begin_move_insn.
19545         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19546         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19547
19548         * haifa-sched.c (prune_ready_list): New function, broken out of
19549         schedule_block.
19550         (schedule_block): Use it.
19551
19552 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19553
19554         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19555
19556 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19557
19558         * config.gcc (*-*-mingw*): Allow as option the
19559         posix threading model.
19560         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19561         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19562         definition.
19563         (CPP_SPEC): Add pthread/no-pthread handling.
19564         (LIB_SPEC): Likewise.
19565         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19566         (LIB_SPEC): Likewise.
19567         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19568         flag to pass -pthread option for shared libgcc build.
19569         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19570         for shared libgcc build.
19571         * config/i386/t-mingw-pthread: New file.
19572         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19573         New define to enable use of library pthread by default.
19574         * config/i386/mingw.opt (pthread): New driver option.
19575         (no-pthread): New driver option.
19576         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19577         * config/i386/mingw-w64.opt: Likewise.
19578
19579 2011-04-01  Gary Funck  <gary@intrepid.com>
19580
19581         * c-decl.c (grokdeclarator): Fix formatting.
19582
19583 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19584
19585         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19586         instead of n_operands.
19587         (set_storage_via_setmem): Likewise.
19588         * optabs.c (maybe_gen_insn): Likewise.
19589         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19590         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19591         (mips_expand_builtin_direct): Likewise.
19592         * config/spu/spu.c (expand_builtin_args): Likewise.
19593
19594 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19595
19596         * recog.h (insn_data_d): Add n_generator_args.
19597         * genoutput.c (data): Likewise.
19598         (output_insn_data): Print it.
19599         (max_opno, num_dups): Delete.
19600         (scan_operands): Just fill in "d->operand[...]".
19601         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19602
19603 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19604
19605         * gensupport.h (pattern_stats): New structure.
19606         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19607         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19608         (max_operand_1, max_operand_vec): Delete.
19609         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19610
19611 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19612
19613         * emit-rtl.c (emit_pattern_after_setloc): New function.
19614         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19615         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19616         (emit_pattern_after): New function.
19617         (emit_insn_after, emit_jump_insn_after): Call it.
19618         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19619         (emit_pattern_before_setloc): New function.
19620         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19621         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19622         Likewise.
19623         (emit_pattern_before): New function.
19624         (emit_insn_before, emit_jump_insn_before): Call it.
19625         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19626
19627 2011-03-31  Richard Henderson  <rth@redhat.com>
19628
19629         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19630         (dw_separate_line_info_entry): Remove.
19631         (enum dw_line_info_opcode): New.
19632         (dw_line_info_entry): Use it.
19633         (dw_line_info_table, dw_line_info_table_p): New.
19634         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19635         (line_info_table, line_info_label_num): Remove.
19636         (line_info_table_in_use): Remove.
19637         (separate_line_info_table): Remove.
19638         (separate_line_info_table_allocated): Remove.
19639         (separate_line_info_table_in_use): Remove.
19640         (LINE_INFO_TABLE_INCREMENT): Remove.
19641         (line_info_label_num): New.
19642         (cur_line_info_table): New.
19643         (text_section_line_info, cold_text_section_line_info): New.
19644         (separate_line_info): New.
19645         (SEPARATE_LINE_CODE_LABEL): Remove.
19646         (print_dwarf_line_table): Remove.
19647         (debug_dwarf): Don't dump it.
19648         (output_one_line_info_table): New.
19649         (output_line_info): Use it.
19650         (new_line_info_table): New.
19651         (set_cur_line_info_table): New.
19652         (dwarf2out_switch_text_section): Use it.
19653         (dwarf2out_begin_function): Likewise.
19654         (push_dw_line_info_entry): New.
19655         (dwarf2out_source_line): Rewrite for new line info tables.
19656         (dwarf2out_init): Remove dead initailizations.
19657
19658 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19659
19660         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19661         various flags.
19662         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19663         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19664         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19665         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19666         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19667         * opt-functions.awk (flag_init, switch_bit_fields): New.
19668         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19669         generate CL_MISSING_OK or CL_SAVE.
19670         * optc-gen.awk: Update to generate bit-field output as well as
19671         flags field.
19672         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19673         bit-field instead of CL_REJECT_DRIVER flag.
19674         * opts-common.c (generate_canonical_option,
19675         decode_cmdline_option): Use bit-fields instead of CL_* flags.
19676         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19677         instead of CL_REJECT_NEGATIVE flag.
19678         * toplev.c (print_switch_values): Use cl_report bit-field instead
19679         of CL_REPORT flag.
19680
19681 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19682
19683         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19684         a zero minimum index only if it is redundant.
19685
19686 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19687
19688         PR rtl-optimization/48381
19689         * ira-color.c (assign_hard_reg): Use hard reg set intersection
19690         instead of ira_class_hard_reg_index for calculating conflicting
19691         hard registers.
19692
19693 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
19694
19695         * cprop.c: Clean up hash table building.
19696         (reg_avail_info): Remove.
19697         (oprs_available_p): Remove.
19698         (record_last_reg_set_info): Remove.
19699         (record_last_set_info): Remove.
19700         (reg_available_p): New function.
19701         (gcse_constant_p): Do not treat unfolded conditions as constants.
19702         (make_set_regs_unavailable): New function.
19703         (hash_scan_set): Simplify with new reg_available_p.
19704         (compute_hash_table_work): Traverse insns stream only once.
19705         Do not compute reg_avail_info. Traverse insns in reverse order.
19706         Record implicit sets after recording explicit sets from the block.
19707
19708 2011-03-31  Michael Matz  <matz@suse.de>
19709
19710         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19711
19712 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
19713
19714         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19715         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19716         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19717         (h8300_mode_dependent_address_p): New function.
19718         (h8300_get_index): Make static.
19719
19720 2011-03-31  Jeff Law  <law@redhat.com>
19721
19722         * reload1.c (elimination_effects): Fix typo in recent change.
19723
19724         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19725         typo potentially leading to null pointer dereference.
19726
19727         * caller-save.c (new_saved_hard_reg): Eliminate return value.
19728         (setup_save_areas): Corresponding changes to avoid useless
19729         assignments.
19730
19731         * jump.c (reversed_comparison_code_parts): Avoid successive return
19732         statements when REVERSE_CONDITION is defined.
19733
19734         * expr.c (expand_assignment): Avoid useless assignments.
19735         (expand_expr_real_1): Likewise.
19736         (expand_expr_real_2): Avoid useless statements.
19737
19738         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19739
19740         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19741
19742         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19743         statements.
19744
19745         * stmt.c (expand_expr_stmt): Avoid useless assignment.
19746
19747 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19748
19749         PR target/47109
19750         * doc/tm.texi.in (TARGET_VERSION): Remove.
19751         * doc/tm.texi: Regenerate.
19752         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19753         * collect2.c (main): Don't use TARGET_VERSION.
19754         * mips-tdump.c (main): Don't use TARGET_VERSION.
19755         * mips-tfile.c (main): Don't use TARGET_VERSION.
19756         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19757         * config/rs6000/vxworksae.h: Remove.
19758         * config/alpha/alpha.h (TARGET_VERSION): Remove.
19759         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19760         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19761         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19762         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19763         * config/arm/arm.h (TARGET_VERSION): Remove.
19764         * config/arm/coff.h (TARGET_VERSION): Remove.
19765         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19766         * config/arm/elf.h (TARGET_VERSION): Remove.
19767         * config/arm/freebsd.h (TARGET_VERSION): Remove.
19768         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19769         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19770         * config/arm/pe.h (TARGET_VERSION): Remove.
19771         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19772         * config/arm/semi.h (TARGET_VERSION): Remove.
19773         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19774         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19775         * config/arm/vxworks.h (TARGET_VERSION): Remove.
19776         * config/avr/avr.h (TARGET_VERSION): Remove.
19777         * config/bfin/bfin.h (TARGET_VERSION): Remove.
19778         * config/fr30/fr30.h (TARGET_VERSION): Remove.
19779         * config/frv/frv.h (TARGET_VERSION): Remove.
19780         * config/h8300/h8300.h (TARGET_VERSION): Remove.
19781         * config/i386/cygwin.h (TARGET_VERSION): Remove.
19782         * config/i386/darwin.h (TARGET_VERSION): Remove.
19783         * config/i386/darwin64.h (TARGET_VERSION): Remove.
19784         * config/i386/djgpp.h (TARGET_VERSION): Remove.
19785         * config/i386/freebsd.h (TARGET_VERSION): Remove.
19786         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19787         * config/i386/gnu.h (TARGET_VERSION): Remove.
19788         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19789         * config/i386/i386elf.h (TARGET_VERSION): Remove.
19790         * config/i386/linux.h (TARGET_VERSION): Remove.
19791         * config/i386/linux64.h (TARGET_VERSION): Remove.
19792         * config/i386/lynx.h (TARGET_VERSION): Remove.
19793         * config/i386/mingw32.h (TARGET_VERSION): Remove.
19794         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19795         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19796         * config/i386/netware.h (TARGET_VERSION): Remove.
19797         * config/i386/nto.h (TARGET_VERSION): Remove.
19798         * config/i386/openbsd.h (TARGET_VERSION): Remove.
19799         * config/i386/vxworks.h (TARGET_VERSION): Remove.
19800         * config/ia64/elf.h (TARGET_VERSION): Remove.
19801         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19802         * config/ia64/hpux.h (TARGET_VERSION): Remove.
19803         * config/ia64/linux.h (TARGET_VERSION): Remove.
19804         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19805         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19806         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19807         * config/lm32/lm32.h (TARGET_VERSION): Remove.
19808         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19809         * config/m32c/m32c.h (TARGET_VERSION): Remove.
19810         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19811         * config/m32r/m32r.h (TARGET_VERSION): Remove.
19812         * config/m68k/linux.h (TARGET_VERSION): Remove.
19813         * config/m68k/m68k.h (TARGET_VERSION): Remove.
19814         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19815         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19816         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19817         * config/mep/mep.h (TARGET_VERSION): Remove.
19818         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19819         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19820         * config/mips/iris6.h (MACHINE_TYPE): Remove.
19821         * config/mips/linux.h (TARGET_VERSION): Remove.
19822         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19823         * config/mips/vxworks.h (TARGET_VERSION): Remove.
19824         * config/mmix/mmix.h (TARGET_VERSION): Remove.
19825         * config/mn10300/linux.h (TARGET_VERSION): Remove.
19826         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19827         * config/pa/pa.h (TARGET_VERSION): Remove.
19828         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19829         * config/picochip/picochip.h (TARGET_VERSION): Remove.
19830         * config/rs6000/aix.h (TARGET_VERSION): Remove.
19831         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19832         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19833         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19834         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19835         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19836         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19837         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19838         * config/rs6000/linux.h (TARGET_VERSION): Remove.
19839         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19840         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19841         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19842         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19843         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19844         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19845         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19846         * config/s390/linux.h (TARGET_VERSION): Remove.
19847         * config/s390/s390.h (TARGET_VERSION): Remove.
19848         * config/s390/tpf.h (TARGET_VERSION): Remove.
19849         * config/score/score.h (TARGET_VERSION): Remove.
19850         * config/sh/linux.h (TARGET_VERSION): Remove.
19851         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19852         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19853         * config/sh/sh.h (TARGET_VERSION): Remove.
19854         * config/sh/sh64.h (TARGET_VERSION): Remove.
19855         * config/sh/superh.h (TARGET_VERSION): Remove.
19856         * config/sh/vxworks.h (TARGET_VERSION): Remove.
19857         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19858         * config/sparc/linux.h (TARGET_VERSION): Remove.
19859         * config/sparc/linux64.h (TARGET_VERSION): Remove.
19860         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19861         TARGET_NAME32, TARGET_NAME): Remove.
19862         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19863         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19864         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19865         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19866         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19867         * config/spu/spu.h (TARGET_VERSION): Remove.
19868         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19869         * config/v850/v850.h (TARGET_VERSION): Remove.
19870         * config/vax/linux.h (TARGET_VERSION): Remove.
19871         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19872         * config/xtensa/elf.h (TARGET_VERSION): Remove.
19873         * config/xtensa/linux.h (TARGET_VERSION): Remove.
19874
19875 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19876
19877         PR target/48142
19878         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19879         frame-related from frame-unrelated adjustments to the stack pointer.
19880
19881 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
19882
19883         * common.opt (fdebug-types-section): Move earlier.
19884         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19885
19886 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
19887
19888         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19889         var.
19890
19891 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
19892
19893         * tree.h (CASE_CHAIN): Define.
19894         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19895         (gimple_redirect_edge_and_branch): Likewise.
19896
19897 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19898
19899         PR middle-end/48367
19900         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19901         calculation.
19902
19903 2011-03-30  Jeff Law  <law@redhat.com>
19904
19905         * PR bootstrap/48371
19906         * reload1.c (reload): Fix botch in last change.
19907
19908         * reload.h (struct reload): Fix typo introduced in last change.
19909
19910 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19911
19912         * config/arm/arm.opt (mhard-float, msoft-float): Mark
19913         Undocumented.  Remove help text.
19914         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19915         -mhard-float.
19916
19917 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19918
19919         * doc/options.texi (NegativeAlias): Document.
19920         (Alias): Mention NegativeAlias.
19921         * opt-functions.awk: Handle NegativeAlias.
19922         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19923         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19924         * opts.h (CL_NEGATIVE_ALIAS): Define.
19925         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19926         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19927         OPT_mspe_.
19928         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19929         Alias entries.
19930         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19931         mno-spe and mno-isel instead of mspe=no and -misel=no.
19932
19933 2011-03-29  Mark Wielaard  <mjw@redhat.com>
19934
19935         * common.opt (fdebug-types-section): New flag.
19936         * doc/invoke.texi: Document new -fno-debug-types-section flag.
19937         * dwarf2out.c (use_debug_types): New define.
19938         (struct die_struct): Mark die_id with GTY desc use_debug_types.
19939         (print_die): Guard output of type unit signatures using
19940         use_debug_types.
19941         (build_abbrev_table): Replace assert of dwarf_version >= 4
19942         with assert on use_debug_types.
19943         (size_of_die): Likewise.
19944         (unmark_dies): Likewise.
19945         (value_format): Decide AT_ref_external form on use_debug_types.
19946         (output_die): Replace dwarf_version version check guard with
19947         use_debug_types where appropriate.
19948         (modified_type_die): Likewise.
19949         (gen_reference_type_die): Likewise.
19950         (dwarf2out_start_source_file): Likewise.
19951         (dwarf2out_end_source_file): Likewise.
19952         (prune_unused_types_walk_attribs): Likewise.
19953         (dwarf2out_finish): Likewise.
19954
19955 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19956
19957         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19958
19959 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19960
19961         PR rtl-optimization/48332
19962         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
19963         mode of input operand N and modeN to its actual mode.
19964
19965 2011-03-30  Jeff Law  <law@redhat.com>
19966
19967         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
19968         define accessor macro.
19969         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
19970         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
19971         (reg_equiv_init): Likewise.
19972         (reg_equivs_size): New variable.
19973         (reg_equiv_init_size): Remove.
19974         (allocate_initial_values): Move prototype to here from....
19975         * integrate.h (allocate_initial_values): Remove prototype.
19976         * integrate.c: Include reload.h.
19977         (allocate_initial_values): Corresponding changes.
19978         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
19979         (fix_reg_equiv_init, no_equiv): Corresponding changes.
19980         (update_equiv_regs): Corresponding changes.
19981         (ira): Corresponding changes.
19982         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
19983         (push_secondary_reload): Corresponding changes.
19984         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
19985         (make_memloc, find_reloads_address): Corresponding changes.
19986         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
19987         (find_reloads_address_1): Corresponding changes.
19988         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
19989         (refers_to_regno_for_reload_p): Corresponding changes.
19990         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
19991         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
19992         * reload1.c: Include ggc.h.
19993         (grow_reg_equivs): New function.
19994         (replace_pseudos_in, reload): Corresponding changes.
19995         (calculate_needs_all_insns, alter_regs): Corresponding changes.
19996         (eliminate_regs_1, elimination_effects): Corresponding changes.
19997         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
19998         (delete_output_reload): Likewise.
19999         * caller-save.c (mark_referenced_regs): Corresponding changes.
20000         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20001         * frv/predicates.md (frv_load_operand): Corresponding changes.
20002         * microblaze/microblaze.c (double_memory_operand): Corresponding
20003         changes.
20004         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20005         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20006         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20007         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20008         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20009         changes.
20010         * pa/pa.c (emit_move_sequence): Corresponding changes.
20011         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20012
20013 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20014
20015         PR target/47551
20016         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20017         structure modes.  Don't check neon_vector_mem_operand for
20018         vector or structure modes.
20019
20020 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20021             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20022
20023         PR target/43590
20024         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20025         operand 1 and reshuffle the operands to match.
20026         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20027
20028 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20029
20030         PR driver/48208
20031         * config/c.opt (F): Added 'Driver' to -F option.
20032
20033         PR driver/48260
20034         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20035           handler function.
20036         * config/darwin.opt: Added '-arch' option.
20037
20038 2011-03-30  Nick Clifton  <nickc@redhat.com>
20039
20040         * config/rx/rx.md: Add peepholes and patterns to combine
20041         extending loads and simple arithmetic instructions.
20042         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20043         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20044         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20045         modes to use pre-decrement and post-increment addressing.
20046         (rx_is_restricted_memory_address): Add range checking of REG+INT
20047         addresses.
20048         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20049         (rx_memory_move_cost): Adjust cost of stores.
20050         (rx_adjust_insn_length): New function.
20051
20052 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20053
20054         PR c/48305
20055         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20056         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20057         matching arg00/arg01 types.
20058
20059 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20060
20061         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20062         last_location to UNKNOWN_LOCATION.
20063
20064 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20065
20066         PR target/48349
20067         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20068         FLOAT_SSE_REGS.
20069
20070 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20071             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20072
20073         PR bootstrap/48337
20074         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20075         Init(PROCESSOR_V7).
20076         (sparc_cpu): Likewise.
20077         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20078         PROCESSOR_V7.
20079
20080 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20081
20082         PR target/48336
20083         PR middle-end/48342
20084         PR rtl-optimization/48345
20085         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20086         hard regs for given mode from profitable regs when doing secondary
20087         allocation.
20088
20089 2011-03-29  Jeff Law  <law@redhat.com>
20090
20091         PR bootstrap/48327
20092         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20093         do_not_duplicate field.
20094         (lookup_redirection_data): Corresponding changes.
20095         (create_duplicates): Always create a template block.
20096         (redirect_edges): Remove code which reused the original block
20097         when it was going to become unreachable code.
20098         (thread_block): Don't set do_not_duplicate field.
20099
20100 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20101
20102         * lto-opts.c (register_user_option_p, lto_register_user_option):
20103         Make type argument unsigned.
20104         * lto-streamer.h (lto_register_user_option): Make type argument
20105         unsigned.
20106         * opth-gen.awk: Make CL_* macros unsigned.
20107         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20108         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20109         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20110         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20111         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20112         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20113         (find_opt): Make lang_mask argument unsigned.
20114
20115 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20116
20117         PR rtl-optimization/48331
20118         PR rtl-optimization/48334
20119         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20120         for any used algorithm.
20121
20122 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20123
20124         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20125         to parent_max.
20126
20127 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20128
20129         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20130         (alpha_option_override): Don't set alpha_sr_alias_set.
20131         (emit_frame_store_1): Use gen_frame_mem rather than calling
20132         set_mem_alias_set.
20133         (alpha_expand_epilogue): Ditto.
20134
20135 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20136
20137         PR tree-optimization/48290
20138         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20139         vectorization, check that relevant phis in the basic block after
20140         the inner loop are really inner loop's exit phis.
20141
20142 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20143
20144         PR debug/48190
20145         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20146         (cached_dw_loc_list_def): New structure.
20147         (cached_dw_loc_list): New typedef.
20148         (cached_dw_loc_list_table): New variable.
20149         (cached_dw_loc_list_table_hash): New function.
20150         (cached_dw_loc_list_table_eq): Likewise.
20151         (add_location_or_const_value_attribute): Take a bool cache_p.
20152         Cache the list when the parameter is true.
20153         (gen_formal_parameter_die): Update caller.
20154         (gen_variable_die): Likewise.
20155         (dwarf2out_finish): Likewise.
20156         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20157         while generating debug info for the decl.
20158         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20159         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20160         (resolve_addr): Cache the result of resolving a chain of
20161         location lists.
20162
20163 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20164
20165         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20166         conflict object hard regset nodes have intersecting hard reg sets.
20167
20168         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20169         after regstat_init_n_sets_and_refs.
20170
20171         * ira.c: Add more comments at the top.
20172         (setup_stack_reg_pressure_class, setup_pressure_classes):
20173         Add comments how we compute the register pressure classes.
20174         (setup_allocno_and_important_classes): Add more comments.
20175         (setup_class_translate_array, reorder_important_classes)
20176         (setup_reg_class_relations): Add comments.
20177
20178         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20179         start of the file.
20180
20181         * ira-color.c: Add 2011 to the Copyright line.
20182         (assign_hard_reg):  Add more comments.
20183         (improve_allocation): Ditto.
20184
20185         * ira-costs.c: Add 2011 to the Copyright line.
20186         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20187         comments.
20188         (setup_regno_cost_classes_by_mode): Ditto.
20189
20190         Initial patches from ira-improv branch:
20191
20192         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20193
20194         * ira-build.c (ira_create_object): Remove initialization of
20195         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20196         (ira_create_allocno): Remove initialization of
20197         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20198         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20199         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20200         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20201         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20202         Initialize ALLOCNO_ADD_DATA.
20203         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20204         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20205         ALLOCNO_REG.
20206         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20207         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20208
20209         * ira.c (ira_reallocate): Remove.
20210         (setup_pressure_classes): Call
20211         ira_init_register_move_cost_if_necessary.  Use
20212         ira_register_move_cost instead of ira_get_register_move_cost.
20213         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20214         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20215
20216         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20217         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20218         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20219         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20220         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20221         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20222         Fix formatting.
20223         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20224         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20225         (struct allocno_color_data): New.
20226         (allocno_color_data_t): New typedef.
20227         (allocno_color_data): New definition.
20228         (ALLOCNO_COLOR_DATA): New macro.
20229         (struct object_color_data): New.
20230         (object_color_data_t): New typedef.
20231         (object_color_data): New definition.
20232         (OBJECT_COLOR_DATA): New macro.
20233         (update_copy_costs, calculate_allocno_spill_cost): Call
20234         ira_init_register_move_cost_if_necessary.  Use
20235         ira_register_move_cost instead of ira_get_register_move_cost.
20236         (move_spill_restore, update_curr_costs): Ditto.
20237         (allocno_spill_priority): Make it inline.
20238         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20239         (struct coalesce_data, coalesce_data_t): New.
20240         (allocno_coalesce_data): New definition.
20241         (ALLOCNO_COALESCE_DATA): New macro.
20242         (merge_allocnos, coalesced_allocno_conflict_p): Use
20243         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20244         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20245         (coalesce_allocnos): Ditto.
20246         (setup_coalesced_allocno_costs_and_nums): Ditto.
20247         (collect_spilled_coalesced_allocnos): Ditto.
20248         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20249         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20250         (coalesce_spill_slots): Ditto.
20251         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20252         free allocno_coalesce_data.
20253
20254         * ira-conflicts.c: Fix formatting.
20255         (process_regs_for_copy): Call
20256         ira_init_register_move_cost_if_necessary.  Use
20257         ira_register_move_cost instead of ira_get_register_move_cost.
20258         (build_object_conflicts): Optimize.
20259
20260         * ira-costs.c (record_reg_classes): Optimize.  Call
20261         ira_init_register_move_cost_if_necessary.  Use
20262         ira_register_move_cost, ira_may_move_in_cost, and
20263         ira_may_move_out_cost instead of ira_get_register_move_cost and
20264         ira_get_may_move_cost.
20265         (record_address_regs): Ditto.
20266         (scan_one_insn): Optimize.
20267         (find_costs_and_classes): Optimize.
20268         (process_bb_node_for_hard_reg_moves): Call
20269         ira_init_register_move_cost_if_necessary.  Use
20270         ira_register_move_cost instead of ira_get_register_move_cost.
20271
20272         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20273         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20274         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20275         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20276         definitions.
20277         (ira_initiate_emit_data, ira_finish_emit_data)
20278         (create_new_allocno): New functions.
20279         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20280         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20281         Use ira_register_move_cost instead of ira_get_register_move_cost.
20282
20283         * ira-int.h: Fix some comments.
20284         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20285         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20286         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20287         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20288         add_data.
20289         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20290         bitfield after mode.  Make hard_regno a short int.  Make
20291         hard_regno short.  Remove first_coalesced_allocno and
20292         next_coalesced_allocno.  Move mem_optimized_dest_p,
20293         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20294         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20295         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20296         temp, colorable_p.  Add new member add_data.
20297         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20298         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20299         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20300         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20301         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20302         (ALLOCNO_ADD_DATA): New macro.
20303         (ira_emit_data_t): New typedef.
20304         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
20305         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20306         from struct ira_allocno.
20307         (ALLOCNO_EMIT_DATA): New macro.
20308         (ira_allocno_emit_data, allocno_emit_reg): New.
20309         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20310         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20311         (OBJECT_ADD_DATA): New macro.
20312         (ira_reallocate): Remove.
20313         (ira_initiate_emit_data, ira_finish_emit_data): New.
20314         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20315         (ira_init_register_move_cost_if_necessary): New.
20316         (ira_object_conflict_iter_next): Merge into
20317         ira_object_conflict_iter_cond.
20318         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20319
20320         * ira-live.c (process_single_reg_class_operands): Call
20321         ira_init_register_move_cost_if_necessary.  Use
20322         ira_register_move_cost instead of ira_get_register_move_cost.
20323
20324         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20325
20326         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20327
20328         * ira-costs.c: Fix formatting.
20329         (cost_classes, cost_classes_num): Remove.
20330         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20331         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20332         (cost_classes_del, cost_classes_htab): New.
20333         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20334         (initiate_regno_cost_classes, setup_cost_classes): New.
20335         (setup_regno_cost_classes_by_aclass): New.
20336         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20337         (record_reg_classes): Use regno_cost_classes instead of
20338         cost_classes.  Move checking opposite operand up.
20339         (record_address_regs): Use regno_cost_classes
20340         instead of cost_classes.
20341         (scan_one_insn): Ditto.  Use always general register.
20342         (print_allocno_costs): Use regno_cost_classes instead of
20343         cost_classes.
20344         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
20345         (find_costs_and_classes): Set up cost classes for each registers.
20346         Use also their mode for this.  Use regno_cost_classes instead of
20347         cost_classes.
20348         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20349         cost_classes.
20350         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20351         (ira_costs, ira_set_pseudo_classes): Call
20352         initiate_regno_cost_classes and finish_regno_cost_classes.
20353
20354         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20355
20356         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20357
20358         * target.def (ira_cover_classes): Remove.
20359
20360         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20361
20362         * doc/tm.texi.in: Ditto.
20363
20364         * ira-conflicts.c: Remove mentioning cover classes from the file.
20365         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
20366         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
20367
20368         * targhooks.c (default_ira_cover_classes): Remove.
20369
20370         * targhooks.h (default_ira_cover_classes): Ditto.
20371
20372         * haifa-sched.c: Remove mentioning cover classes from the file.
20373         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20374         ira_pressure_classes and ira_pressure_classes_num instead of
20375         ira_reg_class_cover_size and ira_reg_class_cover.  Use
20376         sched_regno_pressure_class instead of sched_regno_cover_class.
20377         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20378         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20379
20380         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
20381         classes from the file.
20382         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20383         (struct object_hard_regs, struct object_hard_regs_node): New.
20384         (struct ira_object): New members profitable_hard_regs,
20385         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20386         (struct ira_allocno): Rename cover_class to aclass.  Rename
20387         cover_class_cost and updated_cover_class_cost to class_cost and
20388         updated_class_cost.  Remove splay_removed_p and
20389         left_conflict_size.  Add new members colorable_p.
20390         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20391         (ALLOCNO_COLORABLE_P): New macro.
20392         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20393         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20394         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20395         (OBJECT_...): Rename parameter C to O.
20396         (OBJECT_PROFITABLE_HARD_REGS): New macro.
20397         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20398         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20399         (struct target_ira_int): New members x_ira_max_memory_move_cost,
20400         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20401         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20402         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20403         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
20404         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
20405         x_ira_reg_class_subunion.
20406         (ira_max_memory_move_cost, ira_max_register_move_cost)
20407         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20408         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20409         (ira_important_class_nums, ira_reg_class_superunion): New macros.
20410         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20411         (ira_reg_class_union): Rename to ira_reg_class_subunion.
20412         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20413         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20414         (ira_tune_allocno_costs_and_cover_classes): Rename to
20415         ira_tune_allocno_costs.
20416         (ira_debug_hard_regs_forest): New.
20417         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20418         (ira_object_conflict_iter_next): Fix comments.
20419         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20420         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20421         cover_class to aclass.
20422         (ira_allocate_and_accumulate_costs): Ditto.
20423         (ira_allocate_and_set_or_copy_costs): Ditto.
20424
20425         * opts.c (decode_options): Remove ira_cover_class check.
20426
20427         * ira-color.c: Remove mentioning cover classes from the file.  Use
20428         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20429         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20430         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20431         (splay-tree.h): Remove include.
20432         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20433         before copy_freq_compare_func.
20434         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20435         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20436         New definitions.
20437         (hard_regs_roots, hard_regs_node_vec): Ditto.
20438         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20439         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20440         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20441         (create_new_object_hard_regs_node): Ditto.
20442         (add_new_object_hard_regs_node_to_forest): Ditto.
20443         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20444         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20445         Ditto.
20446         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20447         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20448         (remove_unused_object_hard_regs_nodes): Ditto.
20449         (enumerate_object_hard_regs_nodes): Ditto.
20450         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20451         (object_hard_regs_subnode_t): Ditto.
20452         (struct object_hard_regs_subnode): Ditto.
20453         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20454         (setup_object_hard_regs_subnode_index): Ditto.
20455         (get_object_hard_regs_subnodes_num): Ditto.
20456         (form_object_hard_regs_nodes_forest): Ditto.
20457         (finish_object_hard_regs_nodes_tree): Ditto.
20458         (finish_object_hard_regs_nodes_forest): Ditto.
20459         (allocnos_have_intersected_live_ranges_p): Rename to
20460         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20461         (pseudos_have_intersected_live_ranges_p): Rename to
20462         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20463         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20464         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20465         (update_copy_costs): Remove assert.  Skip cost update if the hard
20466         reg does not belong the class.
20467         (assign_hard_reg): Process only profitable hard regs.
20468         (uncolorable_allocnos_num): Make it scalar.
20469         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20470         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20471         and ira_reg_class_max_nregs.
20472         (bucket_allocno_compare_func): Check frequency first.
20473         (sort_bucket): Add compare function as a parameter.
20474         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20475         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20476         (push_allocno_to_stack): Rewrite for checking new allocno
20477         colorability.
20478         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20479         (push_only_colorable): Pass new parameter to sort_bucket.
20480         (push_allocno_to_spill): Remove.
20481         (allocno_spill_priority_compare): Make it inline and rewrite.
20482         (splay_tree_allocate, splay_tree_free): Remove.
20483         (allocno_spill_sort_compare): New function.
20484         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20485         build and use splay tree.  Choose first allocno in uncolorable
20486         allocno bucket to spill.  Remove setting spill cost.
20487         (all_conflicting_hard_regs): Remove.
20488         (setup_allocno_available_regs_num): Check only profitable hard
20489         regs.  Print info about hard regs nodes.
20490         (setup_allocno_left_conflicts_size): Remove.
20491         (put_allocno_into_bucket): Don't call
20492         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20493         (improve_allocation): New.
20494         (color_allocnos): Call setup_profitable_hard_regs,
20495         form_object_hard_regs_nodes_forest, improve_allocation,
20496         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20497         (print_loop_title): Use pressure classes.
20498         (color_allocnso): Ditto.
20499         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20500         and allocnos_for_spilling.
20501         (ira_sort_regnos_for_alter_reg): Don't setup members
20502         {first,next}_coalesced_allocno.
20503         (color): Remove allocating and freeing removed_splay_allocno_vec.
20504         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20505         prohibited_class_mode_regs.
20506
20507         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20508         formatting.
20509         (update_allocno_pressure_excess_length): Use pressure classes.
20510         (inc_register_pressure, dec_register_pressure): Check for pressure
20511         class.
20512         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20513         pressure class.  Use ira_reg_class_nregs instead of
20514         ira_reg_class_max_nregs.
20515         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20516         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20517         (single_reg_class): Use ira_reg_class_nregs instead of
20518         ira_reg_class_max_nregs.
20519         (process_bb_node_lives): Use pressure classes.
20520
20521         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20522         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20523         (change_loop): Use pressure classes.
20524         (modify_move_list): Call ira_set_allocno_class instead of
20525         ira_set_allocno_cover_class.
20526
20527         * ira-build.c: Remove mentioning cover classes from the file.  Use
20528         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20529         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20530         ALLOCNO_UPDATED_CLASS_COST instead of
20531         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20532         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20533         (ira_create_allocno): Remove initialization of
20534         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20535         ALLOCNO_COLORABLE_P.
20536         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20537         Update conflict regs for the objects.
20538         (create_cap_allocno): Remove assert.  Don't propagate
20539         ALLOCNO_AVAILABLE_REGS_NUM.
20540         (ira_free_allocno_costs): New function.
20541         (finish_allocno): Change a part of code into call of
20542         ira_free_allocno_costs.
20543         (low_pressure_loop_node_p): Use pressure classes.
20544         (object_range_compare_func): Don't compare classes.
20545         (setup_min_max_conflict_allocno_ids): Ditto.
20546
20547         * loop-invariant.c: Remove mentioning cover classes from the file.
20548         Use ira_pressure_classes and ira_pressure_classes_num instead of
20549         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20550         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20551         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20552         Use reg_allocno_class instead of reg_cover_class.
20553         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20554         STACK_REG_COVER_CLASS.
20555         (get_regno_cover_class): Rename to get_regno_pressure_class.
20556         (move_loop_invariants): Initialize and finalize regstat.
20557
20558         * ira.c: Remove mentioning cover classes from the file.  Add
20559         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20560         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20561         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20562         setup_class_subset_and_memory_move_costs.
20563         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20564         (setup_cover_and_important_classes): Rename to
20565         setup_allocno_and_important_classes.
20566         (setup_class_translate_array): New.
20567         (setup_class_translate): Call it for allocno and pressure classes.
20568         (cover_class_order): Rename to allocno_class_order.
20569         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20570         of ira_class_translate.
20571         (reorder_important_classes): Set up ira_important_class_nums.
20572         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20573         (print_class_cover): Rename to print_classes.  Add parameter.
20574         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20575         Print pressure classes too.
20576         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20577         setup_reg_subclasses.
20578         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20579         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20580         (setup_prohibited_class_mode_regs): Use
20581         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20582         (clarify_prohibited_class_mode_regs): New function.
20583         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20584         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20585         (ira_init_once): Initialize them.
20586         (free_register_move_costs): Process them.
20587         (ira_init): Move calls of find_reg_classes and
20588         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20589         Call clarify_prohibited_class_mode_regs.
20590         (ira_no_alloc_reg): Remove.
20591         (too_high_register_pressure_p): Use pressure classes.
20592
20593         * sched-deps.c: Remove mentioning cover classes from the file.
20594         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20595         ira_pressure_classes and ira_pressure_classes_num instead of
20596         ira_reg_class_cover_size and ira_reg_class_cover.
20597         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20598         sched_regno_pressure_class instead of sched_regno_cover_class.
20599         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20600         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20601
20602         * ira.h: Add 2010 to Copyright.
20603         (ira_no_alloc_reg): Remove external.
20604         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20605         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20606         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20607         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20608         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20609         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20610         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20611         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20612         x_ira_no_alloc_regs.
20613         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20614         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20615         ira_allocno_classes_num and ira_allocno_classes.
20616         (ira_class_translate): Rename to ira_allocno_class_translate.
20617         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20618         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20619         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20620         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20621         (ira_no_alloc_regs): New.
20622
20623         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20624         classes from the file.  Use ALLOCNO_CLASS instead of
20625         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20626         ALLOCNO_COVER_CLASS_COST.
20627         (regno_cover_class): Rename to regno_aclass.
20628         (record_reg_classes): Use ira_reg_class_subunion instead of
20629         ira_reg_class_union.
20630         (record_address_regs): Check overflow.
20631         (scan_one_insn): Ditto.
20632         (print_allocno_costs): Print total mem cost fore regional allocation.
20633         (print_pseudo_costs): Use REG_N_REFS.
20634         (find_costs_and_classes): Use classes intersected with them on the
20635         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20636         ira_reg_class_union.  Use ira_allocno_class_translate and
20637         regno_aclass instead of ira_class_translate and regno_cover_class.
20638         Modify code for finding regno_aclass.  Setup preferred classes for
20639         the next pass.
20640         (setup_allocno_cover_class_and_costs): Rename to
20641         setup_allocno_class_and_costs.  Use regno_aclass instead of
20642         regno_cover_class.  Use ira_set_allocno_class instead of
20643         ira_set_allocno_cover_class.
20644         (init_costs, finish_costs): Use regno_aclass instead of
20645         regno_cover_class.
20646         (ira_costs): Use setup_allocno_class_and_costs instead of
20647         setup_allocno_cover_class_and_costs.
20648         (ira_tune_allocno_costs_and_cover_classes): Rename to
20649         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20650         by processing objects.  Use ira_reg_class_max_nregs instead of
20651         ira_reg_class_nregs.
20652
20653         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20654
20655         * sched-int.h: Remove mentioning cover classes from the file.
20656         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20657
20658         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20659         classes from the file.
20660         (struct reg_pref): Rename coverclass into allocnoclass.
20661         (reg_cover_class): Rename to reg_allocno_class.
20662
20663         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20664
20665         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20666
20667         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20668
20669         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20670
20671         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20672
20673         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20674
20675         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20676
20677         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20678
20679         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20680
20681         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20682
20683         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20684         (i386_ira_cover_classes): Ditto.
20685
20686         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20687
20688         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20689
20690         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20691
20692         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20693
20694         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20695
20696         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20697
20698         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20699         (mips_ira_cover_classes): Ditto.
20700
20701         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20702
20703         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20704
20705         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20706
20707         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20708
20709         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20710
20711         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20712         (IRA_COVER_CLASSES_VSX): Ditto.
20713
20714         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20715         (rs6000_ira_cover_classes): Ditto.
20716
20717         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20718
20719         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20720
20721         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20722
20723         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20724
20725         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20726
20727         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20728
20729         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20730
20731         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20732
20733         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20734
20735         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20736
20737 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
20738
20739         PR debug/48253
20740         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20741         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20742         dw_fde_unlikely_section_end_label, cold_in_std_section,
20743         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20744         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20745         fields.
20746         (output_fde): Use dw_fde_second_{begin,end} if second is
20747         true, otherwise dw_fde_{begin,end}.
20748         (output_call_frame_info): Test dw_fde_second_begin != NULL
20749         instead of dw_fde_switched_sections.
20750         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20751         fields, initialize new fields.  Initialize in_std_section
20752         unconditionally from the first partition.
20753         (dwarf2out_end_epilogue): Don't override dw_fde_end when
20754         dw_fde_second_begin is non-NULL.
20755         (dwarf2out_switch_text_section): Stop initializing removed
20756         dw_fde_struct fields, initialize new fields, initialize
20757         also dw_fde_end here.  Set dw_fde_switch_cfi even when
20758         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
20759         (struct var_loc_list_def): Add last_before_switch field.
20760         (arange_table, arange_table_allocated, arange_table_in_use,
20761         ARANGE_TABLE_INCREMENT, add_arange): Removed.
20762         (size_of_aranges): Count !in_std_section and !second_in_std_section
20763         hunks in fdes, instead of looking at arange_table_in_use.
20764         (output_aranges): Add aranges_length argument, don't call
20765         size_of_aranges here.  Instead of using aranges_table*
20766         emit ranges for fdes when !in_std_section resp.
20767         !second_in_std_section.
20768         (dw_loc_list): Break ranges crossing section switch.
20769         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
20770         use dw_fde_second_end instead of dw_fde_end as end of last range.
20771         (gen_subprogram_die): Don't call add_arange.  Use
20772         dw_fde_{begin,end} for first partition and if switched
20773         section dw_fde_second_{begin,end} for the second.
20774         (var_location_switch_text_section_1,
20775         var_location_switch_text_section): New functions.
20776         (dwarf2out_begin_function): Initialize cold_text_section even
20777         when function_section () isn't text_section.
20778         (prune_unused_types): Don't walk arange_table.
20779         (dwarf2out_finish): Don't needlessly test
20780         flag_reorder_blocks_and_partition when testing cold_text_section_used.
20781         If info_section_emitted, call size_of_aranges and if it indicates
20782         non-empty .debug_aranges, call output_aranges with the computed
20783         size.  Stop using removed dw_fde_struct fields, use
20784         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20785         for second.
20786
20787         PR debug/48203
20788         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20789         create ENTRY_VALUE if incoming or address of incoming's MEM
20790         is a hard REG.
20791         * dwarf2out.c (mem_loc_descriptor): Don't emit
20792         DW_OP_GNU_entry_value of DW_OP_fbreg.
20793         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20794         on ENTRY_VALUE is able to find the canonical parameter VALUE.
20795         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20796         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20797         ENTRY_VALUE_EXPs.
20798         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20799         is a REG_P or MEM_P with REG_P address, compute hash directly
20800         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20801         (preserve_only_constants): Don't clear VALUES forwaring
20802         ENTRY_VALUE to some other VALUE.
20803
20804 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
20805
20806         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20807         instead of GEN_INT.
20808
20809 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20810
20811         * cfgexpand.c (expand_gimple_cond): Always set the source location and
20812         block before expanding the statement.
20813         (expand_gimple_stmt_1): Likewise.  Set them here...
20814         (expand_gimple_stmt): ...and not here.  Tidy.
20815         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20816         unknown.
20817
20818 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20819
20820         * Makefile.in: New rule for cprop.o.
20821         * gcse.c: Move constant/copy propagation to cprop.c.
20822         (compute_local_properties): Only handle expression tables.
20823         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20824         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20825         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20826         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20827         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20828         compute_cprop_data, find_used_regs, try_replace_reg,
20829         find_avail_set, cprop_jump, constprop_register, cprop_insn,
20830         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20831         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20832         find_bypass_set, reg_killed_on_edge, bypass_block,
20833         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20834         execute_rtl_cprop, pass_rtl_cprop): Move to...
20835         * cprop.c: ...here.  New file, constant/copy propagation for RTL
20836         moved from gcse.c to here with minor cleanups in duplicated code.
20837
20838 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
20839
20840         * config/i386/i386.c (flag_opts): Fix a typo in
20841         -mavx256-split-unaligned-store.
20842
20843 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20844
20845         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20846         LIBCALL_VALUE): Remove macros.
20847         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20848         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20849         (h8300_function_value, h8300_libcall_value,
20850         h8300_function_value_regno_p): New functions.
20851
20852 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20853
20854         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20855
20856 2011-03-28  Jeff Law  <law@redhat.com>
20857
20858         * tree-ssa-threadupdate.c (redirect_edges): Call
20859         create_edge_and_update_destination_phis as needed.
20860         (create_edge_and_update_destination_phis): Accept new BB argument.
20861         All callers updated.
20862         (thread_block): Do not update the profile when threading around
20863         intermediate blocks.
20864         (thread_single_edge): Likewise.
20865         (determine_bb_domination_status): If BB is not a successor of the
20866         loop header, return NONDOMINATING.
20867         (register_jump_thread): Note when we register a jump thread around
20868         an intermediate block.
20869         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20870         (thread_across_edge): Use it.
20871
20872 2011-03-28  Tristan Gingold  <gingold@adacore.com>
20873
20874         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20875         when for_return is 2.
20876
20877 2011-03-28  Jeff Law  <law@redhat.com>
20878
20879         * var-tracking.c (canonicalize_values_mark): Delete unused
20880         lhs assignment.
20881         (canonicalize_values_star, set_variable_part): Likewise.
20882         (clobber_variable_part, delete_variable_part): Likewise.
20883
20884 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20885
20886         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20887
20888 2011-03-28  Martin Jambor  <mjambor@suse.cz>
20889
20890         * tree-inline.c (expand_call_inline): Do not check that destination
20891         node is analyzed.
20892         (optimize_inline_calls): Assert that destination node is analyzed.
20893         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20894         not call tree_lowering_passes.
20895         * cgraph.h (cgraph_analyze_function): Declare.
20896         * cgraphunit.c (cgraph_analyze_function): Make public.
20897
20898 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
20899
20900         * config/sparc/sparc-opts.h: New.
20901         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20902         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20903         (sparc_option_override): Store processor_type enumeration rather
20904         than string in cpu_default.  Remove name and enumeration from
20905         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
20906         without using sparc_select.  Use target_flags_explicit instead of
20907         fpu_option_set.
20908         * config/sparc/sparc.h (enum processor_type): Move to
20909         sparc-opts.h.
20910         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20911         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20912         HeaderInclude entry.
20913         (mcpu=, mtune=): Use Var and Enum.
20914         (sparc_processor_type): New Enum and EnumValue entries.
20915
20916 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20917             Iain Sandoe  <iains@gcc.gnu.org>
20918
20919         PR target/48245
20920         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20921
20922 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20923
20924         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20925         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20926         Insert new statements at it in lieu of STMT.
20927         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20928         * tree-vect-stmts.c (vectorizable_store): Likewise.
20929         (vectorizable_load): Likewise.
20930
20931 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
20932
20933         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20934         (divtf3): Ditto.
20935         (multf3): Ditto.
20936         (subtf3): Ditto.
20937
20938 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20939
20940         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20941         unaligned 256bit load/store.
20942         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20943         (*avx_movdqu<avxmodesuffix>): Likewise.
20944
20945 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20946
20947         PR target/48288
20948         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20949         * config/pa/pa.md (iordi3): Use new predicate in expander.
20950         (iorsi3): Likewise.
20951
20952 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
20953
20954         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20955         FUNCTION_VALUE_REGNO_P): Remove macros.
20956         * config/mips/mips-protos.h (mips_function_value): Remove.
20957         * config/mips/mips.c (mips_function_value): Rename to...
20958         (mips_function_value_1): ... this. Make static.  Handle receiving
20959         the function type in 'fn_decl_or_type' argument.
20960         (mips_function_value, mips_libcall_value,
20961         mips_function_value_regno_p): New function.
20962         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20963         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20964
20965 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20966
20967         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
20968         and -mavx256-split-unaligned-store.
20969         (ix86_option_override_internal): Split 32-byte AVX unaligned
20970         load/store by default.
20971         (ix86_avx256_split_vector_move_misalign): New.
20972         (ix86_expand_vector_move_misalign): Use it.
20973
20974         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
20975         -mavx256-split-unaligned-store.
20976
20977         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
20978         256bit load/store.  Generate unaligned store on misaligned memory
20979         operand.
20980         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
20981         256bit load/store.
20982         (*avx_movdqu<avxmodesuffix>): Likewise.
20983
20984         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
20985         -mavx256-split-unaligned-store.
20986
20987 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20988
20989         PR target/38598
20990         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
20991         Update commentary.
20992
20993 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20994
20995         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
20996         opno arguments with an expand_operand.  Use create_input_operand.
20997         (mips_prepare_builtin_target): Delete.
20998         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
20999         functions.
21000         (mips_expand_builtin_direct): Use create_output_operand and
21001         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21002         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21003         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21004
21005 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21006
21007         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21008         function.
21009         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21010
21011 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21012
21013         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21014         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21015         basic blocks and call commit_edge_insertions directly.
21016         (fixup_abnormal_edges): Move from here to...
21017         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21018         on the edges and return whether some have actually been inserted.
21019         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21020         compensation code.
21021
21022 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21023
21024         PR rtl-optimization/48144
21025         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21026         (merge_expr_data): ... here.
21027         (av_set_intersect): Rename to av_set_code_motion_filter.
21028         Update all callers.  Call merge_history_vect when an expression
21029         is found in both sets.
21030         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21031
21032 2011-03-26  Alan Modra  <amodra@gmail.com>
21033
21034         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21035         cmodel medium addresses.
21036         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21037         64-bit gpr loads and stores.
21038         (rs6000_secondary_reload_ppc64): New function.
21039         * config/rs6000/rs6000-protos.h: Declare it.
21040         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21041
21042 2011-03-26  Alan Modra  <amodra@gmail.com>
21043
21044         PR target/47487
21045         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21046         GNU Go in traceback table.
21047
21048 2011-03-25  Richard Henderson  <rth@redhat.com>
21049
21050         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21051         if there are exactly 6 operands.
21052         (set_storage_via_setmem): Similarly.
21053
21054 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21055
21056         * collect2.c (write_c_file_stat): Handle backslash
21057         as right-hand directory separator.
21058         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21059         checking just for slash.
21060         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21061         instead of checking for trailing slash.
21062         * gcc.c (record_temp_file): Use filename_cmp instead
21063         of strcmp.
21064         (do_spec_1): Likewise.
21065         (replace_outfile_spec_function): Likewise.
21066         (is_directory): Use filename_ncmp instead of strncmp.
21067         (print_multilib_info): Likewise.
21068         * gcov.c (find_source): Use filename_cmp instead
21069         instead of strcmp.
21070         (make_gcov_file_name): Fix order of slash/backslash
21071         checks.
21072         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21073         (add_standard_paths): Likewise.
21074         * mips-tfile.c (saber_stop): Handle backslash.
21075         * prefix.c (update_path): Use filename_ncmp instead of
21076         strncmp.
21077         * profile.c (output_location): Use filename_cmp instead
21078         of strcmp.
21079         * read-md.c (handle_toplevel_file): Handle backslash.
21080         * tlink.c (frob_extension):  Likewise.
21081         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21082         strcmp.
21083         * tree-dump.c (dequeue_and_dump): Handle backslash.
21084         * tree.c (get_file_function_name): Likewise.
21085         * gengtype.c (read_input_list): Likewise.
21086         (get_file_realbasename): Likewise.
21087         (get_output_file_with_visibility): Use filename_cmp
21088         instead of strcmp.
21089
21090 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21091
21092         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21093         case to VFPv1.
21094
21095 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21096
21097         * fold-const.c (expr_location_or): New function.
21098         (fold_truth_not_expr): Call it.
21099
21100 2011-03-25  Jeff Law  <law@redhat.com>
21101
21102         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21103         va_end.
21104         * c-family/c-common.c (def_fn_type): Likewise.
21105         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21106         * emit-rtl.c (gen_rtvec): Likewise.
21107         * lto/lto-lang.c (def_fn_type): Likewise.
21108
21109 2011-03-25  Richard Guenther  <rguenther@suse.de>
21110
21111         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21112         also generate copies.
21113         (fini_copy_prop): Handle constant values properly.
21114
21115 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21116
21117         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21118         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21119         (hash_loc_operands, compare_loc_operands): Handle
21120         DW_OP_GNU_entry_value.
21121
21122 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21123
21124         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21125         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21126         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21127         comment and use macro TARGET_64BIT_MS_ABI instead.
21128         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21129         and change default behavior for 32-bit MS_ABI.
21130         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21131         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21132         32-bit, too.
21133         (ix86_cfun_abi): Likewise.
21134         (ix86_maybe_switch_abi): Adjust comment.
21135         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21136         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21137         instead of checking for SYSV_ABI.
21138         (ix86_nsaved_sseregs): Likewise.
21139         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21140         to 16 bytes.
21141         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21142         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21143         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21144         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21145         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21146
21147 2011-03-25  Richard Guenther  <rguenther@suse.de>
21148
21149         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21150         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21151         (verify_gimple): Remove.
21152         * tree-cfg.c (verify_gimple_call): Merge verification
21153         from verify_stmts.
21154         (verify_gimple_phi): Merge verification from verify_stmts.
21155         (verify_gimple_label): New function.
21156         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21157         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21158         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21159         (verify_stmts): Rename to verify_gimple_in_cfg.
21160         (verify_gimple_in_cfg): New function.
21161         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21162         * tree-ssa.c (verify_ssa): Likewise.
21163         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21164
21165 2011-03-25  Richard Guenther  <rguenther@suse.de>
21166
21167         * passes.c (init_optimization_passes): Add FRE pass after
21168         early SRA.
21169
21170 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21171             Andrew Stubbs  <ams@codesourcery.com>
21172
21173         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21174         for Cortex-A8.
21175         (arm_movdi_vfp_cortexa8): New pattern.
21176         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21177         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21178         instructions when tuning for Cortex-A8.  Set attribute "arch".
21179         * config/arm/arm.md: Move include arm-tune.md up a bit.
21180         (define_attr "arch"): Add "onlya8" and "nota8" values.
21181         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21182
21183 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21184
21185         PR bootstrap/48282
21186         Revert:
21187         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21188
21189         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21190         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21191         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21192         * passes.c (init_optimization_passes): Move
21193         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21194
21195 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21196
21197         * c-typeck.c (comptypes_internal): Replace target
21198         hook call of comp_type_attributes by version in tree.c file.
21199         * gimple.c (gimple_types_compatible_p_1): Likewise.
21200         * tree-ssa.c (useless_type_conversion_p): Likewise.
21201         * tree.c (build_type_attribute_qual_variant): Likewise.
21202         (attribute_value_equal): New static helper function.
21203         (comp_type_attributes): New function.
21204         (merge_attributes): Use attribute_value_equal for comparison.
21205         (attribute_list_contained): Likewise.
21206         * tree.h (comp_type_attributes): New prototype.
21207
21208 2011-03-25  Richard Guenther  <rguenther@suse.de>
21209
21210         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21211         of complex types at -O0.
21212         (verify_gimple_assign_binary): Likewise.
21213         (verify_gimple_assign_ternary): Likewise.
21214
21215 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21216
21217         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21218         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21219
21220 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21221
21222         PR debug/48041
21223         * dwarf2out.c (output_abbrev_section): Only write table when
21224         abbrev_die_table_in_use > 1.
21225
21226 2011-02-24  Richard Henderson  <rth@redhat.com>
21227
21228         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21229         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21230         (alpha_expand_unaligned_load_words): Use extql.
21231         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21232         (emit_insxl): Handle all modes for consistency.
21233
21234 2011-02-24  Richard Henderson  <rth@redhat.com>
21235
21236         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21237         (alpha_expand_unaligned_load): Likewise.
21238         (alpha_expand_unaligned_store): Likewise.
21239         (alpha_expand_unaligned_load_words): Likewise.
21240         (alpha_expand_unaligned_store_words): Likewise.
21241         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21242         (alpha_split_lock_test_and_set_12): Likewise.
21243         (print_operand, alpha_fold_builtin_extxx): Likewise.
21244         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21245         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21246         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21247         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21248         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21249         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21250         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21251         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21252         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21253         (extwl, extll, extql): Similarly.
21254         (inswh, inslh, insqh): Similarly.
21255         (mskbl, mskwl, mskll, mskql): Similarly.
21256         (mskwh, msklh, mskqh): Similarly.
21257
21258 2011-02-24  Richard Henderson  <rth@redhat.com>
21259
21260         * config/alpha/alpha.md (attribute isa): Add er, ner.
21261         (attribute enabled): Handle them.
21262         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21263
21264 2011-02-24  Richard Henderson  <rth@redhat.com>
21265
21266         * config/alpha/alpha.md (attribute isa): Add vms.
21267         (attribute enabled): Handle it.
21268         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21269         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21270         (*movtf): Rename from *movtf_internal for consistency.
21271         (*movsi): Merge with *movsi_nt_vms.
21272         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21273         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21274         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21275         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21276
21277 2011-02-24  Richard Henderson  <rth@redhat.com>
21278
21279         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21280         (extendqisi2, extendhisi2): Likewise.
21281         (extendqidi2): Simplify BWX/non-BWX expansions.
21282         (extendhidi2): Similarly.
21283
21284 2011-02-24  Richard Henderson  <rth@redhat.com>
21285
21286         * config/alpha/alpha.md (attribute isa): New.
21287         (attribute enabled): New.
21288         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21289         (zero_extendqisi2, zero_extendqidi2): Similarly.
21290         (zero_extendhisi2, zero_extendhidi2): Similarly.
21291         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21292
21293 2011-02-24  Richard Henderson  <rth@redhat.com>
21294
21295         * config/alpha/predicates.md (input_operand): Revert last change;
21296         update comment to mention 32-bit VMS rather than Windows.
21297
21298 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21299
21300         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21301         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21302         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21303         * passes.c (init_optimization_passes): Move
21304         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21305
21306 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21307
21308         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21309
21310 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21311
21312         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21313         correctly.
21314
21315 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
21316
21317         PR debug/48204
21318         * simplify-rtx.c (simplify_const_unary_operation): Call
21319         real_convert when changing mode class with FLOAT_EXTEND.
21320
21321 2011-03-24  Nick Clifton  <nickc@redhat.com>
21322
21323         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21324         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21325         * config/rx/rx.c (rx_option_override): Set align_jumps,
21326         align_loops and align_labels if not set by the user.
21327         (rx_align_for_label): New function.
21328         (rx_max_skip_for_label): New function.
21329         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21330         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21331         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21332         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21333         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21334
21335 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21336
21337         PR rtl-optimization/48263
21338         * optabs.c (expand_binop_directly): Reinstate convert_modes code
21339         and original commutative_p handling.  Use maybe_gen_insn.
21340
21341 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21342
21343         * reload.c (find_reloads_subreg_address): Add address_reloaded
21344         parameter and return true there if the full address has been
21345         reloaded.
21346         (find_reloads_toplev): Pass address_reloaded flag.
21347         (find_reloads_address_1): Don't use address_reloaded parameter.
21348
21349 2011-03-24  Jeff Law  <law@redhat.com>
21350
21351         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21352         unused variable "ann".
21353         (remove_unused_locals): Likewise.
21354
21355         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21356         statement.
21357
21358         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21359         after it is freed.
21360
21361 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21362
21363         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21364         for invalid symbolic addresses.
21365         (s390_secondary_reload): Don't use s390_check_symref_alignment for
21366         larl operands.
21367
21368 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21369
21370         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21371         the argument in calls to fold_truth_not_expr.
21372
21373 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21374
21375         * tree.c (record_node_allocation_statistics): New function.
21376         (make_node_stat, copy_node_stat, build_string): Call it.
21377         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21378         (build1_stat, build_omp_clause): Likewise.
21379
21380 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21381
21382         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21383         last commit.
21384
21385 2011-03-24  Richard Guenther  <rguenther@suse.de>
21386
21387         PR tree-optimization/48271
21388         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21389         blocks that still exist.
21390
21391 2011-03-24  Richard Guenther  <rguenther@suse.de>
21392
21393         PR tree-optimization/48270
21394         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21395         not free datarefs before ddrs.
21396
21397 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21398
21399         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21400         from the address built for a reference with variable offset.
21401
21402 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21403
21404         PR target/48237
21405         * config/i386/i386.md (*movdf_internal_rex64): Do not split
21406         alternatives that can be handled with movq or movabsq insn.
21407         (*movdf_internal): Disable for !TARGET_64BIT.
21408         (*movdf_internal_nointeger): Ditto.
21409         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21410
21411 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21412
21413         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21414         (FUNCTION_ARG_ADVANCE): Likewise.
21415         * tm.texi.in: Change references to them to hook references.
21416         * tm.texi: Regenerate.
21417         * targhooks.c (default_function_arg): Eliminate check for target macro.
21418         (default_function_incoming_arg): Likewise.
21419         (default_function_arg_advance): Likewise.
21420         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21421         (function_arg_advance): Likewise.
21422         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21423
21424 2011-03-24  Richard Guenther  <rguenther@suse.de>
21425
21426         PR middle-end/48269
21427         * tree-object-size.c (addr_object_size): Do not double-account
21428         for MEM_REF offsets.
21429
21430 2011-03-24  Diego Novillo  <dnovillo@google.com>
21431
21432         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21433         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21434         (lto_input_data_block): Move from lto-opts.c.  Make extern.
21435         Update all users.
21436         (lto_input_string): Rename from input_string.  Make extern.
21437         Update all users.
21438         * lto-streamer-out.c (lto_output_string_with_length): Rename from
21439         output_string_with_length.
21440         Output 0 to indicate a non-NULL string.  Update all callers to
21441         not emit 0.
21442         (lto_output_string): Rename from output_string.  Make extern.
21443         Update all users.
21444         (lto_output_decl_state_streams): Make extern.
21445         (lto_output_decl_state_refs): Make extern.
21446         * lto-streamer.h (lto_input_string): Declare.
21447         (lto_input_data_block): Declare.
21448         (lto_output_string): Declare.
21449         (lto_output_string_with_length): Declare.
21450         (lto_output_decl_state_streams): Declare.
21451         (lto_output_decl_state_refs): Declare.
21452
21453 2011-03-24  Richard Guenther  <rguenther@suse.de>
21454
21455         PR tree-optimization/46562
21456         * tree.c (build_invariant_address): New function.
21457         * tree.h (build_invariant_address): Declare.
21458         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21459         a renamed function moved ...
21460         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21461         Take valueization callback parameter.
21462         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21463         * gimple-fold.h: New file.
21464         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21465         (ccp_fold, fold_const_aggregate_ref,
21466         fold_ctor_reference, fold_nonarray_ctor_reference,
21467         fold_array_ctor_reference, fold_string_cst_ctor_reference,
21468         get_base_constructor): Move ...
21469         * gimple-fold.c: ... here.
21470         (gimple_fold_stmt_to_constant_1): New function
21471         split out from ccp_fold.  Take a valueization callback parameter.
21472         Valueize all operands.
21473         (gimple_fold_stmt_to_constant): New wrapper function.
21474         (fold_const_aggregate_ref_1): New function split out from
21475         fold_const_aggregate_ref.  Take a valueization callback parameter.
21476         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21477         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21478         invariant POINTER_PLUS_EXPRs to invariant form.
21479         (vn_valueize): New function.
21480         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21481         * tree-vrp.c (vrp_valueize): New function.
21482         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21483         to fold statements to constants.
21484         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21485         function declarations.
21486         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21487         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21488
21489 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21490
21491         * config/h8300/predicates.md (jump_address_operand): Fix register
21492         mode check.
21493
21494 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21495
21496         * doc/invoke.texi (max-stores-to-sink): Document.
21497         * params.h (MAX_STORES_TO_SINK): Define.
21498         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21499         if either vectorization or if-conversion is disabled.
21500         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21501         tree-vect-data-refs.c vect_equal_offsets.
21502         (dr_equal_offsets_p): New function.
21503         (find_data_references_in_bb): Remove static.
21504         * tree-data-ref.h (find_data_references_in_bb): Declare.
21505         (dr_equal_offsets_p): Likewise.
21506         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21507         (vect_drs_dependent_in_basic_block): Update calls to
21508         vect_equal_offsets.
21509         (vect_check_interleaving): Likewise.
21510         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21511         (cond_if_else_store_replacement): Rename to...
21512         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21513         documentation.
21514         (cond_if_else_store_replacement): New function.
21515         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21516         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21517
21518 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21519
21520         PR target/46934
21521         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21522         to subtract lower bound instead of GEN_INT().
21523
21524 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21525
21526         PR other/48179
21527         PR other/48221
21528         PR other/48234
21529         * doc/extend.texi (Alignment): Move section to match order in TOC.
21530         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21531         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21532
21533 2011-03-23  Jeff Law  <law@redhat.com>
21534
21535         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21536         before removing the edge.
21537
21538         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21539         it may have been freed by redirect_branch_edge or
21540         redirect_edge_succ_nodup.
21541
21542 2011-03-23  Richard Guenther  <rguenther@suse.de>
21543
21544         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21545         (check_va_list_escapes): Likewise.
21546         (check_all_va_list_escapes): Likewise.
21547
21548 2011-03-23  Richard Guenther  <rguenther@suse.de>
21549
21550         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21551         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21552         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21553         (alias.o): Likewise.
21554         (ipa-type-escape.o): Remove.
21555         (ipa-struct-reorg.o): Likewise.
21556         (GTFILES): Remove ipa-struct-reorg.c.
21557         * alias.c: Do not include ipa-type-escape.h.
21558         * tree-ssa-alias.c: Likewise.
21559         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21560         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21561         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21562         and ipa-type-escape passes.
21563         * tree-pass.h (pass_ipa_type_escape): Remove.
21564         (pass_ipa_struct_reorg): Likewise.
21565         * ipa-struct-reorg.h: Remove.
21566         * ipa-struct-reorg.c: Likewise.
21567         * ipa-type-escape.h: Likewise.
21568         * ipa-type-escape.c: Likewise.
21569         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21570         (--param struct-reorg-cold-struct-ratio): Likewise.
21571         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21572         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21573         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21574
21575 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21576
21577         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21578         cpu attribute value.
21579         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21580         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21581         * config/s390/s390.c (processor_flags_table): New constant array.
21582         (s390_handle_arch_option): Remove.
21583         (s390_handle_option): Remove s390_handle_arch_option invocations
21584         and OPT_mwarn_framesize_ handling.
21585         (s390_option_override): Remove s390_handle_arch_option invocation.
21586         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21587         warnings.
21588         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21589         * config/s390/s390.opt (s390_tune, s390_arch)
21590         (march=): Replace s390_arch_option enum and values with
21591         processor_type.  Set variable name to s390_arch.  Set
21592         initialization value.
21593         (mtune=): Replace s390_arch_option with processor_type.  Set
21594         variable name to s390_tune.  Set initialization value.
21595
21596 2011-03-23  Julian Brown  <julian@codesourcery.com>
21597
21598         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21599         accesses which are not naturally aligned.
21600
21601 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21602
21603         PR target/47553
21604         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21605
21606 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21607
21608         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21609         parameter from "int" to "enum insn_code".
21610         (expand_operand_type): New enum.
21611         (expand_operand): New structure.
21612         (create_expand_operand): New function.
21613         (create_fixed_operand, create_output_operand): Likewise
21614         (create_input_operand, create_convert_operand_to): Likewise.
21615         (create_convert_operand_from, create_address_operand): Likewise.
21616         (create_integer_operand): Likewise.
21617         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21618         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21619         (expand_insn, expand_jump_insn): Likewise.
21620         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21621         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21622         (expand_movstr, expand_builtin___clear_cache): Likewise.
21623         (expand_builtin_lock_release): Likewise.
21624         * explow.c (allocate_dynamic_stack_space): Likewise.
21625         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21626         and use the default handling in that case.
21627         * expmed.c (check_predicate_volatile_ok): Delete.
21628         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21629         (emit_cstore): Likewise.
21630         * expr.c (emit_block_move_via_movmem): Likewise.
21631         (set_storage_via_setmem, expand_assignment): Likewise.
21632         (emit_storent_insn, try_casesi): Likewise.
21633         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21634         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21635         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21636         (expand_twoval_unop, expand_twoval_binop): Likewise.
21637         (expand_unop_direct, emit_indirect_jump): Likewise.
21638         (emit_conditional_move, vector_compare_rtx): Likewise.
21639         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21640         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21641         (expand_sync_lock_test_and_set): Likewise.
21642         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21643         (emit_unop_insn): Likewise.
21644         (expand_copysign_absneg): Change icode to an insn_code.
21645         (create_convert_operand_from_type): New function.
21646         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21647         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21648         (expand_insn, expand_jump_insn): Likewise.
21649         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21650         than const_int_operand for operand 2.
21651
21652 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21653
21654         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21655         if possible.
21656
21657 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21658
21659         * emit-rtl.c (emit_pattern_before_noloc): New function.
21660         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21661         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21662         (emit_pattern_after_noloc): New function.
21663         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21664         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21665
21666 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21667
21668         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21669         (__ffsDI2): Likewise.
21670
21671 2011-03-22  Richard Henderson  <rth@redhat.com>
21672
21673         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21674         of !TARGET_ABI_OPEN_VMS.
21675         (alpha_trampoline_init, alpha_start_function): Likewise.
21676         (alpha_expand_epilogue, alpha_file_start): Likewise.
21677         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21678         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21679         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21680         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21681         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21682
21683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21684
21685         * config/s390/s390-opts.h: New.
21686         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21687         s390_arch_flags, s390_warn_framesize, s390_stack_size,
21688         s390_stack_guard): Remove.
21689         (s390_handle_arch_option): Return void.  Take enum
21690         s390_arch_option value instead of string and searching array.
21691         (s390_handle_option): Don't assert that global structures are in
21692         use.  Access variables via opts pointer.  Use error_at.  Don't use
21693         sscanf for -mstack-guard= or -mstack-size=.  Update call to
21694         s390_handle_arch_option.
21695         (s390_option_override): Update call to s390_handle_arch_option.
21696         (s390_emit_prologue): Use %d format for s390_stack_size in
21697         diagnostic.  Use %wd for HOST_WIDE_INT.
21698         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21699         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21700         * config/s390/s390.opt (config/s390/s390-opts.h): New
21701         HeaderInclude entry.
21702         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21703         s390_arch_flags, s390_warn_framesize): New Variable entries.
21704         (s390_arch_option): New Enum and EnumValue entries.
21705         (march=): Use Enum instead of Var.
21706         (mstack-guard=, mstack-size=): Use UInteger and Var.
21707         (mtune=): Use Enum.
21708
21709 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21710
21711         * config/score/score.c (score_handle_option): Don't assert that
21712         global structures are in use.  Access target_flags via opts
21713         pointer.  Use value of -march= option to determine target_flags
21714         settings.
21715         * config/score/score.opt (march=): Use Enum.
21716         (score_arch): New Enum and EnumValue entries.
21717
21718 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21719
21720         * config/mep/mep.c (option_mtiny_specified): Remove.
21721         (mep_option_override): Move register handling for -mivc2 from
21722         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
21723         instead of option_mtiny_specified.
21724         (mep_handle_option): Access target_flags via opts pointer.  Don't
21725         assert that global structures are in use.  Defer part of -mivc2
21726         handling and move it to mep_option_override.
21727         * config/mep/mep.opt (IVC2): New Mask entry.
21728         (mivc2): Use Var and Defer instead of Mask.
21729
21730 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21731
21732         * config/v850/v850-opts.h: New.
21733         * config/v850/v850.c (small_memory): Replace with
21734         small_memory_physical_max array.  Make that array static const.
21735         (v850_handle_memory_option): Take integer value of argument.  Take
21736         gcc_options pointer, option text and location.  Return void.
21737         Update for changes to small memory structures.
21738         (v850_handle_option): Access target_flags via opts pointer.  Don't
21739         assert that global structures are in use.  Update calls to
21740         v850_handle_memory_option.
21741         (v850_encode_data_area): Update references to small memory settings.
21742         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21743         (enum small_memory_type): Move to v850-opts.h.
21744         * config/v850/v850.opt (config/v850/v850-opts.h): New
21745         HeaderInclude entry.
21746         (small_memory_max): New Variable entry.
21747         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
21748         (mtda, mzda): Likewise.
21749
21750 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21751
21752         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21753         pointer.  Don't assert that global structures are in use.
21754
21755 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21756
21757         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21758         via opts pointer.  Don't assert that global structures are in use.
21759
21760 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21761
21762         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21763         (munix=93): Use Var.
21764         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21765         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21766         * config/pa/pa-opts.h: New.
21767         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21768         (pa_handle_option): Don't assert that global structures are in
21769         use.  Access target_flags via opts pointer.  Don't handle
21770         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21771         OPT_munix_98 here.
21772         (pa_option_override): Handle deferred OPT_mfixed_range_.
21773
21774 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21775
21776         * config/mn10300/mn10300-opts.h: New.
21777         * config/mn10300/mn10300.c (mn10300_processor,
21778         mn10300_tune_string): Remove.
21779         (mn10300_handle_option): Don't assert that global structures are
21780         in use.  Access mn10300_processor via opts pointer.  Don't handle
21781         OPT_mtune_ here.
21782         * config/mn10300/mn10300.h (enum processor_type): Move to
21783         mn10300-opts.h.
21784         (mn10300_processor): Remove.
21785         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21786         HeaderInclude entry.
21787         (mn10300_processor): New Variable entry.
21788         (mtune=): Use Var.
21789
21790 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21791
21792         * config/microblaze/microblaze.c: Don't include opts.h.
21793         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21794         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21795         (mno-clearbss): Use Var and Warn.
21796
21797 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21798
21799         * config/m32r/m32r-opts.h: New.
21800         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21801         (m32r_handle_option): Don't assert that global structures are in
21802         use.  Access target_flags and m32r_cache_flush_func via opts
21803         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
21804         OPT_mno_flush_trap here.
21805         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21806         include of m32r-opts.h.
21807         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21808         HeaderInclude entry.
21809         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21810         (mmodel=): Use Enum and Var.
21811         (m32r_model): New Enum and EnumValue entries.
21812         (mno-flush-trap): Use Var.
21813         (msdata=): Use Enum and Var.
21814         (m32r_sdata): New Enum and EnumValue entries.
21815
21816 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21817
21818         * config/m32c/m32c.c: Don't include opts.h.
21819         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21820         m32c_handle_option): Remove.
21821         (m32c_option_override): Check global_options_set.x_target_memregs
21822         instead of target_memregs_set.
21823         * config/m32c/m32c.h (target_memregs): Remove.
21824         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21825         variable.
21826
21827 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21828
21829         * config/iq2000/iq2000-opts.h: New.
21830         * config/iq2000/iq2000.c: Don't include opts.h.
21831         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21832         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21833         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21834         HeaderInclude entry.
21835         (iq2000_tune): New Variable entry.
21836         (march=): Add comment.  Use Enum.
21837         (iq2000_arch): New Enum and EnumValue entries.
21838         (mcpu=): Use Enum and Var.
21839         (iq2000_tune): New Enum and EnumValue entries.
21840
21841 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21842
21843         * config/ia64/ia64-opts.h: New.
21844         * config/ia64/ia64.c (ia64_tune): Remove.
21845         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21846         here.  Use error_at.
21847         (ia64_option_override): Handle deferred OPT_mfixed_range_.
21848         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21849         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21850         HeaderInclude entry.
21851         (ia64_tune): New Variable entry.
21852         (mfixed-range=): Use Defer and Var.
21853         (mtune=): Use Enum and Var.
21854         (ia64_tune): New Enum and EnumValue entries.
21855
21856 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21857
21858         * config/frv/frv-opts.h: New.
21859         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21860         frv-opts.h.
21861         (frv_cpu_type): Remove.
21862         * config/frv/frv.c: Don't include opts.h.
21863         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21864         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21865         (frv_cpu_type): New Variable entry.
21866         (frv_cpu): New Enum and EnumValue entries.
21867
21868 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21869
21870         * config/cris/cris.c (cris_handle_option): Access target_flags via
21871         opts pointer.  Don't assert that global structures are in use.
21872         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21873         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21874
21875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21876
21877         * config/bfin/bfin-opts.h: New.
21878         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21879         bfin_si_revision, bfin_workarounds): Remove.
21880         (bfin_cpus): Make static const.
21881         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21882         not bfin_lib_id_given.
21883         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
21884         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21885         pointer. Use error_at.  Don't assert that global structures are in use.
21886         * config/bfin/bfin.h: Include bfin-opts.h.
21887         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21888         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21889         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21890         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21891         entries.
21892
21893 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21894
21895         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21896         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21897         or -msoft-float here.
21898         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21899         -msoft-float and -mhard-float.
21900         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21901         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21902         msoft-float.
21903         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21904         -msoft-float.
21905         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21906         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21907         not mhard-float.
21908         (LIBGCC_SPEC): Don't handle -msoft-float.
21909         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21910         -mhard-float.
21911         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21912         msoft-float.
21913         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21914         -mfloat-abi=*, not -msoft-float and -mhard-float.
21915         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21916         -msoft-float.
21917         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21918         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21919         mhard-float and msoft-float.
21920         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21921         mfloat-abi=soft in comments, not mhard-float and msoft-float.
21922         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21923         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21924         mhard-float.
21925         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21926         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21927         msoft-float.
21928         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21929         not mhard-float.
21930         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21931         not msoft-float.
21932
21933 2011-03-22  Richard Henderson  <rth@redhat.com>
21934
21935         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21936         TARGET_ABI_WINDOWS_NT.
21937         (alpha_output_function_end_prologue): Likewise.
21938         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21939         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21940         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21941         (trap, *movsi_nt_vms): Likewise.
21942         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21943         (*tablejump_osf_nt_internal): Remove.
21944         * config/alpha/predicates.md (input_operand): Only test Pmode.
21945
21946 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21947
21948         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21949         via opts pointer.  Use error_at.  Don't assert that global
21950         structures are in use.
21951
21952 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21953
21954         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21955         (ix86_handle_option): Access ix86_isa_flags and
21956         ix86_isa_flags_explicit via opts pointer.  Don't assert that
21957         global structures are in use.
21958         (ix86_function_specific_save, ix86_function_specific_restore):
21959         Update ix86_isa_flags_explicit field name.
21960         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21961         (ix86_isa_flags_explicit): Rename TargetSave entry to
21962         x_ix86_isa_flags_explicit.
21963
21964 2011-03-22  Richard Henderson  <rth@redhat.com>
21965
21966         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
21967         (alpha_option_override, direct_return): Likewise.
21968         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
21969         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
21970         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
21971         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21972         (alpha_expand_epilogue, alpha_end_function): Likewise.
21973         (alpha_init_libfuncs): Likewise.
21974         (struct machine_function): Remove unicosmk members.
21975         (print_operand) ['t']: Remove.
21976         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
21977         unicosmk_output_module_name, unicosmk_output_common,
21978         current_section_align, unicosmk_output_text_section_asm_op,
21979         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
21980         unicosmk_section_type_flags, unicosmk_unique_section,
21981         unicosmk_asm_named_section, unicosmk_insert_attributes,
21982         unicosmk_output_align, unicosmk_defer_case_vector,
21983         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
21984         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
21985         unicosmk_output_ssib, unicosmk_add_call_info_word,
21986         unicosmk_extern_head, unicosmk_output_default_externs,
21987         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
21988         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
21989         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
21990         * config/alpha/alpha-protos.h: Update.
21991         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
21992         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
21993         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
21994         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
21995         (*mulsi_se, mulvsi3): Likewise.
21996         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
21997         (*divmodsi_internal, call, call_value, realign): Likewise.
21998         (moddi3, umoddi3): Likewise; remove duplicate expander.
21999         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22000         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22001         (*movdi_nofix): Remove r/U alternative.
22002         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22003         * config/alpha/constraints.md ("U"): Remove.
22004         * config/alpha/predicates.md (call_operand"): Don't test
22005         TARGET_ABI_UNICOSMK.
22006
22007 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22008
22009         * target.def (handle_option): Take gcc_options and
22010         cl_decoded_option pointers and location_t.
22011         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22012         * doc/tm.texi: Regenerate.
22013         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22014         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22015         * lto-opts.c (lto_reissue_options): Generate option structure for
22016         targetm.handle_option call.
22017         * opts.c (target_handle_option): Update call to
22018         targetm.handle_option.  Remove assertions about values now passed
22019         down to hook.
22020         * targhooks.c (default_target_handle_option): New.
22021         * targhooks.h (default_target_handle_option): Declare.
22022         * config/alpha/alpha.c: Include opts.h.
22023         (alpha_handle_option): Update to new hook interface.
22024         * config/arm/arm.c: Include opts.h.
22025         (arm_handle_option): Update to new hook interface.
22026         * config/arm/t-arm (arm.o): Update dependencies.
22027         * config/bfin/bfin.c: Include opts.h.
22028         (bfin_handle_option): Update to new hook interface.
22029         * config/cris/cris.c: Include opts.h.
22030         (cris_handle_option): Update to new hook interface.
22031         * config/frv/frv.c: Include opts.h.
22032         (frv_handle_option): Update to new hook interface.
22033         * config/i386/i386.c: Include opts.h.
22034         (ix86_handle_option): Update to new hook interface.
22035         (ix86_valid_target_attribute_inner_p): Generate option structure
22036         for call to ix86_handle_option.
22037         * config/i386/t-i386 (i386.o): Update dependencies.
22038         * config/ia64/ia64.c: Include opts.h.
22039         (ia64_handle_option): Update to new hook interface.
22040         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22041         * config/iq2000/iq2000.c: Include opts.h.
22042         (iq2000_handle_option): Update to new hook interface.
22043         * config/m32c/m32c.c: Include opts.h.
22044         (m32c_handle_option): Update to new hook interface.
22045         * config/m32r/m32r.c: Include opts.h.
22046         (m32r_handle_option): Update to new hook interface.
22047         * config/m68k/m68k.c: Include opts.h.
22048         (m68k_handle_option): Update to new hook interface.
22049         * config/mep/mep.c: Include opts.h.
22050         (mep_handle_option): Update to new hook interface.
22051         * config/microblaze/microblaze.c: Include opts.h.
22052         (microblaze_handle_option): Update to new hook interface.
22053         * config/mips/mips.c: Include opts.h.
22054         (mips_handle_option): Update to new hook interface.
22055         * config/mn10300/mn10300.c: Include opts.h.
22056         (mn10300_handle_option): Update to new hook interface.
22057         * config/pa/pa.c: Include opts.h.
22058         (pa_handle_option): Update to new hook interface.
22059         * config/pdp11/pdp11.c: Include opts.h.
22060         (pdp11_handle_option): Update to new hook interface.
22061         * config/rs6000/rs6000.c: Include opts.h.
22062         (rs6000_handle_option): Update to new hook interface.
22063         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22064         * config/rx/rx.c: Include opts.h.
22065         (rx_handle_option): Update to new hook interface.
22066         * config/s390/s390.c: Include opts.h.
22067         (s390_handle_option): Update to new hook interface.
22068         * config/score/score.c: Include opts.h.
22069         (score_handle_option): Update to new hook interface.
22070         * config/sh/sh.c: Include opts.h.
22071         (sh_handle_option): Update to new hook interface.
22072         * config/sparc/sparc.c: Include opts.h.
22073         (sparc_handle_option): Update to new hook interface.
22074         * config/v850/v850.c: Include opts.h.
22075         (v850_handle_option): Update to new hook interface.
22076
22077 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22078
22079         * gcc.c (driver_unknown_option_callback): Only permit and save
22080         unknown -Wno- options.
22081         (driver_wrong_lang_callback): Save options directly instead of via
22082         driver_unknown_option_callback.
22083
22084 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22085
22086         * combine.c (simplify_set): Try harder to find the best CC mode when
22087         simplifying a nested COMPARE on the RHS.
22088
22089 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22090
22091         * config/alpha/gnu.h: Remove.
22092         * config/arc: Remove directory.
22093         * config/arm/netbsd.h: Remove.
22094         * config/arm/t-pe: Remove.
22095         * config/crx: Remove directory.
22096         * config/i386/netbsd.h: Remove.
22097         * config/m68hc11: Remove directory.
22098         * config/m68k/uclinux-oldabi.h: Remove.
22099         * config/mcore/mcore-pe.h: Remove.
22100         * config/mcore/t-mcore-pe: Remove.
22101         * config/netbsd-aout.h: Remove.
22102         * config/rs6000/gnu.h: Remove.
22103         * config/sh/sh-symbian.h: Remove.
22104         * config/sh/symbian-base.c: Remove.
22105         * config/sh/symbian-c.c: Remove.
22106         * config/sh/symbian-cxx.c: Remove.
22107         * config/sh/symbian-post.h: Remove.
22108         * config/sh/symbian-pre.h: Remove.
22109         * config/sh/t-symbian: Remove.
22110         * config/svr3.h: Remove.
22111         * config/vax/netbsd.h: Remove.
22112         * config.build: Don't handle i[34567]86-*-pe.
22113         * config.gcc: Remove handling of deprecations for most deprecated
22114         targets.
22115         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22116         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22117         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22118         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22119         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22120         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22121         Remove cases.
22122         * config.host: Don't handle i[34567]86-*-pe.
22123         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22124         (ASM_SPEC32): Don't handle -mcall-gnu.
22125         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22126         -mcall-gnu.
22127         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22128         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22129         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22130         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22131         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22132         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22133         conditional on SYMBIAN.
22134         * configure.ac: Don't handle powerpc*-*-gnu*.
22135         * configure: Regenerate.
22136         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22137         * doc/install-old.texi (m6811, m6812): Don't mention.
22138         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22139         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22140         (m68k-uclinuxoldabi): Don't mention.
22141         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22142         Remove.
22143         (-mcall-gnu): Remove.
22144         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22145         families): Remove constraint documentation.
22146
22147 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22148
22149         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22150         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22151         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22152
22153 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22154
22155         PR target/48226
22156         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22157         vector when peeking at the next token for vector, don't expand the
22158         keywords.
22159
22160 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22161
22162         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22163         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22164         * config/avr/avr.c (init_cumulative_args)
22165         (avr_function_arg_advance): Use it.
22166         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22167         sibcall epilogues.
22168         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22169         (avr_function_ok_for_sibcall): ...this new function.
22170         (avr_lookup_function_attribute1): New static Function.
22171         (avr_naked_function_p, interrupt_function_p)
22172         (signal_function_p, avr_OS_task_function_p)
22173         (avr_OS_main_function_p): Use it.
22174         * config/avr/avr.md ("sibcall", "sibcall_value")
22175         ("sibcall_epilogue"): New expander.
22176         ("*call_insn", "*call_value_insn"): New insn.
22177         ("call_insn", "call_value_insn"): Remove
22178         ("call", "call_value", "epilogue"): Change expander to handle
22179         sibling calls.
22180
22181 2011-03-21  Nick Clifton  <nickc@redhat.com>
22182
22183         * doc/invoke.texi (Overall Options): Move closing brace to end of
22184         options list.
22185         (Optimization Options): Add missing @gol.
22186         (Directory Options): Likewise.
22187         (i386 and x86-64 Options): Likewise.
22188         (RS6000 and PowerPC Options): Likewise.
22189         (i386 and x86-64 Windows Options): Likewise.
22190         (V850 Options): Add text missing from descriptions.
22191
22192 2011-03-22  Richard Henderson  <rth@redhat.com>
22193
22194         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22195         (avr_incoming_return_addr_rtx): New.
22196         (emit_push_byte): New.
22197         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22198         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22199         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22200         (emit_pop_byte): New.
22201         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22202         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22203         (INCOMING_RETURN_ADDR_RTX): New.
22204         (INCOMING_FRAME_SP_OFFSET): New.
22205         (ARG_POINTER_CFA_OFFSET): New.
22206         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22207         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22208         (pophi): Remove.
22209
22210         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22211
22212 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22213
22214         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22215         (FUNCTION_ARG_ADVANCE): Likewise.
22216         * tm.texi.in: Change references to them to hook references.
22217         * tm.texi: Regenerate.
22218         * targhooks.c (default_function_arg): Eliminate check for target
22219         macro.
22220         (default_function_incoming_arg): Likewise.
22221         (default_function_arg_advance): Likewise.
22222         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22223         (function_arg_advance): Likewise.
22224         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22225
22226 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22227
22228         * tree.c (build_call_1): New function.
22229         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22230
22231 2011-03-22  Richard Guenther  <rguenther@suse.de>
22232
22233         PR tree-optimization/48228
22234         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22235         for single-arg PHIs.
22236
22237 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22238
22239         PR rtl-optimization/48143
22240         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22241         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22242         sse2_cvtps2pd): Likewise.
22243
22244 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22245
22246         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22247
22248 2011-03-22  Richard Guenther  <rguenther@suse.de>
22249
22250         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22251         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22252         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22253         and REALIGN_LOAD_EXPR.
22254         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22255         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22256         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22257         DOT_PROD_EXPR case ...
22258         (expand_expr_real_2): ... here.
22259         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22260         and REALIGN_LOAD_EXPR.
22261         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22262         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22263         (vect_create_epilog_for_reduction): Likewise.
22264         (vectorizable_reduction): Likewise.
22265         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22266         * tree-vect-stmts.c (vectorizable_load): Likewise.
22267
22268 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22269
22270         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22271
22272 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22273
22274         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22275         handling for PLTOFF/GOTOFF.
22276
22277 2011-03-22  Nick Clifton  <nickc@redhat.com>
22278
22279         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22280         trailing backslash from the end of the macro definition.
22281
22282 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22283
22284         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22285         and PLT unspecs.
22286
22287 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22288
22289         * expr.h (prepare_operand): Move to...
22290         * optabs.h (prepare_operand): ...here and change the insn code
22291         parameter from "int" to "enum insn_code".
22292         (insn_operand_matches): Declare.
22293         * expr.c (init_expr_target): Use insn_operand_matches.
22294         (compress_float_constant): Likewise.
22295         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22296         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22297         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22298         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22299         Likewise.
22300         (gen_cond_trap): Likewise.
22301         (prepare_operand): Likewise.  Change icode to an insn_code.
22302         (insn_operand_matches): New function.
22303         * reload.c (find_reloads_address_1): Use insn_operand_matches.
22304         * reload1.c (gen_reload): Likewise.
22305         * targhooks.c (default_secondary_reload): Likewise.
22306
22307 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22308
22309         * config/alpha/alpha.md (unspec): New define_c_enum.
22310         (unspecv): Ditto.
22311
22312 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22313
22314         PR debug/48214
22315         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22316         between a call and its CALL_ARG_LOCATION note.
22317
22318 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
22319
22320         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22321
22322 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22323
22324         PR c/42544
22325         PR c/48197
22326         * c-common.c (shorten_compare): If primopN is first sign-extended
22327         to opN and then zero-extended to result type, set primopN to opN.
22328
22329 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
22330
22331         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22332         for barrier handlers.
22333
22334 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22335
22336         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22337         UNSPEC constants to be in the unspec enumeration, and redefine
22338         all UNSPECV constants to be in the unspecv enumeration, so that
22339         dumps print which unspec/unspec_volatile this is.
22340         * config/rs6000/vector.md (UNSPEC_*): Ditto.
22341         * config/rs6000/paired.md (UNSPEC_*): Ditto.
22342         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22343         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22344         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22345
22346         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22347         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22348         UNSPECV_LWSYNC, since these are used as unspec_volatile.
22349         * config/rs6000/sync.md (isync, lwsync): Ditto.
22350
22351 2011-03-21  Richard Guenther  <rguenther@suse.de>
22352
22353         * params.def (lto-min-partition): Fix typo.
22354
22355 2011-03-21  Richard Guenther  <rguenther@suse.de>
22356
22357         PR c/47939
22358         * c-decl.c (grokdeclarator): Drop to the main variant only
22359         for array types.  Drop flag_gen_aux_info check.
22360
22361 2011-03-21  Richard Guenther  <rguenther@suse.de>
22362
22363         PR translation/47911
22364         * params.def (lto-partitions): Fix typo.
22365         (lto-min-partition): Fix wording.
22366
22367 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
22368
22369         * config/rs6000/t-freebsd: Remove duplication from file.
22370
22371 2011-03-21  Richard Guenther  <rguenther@suse.de>
22372
22373         PR middle-end/47661
22374         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22375
22376 2011-03-21  Richard Guenther  <rguenther@suse.de>
22377
22378         PR lto/48210
22379         * params.def (lto-partitions): Require at least 1 partition.
22380
22381 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22382
22383         * gthr-solaris.h: Remove.
22384         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22385         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22386         (LIB_SPEC): Likewise.
22387         * config/sol2.opt (threads): Remove.
22388         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22389         (sparc*-*-solaris2*): Likewise.
22390         * configure.ac (enable_threads): Enable solaris support.
22391         * configure: Regenerate.
22392         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22393         * doc/install.texi (Configuration, --enable-threads=lib): Remove
22394         solaris.
22395
22396 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22397
22398         * config.gcc: Obsolete *-*-solaris2.8*.
22399         * doc/install.texi (Specific, *-*-solaris2*): Document it.
22400
22401 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22402
22403         PR bootstrap/48135
22404         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22405         reference.  Solaris 8 perl works.
22406
22407 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22408
22409         PR bootstrap/48135
22410         * doc/install.texi (Prerequisites): Move jar etc. up.
22411         Explain support library version requirements.
22412
22413 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22414
22415         PR bootstrap/48135
22416         * doc/install.texi (Prerequisites): Move Perl to build
22417         requirements.  Always necessary on Solaris 2 with Sun ld.
22418
22419 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22420
22421         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22422         binutils 2.21.
22423         (Specific, i?86-*-solaris2.[89]): Likewise.
22424         (Specific, i?86-*-solaris2.10): Likewise.
22425         (Specific, mips-sgi-irix6): Likewise.
22426         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22427         Update for binutils 2.21.
22428
22429 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22430
22431         * configure.ac (gcc_cv_lto_plugin): Fix typo.
22432         Allow -fuse-linker-plugin for non-default plugin linker.
22433         * configure: Regenerate.
22434
22435 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22436
22437         PR bootstrap/48167
22438         * gengtype.c (files_rules): Added rule for cp/parser.h.
22439
22440 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22441
22442         PR target/48213
22443         * config/s390/s390.c (s390_delegitimize_address): Don't call
22444         lowpart_subreg if orig_x has BLKmode.
22445
22446 2011-03-21  Kai Tietz  <ktietz@redhat.com>
22447
22448         PR target/12171
22449         * doc/plugins.texi: Adjust documentation for plugin register_callback.
22450         * tree.h (attribute_spec): Add new member affects_type_identity.
22451         * attribs.c (empty_attribute_table): Adjust attribute_spec
22452         initializers.
22453         * config/alpha/alpha.c: Likewise.
22454         * config/arc/arc.c: Likewise.
22455         * config/arm/arm.c: Likewise.
22456         * config/avr/avr.c: Likewise.
22457         * config/bfin/bfin.c: Likewise.
22458         * config/crx/crx.c: Likewise.
22459         * config/darwin.h: Likewise.
22460         * config/h8300/h8300.c: Likewise.
22461         * config/i386/cygming.h: Likewise.
22462         * config/i386/i386.c: Likewise.
22463         * config/ia64/ia64.c: Likewise.
22464         * config/m32c/m32c.c: Likewise.
22465         * config/m32r/m32r.c: Likewise.
22466         * config/m68hc11/m68hc11.c: Likewise.
22467         * config/m68k/m68k.c: Likewise.
22468         * config/mcore/mcore.c: Likewise.
22469         * config/mep/mep.c: Likewise.
22470         * config/microblaze/microblaze.c: Likewise.
22471         * config/mips/mips.c: Likewise.
22472         * config/rs6000/rs6000.c: Likewise.
22473         * config/rx/rx.c: Likewise.
22474         * config/sh/sh.c: Likewise.
22475         * config/sol2.h: Likewise.
22476         * config/sparc/sparc.c: Likewise.
22477         * config/spu/spu.c: Likewise.
22478         * config/stormy16/stormy16.c: Likewise.
22479         * config/v850/v850.c: Likewise.
22480
22481 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22482
22483         * simplify-rtx.c (simplify_binary_operation_1): Handle
22484         (xor (and A B) C) case when B and C are both constants.
22485
22486 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22487
22488         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22489
22490 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22491
22492         PR bootstrap/48168
22493         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22494
22495 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22496
22497         PR rtl-optimization/48156
22498         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22499         assume df and df_lr are not NULL.
22500
22501 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22502
22503         PR debug/48023
22504         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22505         between a call and its CALL_ARG_LOCATION note.
22506
22507 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22508
22509         PR debug/48178
22510         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22511         between a call and its corresponding CALL_ARG_LOCATION note.
22512
22513 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22514
22515         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22516         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22517         * haifa-sched.c (setup_ref_regs): Ditto.
22518         * caller-save.c (add_used_regs_1): Ditto.
22519         * dse.c (look_for_hardregs): Ditto.
22520         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22521         * sched-rgn.c (check_live_1): Ditto.
22522
22523 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22524
22525         * c-decl.c (diagnose_mismatched_decls): Give an error for
22526         redefining a typedef with variably modified type.
22527
22528 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22529
22530         * c-decl.c (grokfield): Don't allow typedefs for structures or
22531         unions with no tag by default.
22532         * doc/extend.texi (Unnamed Fields): Update.
22533
22534 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22535
22536         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22537         Rewrite using indirect functions.
22538         (lwp_slwpcb): Ditto.
22539         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22540         (avx_vinsertf128<mode>): Ditto.
22541
22542 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22543
22544         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22545         unspecs.
22546
22547 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22548
22549         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22550         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22551
22552 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22553
22554         PR rtl-optimization/48170
22555         * gcse.c (hoist_code): Remove bogus asserts.
22556
22557 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22558
22559         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22560         computation for prologue/epilogue.
22561
22562 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22563
22564         * Makefile.in (check-consistency): Remove.
22565
22566 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22567
22568         PR debug/48176
22569         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22570         arange_table_in_use is 0, but either text_section_used or
22571         cold_text_section_used is true.  Don't call it if
22572         !info_section_emitted.
22573
22574 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22575
22576         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22577         FUNCTION_VALUE_REGNO_P): Remove.
22578         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22579         Remove.
22580         * config/avr/avr.c (avr_ret_register): Make static inline.
22581         (avr_function_value_regno_p): New function.
22582         (avr_libcall_value): Make static. Add 'func' argument.
22583         (avr_function_value): Make static. Rename 'func' argument to
22584         'fn_decl_or_type', forward it to avr_libcall_value. Call
22585         avr_ret_register function instead of RET_REGISTER macro.
22586         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22587
22588 2011-03-18  Jason Merrill  <jason@redhat.com>
22589
22590         PR c++/23372
22591         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22592
22593 2011-03-18  Richard Guenther  <rguenther@suse.de>
22594
22595         * doc/install.texi (--enable-gold): Remove.
22596         (--with-plugin-ld): Document.
22597         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22598
22599 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22600
22601         PR middle-end/47790
22602         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22603         again after expansion changes.
22604
22605 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22606
22607         * combine.c (try_combine): Do simplification only call of
22608         subst() on i2 even when i1 is present. Update comments.
22609
22610 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22611
22612         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22613         and UNSPEC_PCREL_SYMOFF.
22614
22615 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22616
22617         * config/s390/s390.md: Use define_c_enum for the unspec constant
22618         definitions.
22619
22620 2011-03-18  Richard Henderson  <rth@redhat.com>
22621             Jakub Jelinek  <jakub@redhat.com>
22622
22623         PR bootstrap/48161
22624         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22625         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22626
22627 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22628
22629         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22630         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22631         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22632         Change return type to bool.
22633         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22634
22635 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22636
22637         PR debug/48163
22638         * var-tracking.c (prepare_call_arguments): If CALL target
22639         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22640         pc instead of looking it up using cselib_lookup and use
22641         Pmode for it if x has VOIDmode.
22642         * dwarf2out.c (gen_subprogram_die): If also both first and
22643         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22644
22645         PR debug/48163
22646         * function.c (assign_parms): For data.passed_pointer parms
22647         use MEM of data.entry_parm instead of data.entry_parm itself
22648         as DECL_INCOMING_RTL.
22649         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22650         also when passed and declared mode is the same, DECL_RTL
22651         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22652         a MEM too.
22653
22654 2011-03-16  Jeff Law  <law@redhat.com>
22655
22656         PR rtl-optimization/37273
22657         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22658         handle them like argument loads from stack slots.  Do not double
22659         count memory for memory constants and argument loads from stack slots.
22660
22661 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22662
22663         PR debug/48160
22664         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22665
22666 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22667
22668         PR target/48171
22669         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22670
22671 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22672
22673         PR bootstrap/48153
22674         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22675         if dwarf_strict.
22676         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22677         Clear call_arg_locations and call_arg_loc_last always.
22678
22679         PR middle-end/48152
22680         * var-tracking.c (prepare_call_arguments): If argument needs to be
22681         passed by reference, adjust argtype and mode.
22682
22683 2011-03-17  Richard Guenther  <rguenther@suse.de>
22684
22685         PR middle-end/48134
22686         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22687         a value make sure to fold the statement.
22688
22689 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
22690
22691         PR target/43872
22692         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22693         return condition with !cfun->calls_alloca.
22694
22695 2011-03-17  Richard Guenther  <rguenther@suse.de>
22696
22697         PR bootstrap/48148
22698         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22699         origin for decls in other ltrans units.
22700         (input_varpool_node): Likewise.
22701
22702 2011-03-17  Richard Guenther  <rguenther@suse.de>
22703
22704         PR middle-end/48165
22705         * tree-object-size.c (compute_object_offset): Properly return
22706         the offset operand of MEM_REFs as sizetype.
22707
22708 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22709
22710         PR rtl-optimization/48141
22711         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22712         * dse.c: Include params.h.
22713         (active_local_stores_len): New variable.
22714         (add_wild_read, dse_step1): Clear it when setting active_local_stores
22715         to NULL.
22716         (record_store, check_mem_read_rtx): Decrease it when removing
22717         from the chain.
22718         (scan_insn): Likewise.  Increase it when adding to chain, if it
22719         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22720         set active_local_stores to NULL before the addition.
22721         * Makefile.in (dse.o): Depend on $(PARAMS_H).
22722
22723         PR rtl-optimization/48141
22724         * dse.c (record_store): If no positions are needed in an insn
22725         that cannot be deleted, at least unchain it from active_local_stores.
22726
22727 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
22728
22729         PR debug/47510
22730         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22731         (lookup_type_die_strip_naming_typedef): ... here.
22732         (get_context_die): Use it.
22733         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22734         the anonymous struct named by the naming typedef.
22735
22736 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22737
22738         PR target/48154
22739         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22740         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22741
22742 2011-03-16  Jeff Law  <law@redhat.com>
22743
22744         * tree-vrp.c (identify_jump_threads): Slightly simplify type
22745         check for operands of conditional.  Allow type to be a pointer.
22746
22747 2011-03-16  Richard Guenther  <rguenther@suse.de>
22748
22749         PR tree-optimization/48149
22750         * fold-const.c (fold_binary_loc): Fold
22751         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22752
22753 2011-03-16  Richard Guenther  <rguenther@suse.de>
22754
22755         PR tree-optimization/26134
22756         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22757         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22758         (non_rewritable_mem_ref_base): Handle complex type component
22759         accesses, constrain offsets for vector and complex extracts
22760         more properly.
22761
22762 2011-03-16  Richard Guenther  <rguenther@suse.de>
22763
22764         PR tree-optimization/48146
22765         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22766         operands avoiding the need for renaming.
22767
22768 2011-03-16  Richard Guenther  <rguenther@suse.de>
22769
22770         * gimple-fold.c (maybe_fold_reference): Open-code relevant
22771         constant folding.  Move MEM_REF canonicalization first.
22772         Rely on fold_const_aggregate_ref for initializer folding.
22773         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22774
22775 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22776
22777         PR middle-end/48136
22778         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22779         arg0/arg1 or their arguments are always fold converted to matching
22780         types.
22781
22782         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22783         to nargs.
22784
22785 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22786
22787         PR lto/46944
22788         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22789         Handle in-tree gold.
22790         (ld_vers): Extract binutils version for gold.
22791         (gcc_cv_ld_hidden): Handle gold here.
22792         (gcc_cv_lto_plugin): Determine level of linker plugin support.
22793         * configure: Regenerate.
22794         * config.in: Regenerate.
22795         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22796         -fuse-linker-plugin otherwise.
22797         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
22798         (LINK_COMMAND_SPEC): Use it.
22799         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22800
22801 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22802
22803         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22804         * calls.c: Remove debug.h include.
22805         (emit_call_1): Don't call virtual_call_token debug hook.
22806         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22807         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22808         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22809         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22810         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22811         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22812         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22813         dwarf2out_virtual_call): Remove.
22814         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22815         copy_call_info and virtual_call hooks.
22816         (dwarf2out_init): Don't initialize vcall_insn_table,
22817         debug_dcall_section and debug_vcall_section.
22818         (prune_unused_types): Don't mark nodes from dcall_table.
22819         (dwarf2out_finish): Don't output dcall or vcall tables.
22820         * final.c (final_scan_insn): Don't call direct_call or
22821         virtual_call debug hooks.
22822         * debug.h (struct gcc_debug_hooks): Remove direct_call,
22823         virtual_call_token, copy_call_info and virtual_call hooks.
22824         (debug_nothing_uid): Remove prototype.
22825         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22826         copy_call_info and virtual_call hooks.
22827         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22828         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22829         * debug.c (do_nothing_debug_hooks): Likewise.
22830         (debug_nothing_uid): Remove.
22831         * doc/invoke.texi (-fenable-icf-debug): Remove.
22832         * common.opt (-fenable-icf-debug): Likewise.
22833
22834         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22835         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22836         call's MEM.  Handle functions returning aggregate through a hidden
22837         first pointer.  For virtual calls add clobbered pc to call arguments
22838         chain.
22839         * dwarf2out.c (gen_subprogram_die): Emit
22840         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22841         can't be emitted.
22842
22843         PR debug/45882
22844         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22845         * rtl.h (ENTRY_VALUE_EXP): Define.
22846         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22847         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22848         * print-rtl.c (print_rtx): Likewise.
22849         * gengtype.c (adjust_field_rtx_def): Likewise.
22850         * var-tracking.c (vt_add_function_parameter): Adjust
22851         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22852         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22853         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22854         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22855         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22856
22857         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22858         Call var_location debug hook even on CALL_INSNs.
22859         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22860         * rtl.def (ENTRY_VALUE): New.
22861         * dwarf2out.c: Include cfglayout.h.
22862         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22863         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22864         (struct call_arg_loc_node): New type.
22865         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22866         tail_call_site_count): New variables.
22867         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22868         DW_TAG_GNU_call_site_parameter.
22869         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22870         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22871         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22872         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22873         and DW_AT_GNU_all_source_call_sites.
22874         (mem_loc_descriptor): Handle ENTRY_VALUE.
22875         (add_src_coords_attributes): Don't add enything if
22876         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22877         (dwarf2out_abstract_function): Save and clear call_arg_location,
22878         call_site_count and tail_call_site_count around dwarf2out_decl call.
22879         (gen_call_site_die): New function.
22880         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22881         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22882         (dwarf2out_function_decl): Clear call_arg_locations,
22883         call_arg_loc_last, set call_site_count and tail_call_site_count
22884         to -1 and free block_map.
22885         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22886         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
22887         followed by any real instructions.
22888         (dwarf2out_begin_function): Set call_site_count and
22889         tail_call_site_count to 0.
22890         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22891         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22892         attempt to force a DIE for it and worst case remove the attribute.
22893         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22894         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22895         the decl itself.
22896         * var-tracking.c: Include tm_p.h.
22897         (vt_stack_adjustments): For calls call note_register_arguments.
22898         (argument_reg_set): New variable.
22899         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22900         ensure the VALUE is resolved.
22901         (call_arguments): New variable.
22902         (prepare_call_arguments): New function.
22903         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22904         (struct expand_loc_callback_data): Add ignore_cur_loc field.
22905         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22906         always use the best expression.
22907         (vt_expand_loc): Add ignore_cur_loc argument.
22908         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22909         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22910         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22911         note for all calls.
22912         (vt_add_function_parameter): Use cselib_lookup_from_insn.
22913         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22914         argument.  Don't call cselib_preserve_only_values and
22915         cselib_reset_table.
22916         (note_register_arguments): New function.
22917         (vt_initialize): Compute argument_reg_set.  Call
22918         vt_add_function_parameters before processing basic blocks instead of
22919         afterwards.  For calls call prepare_call_arguments before calling
22920         cselib_process_insn.
22921         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22922         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22923         (var-tracking.o): Depend on $(TM_P_H).
22924         * cfglayout.h (insn_scope): New prototype.
22925         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22926         * cfglayout.c (insn_scope): No longer static.
22927         * insn-notes.def (CALL_ARG_LOCATION): New.
22928         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22929         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22930         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22931         nothing for DECL_EXTERNAL BLOCK_VARS.
22932
22933 2011-03-16  Alan Modra  <amodra@gmail.com>
22934
22935         PR target/45844
22936         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22937         create invalid offset address for vsx splat insn.
22938         * config/rs6000/predicates.md (splat_input_operand): New.
22939         * config/rs6000/vsx.md (vsx_splat_*): Use it.
22940
22941 2011-03-15  Xinliang David Li  <davidxl@google.com>
22942
22943         PR c/47837
22944         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22945         (normalize_preds): New function.
22946         (is_use_properly_guarded): Normalize def predicates.
22947
22948 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22949
22950         PR target/46788
22951         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22952         in the output template.
22953
22954 2011-03-15  Richard Guenther  <rguenther@suse.de>
22955
22956         PR middle-end/47650
22957         * tree-pretty-print.c (dump_function_declaration): Properly
22958         dump unprototyped and varargs function types.
22959
22960 2011-03-15  Richard Guenther  <rguenther@suse.de>
22961
22962         PR tree-optimization/13954
22963         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
22964         and friends.
22965
22966 2011-03-15  Richard Guenther  <rguenther@suse.de>
22967
22968         PR tree-optimization/48037
22969         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
22970         selects into BIT_FIELD_REFs.
22971         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
22972         vector select.
22973
22974 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
22975
22976         PR tree-optimization/48129
22977         * builtins.c (fold_builtin_snprintf): Convert to type of
22978         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
22979         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
22980
22981 2011-03-15  Richard Guenther  <rguenther@suse.de>
22982
22983         PR tree-optimization/41490
22984         * tree-ssa-dce.c (propagate_necessity): Handle returns without
22985         value but with VUSE.
22986         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
22987         return statements.
22988         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
22989         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
22990         * tree-tailcall.c (find_tail_calls): Ignore returns.
22991
22992 2011-03-15  Richard Guenther  <rguenther@suse.de>
22993
22994         PR middle-end/48031
22995         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
22996         or variable-indexed array accesses when in gimple form.
22997
22998 2011-03-15  Richard Guenther  <rguenther@suse.de>
22999
23000         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23001
23002 2011-03-15  Alan Modra  <amodra@gmail.com>
23003
23004         PR target/48032
23005         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23006         presume symbol_refs without a symbol_ref_decl are suitably
23007         aligned, nor other trees we may see here.  Handle anchor symbols.
23008         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23009         Check cmodel=medium addresses.  Adjust all calls.
23010         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23011         creating cmodel=medium optimized access to locals.
23012         * config/rs6000/constraints.md (R): Pass QImode to
23013         legitimate_constant_pool_address_p.
23014         * config/rs6000/predicates.md (input_operand): Pass mode to
23015         legitimate_constant_pool_address_p.
23016         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23017         Update prototype.
23018
23019 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23020
23021         PR target/48053
23022         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23023         64-bit constants being loaded into registers other than GPRs such
23024         as loading 0 into a VSX register.
23025
23026 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23027
23028         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23029
23030 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23031
23032         PR middle-end/47917
23033         * builtins.c (fold_builtin_snprintf): New function.
23034         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23035         (fold_builtin_4): Likewise.
23036
23037         PR middle-end/38878
23038         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23039         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23040         and C - X == X also strip nops from +/-/p+ operand.
23041         When optimizing -X == C, fold C to arg0's type.
23042
23043         PR debug/47946
23044         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23045         emit it as add_AT_int instead of add_AT_unsigned.
23046
23047 2011-03-14  Tom Tromey  <tromey@redhat.com>
23048
23049         * unwind-dw2.c: Include sys/sdt.h if it exists.
23050         (_Unwind_DebugHook): Use STAP_PROBE2.
23051         * config.in, configure: Rebuild.
23052         * configure.ac: Check for sys/sdt.h.
23053
23054 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23055
23056         * config/i386/i386.md (ROUND_FLOOR): New constant.
23057         (ROUND_CEIL): Ditto.
23058         (ROUND_TRUNC): Ditto.
23059         (ROUND_MXCSR): Ditto.
23060         (ROUND_NO_EXC): Ditto.
23061         (rint<mode>2): Use new defines instead of numerical constants.
23062         (floor<mode>2): Ditto.
23063         (ceil<mode>2): Ditto.
23064         (btrunc<mode>2): Ditto.
23065         * config/i386/i386-builtin-types.def: Define ROUND function type
23066         aliases.
23067         * config/i386/i386.c (enum ix86_builtins): Add
23068         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23069         (struct builtin_description): Add
23070         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23071         (ix86_expand_sse_round): New static function.
23072         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23073         function types.
23074         (ix86_builtin_vectorized_function): Handle
23075         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23076
23077 2011-03-14  Tom Tromey  <tromey@redhat.com>
23078
23079         * c-parser.c (c_parser_asm_string_literal): Clear
23080         warn_overlength_strings.
23081
23082 2011-03-14  Tom Tromey  <tromey@redhat.com>
23083
23084         * c-parser.c (disable_extension_diagnostics): Save
23085         warn_overlength_strings.
23086         (restore_extension_diagnostics): Restore warn_overlength_strings.
23087
23088 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23089
23090         * BASE-VER: Change to 4.7.0.
23091
23092 2011-03-14  Richard Guenther  <rguenther@suse.de>
23093
23094         PR middle-end/48098
23095         * tree.c (build_vector_from_val): Adjust assert to requirements
23096         and reality.
23097
23098 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23099
23100         PR bootstrap/48102
23101         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23102
23103 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23104
23105         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23106         terms of target_flags_explicit. Adjust copyright year.
23107
23108         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23109         * config/rs6000/t-freebsd: New file. Add override for
23110         LIB2FUNCS_EXTRA.
23111
23112 2011-03-13  Chris Demetriou  <cgd@google.com>
23113
23114         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23115         (-fno-diagnostics-show-option): this, to reflect current default.
23116         (-Werror=): Update text about -fno-diagnostics-show-option.
23117
23118 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23119
23120         PR target/48053
23121         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23122         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23123         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23124         mode is not V2DImode or V2DFmode.
23125         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23126         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23127         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23128         registers to 0.
23129         (movdi_internal64): Likewise.
23130
23131 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23132
23133         PR tree-optimization/47127
23134         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23135         parameter.
23136         (set_cloog_options): Same.
23137         (scop_to_clast): Same.
23138         (print_clast_stmt): Do not call cloog_state_malloc and
23139         cloog_state_free.
23140         (print_generated_program): Same.
23141         (gloog): Same.
23142         * graphite-clast-to-gimple.h (cloog_state): Declared.
23143         (scop_to_clast): Adjust declaration.
23144         * graphite.c (cloog_state): Defined here.
23145         (graphite_initialize): Call cloog_state_malloc.
23146         (graphite_finalize): Call cloog_state_free.
23147
23148 2011-03-11  Jason Merrill  <jason@redhat.com>
23149
23150         * attribs.c (lookup_attribute_spec): Take const_tree.
23151         * tree.h: Adjust.
23152
23153 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23154
23155         * config/sparc/sparc.c (sparc_option_override): Use
23156         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23157
23158 2011-03-11  Richard Guenther  <rguenther@suse.de>
23159
23160         PR tree-optimization/48067
23161         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23162         multiplication result will be only used once on the target
23163         stmt.
23164
23165 2011-03-11  Richard Guenther  <rguenther@suse.de>
23166
23167         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23168
23169 2011-03-11  Richard Guenther  <rguenther@suse.de>
23170
23171         PR lto/48073
23172         * tree.c (find_decls_types_r): Do not walk types only reachable
23173         from IDENTIFIER_NODEs.
23174
23175 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23176
23177         PR middle-end/48044
23178         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23179         all vnode->force_output nodes as needed.
23180
23181 2011-03-11  Jason Merrill  <jason@redhat.com>
23182
23183         PR c++/48069
23184         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23185         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23186
23187 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23188
23189         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23190         cgraph_node.
23191
23192 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23193
23194         PR tree-optimization/48063
23195         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23196         inline functions called once if !tree_can_inline_p (node->callers).
23197
23198 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23199
23200         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23201         extra_objs.
23202         * config/score/score3.c: Delete.
23203         * config/score/score3.h: Delete.
23204         * config/score/mul-div.S: Delete.
23205         * config/score/sfp-machine.h: Add new file.
23206         * config/score/constraints.md: Add new file.
23207         * config/score/t-score-softfp: Add new file.
23208         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23209         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23210         (score7_extra_constraint): Delete.
23211         (score7_option_override): Remove unused code.
23212         * config/score/score.c: Remove score3 and score5 define and code.
23213         * config/score/score.h: Remove score3 and score5 define and code.
23214         * config/score/score.md: Remove score3 template and unusual insn.
23215         * config/score/score.opt: Remove score3 and score5 options.
23216
23217 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23218
23219         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23220         when _HPUX_SOURCE is defined.
23221         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23222
23223 2011-03-10  Jason Merrill  <jason@redhat.com>
23224
23225         PR c++/48029
23226         * stor-layout.c (layout_type): Don't set structural equality
23227         on arrays of incomplete type.
23228         * tree.c (type_hash_eq): Handle comparing them properly.
23229
23230 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23231
23232         PR debug/48043
23233         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23234         result mode matches original rtl mode.
23235
23236 2011-03-10  Nick Clifton  <nickc@redhat.com>
23237
23238         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23239         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23240
23241 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23242
23243         PR rtl-optimization/47866
23244         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23245         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23246         if target wasn't scalar.
23247         * function.c (assign_stack_temp_for_type): Assert that neither
23248         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23249         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23250         macro.
23251         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23252
23253 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23254
23255         * config/s390/s390-protos.h (s390_label_align): New prototype.
23256         * config/s390/s390.c (s390_label_align): New function.
23257         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23258
23259 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23260
23261         PR target/47755
23262         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23263         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23264         (output_vec_const_move): Ditto.
23265
23266 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23267
23268         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23269         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23270         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23271         Change 'rclass' argument and result type to reg_class_t.
23272         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23273
23274 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23275
23276         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23277         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23278         (TARGET_MEMORY_MOVE_COST): Define.
23279         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23280
23281 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23282
23283         PR debug/47881
23284         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23285         removed anything.
23286
23287         PR tree-optimization/48022
23288         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23289         for EQ/NE_EXPR.
23290
23291 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23292
23293         PR debug/47991
23294         * var-tracking.c (find_use_val): Return NULL for
23295         cui->sets && cui->store_p BLKmode MEMs.
23296
23297 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23298
23299         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23300         Remove.
23301         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23302         xstormy16_print_operand_address): Remove.
23303         * config/stormy16/stormy16.c (xstormy16_print_operand,
23304         xstormy16_print_operand_address): Make static.
23305         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23306
23307 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
23308
23309         PR target/47862
23310         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23311         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23312         before definition.
23313
23314 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
23315
23316         PR bootstrap/48000
23317         * cfgloopmanip.c (fix_bb_placements): Return immediately
23318         if FROM is BASE_LOOP's header.
23319
23320 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
23321
23322         * gimplify.c (gimplify_function_tree): Fix building calls
23323         to __builtin_return_address.
23324
23325 2011-03-07  Alan Modra  <amodra@gmail.com>
23326
23327         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23328         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23329         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23330         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23331         return_mode args.
23332         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23333         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23334         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23335         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23336         * config/rs6000/rs6000.c
23337         (rs6000_elf_end_indicate_exec_stack): Rename to..
23338         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
23339         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
23340         (rs6000_file_start): ..here.
23341         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23342         file scope variables.
23343         (call_ABI_of_interest): New function.
23344         (init_cumulative_args): Set above vars when function return value
23345         is a float, vector, or small struct.
23346         (rs6000_function_arg_advance_1): Likewise for function args.
23347         (rs6000_va_start): Set rs6000_passes_float if variable arg function
23348         references float args.
23349
23350 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23351
23352         * doc/cfg.texi: Remove "See" before @ref.
23353         * doc/invoke.texi: Likewise.
23354
23355 2011-03-05  Jason Merrill  <jason@redhat.com>
23356
23357         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23358
23359 2011-03-05  Anthony Green  <green@moxielogic.com>
23360
23361         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23362
23363 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
23364
23365         PR rtl-optimization/47899
23366         * cfgloopmanip.c (fix_bb_placements): Fix first argument
23367         to flow_loop_nested_p when moving the loop upward.
23368
23369 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
23370
23371         PR target/47719
23372         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
23373
23374 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
23375
23376         PR tree-optimization/47967
23377         * ipa-cp.c (build_const_val): Return NULL instead of creating
23378         VIEW_CONVERT_EXPR for mismatching sizes.
23379         (ipcp_create_replace_map): Return NULL if build_const_val failed.
23380         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23381         give up on versioning.
23382
23383 2011-03-05  Alan Modra  <amodra@gmail.com>
23384
23385         PR target/47986
23386         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23387         full cmodel medium/large lo_sum + high addresses.
23388
23389 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23390
23391         * config/s390/s390.c (s390_decompose_address): Reject non-literal
23392         pool references in UNSPEC_LTREL_OFFSET.
23393
23394 2011-03-04  Jan Hubicka  <jh@suse.cz>
23395
23396         PR lto/47497
23397         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23398         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23399         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23400         Add node pointers.
23401         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23402         cgraph_add_thunk): Add node pointers.
23403         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23404         associated to right node.
23405         (input_node): Update use of cgraph_same_body_alias
23406         and cgraph_add_thunk.
23407
23408 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23409
23410         * config/i386/i386.opt (mprefer-avx128): New flag.
23411         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23412         modes when the flag -mprefer-avx128 is on.
23413
23414 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
23415
23416         * dwarf2out.c (compare_loc_operands): Fix address handling.
23417
23418 2011-03-04  Alan Modra  <amodra@gmail.com>
23419
23420         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23421
23422 2011-03-04  Richard Guenther  <rguenther@suse.de>
23423
23424         PR middle-end/47968
23425         * expmed.c (extract_bit_field_1): Prefer vector modes that
23426         vec_extract patterns can handle.
23427
23428 2011-03-04  Richard Guenther  <rguenther@suse.de>
23429
23430         PR middle-end/47975
23431         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23432
23433 2011-03-04  Richard Henderson  <rth@redhat.com>
23434
23435         * explow.c (emit_stack_save): Remove 'after' parameter.
23436         (emit_stack_restore): Likewise.
23437         * expr.h: Update to match.
23438         * builtins.c, calls.c, stmt.c: Likewise.
23439         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23440         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23441         * function.c (expand_function_end): Insert the emit_stack_save
23442         sequence before parm_birth_insn instead of after.
23443
23444 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
23445
23446         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23447         (ssse3_pmaddubsw128): Ditto.
23448         (ssse3_pmaddubsw): Ditto.
23449
23450 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
23451
23452         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23453
23454 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
23455
23456         PR c/47963
23457         * gimplify.c (omp_add_variable): Only call omp_notice_variable
23458         on TYPE_SIZE_UNIT if it is a DECL.
23459
23460         PR debug/47283
23461         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23462         first operand is not is_gimple_mem_ref_addr, try to fold it.
23463         If the operand still isn't is_gimple_mem_ref_addr, clear
23464         MEM_EXPR on op0.
23465
23466 2011-03-03  Richard Guenther  <rguenther@suse.de>
23467
23468         PR middle-end/47283
23469         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23470         match comment.
23471         (refs_may_alias_p_1): For release branches return true if
23472         we are confused by our input.
23473
23474 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23475
23476         * config/s390/s390.c (s390_function_value): Rename to ...
23477         (s390_function_and_libcall_value): ... this.
23478         (s390_function_value): New function.
23479         (s390_libcall_value): New function.
23480         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23481         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23482         target macro definitions.
23483         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23484
23485 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23486
23487         * config/i386/freebsd64.h (CC1_SPEC): Define.
23488         * config/i386/linux64.h (CC1_SPEC): Define.
23489         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23490
23491 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23492
23493         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23494         Remove.
23495         * config/stormy16/stormy16.c: Include reload.h.
23496         (xstormy16_memory_move_cost): New function.
23497         (TARGET_MEMORY_MOVE_COST): Define.
23498
23499 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23500
23501         PR rtl-optimization/47925
23502         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23503         with side effects.  Remove the more-specific check for volatile asms.
23504
23505 2011-03-02  Alan Modra  <amodra@gmail.com>
23506
23507         PR target/47935
23508         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23509         toc relative addresses for valid offsets.
23510
23511 2011-03-01  Richard Guenther  <rguenther@suse.de>
23512
23513         PR tree-optimization/47890
23514         * tree-vect-loop.c (get_initial_def_for_induction): Set
23515         related stmt properly.
23516
23517 2011-03-01  Richard Guenther  <rguenther@suse.de>
23518
23519         PR lto/47924
23520         * lto-streamer.c (lto_record_common_node): Also register
23521         the canonical type.
23522
23523 2011-03-01  Richard Guenther  <rguenther@suse.de>
23524
23525         PR lto/46911
23526         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23527         Do not stream DECL_ABSTRACT_ORIGIN.
23528         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23529         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23530         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23531         Do not stream DECL_ABSTRACT_ORIGIN.
23532         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23533         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23534
23535 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23536
23537         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23538         FUNCTION_VALUE_REGNO_P): Remove.
23539         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23540         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23541         Add 'outgoing' argument.
23542         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23543         function.
23544         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23545         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23546
23547 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23548
23549         PR debug/28047
23550         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23551         (lookup_filename): Likewise.
23552         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23553
23554 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23555             Jakub Jelinek  <jakub@redhat.com>
23556
23557         PR middle-end/47893
23558         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23559         (assign_stack_local_1): Change last argument type to int.
23560         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23561         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23562         don't record padding space into frame_space_list nor use those areas.
23563         (assign_stack_local): Adjust caller.
23564         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23565         of assign_stack_local, pass 0 as last argument.
23566         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23567         callers.
23568
23569 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23570
23571         PR debug/47283
23572         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23573         Use target address_mode and pointer_mode hooks instead of hardcoded
23574         Pmode and ptr_mode.  Handle some simple cases of extending if
23575         POINTERS_EXTEND_UNSIGNED < 0.
23576         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23577         Call convert_debug_memory_address.
23578         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23579         convert_debug_memory_address.
23580
23581         PR middle-end/46790
23582         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23583         * configure: Regenerated.
23584         * config.in: Regenerated.
23585         * varasm.c (default_function_section): Return NULL
23586         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23587
23588 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23589
23590         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23591         the description to match the printed values.
23592
23593 2011-02-28  Richard Guenther  <rguenther@suse.de>
23594
23595         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23596         of the copied scope tree.
23597
23598 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23599
23600         * doc/extend.texi (Function Attributes): Avoid deeply (and
23601         wrongly) nested tables.
23602
23603 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23604
23605         PR middle-end/47903
23606         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23607         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23608         r isn't op0 nor op1.
23609
23610 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23611
23612         * config/avr/avr.md: Remove magic comment for emacs.
23613
23614 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23615
23616         PR target/45261
23617         * config/avr/avr.c (avr_option_override): Use error on bad options.
23618         (avr_help): New function.
23619         (TARGET_HELP): Define.
23620
23621 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23622
23623         PR target/42240
23624         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23625         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23626
23627 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23628
23629         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23630         (ARM Options): Ditto.
23631         (i386 and x86-64 Options): Ditto.
23632         (RX Options): Ditto.
23633         (SPARC Options): Ditto.
23634
23635 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23636
23637         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23638         FreeBSD 6 and later.  Generally use cpu generic.
23639
23640 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23641
23642         * doc/cpp.texi: Update copyright years.
23643
23644 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23645
23646         PR target/46898
23647         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23648
23649 2011-02-25  Jon Beniston  <jon@beniston.com>
23650
23651         PR target/46898
23652         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23653         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23654         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23655         (lm32_block_move_inline): Add type cast to remove warning.
23656         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23657         (gen_int_relational): Move declarations to start of function.
23658
23659 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23660
23661         PR tree-optimization/45470
23662         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23663         can throw internally only.
23664         * tree-vect-stmts.c (vectorizable_call): Likewise.
23665
23666 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23667
23668         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23669         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23670         * config/stormy16/stormy16-protos.h
23671         (xstormy16_preferred_reload_class): Remove.
23672         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23673         static. Change 'rclass' argument and return type to reg_class_t.
23674         (TARGET_PREFERRED_RELOAD_CLASS,
23675         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23676
23677 2011-02-24  Richard Guenther  <rguenther@suse.de>
23678
23679         * lto-streamer-in.c (input_bb): Do not find referenced vars
23680         in debug statements.
23681
23682 2011-02-23  Jason Merrill  <jason@redhat.com>
23683
23684         * common.opt (fabi-version): Document v5 and v6.
23685
23686 2011-02-23  Richard Guenther  <rguenther@suse.de>
23687
23688         PR tree-optimization/47849
23689         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23690
23691 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23692
23693         * opts-common.c (decode_cmdline_option): Print empty string
23694         argument as "" in decoded->orig_option_with_args_text.
23695         * gcc.c (execute): Print empty string argument as ""
23696         in the verbose output.
23697         (do_spec_1): Keep empty string argument.
23698
23699 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
23700
23701         * config.gcc: Declare score-* and crx-* obsolete.
23702
23703 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23704
23705         PR rtl-optimization/47763
23706         * web.c (web_main): Ignore naked clobber when replacing register.
23707
23708 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
23709
23710         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23711         Remove.
23712
23713 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23714
23715         PR doc/47848
23716         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23717
23718 2011-02-22  Mike Stump  <mikestump@comcast.net>
23719
23720         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23721         assembler.
23722         * configure: Regenerate.
23723
23724 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
23725
23726         PR rtl-optimization/46002
23727         * ira-color.c (update_copy_costs): Change class intersection
23728         test to reg_class_contents[] test of 'hard_regno'.
23729
23730 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
23731
23732         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23733         than Driver option.
23734         * config/hpux11.opt (mt): Likewise.
23735         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23736         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23737         * config/vax/elf.opt (mno-asm-pic): Likewise.
23738         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23739
23740 2011-02-21  Mike Stump  <mikestump@comcast.net>
23741
23742         PR target/47822
23743         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23744         tree so we can get save the type.
23745         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23746         for CFString instead of trying to use past the end of the builtins.
23747         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23748         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23749         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23750         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23751         Rename to darwin_builtin_cfstring.
23752         (darwin_init_cfstring_builtins): Return the built type.
23753
23754 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
23755
23756         PR target/47840
23757         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23758         (_mm256_insert_epi64): Use _mm_insert_epi64.
23759
23760 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
23761
23762         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23763         * config/stormy16/stormy16-protos.h
23764         (xstormy16_mode_dependent_address_p): Remove.
23765         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23766         Make static. Change return type to bool. Change argument type to
23767         const_rtx. Remove dead code.
23768         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23769
23770 2011-02-21  Richard Guenther  <rguenther@suse.de>
23771
23772         PR lto/47820
23773         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23774         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23775         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23776         TUs context.
23777         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23778         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23779
23780 2011-02-20  Richard Guenther  <rguenther@suse.de>
23781
23782         PR lto/47822
23783         * tree.c (free_lang_data_in_decl): Clean builtins from
23784         the TU decl BLOCK_VARS.
23785
23786 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
23787
23788         PR debug/47620
23789         PR debug/47630
23790         * haifa-sched.c (fix_tick_ready): Skip tick computation
23791         for debug insns.
23792
23793 2011-02-19  Richard Guenther  <rguenther@suse.de>
23794
23795         PR lto/47647
23796         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23797         Remove lazy BLOCK_VARS streaming.
23798         (lto_input_ts_block_tree_pointers): Likewise.
23799         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23800
23801 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23802
23803         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23804
23805 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23806
23807         * config/i386/biarch32.h, config/i386/mach.h,
23808         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23809
23810 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
23811
23812         PR target/47800
23813         * config/i386/i386.md (peephole2 for shift and plus): Use
23814         operands[1] original mode in the first insn.
23815
23816 2011-02-18  Mike Stump  <mikestump@comcast.net>
23817
23818         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23819
23820 2011-02-18  Jan Hubicka  <jh@suse.cz>
23821
23822         PR middle-end/47788
23823         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23824         to zero when the function is not inlinable at all.
23825
23826 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23827
23828         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23829         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23830         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23831         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23832         * config/pa/t-pa64: Likewise.
23833         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23834
23835 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23836
23837         PR driver/47787
23838         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23839
23840 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23841
23842         PR target/47792
23843         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23844
23845 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
23846
23847         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23848         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23849         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23850         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23851         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23852         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23853         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23854         m32r_load_postinc_p, m32r_store_preinc_predec_p,
23855         m32r_legitimate_address_p): New functions.
23856         * config/m32r/constraints.md (constraint "S"): Don't use
23857         STORE_PREINC_PREDEC_P.
23858         (constraint "U"): Don't use LOAD_POSTINC_P.
23859
23860 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
23861
23862         PR rtl-optimization/46178
23863         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23864         compute ira_hard_regno_cover_class[].
23865
23866 2011-02-18  Richard Guenther  <rguenther@suse.de>
23867
23868         PR lto/47798
23869         * lto-streamer.h (lto_global_var_decls): Declare.
23870         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23871         statics for global var processing.
23872
23873 2011-02-18  Richard Guenther  <rguenther@suse.de>
23874
23875         PR tree-optimization/47737
23876         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23877         edge dominance check.
23878
23879 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23880
23881         PR debug/47780
23882         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23883         avoid invalid rtx sharing.
23884
23885 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
23886
23887         * doc/cpp.texi (Obsolete Features): Add background on the
23888         origin of assertions.
23889
23890 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
23891
23892         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23893         objc_abi == 2.
23894         * config/darwin.c (output_objc_section_asm_op): Added support for
23895         ABI v1 and v2.
23896         (is_objc_metadata): New.
23897         (darwin_objc2_section): New.
23898         (darwin_objc1_section): New.
23899         (machopic_select_section): Added support for ABI v1 and v2.
23900         (darwin_emit_objc_zeroed): New.
23901         (darwin_output_aligned_bss): Detect objc metadata and treat it
23902         appropriately.
23903         (darwin_asm_output_aligned_decl_common): Same.
23904         (darwin_asm_output_aligned_decl_local): Same.
23905         * config/darwin-sections.def: Updated for ABI v1 and v2.
23906         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23907         compiling Objective-C code for the NeXT runtime, default to using
23908         ABI version 0 for 32-bit, and version 2 for 64-bit.
23909
23910 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23911
23912         * common.opt (optimize_fast): New Variable.
23913         * opts.c (default_options_optimization): Use opts->x_optimize_fast
23914         instead of local variable ofast.
23915
23916 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
23917
23918         * doc/invoke.texi (fobjc-abi-version): Documented.
23919         (fobjc-nilcheck): Documented.
23920         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23921         version.
23922
23923 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23924
23925         PR driver/47390
23926         * common.opt (export-dynamic): New Driver option.
23927         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23928
23929 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23930
23931         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23932
23933 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
23934             Jan Hubicka  <jh@suse.cz>
23935
23936         PR debug/47106
23937         PR debug/47402
23938         * cfgexpand.c (account_used_vars_for_block): Remove.
23939         (estimated_stack_frame_size): Use referenced vars.
23940         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23941         that were referenced in the original function.  Test src_fn
23942         rather than cfun.  Drop redundant get_var_ann.
23943         (setup_one_parameter): Drop redundant get_var_ann.
23944         (declare_return_variable): Likewise.
23945         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23946         (copy_arguments_for_versioning): Drop redundant get_var_ann.
23947         * ipa-inline.c (compute_inline_parameters): Do not compute
23948         disregard_inline_limits here.
23949         (compute_inlinable_for_current, pass_inlinable): New.
23950         (pass_inline_parameters): Require PROP_referenced_vars.
23951         * cgraphunit.c (cgraph_process_new_functions): Don't run
23952         compute_inline_parameters explicitly unless function is in SSA form.
23953         (cgraph_analyze_function): Set .disregard_inline_limits.
23954         * tree-sra.c (convert_callers): Compute inliner parameters
23955         only for functions already in SSA form.
23956
23957 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23958
23959         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23960         -mlittle-endian-data.
23961
23962 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23963
23964         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
23965         -mno-fpu, not -fpu and -no-fpu.
23966         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
23967         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
23968
23969 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
23970
23971         PR target/43653
23972         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
23973         input reload with PLUS RTX.
23974
23975 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23976
23977         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
23978         of InverseVar(MDMX).
23979
23980 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23981
23982         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
23983         --m4-340.
23984
23985 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23986
23987         * config/mn10300/mn10300.opt (mno-crt0): New.
23988
23989 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23990
23991         * config/m68k/uclinux.opt (static-libc): New Driver option.
23992
23993 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23994
23995         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
23996
23997 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23998
23999         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24000         %{muser-extend-enabled}.
24001
24002 2011-02-16  Richard Guenther  <rguenther@suse.de>
24003
24004         PR tree-optimization/47738
24005         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24006         the TODO from tree_predictive_commoning.
24007
24008 2011-02-15  Jeff Law  <law@redhat.com>
24009
24010         Revert
24011         2011-01-25  Jeff Law  <law@redhat.com>
24012
24013         PR rtl-optimization/37273
24014         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24015         handle them like argument loads from stack slots.  Do not double
24016         count memory for memory constants and argument loads from stack slots.
24017
24018 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24019
24020         PR target/47755
24021         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24022         mode for vector constants.  Remove code that checks for TImode.
24023
24024 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24025
24026         PR debug/47106
24027         PR debug/47402
24028         * cgraph.h (compute_inline_parameters): Return void.
24029         * ipa-inline.c (compute_inline_parameters): Adjust.
24030
24031 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24032
24033         PR debug/47106
24034         PR debug/47402
24035         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24036         rather than decl.
24037         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24038         * ipa-inline.c (compute_inline_parameters): Adjust.
24039
24040 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24041
24042         PR debug/47106
24043         PR debug/47402
24044         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24045         Adjust all users.  Pass FN to...
24046         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24047         fn argument.
24048         * ipa-struct-reorg.c: Adjust.
24049         * tree-dfa.c: Adjust.
24050         * tree-into-ssa.c: Adjust.
24051         * tree-sra.c: Adjust.
24052         * tree-ssa-alias.c: Adjust.
24053         * tree-ssa-live.c: Adjust.
24054         * tree-ssa.c: Adjust.
24055         * tree-ssanames.c: Adjust.
24056         * tree-tailcall.c: Adjust.
24057
24058 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24059
24060         PR debug/47106
24061         PR debug/47402
24062         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24063         Adjust all callers.
24064         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24065         * tree-flow-inline.h: Adjust.
24066         * gimple-pretty-print.c: Adjust.
24067         * tree-into-ssa.c: Adjust.
24068         * tree-ssa.c: Adjust.
24069         * cfgexpand.c: Adjust.
24070
24071 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24072
24073         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24074         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24075         (EXTRA_CONSTRAINT): Delete.
24076         * config/iq2000/constraints.md: New file.
24077         * config/iq2000/iq2000.md: Include it.
24078         (define_insn ""): Delete.
24079         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24080         unsupported constraint letters from patterns.
24081         (call_value, call_value_internal1): Likewise.
24082         (call_value_multiple_internal1): Likewise.
24083
24084 2011-02-15  Nick Clifton  <nickc@redhat.com>
24085
24086         * config/mn10300/mn10300.c: Include tm-constrs.h.
24087         (struct liw_data): New data structure describing an LIW candidate
24088         instruction.
24089         (extract_bundle): Use struct liw_data.  Allow small integer
24090         operands for some instructions.
24091         (check_liw_constraints): Use struct liw_data.  Remove swapped
24092         parameter.  Add comments describing the checks.  Fix bug when
24093         assigning the source of liw1 to the source of liw2.
24094         (liw_candidate): Delete.  Code moved into extract_bundle.
24095         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24096         before swapping.
24097         * config/mn10300/predicates.md (liw_operand): New predicate.
24098         Allows registers and small integer constants.
24099         * config/mn10300/constraints.md (O): New constraint.  Accetps
24100         integers in the range -8 to +7 inclusive.
24101         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24102         for moving a small integer into a register.  Give this alternative
24103         LIW attributes.
24104         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24105         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24106         using the J,K,L and M constraints,
24107         (liw): Remove SI mode on second operands to allow for HI and QI
24108         mode values.
24109         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24110         instruction.
24111
24112 2011-02-15  Richard Guenther  <rguenther@suse.de>
24113
24114         PR tree-optimization/47743
24115         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24116         for a non-type-compatible VN lookup bail out.
24117
24118 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24119
24120         * config/fr30/constraints.md: New file.
24121         * config/fr30/fr30.md: Include it.
24122         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24123         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24124         (EXTRA_CONSTRAINT): Delete.
24125
24126 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24127
24128         * config/frv/constraints.md: New file.
24129         * config/frv/predicates.md: Include it.
24130         * config/frv/frv.c (reg_class_from_letter): Delete.
24131         (frv_option_override): Don't initialize it.
24132         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24133         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24134         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24135         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24136         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24137         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24138         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24139         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24140         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24141         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24142         (REG_CLASS_FROM_CONSTRAINT): Delete.
24143
24144 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24145
24146         PR middle-end/47581
24147         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24148         if frame size is 0 in a leaf function.
24149
24150 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24151
24152         PR pch/14940
24153         * config/alpha/host-osf.c: New file.
24154         * config/alpha/x-osf: New file.
24155         * config.host (alpha*-dec-osf*): Use it.
24156
24157 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24158
24159         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24160         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24161         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24162         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24163         type to const_rtx.
24164         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24165
24166 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24167
24168         * config/stormy16/constraints.md: New file.
24169         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24170         Use satisfies_constraint_Q and satisfies_constraint_R.
24171         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24172         Delete.
24173         (xstormy16_legitiamte_address_p): Declare.
24174         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24175         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24176         (EXTRA_CONSTRAINT): Delete.
24177         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24178         Un-staticize.
24179         (xstormy16_extra_constraint_p): Delete.
24180
24181 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24182
24183         PR tree-optimization/46494
24184         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24185         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24186         (pass_rtl_loop_done): Add TODO_verify_flow.
24187         * fwprop.c (pass_rtl_fwprop): Likewise.
24188         * modulo-sched.c (pass_sms): Likewise.
24189         * tree-ssa-dom.c (pass_dominator): Likewise.
24190         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24191         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24192         (pass_tree_loop_done): Likewise.
24193         * tree-ssa-pre.c (execute_pre): Likewise.
24194         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24195         * tree-ssa-sink.c (pass_sink_code): Likewise.
24196         * tree-vrp.c (pass_vrp): Likewise.
24197
24198 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24199
24200         * config/v850/constraints.md: New file.
24201         * config/v850/v850.md: Include it.
24202         * config/v850/predicates.md (reg_or_0_operand): Use
24203         satisfies_constraint_G.
24204         (special_symbolref_operand): Use satisfies_constraint_K.
24205         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24206         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24207         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24208         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24209         (EXTRA_CONSTRAINT): Delete.
24210         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24211         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24212         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24213
24214 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24215
24216         PR target/47696
24217         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24218         description.
24219
24220 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24221
24222         * config/mcore/constraints.md: New file.
24223         * config/mcore/mcore.md: Include it.
24224         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24225         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24226         (REG_CLASS_FROM_LETTER): Delete.
24227         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24228         insn_const_int_ok_for_constraint.
24229         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24230         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24231         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24232         (EXTRA_CONSTRAINT): Delete.
24233
24234 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24235
24236         PR ada/41929
24237         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24238         (IS_SIGHANDLER): Define.
24239         (sparc64_is_sighandler): New function, split off from
24240         sparc64_fallback_frame_state.
24241         (sparc_is_sighandler): New function, split off from
24242         sparc_fallback_frame_state.
24243         (sparc64_fallback_frame_state): Merge with ...
24244         (sparc_fallback_frame_state): ... this into ...
24245         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24246         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24247         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24248         stack instead of hardcoded offsets.
24249
24250 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24251
24252         PR target/45808
24253         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24254
24255 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24256
24257         * configure: Regenerate.
24258
24259 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24260
24261         PR driver/45731
24262         * gcc.c (asm_options): Correct spec matching --target-help.
24263
24264 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24265
24266         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24267         to gimple call error.
24268
24269 2011-02-12  Mike Stump  <mikestump@comcast.net>
24270
24271         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24272         comments in backslash regions.
24273
24274 2011-02-12  Mike Stump  <mikestump@comcast.net>
24275             Jakub Jelinek  <jakub@redhat.com>
24276             Iain Sandoe  <iains@gcc.gnu.org>
24277
24278         PR target/47324
24279         * dwarf2out.c (output_cfa_loc): When required, apply the
24280         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24281         (output_loc_sequence): Likewise.
24282         (output_loc_operands_raw): Likewise.
24283         (output_loc_sequence_raw): Likewise.
24284         (output_cfa_loc): Likewise.
24285         (output_loc_list): Suppress register number adjustment when
24286         calling output_loc_sequence()
24287         (output_die): Likewise.
24288
24289 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24290
24291         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24292         Remove macros.
24293         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24294         xtensa_memory_move_cost): New functions.
24295         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24296
24297 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24298
24299         PR lto/47225
24300         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24301         in the current directory.
24302         * configure: Rebuilt.
24303
24304 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24305
24306         * config/darwin.c (darwin_override_options): Add a hunk missed
24307         from the commit of r168571.  Trim comment line lengths and
24308         correct indents of the preceding block.
24309
24310 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24311
24312         * gcc.c (driver_handle_option): Concatenate the argument to -F with
24313         the switch.
24314
24315 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24316
24317         * common.opt (nostartfiles): New Driver option.
24318
24319 2011-02-11  Xinliang David Li  <davidxl@google.com>
24320
24321         PR tree-optimization/47707
24322         * tree-chrec.c (convert_affine_scev): Keep type precision.
24323
24324 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
24325
24326         PR tree-optimization/47420
24327         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24328
24329 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
24330
24331         PR rtl-optimization/47614
24332         * rtl.h (check_for_inc_dec): Declare.
24333         * dse.c (check_for_inc_dec): Externalize...
24334         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24335         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24336
24337 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24338
24339         PR driver/47678
24340         * gcc.c (main): Do not compile inputs if there were errors in
24341         option handling.
24342         * opts-common.c (read_cmdline_option): Check for wrong language
24343         after other error checks.
24344
24345 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
24346
24347         * cgraph.c: Fix comment typos.
24348         * cgraph.h: Likewise.
24349         * cgraphunit.c: Likewise.
24350         * ipa-cp.c: Likewise.
24351         * ipa-inline.c: Likewise.
24352         * ipa-prop.c: Likewise.
24353         * ipa-pure-const.c: Likewise.
24354         * ipa-ref.c: Likewise.
24355         * ipa-reference.c: Likewise.
24356
24357 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24358
24359         PR debug/47684
24360         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24361
24362 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24363
24364         PR testsuite/47400
24365         * doc/sourcebuild.texi (Require Support): Document
24366         dg-require-ascii-locale.
24367
24368 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
24369
24370         * doc/lto.texi (Write summary): Fix missing parentheses.
24371
24372 2011-02-10  DJ Delorie  <dj@redhat.com>
24373
24374         * config/m32c/m32c.c (m32c_option_override): Disable
24375         -fcombine-stack-adjustments until flag value tracking and compare
24376         optimization can be rewritten.
24377
24378 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
24379
24380         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24381         PROCESSOR_POWER7.
24382         (PROCESSOR_DEFAULT64): Likewise.
24383
24384 2011-02-10  Richard Henderson  <rth@redhat.com>
24385
24386         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24387         change from 2011-02-03.
24388         * config/rx/rx.c (flags_from_code): Likewise.
24389         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24390         is valid, n/pz otherwise.
24391         (rx_select_cc_mode): Return CCmode if Y is not zero.
24392
24393 2011-02-10  Richard Guenther  <rguenther@suse.de>
24394
24395         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24396
24397 2011-02-10  Richard Guenther  <rguenther@suse.de>
24398
24399         PR tree-optimization/47677
24400         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24401
24402 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
24403
24404         PR target/47665
24405         * combine.c (make_compound_operation): Only change shifts into
24406         multiplication for SCALAR_INT_MODE_P.
24407
24408 2011-02-10  Jie Zhang  <jie@codesourcery.com>
24409
24410         PR testsuite/47622
24411         Revert
24412         2011-02-05  Jie Zhang  <jie@codesourcery.com>
24413         PR debug/42631
24414         * web.c (entry_register): Don't clobber the number of the
24415         first uninitialized reference in used[].
24416
24417 2011-02-09  Richard Guenther  <rguenther@suse.de>
24418
24419         PR tree-optimization/47664
24420         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24421         all edges again.
24422
24423 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
24424
24425         PR target/46481
24426         PR target/47032
24427         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24428         PROCESSOR_POWER7.
24429         (PROCESSOR_DEFAULT64): Same.
24430         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24431
24432 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24433
24434         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24435
24436 2011-02-09  Martin Jambor  <mjambor@suse.cz>
24437
24438         PR middle-end/45505
24439         * tree-sra.c (struct access): New flags grp_scalar_read and
24440         grp_scalar_write.  Changed description of assignment read and write
24441         flags.
24442         (dump_access): Dump new flags, reorder all of them.
24443         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24444         to detect multiple scalar reads.
24445         (analyze_access_subtree): Use the new scalar read write flags instead
24446         of the old flags.  Adjusted comments.
24447
24448 2011-02-08  DJ Delorie  <dj@redhat.com>
24449
24450         PR target/47548
24451         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24452         patterns.
24453
24454 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24455
24456         * config/m68k/uclinux.opt: New.
24457         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24458
24459 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24460
24461         * config/cris/elf.opt (sim): New Driver option.
24462
24463 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24464
24465         * config/xtensa/elf.opt: New.
24466         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24467
24468 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24469
24470         * config/vax/elf.opt: New.
24471         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24472
24473 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24474
24475         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24476
24477 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24478
24479         * config/gnu-user.opt: New.
24480         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24481         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24482         *-*-uclinux*): Use gnu-user.opt.
24483
24484 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24485
24486         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24487         * config/i386/gnu.h (CPP_SPEC): Likewise.
24488
24489 2011-02-08  Ian Lance Taylor  <iant@google.com>
24490
24491         * common.opt (fcx-limited-range): Add SetByCombined flag.
24492         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24493         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24494         (fassociative-math, freciprocal-math): Likewise.
24495         (funsafe-math-optimizations): Likewise.
24496         * opth-gen.awk: Handle SetByCombined.
24497         * optc-gen.awk: Likewise.
24498         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24499         (set_unsafe_math_optimizations_flags): Likewise.
24500         * doc/options.texi (Option properties): Document SetByCombined.
24501
24502 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24503
24504         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24505         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24506         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24507         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24508         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24509
24510 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24511
24512         PR tree-optimization/46834
24513         PR tree-optimization/46994
24514         PR tree-optimization/46995
24515         * graphite-sese-to-poly.c (used_outside_reduction): New.
24516         (detect_commutative_reduction): Call used_outside_reduction.
24517         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24518         translate_scalar_reduction_to_array only when at least one
24519         loop-phi/close-phi tuple has been detected.
24520
24521 2011-02-08  Richard Guenther  <rguenther@suse.de>
24522
24523         PR middle-end/47639
24524         * tree-vect-generic.c (expand_vector_operations_1): Update
24525         stmts here ...
24526         (expand_vector_operations): ... not here.  Cleanup EH info
24527         and the CFG if required.
24528
24529 2011-02-08  Richard Guenther  <rguenther@suse.de>
24530
24531         PR tree-optimization/47641
24532         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24533         require type compatibility.
24534
24535 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24536
24537         * gimple-low.c (lower_function_body): Don't remove the location of
24538         the return statement here.
24539         (lower_gimple_return): Do it here instead but only if the return
24540         statement is actually used twice.
24541
24542 2011-02-08  Richard Guenther  <rguenther@suse.de>
24543
24544         PR tree-optimization/47632
24545         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24546         unused up_to_stmt parameter, return whether cfg-cleanup is
24547         necessary, remove EH info properly.
24548         (forward_propagate_into_gimple_cond): Adjust caller.
24549         (forward_propagate_into_cond): Likewise.
24550         (forward_propagate_comparison): Likewise.
24551         (tree_ssa_forward_propagate_single_use_vars): Make
24552         forward_propagate_comparison case similar to the two others.
24553
24554 2011-02-08  Nick Clifton  <nickc@redhat.com>
24555
24556         * config/mn10300/mn10300.opt (mliw): New command line option.
24557         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24558         (liw_bundling): New automaton.
24559         (liw): New attribute.
24560         (liw_op): New attribute.
24561         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24562         (movsi_internal): Add LIW attributes.
24563         (andsi3): Likewise.
24564         (iorsi3): Likewise.
24565         (xorsi3): Likewise.
24566         (addsi3): Separate register and immediate alternatives.
24567         Add LIW attributes.
24568         (subsi3): Likewise.
24569         (cmpsi): Likewise.
24570         (aslsi3): Likewise.
24571         (lshrsi3): Likewise.
24572         (ashrsi3): Likewise.
24573         (liw): New pattern.
24574         * config/mn10300/mn10300.c (liw_op_names): New
24575         (mn10300_print_operand): Handle 'W' operand descriptor.
24576         (extract_bundle): New function.
24577         (check_liw_constraints): New function.
24578         (liw_candidate): New function.
24579         (mn10300_bundle_liw): New function.
24580         (mn10300_reorg): New function.
24581         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24582         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24583         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24584         __LIW__ or __NO_LIW__.
24585         * doc/invoke.texi: Describe the -mliw command line option.
24586
24587 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24588
24589         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24590         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24591         pthread_mutex_unlock): Remove.
24592         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24593         * config/pa/t-pa64: Likewise.
24594         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24595         shared libc if not linking against libpthread.
24596         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24597
24598 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24599
24600         PR target/47558
24601         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24602         on 10.6 and later to ensure that we always use the unwinder from
24603         the system.  Only add -no_compact_unwind when tarteting darwin
24604         10.6 or later.
24605
24606 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24607
24608         PR target/46997
24609         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24610         (vec_interleave_lowv2sf): Ditto.
24611         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24612         (vec_extract_oddv2sf): Ditto.
24613
24614 2011-02-07  Mike Stump  <mikestump@comcast.net>
24615
24616         PR target/42333
24617         Add __ieee_divdc3 entry point.
24618         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24619         entry point.
24620         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24621         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24622         * config/darwin.c (darwin_rename_builtins): Add.
24623         * config/darwin-protos.h (darwin_rename_builtins): Add.
24624
24625 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24626
24627         PR target/47636
24628         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24629         for the condition.
24630
24631 2011-02-07  Mike Stump  <mikestump@comcast.net>
24632
24633         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24634
24635 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24636
24637         PR target/47534
24638         * config/avr/libgcc.S (exit): Move .endfunc
24639
24640 2011-02-07  Richard Guenther  <rguenther@suse.de>
24641
24642         PR tree-optimization/47615
24643         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24644         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24645         (run_scc_vn): Initialize it.
24646         (visit_reference_op_load): Use it.
24647         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24648
24649 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24650
24651         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24652         DImode trapping arithmetic libfuncs.
24653
24654 2011-02-07  Richard Guenther  <rguenther@suse.de>
24655
24656         PR tree-optimization/47621
24657         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24658         two duplicates ...
24659         (execute_update_addresses_taken): ... here.  Make it more
24660         conservative in what we accept.
24661
24662 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24663
24664         * config/sparc/freebsd.h (ASM_SPEC): Define.
24665         * config/sparc/vxworks.h (ASM_SPEC): Define.
24666
24667 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24668
24669         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24670
24671 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24672
24673         * doc/invoke.texi: Remove reference to compiler internals from
24674         user documentation.
24675
24676         * reg-notes.def: Remove REG_VALUE_PROFILE.
24677         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24678
24679 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
24680
24681         PR middle-end/47610
24682         * varasm.c (default_section_type_flags): If decl is NULL,
24683         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24684
24685 2011-02-05  Jie Zhang  <jie@codesourcery.com>
24686
24687         PR debug/42631
24688         * web.c (entry_register): Don't clobber the number of the
24689         first uninitialized reference in used[].
24690
24691 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
24692
24693         PR tree-optimization/46194
24694         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24695         (build_classic_dist_vector_1): Do not represent classic distance
24696         vectors when the access functions are variating in different loops.
24697
24698 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24699
24700         * config/mips/iris6.opt: New.
24701         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24702
24703 2011-02-04  Richard Henderson  <rth@redhat.com>
24704             Steve Ellcey  <sje@cup.hp.com>
24705
24706         PR target/46997
24707         * config/ia64/predicates.md (mux1_brcst_element): New.
24708         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24709         * config/ia64/ia64.c (ia64_unpack_assemble): New.
24710         (ia64_unpack_sign): New.
24711         (ia64_expand_unpack): Rewrite using new routines.
24712         (ia64_expand_widen_sum): Ditto.
24713         (ia64_expand_dot_prod_v8qi): Ditto.
24714         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24715         routines, add endian check.
24716         (pmpy2_even): Rename from pmpy2_r, add endian check.
24717         (pmpy2_odd): Rename from pmpy2_l, add endian check.
24718         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24719         (vec_widen_smult_hi_v4hi): Ditto.
24720         (vec_widen_umult_lo_v4hi): Ditto.
24721         (vec_widen_umult_hi_v4hi): Ditto.
24722         (mulv2si3): Change endian checks.
24723         (sdot_prodv4hi): Rewrite with new calls.
24724         (udot_prodv4hi): New.
24725         (vec_pack_ssat_v4hi): Add endian check.
24726         (vec_pack_usat_v4hi): Ditto.
24727         (vec_pack_ssat_v2si): Ditto.
24728         (max1_even): Rename from max1_r, add endian check.
24729         (max1_odd): Rename from max1_l, add endian check.
24730         (*mux1_rev): Format change.
24731         (*mux1_mix): Ditto.
24732         (*mux1_shuf): Ditto.
24733         (*mux1_alt): Ditto.
24734         (*mux1_brcst_v8qi): Use new predicate.
24735         (vec_extract_evenv8qi): Remove endian check.
24736         (vec_extract_oddv8qi): Ditto.
24737         (vec_interleave_lowv4hi): Format change.
24738         (vec_interleave_highv4hi): Ditto.
24739         (mix2_even): Rename from mix2_r, add endian check.
24740         (mix2_odd): Rename from mux2_l, add endian check.
24741         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24742         (vec_extract_evenodd_helper): Format change.
24743         (vec_extract_evenv4hi): Remove endian check.
24744         (vec_extract_oddv4hi): Remove endian check.
24745         (vec_interleave_lowv2si): Format change.
24746         (vec_interleave_highv2si): Format change.
24747         (vec_initv2si): Remove endian check.
24748         (vecinit_v2si): Add endian check.
24749         (reduc_splus_v2sf): Add endian check.
24750         (reduc_smax_v2sf): Ditto.
24751         (reduc_smin_v2sf): Ditto.
24752         (vec_initv2sf): Remove endian check.
24753         (fpack): Add endian check.
24754         (fswap): Add endian check.
24755         (vec_interleave_highv2sf): Add endian check.
24756         (vec_interleave_lowv2sf): Add endian check.
24757         (fmix_lr): Add endian check.
24758         (vec_setv2sf): Format change.
24759         (*vec_extractv2sf_0_be): Use shift to extract operand.
24760         (*vec_extractv2sf_1_be): New.
24761         (vec_pack_trunc_v4hi): Add endian check.
24762         (vec_pack_trunc_v2si): Format change.
24763
24764 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
24765
24766         PR inline-asm/23200
24767         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
24768         do bb, locus and block comparison and disallow loads if it is not set.
24769         (stmt_is_replaceable_p): New function.
24770         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24771         callers.
24772         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24773         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24774         SSA_NAME_DEF_STMT.
24775         * tree-flow.h (stmt_is_replaceable_p): New prototype.
24776
24777 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24778
24779         * config/rs6000/xilinx.opt: New.
24780         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24781
24782 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24783
24784         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24785
24786 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
24787
24788         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24789         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24790         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24791         secondary_reload_info, xtensa_secondary_reload): Remove.
24792         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24793         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24794         (xtensa_preferred_reload_class): Make static. Change return and
24795         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24796         Use CONST_DOUBLE_P predicate.
24797         (xtensa_preferred_output_reload_class): New function.
24798         (xtensa_secondary_reload): Make static.
24799
24800 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
24801
24802         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24803         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24804         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24805
24806 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24807
24808         PR middle-end/31490
24809         * output.h (SECTION_RELRO): Define.
24810         (SECTION_MACH_DEP): Adjust.
24811         (get_variable_section): New prototype.
24812         * varpool.c (varpool_finalize_named_section_flags): New function.
24813         (varpool_assemble_pending_decls): Call it.
24814         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24815         * cgraphunit.c (cgraph_output_in_order): Call
24816         varpool_finalize_named_section_flags.
24817         * varasm.c (get_section): Allow section flags conflicts between
24818         relro and read-only sections if the section hasn't been declared yet.
24819         Set SECTION_OVERRIDE after diagnosing section type conflict.
24820         (get_variable_section): No longer static.
24821         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24822         readonly sections that need relocations.
24823         (decl_readonly_section_1): New function.
24824         (decl_readonly_section): Use it.
24825
24826         Revert:
24827         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
24828                     Steve Ellcey  <sje@cup.hp.com>
24829
24830         PR middle-end/31490
24831         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24832         if section attribute used.
24833
24834 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24835
24836         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24837         * config/darwin.c (SECTION_NO_ANCHOR): Define.
24838         (darwin_init_sections): Remove assertion.
24839
24840 2011-02-03  Nick Clifton  <nickc@redhat.com>
24841
24842         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24843         lt and ge.
24844         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24845         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24846         instead of "n" and "pz".
24847         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24848         CC_FLAG_S.
24849
24850 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24851
24852         PR target/47312
24853         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24854         fma, expand FMA_EXPR as fma{,f,l} call.
24855
24856         PR lto/47274
24857         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24858         copy them into a unsigned char variable and pass address of it to
24859         lto_output_data_stream.
24860
24861         PR target/47564
24862         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24863         around backend_init_target and lang_dependent_init_target calls.
24864         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24865         (verify_cgraph_node): Don't call set_cfun here.  Use
24866         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24867         Set error_found for incorrectly represented calls to thunks.
24868
24869 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24870
24871         PR debug/43092
24872         PR rtl-optimization/43494
24873         * rtl.h (for_each_inc_dec_fn): New type.
24874         (for_each_inc_dec): Declare.
24875         * rtlanal.c (struct for_each_inc_dec_ops): New type.
24876         (for_each_inc_dec_find_inc_dec): New fn.
24877         (for_each_inc_dec_find_mem): New fn.
24878         (for_each_inc_dec): New fn.
24879         * dse.c (struct insn_size): Remove.
24880         (replace_inc_dec, replace_inc_dec_mem): Remove.
24881         (emit_inc_dec_insn_before): New fn.
24882         (check_for_inc_dec): Use it, along with for_each_inc_dec.
24883         (canon_address): Pass mem modes to cselib_lookup.
24884         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
24885         (cselib_lookup_from_insn): Likewise.
24886         (cselib_subst_to_values): Likewise.
24887         * cselib.c (find_slot_memmode): New var.
24888         (cselib_find_slot): New fn.  Use it instead of
24889         htab_find_slot_with_hash everywhere.
24890         (entry_and_rtx_equal_p): Use find_slot_memmode.
24891         (autoinc_split): New fn.
24892         (rtx_equal_for_cselib_p): Rename and implement in terms of...
24893         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
24894         Deal with autoinc.  Special-case recursion into MEMs.
24895         (cselib_hash_rtx): Likewise.
24896         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
24897         address and MEM modes.
24898         (cselib_subst_to_values): Add memmode, pass it on.
24899         Deal with autoinc.
24900         (cselib_lookup): Add memmode argument, pass it on.
24901         (cselib_lookup_from_insn): Add memmode.
24902         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24903         (struct cselib_record_autoinc_data): New.
24904         (cselib_record_autoinc_cb): New fn.
24905         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
24906         mode to cselib_lookup.  Reset autoinced REGs here instead of...
24907         (cselib_process_insn): ... here.
24908         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24909         to cselib_lookup.
24910         (add_uses): Likewise, also to cselib_subst_to_values.
24911         (add_stores): Likewise.
24912         * sched-deps.c (add_insn_mem_dependence): Pass mode to
24913         cselib_subst_to_values.
24914         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
24915         * gcse.c (do_local_cprop): Adjusted.
24916         * postreload.c (reload_cse_simplify_set): Adjusted.
24917         (reload_cse_simplify_operands): Adjusted.
24918         * sel-sched-dump (debug_mem_addr_value): Pass mode.
24919
24920 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24921
24922         PR tree-optimization/45122
24923         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24924         unsafe assumptions when there's more than one loop exit.
24925
24926 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24927
24928         PR target/47272
24929         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24930         Document using vector double with the load/store builtins, and
24931         that the load/store builtins always use Altivec instructions.
24932
24933         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24934         to use altivec memory instructions, even on VSX.
24935         (vector_altivec_store_<mode>): Ditto.
24936
24937         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24938         function.
24939
24940         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24941         V2DF, V2DI support to load/store overloaded builtins.
24942
24943         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24944         altivec load/store builtins for V2DF/V2DI types.
24945
24946         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24947         set avoid indexed addresses on power6 if -maltivec.
24948         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24949         vector_altivec_load/vector_altivec_store builtins.
24950         (altivec_expand_st_builtin): Ditto.
24951         (altivec_expand_builtin): Add VSX memory builtins.
24952         (rs6000_init_builtins): Add V2DI types to internal types.
24953         (altivec_init_builtins): Add support for V2DF/V2DI altivec
24954         load/store builtins.
24955         (rs6000_address_for_altivec): Insure memory address is appropriate
24956         for Altivec.
24957
24958         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24959         vec_vsx_ld and vec_vsx_st.
24960         (vsx_store_<mode>): Ditto.
24961
24962         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
24963         variables to hold long long types for VSX vector memory builtins.
24964         (RS6000_BTI_unsigned_long_long): Ditto.
24965         (long_long_integer_type_internal_node): Ditti.
24966         (long_long_unsigned_type_internal_node): Ditti.
24967
24968         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
24969         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
24970         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
24971
24972         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
24973         short cuts.
24974         (vec_vsx_st): Ditto.
24975
24976 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24977
24978         * config/pa/pa-hpux10.opt: New.
24979         * config/hpux11.opt (pthread): New Driver option.
24980         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
24981         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
24982
24983 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24984
24985         * config/ia64/vms.opt: New.
24986         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
24987
24988 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24989
24990         PR target/47580
24991         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
24992         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
24993         generator functions.
24994         (vsx_floatuns<VSi><mode>2): Ditto.
24995         (vsx_fix_trunc<mode><VSi>2): Ditto.
24996         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
24997
24998 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24999
25000         * config/i386/djgpp.opt (posix): New Driver option.
25001
25002 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25003
25004         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25005         Move to the unsupported targets list.
25006
25007 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25008
25009         PR rtl-optimization/47525
25010         * df-scan.c: Update copyright years.
25011         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25012         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25013
25014 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25015
25016         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25017         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25018         (ASM_OUTPUT_ASCII): Remove.
25019         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25020
25021 2011-02-02  Jeff Law  <law@redhat.com>
25022
25023         PR middle-end/47543
25024         * reload.c (find_reloads_address): Handle reg+d address where both
25025         components are invalid by reloading the entire address.
25026
25027 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25028             Richard Guenther  <rguenther@suse.de>
25029
25030         PR tree-optimization/40979
25031         PR bootstrap/47044
25032         * passes.c (init_optimization_passes): After LIM call copy_prop
25033         and DCE to clean up.
25034         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25035
25036 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25037
25038         PR tree-optimization/47576
25039         PR tree-optimization/47555
25040         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25041         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25042         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25043         * tree-scalar-evolution.c (follow_ssa_edge): Use
25044         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25045
25046 2011-02-02  Richard Guenther  <rguenther@suse.de>
25047
25048         PR tree-optimization/47566
25049         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25050
25051 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25052
25053         PR debug/47106
25054         PR debug/47402
25055         * tree-inline.c (declare_return_variable): Remove unused caller
25056         variable.
25057
25058         PR debug/47106
25059         PR debug/47402
25060         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25061         * cfgexpand.c (account_used_vars_for_block): Use them.
25062         * tree-nrv.c (tree_nrv): Likewise.
25063         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25064         (dump_scope_block): Likewise.
25065         (remove_unused_locals): Likewise.
25066
25067         PR debug/47106
25068         PR debug/47402
25069         * tree-inline.c (declare_return_variable): Add result decl to
25070         local decls only once.
25071         * gimple-low.c (record_vars_into): Mark newly-created variables
25072         as referenced.
25073
25074 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25075
25076         PR debug/47498
25077         PR debug/47501
25078         PR debug/45136
25079         PR debug/45130
25080         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25081         debug insns.
25082         (no_real_insns_p, schedule_block, set_priorities): Drop special
25083         treatment of boundary debug insns.
25084         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25085         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25086         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25087         (BOUNDARY_DEBUG_INSN_P): Likewise.
25088         (SCHEDULE_DEBUG_INSN_P): Likewise.
25089         * sched-rgn.c (init_ready_list): Drop special treatment of
25090         boundary debug insns.
25091         * final.c (rest_of_clean_state): Clear notes' BB.
25092
25093 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25094
25095         * config/openbsd.opt (assert=): New Driver option.
25096
25097 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25098
25099         * config/i386/nto.opt: New.
25100         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25101
25102 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25103
25104         * config/i386/netware.opt: New.
25105         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25106
25107 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25108
25109         * config/interix.opt (posix): New Driver option.
25110
25111 2011-02-01  DJ Delorie  <dj@redhat.com>
25112
25113         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25114
25115         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25116         class for A0/A1.
25117
25118 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25119
25120         PR tree-optimization/47561
25121         * toplev.c (process_options): Print the Graphite flags.  Add
25122         flag_loop_flatten to the list of options requiring Graphite.
25123
25124 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25125
25126         * config/i386/cygming.opt (posix): New Driver option.
25127
25128 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25129
25130         * config/arm/vxworks.opt: New.
25131         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25132
25133 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25134
25135         * config/alpha/elf.opt: New.
25136         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25137         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25138
25139 2011-02-01  Richard Guenther  <rguenther@suse.de>
25140
25141         PR tree-optimization/47559
25142         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25143         store-motion on references that can throw.
25144
25145 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25146
25147         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25148         * tree-pass.h (TDF_CSELIB): New macro.
25149         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25150         cselib_lookup): Check for it rather than for TDF_DETAILS.
25151
25152 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25153
25154         PR driver/47547
25155         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25156         is HOST_BIT_BUCKET.
25157
25158         * opts.c (finish_options): Don't add x_aux_base_name if it is
25159         HOST_BIT_BUCKET.
25160
25161 2011-02-01  Richard Guenther  <rguenther@suse.de>
25162
25163         PR tree-optimization/47555
25164         Revert
25165         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25166
25167         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25168
25169 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25170
25171         PR gcc/46692
25172         * config/lm32/t-lm32: Add multilib for all CPU options.
25173
25174 2011-02-01  Richard Guenther  <rguenther@suse.de>
25175
25176         PR tree-optimization/47541
25177         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25178         sure to have a field at offset zero.
25179
25180 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25181
25182         * config/arc/arc.opt (EB, EL): New Driver options.
25183
25184 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25185
25186         * config/alpha/osf5.opt: New.
25187         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25188
25189 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25190
25191         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25192
25193 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25194
25195         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25196         -floop-interchange.
25197         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25198         is an alias of -floop-interchange and that it requires the
25199         Graphite infrastructure.
25200         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25201         flag_loop_interchange based on the value of flag_tree_loop_linear.
25202
25203 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25204             Richard Guenther  <rguenther@suse.de>
25205
25206         PR tree-optimization/47538
25207         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25208         type instead of r1type, except for comparisons.  For right
25209         shifts and comparisons punt if there are mismatches in
25210         sizetype vs. non-sizetype types.
25211
25212 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25213
25214         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25215         avx_runtime.
25216
25217 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25218
25219         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25220         version number.
25221         * configure: Regenerate.
25222
25223 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25224
25225         * configure.ac (gcc_cv_ld_static_option): Define.
25226         (gcc_cv_ld_dynamic_option): Define.
25227         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25228         instead.
25229         (HAVE_LD_STATIC_DYNAMIC): Update message.
25230         (LD_STATIC_OPTION): Define.
25231         (LD_DYNAMIC_OPTION): Define.
25232         * configure: Regenerate.
25233         * config.in: Regenerate.
25234         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25235         HAVE_LD_STATIC_DYNAMIC]: Use them.
25236
25237 2011-01-31  Nick Clifton  <nickc@redhat.com>
25238
25239         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25240         registers inside interrupt handlers if the handler is not a leaf
25241         function.
25242
25243 2011-01-31  Nick Clifton  <nickc@redhat.com>
25244
25245         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25246         reg_renumber returning an INVALID_REGNUM.
25247
25248 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25249
25250         PR libgcj/44341
25251         * doc/install.texi: Document host options discarded when cross
25252         configuring target libraries.
25253
25254 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25255
25256         Reverted:
25257         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25258         PR debug/45136
25259         PR debug/45130
25260         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25261         debug insns.
25262         (no_real_insns_p, schedule_block, set_priorities): Drop special
25263         treatment of boundary debug insns.
25264         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25265         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25266         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25267         (BOUNDARY_DEBUG_INSN_P): Likewise.
25268         (SCHEDULE_DEBUG_INSN_P): Likewise.
25269         * sched-rgn.c (init_ready_list): Drop special treatment of
25270         boundary debug insns.
25271         * final.c (rest_of_clean-state): Clear notes' BB.
25272
25273 2011-01-31  Alan Modra  <amodra@gmail.com>
25274
25275         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25276         toc relative expressions as we do in print_operand_address.
25277
25278 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25279
25280         * doc/extend.texi: Follow spelling conventions.
25281         * doc/invoke.texi: Fix a typo.
25282
25283 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25284
25285         * config/hpux11.opt: New.
25286         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25287         ia64*-*-hpux*): Use hpux11.opt.
25288
25289 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25290
25291         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25292         to tmake_file.
25293
25294 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25295
25296         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25297         support sites.
25298
25299 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25300
25301         * doc/install.texi (Binaries): Remove outdated reference for
25302         Motorola 68HC11/68HC12 downloads.
25303
25304 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25305
25306         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25307         Drepper's paper.
25308
25309 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
25310
25311         PR bootstrap/47147
25312         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25313         used by NetBSD.
25314
25315 2011-01-28  Ahmad Sharif  <asharif@google.com>
25316
25317         * value-prof.c (check_counter): Corrected error message.
25318
25319 2011-01-29  Jie Zhang  <jie@codesourcery.com>
25320
25321         * config/arm/arm.c (arm_legitimize_reload_address): New.
25322         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25323         arm_legitimize_reload_address.
25324         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25325
25326 2011-01-28  Ian Lance Taylor  <iant@google.com>
25327
25328         * godump.c (go_define): Ignore macros whose definitions include
25329         two adjacent operands.
25330
25331 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
25332
25333         PR target/42894
25334         * varasm.c (force_const_mem): Store copy of x in desc->constant
25335         instead of x itself.
25336         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25337         itself into REG_EQUAL note.
25338
25339 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
25340
25341         * config/freebsd.opt (posix, rdynamic): New Driver options.
25342
25343 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25344
25345         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25346         -Bstatic/-Bdynamic.
25347         * configure: Regenerate.
25348
25349 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25350
25351         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25352         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25353
25354 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25355
25356         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25357         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25358         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25359         (s390_preferred_reload_class): Make static. Change return and
25360         'rclass' argument type to reg_class_t.
25361
25362 2011-01-27  Jan Hubicka  <jh@suse.cz>
25363
25364         PR middle-end/46949
25365         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25366         (process_function_and_variable_attributes): Check defined weakrefs.
25367
25368 2011-01-27  Martin Jambor  <mjambor@suse.cz>
25369
25370         PR tree-optimization/47228
25371         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25372         build_ref_for_offset.
25373
25374 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25375
25376         * config/spu/spu-elf.h (ASM_SPEC): Remove.
25377
25378 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
25379
25380         PR rtl-optimization/46856
25381         * postreload.c (reload_combine_recognize_const_pattern): Do not
25382         separate cc0 setter and user on cc0 targets.
25383
25384 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
25385
25386         PR c/43082
25387         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25388         passed a VOID_TYPE expression, immediately emit an error and
25389         return error_mark_node.
25390
25391 2011-01-26  Jeff Law  <law@redhat.com>
25392
25393         PR rtl-optimization/47464
25394         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25395         rather than may_trap_p as needed.
25396
25397 2011-01-26  DJ Delorie  <dj@redhat.com>
25398
25399         PR rtl-optimization/46878
25400         * combine.c (insn_a_feeds_b): Check for the implicit cc0
25401         setter/user dependency as well.
25402
25403 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25404
25405         PR rtl-optimization/44469
25406         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25407         after removing trivially dead basic blocks.
25408
25409 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25410
25411         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25412         * config/frv/frv.h (LINK_SPEC): Likewise.
25413         * config/i386/netware.h (LINK_SPEC): Likewise.
25414         * config/m68k/linux.h (ASM_SPEC): Likewise.
25415         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25416         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25417         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25418         * config/sparc/linux.h (ASM_SPEC): Likewise.
25419         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25420         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25421
25422 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25423
25424         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25425         * config/frv/frv.h (ASM_SPEC): Likewise.
25426         * config/m68k/linux.h (ASM_SPEC): Likewise.
25427         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25428         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25429         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25430         * config/sparc/linux.h (ASM_SPEC): Likewise.
25431         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25432         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25433
25434 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25435
25436         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25437         * config/frv/frv.h (LINK_SPEC): Likewise.
25438         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25439
25440 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25441
25442         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25443         * config/frv/frv.h (ASM_SPEC): Likewise.
25444         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25445         * config/m68k/linux.h (ASM_SPEC): Likewise.
25446         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25447         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25448         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25449         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25450         * config/sparc/linux.h (ASM_SPEC): Likewise.
25451         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25452         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25453         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25454
25455 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
25456
25457         PR target/46997
25458         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25459         (*mux2): Ditto.
25460         (vec_extract_evenodd_help): Ditto.
25461         (vec_extract_evenv4hi): Ditto.
25462         (vec_extract_oddv4hi): Ditto.
25463         (vec_interleave_lowv2si): Ditto.
25464         (vec_interleave_highv2si): Ditto.
25465         (vec_extract_evenv2si): Ditto.
25466         (vec_extract_oddv2si: Ditto.
25467         (vec_pack_trunc_v2si): Ditto.
25468
25469 2011-01-22  Jan Hubicka  <jh@suse.cz>
25470
25471         PR target/47237
25472         * cgraph.h (cgraph_local_info): New field can_change_signature.
25473         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25474         signature can change.
25475         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25476         can change.
25477         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25478         (cgraph_function_versioning): We can not change signature of functions
25479         that don't allow that.
25480         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25481         (lto_input_node): Likewise.
25482         * ipa-inline.c (compute_inline_parameters): Compute
25483         local.can_change_signature.
25484         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25485         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25486         functions that can not change signature.
25487         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25488         init_cumulative_args): Do not use local calling conventions
25489         for functions that can not change signature.
25490
25491 2011-01-22  Jan Hubicka  <jh@suse.cz>
25492
25493         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25494
25495 2011-01-26  Richard Guenther  <rguenther@suse.de>
25496
25497         PR tree-optimization/47190
25498         * cgraphunit.c (process_common_attributes): New function.
25499         (process_function_and_variable_attributes): Use it.
25500
25501 2011-01-26  Richard Guenther  <rguenther@suse.de>
25502
25503         PR lto/47423
25504         * cgraphbuild.c (record_eh_tables): Record reference to personality
25505         function.
25506
25507 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25508
25509         PR debug/45454
25510         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25511         non-debug insns from moving up.
25512
25513 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25514
25515         PR target/40125
25516         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25517         t-dlldir{,-x} fragment for build and add it to tmake_file.
25518         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25519         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25520         * config/i386/t-dlldir: New file.
25521         (SHLIB_DLLDIR): Define.
25522         * config/i386/t-dlldir-x: New file.
25523         (SHLIB_DLLDIR): Define.
25524         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25525         (SHLIB_INSTALL): Use it.
25526
25527 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25528
25529         PR target/47246
25530         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25531         lower bound of the allowed Thumb-2 coprocessor load/store
25532         index range to -256. Add explaining comment.
25533
25534 2011-01-25  Ian Lance Taylor  <iant@google.com>
25535
25536         * godump.c (go_define): Improve lexing of macro expansion to only
25537         accept expressions which match Go spec.
25538
25539 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25540
25541         PR c++/43601
25542         * tree.c (handle_dll_attribute): Handle it.
25543         * doc/extend.texi (@item dllexport): Mention it.
25544         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25545
25546 2011-01-25  Ian Lance Taylor  <iant@google.com>
25547
25548         PR tree-optimization/26854
25549         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25550         (decl_jump_unsafe): Move higher in file, with no other change.
25551         (bind): Set has_jump_unsafe_decl if appropriate.
25552         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25553         (check_earlier_gotos): Likewise.
25554         (c_check_switch_jump_warnings): Likewise.
25555
25556 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25557
25558         * doc/invoke.texi (Warning Options): Add missing hyphen.
25559         (-fprofile-dir): Minor grammatical fixes.
25560         (-fbranch-probabilities): Likewise.
25561
25562 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25563
25564         PR debug/45136
25565         PR debug/45130
25566         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25567         debug insns.
25568         (no_real_insns_p, schedule_block, set_priorities): Drop special
25569         treatment of boundary debug insns.
25570         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25571         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25572         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25573         (BOUNDARY_DEBUG_INSN_P): Likewise.
25574         (SCHEDULE_DEBUG_INSN_P): Likewise.
25575         * sched-rgn.c (init_ready_list): Drop special treatment of
25576         boundary debug insns.
25577         * final.c (rest_of_clean-state): Clear notes' BB.
25578
25579 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25580
25581         * Makefile.in (LAMBDA_H): Removed.
25582         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25583         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25584         lambda-trans.o, and tree-loop-linear.o.
25585         (lto-symtab.o): Remove dependence on LAMBDA_H.
25586         (tree-loop-linear.o): Remove rule.
25587         (lambda-mat.o): Same.
25588         (lambda-trans.o): Same.
25589         (lambda-code.o): Same.
25590         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25591         (tree-vect-slp.o): Same.
25592         * hwint.h (gcd): Moved here.
25593         (least_common_multiple): Same.
25594         * lambda-code.c: Removed.
25595         * lambda-mat.c: Removed.
25596         * lambda-trans.c: Removed.
25597         * lambda.h: Removed.
25598         * tree-loop-linear.c: Removed.
25599         * lto-symtab.c: Do not include lambda.h.
25600         * omega.c (gcd): Removed.
25601         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25602         * tree-data-ref.c (print_lambda_vector): Moved here.
25603         (lambda_vector_copy): Same.
25604         (lambda_matrix_copy): Same.
25605         (lambda_matrix_id): Same.
25606         (lambda_vector_first_nz): Same.
25607         (lambda_matrix_row_add): Same.
25608         (lambda_matrix_row_exchange): Same.
25609         (lambda_vector_mult_const): Same.
25610         (lambda_vector_negate): Same.
25611         (lambda_matrix_row_negate): Same.
25612         (lambda_vector_equal): Same.
25613         (lambda_matrix_right_hermite): Same.
25614         * tree-data-ref.h: Do not include lambda.h.
25615         (lambda_vector): Moved here.
25616         (lambda_matrix): Same.
25617         (dependence_level): Same.
25618         (lambda_transform_legal_p): Removed declaration.
25619         (lambda_collect_parameters): Same.
25620         (lambda_compute_access_matrices): Same.
25621         (lambda_vector_gcd): Same.
25622         (lambda_vector_new): Same.
25623         (lambda_vector_clear): Same.
25624         (lambda_vector_lexico_pos): Same.
25625         (lambda_vector_zerop): Same.
25626         (lambda_matrix_new): Same.
25627         * tree-flow.h (least_common_multiple): Removed declaration.
25628         * tree-parloops.c (lambda_trans_matrix): Moved here.
25629         (LTM_MATRIX): Same.
25630         (LTM_ROWSIZE): Same.
25631         (LTM_COLSIZE): Same.
25632         (LTM_DENOMINATOR): Same.
25633         (lambda_trans_matrix_new): Same.
25634         (lambda_matrix_vector_mult): Same.
25635         (lambda_transform_legal_p): Same.
25636         * tree-pass.h (pass_linear_transform): Removed declaration.
25637         * tree-ssa-loop.c (tree_linear_transform): Removed.
25638         (gate_tree_linear_transform): Removed.
25639         (pass_linear_transform): Removed.
25640         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25641         flag_loop_interchange.
25642
25643 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25644
25645         PR tree-optimization/47265
25646         PR tree-optimization/47443
25647         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25648         if name still has some uses.
25649
25650 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25651
25652         PR tree-optimization/47382
25653         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25654         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25655
25656 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25657
25658         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25659         sjlj_except_unwind_info.
25660
25661 2011-01-25  Richard Guenther  <rguenther@suse.de>
25662
25663         PR tree-optimization/47426
25664         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25665         visible functions results escape.
25666
25667 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25668
25669         PR target/45701
25670         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25671         (arm_get_frame_offsets): Use it.
25672
25673 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25674             Jakub Jelinek  <jakub@redhat.com>
25675
25676         PR tree-optimization/47271
25677         * tree-if-conv.c (bb_postdominates_preds): New.
25678         (if_convertible_bb_p): Call bb_postdominates_preds.
25679         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25680         (predicate_scalar_phi): Call bb_postdominates_preds.
25681
25682 2011-01-25  Nick Clifton  <nickc@redhat.com>
25683
25684         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25685         * config/rx/rx.c (rx_function_value): Likewise.
25686         (rx_promote_function_mode): Likewise.
25687         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25688         in order to make it legitimate.
25689         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25690         make sure that the first operand is the same as the result register.
25691         (addsi3_unspec): Delete.
25692         (subdi3): Do not accept immediate operands.
25693         (subdi3_internal): Likewise.
25694
25695 2011-01-25  Jeff Law  <law@redhat.com>
25696
25697         PR rtl-optimization/37273
25698         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25699         handle them like argument loads from stack slots.  Do not double
25700         count memory for memory constants and argument loads from stack slots.
25701
25702 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25703
25704         PR tree-optimization/47427
25705         PR tree-optimization/47428
25706         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25707         coalesce if the new root var would be TREE_READONLY.
25708
25709 2011-01-25  Richard Guenther  <rguenther@suse.de>
25710
25711         PR middle-end/47414
25712         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25713         correct type for TBAA.
25714
25715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25716
25717         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25718         (close_phi_written_to_memory): Call for_each_index with
25719         dr_indices_valid_in_loop.
25720
25721 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25722
25723         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25724         when it is initialized.
25725
25726 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25727
25728         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25729         call to graphite_find_data_references_in_stmt.
25730         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25731         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
25732         call to graphite_find_data_references_in_stmt.
25733         (analyze_drs_in_stmts): Same.
25734         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25735         in which the scalar analysis of indices is performed.
25736         (create_data_ref): Same.  Update call to dr_analyze_indices.
25737         (find_data_references_in_stmt): Update call to create_data_ref.
25738         (graphite_find_data_references_in_stmt): Same.
25739         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25740         declaration.
25741         (create_data_ref): Same.
25742         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25743         call to create_data_ref.
25744
25745 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25746
25747         * graphite-sese-to-poly.c (build_poly_scop): Move
25748         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25749
25750 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25751
25752         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25753         VAR_DECL, PARM_DECL, and RESULT_DECL.
25754
25755 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25756
25757         * graphite-dependences.c (reduction_dr_1): Allow several reductions
25758         in a reduction PBB.
25759         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25760         that have already been marked as PBB_IS_REDUCTION.
25761
25762 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25763
25764         * graphite-scop-detection.c (same_close_phi_node): New.
25765         (remove_duplicate_close_phi): New.
25766         (make_close_phi_nodes_unique): New.
25767         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25768
25769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25770
25771         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25772         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25773         of both data references to be the same.
25774
25775 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25776
25777         * graphite-dependences.c (build_lexicographical_constraint): Remove
25778         the gdim parameter.
25779         (build_lexicographical_constraint): Adjust call to
25780         ppl_powerset_is_empty.
25781         (dependence_polyhedron): Same.
25782         (graphite_legal_transform_dr): Same.
25783         (graphite_carried_dependence_level_k): Same.
25784         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25785         parameter.
25786         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25787
25788 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25789
25790         * graphite-sese-to-poly.c
25791         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25792         (close_phi_written_to_memory): New.
25793         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25794         and unshare_expr.
25795
25796 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25797
25798         * doc/install.texi: Update the expected version number of PPL to 0.11.
25799         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25800         #if PPL_VERSION_MINOR < 11.
25801
25802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25803
25804         * graphite-dependences.c: Include graphite-cloog-util.h.
25805         (new_poly_ddr): Inlined into dependence_polyhedron.
25806         (free_poly_ddr): Moved close by new_poly_ddr.
25807         (dependence_polyhedron_1): Renamed dependence_polyhedron.
25808         Early return NULL when ppl_powerset_is_empty returns true.
25809         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
25810         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
25811         (graphite_legal_transform_dr): Call new_poly_ddr.
25812         (graphite_carried_dependence_level_k): Same.
25813         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
25814         (dot_transformed_deps_stmt_1): Removed.
25815         (dot_deps_stmt_1): Call dot_deps_stmt_2.
25816         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
25817         (dot_deps_1): Call dot_deps_2.
25818         * Makefile.in (graphite-dependences.o): Add missing dependence on
25819         graphite-cloog-util.h.
25820
25821 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25822
25823         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25824         (build_lexicographical_constraint): Same.
25825         (dependence_polyhedron_1): Same.
25826         (graphite_legal_transform_dr): Same.
25827         (graphite_carried_dependence_level_k): Same.
25828         * graphite-ppl.c (ppl_powerset_is_empty): New.
25829         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25830         * tree-data-ref.c (dump_data_reference): Print the basic block index.
25831
25832 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25833
25834         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25835         the "a followed by b" relation and document it.
25836
25837 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25838
25839         * graphite-dependences.c (build_lexicographical_constraint): Stop the
25840         iteration when the bag of constraints is empty.
25841
25842 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25843
25844         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25845
25846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25847
25848         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25849         nest and two loop depths as parameters.
25850         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25851         lst_perfect_nestify.
25852
25853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25854
25855         * graphite-dependences.c (print_pddr): Call
25856         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25857
25858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25859
25860         * graphite-ppl.c (debug_gmp_value): New.
25861         * graphite-ppl.h (debug_gmp_value): Declared.
25862
25863 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
25864
25865         * doc/install.texi: Document availability of cloog-0.16.
25866
25867 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
25868
25869         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25870         invalid postdominance info.
25871
25872 2011-01-24  Jan Hubicka  <jh@suse.cz>
25873
25874         PR c/21659
25875         * doc/extend.texi (weak pragma): Drop claim that it must
25876         appear before definition.
25877         * varasm.c (merge_weak, declare_weak): Only sanity check
25878         that DECL is not output at a time it is declared weak.
25879
25880 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
25881
25882         * machmode.def: Fixed comments.
25883
25884 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
25885
25886         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25887
25888 2011-01-24  Paul Koning  <ni1d@arrl.net>
25889
25890         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25891         WORDS_BIG_ENDIAN.
25892
25893 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25894
25895         PR target/46519
25896         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25897         (block_info): Add scanned and prev.
25898         (move_or_delete_vzeroupper_2): Return if the basic block
25899         has been scanned and the upper 128bit state is unchanged
25900         from the last scan.
25901         (move_or_delete_vzeroupper_1): Return true if the exit
25902         state is changed.
25903         (move_or_delete_vzeroupper): Visit basic blocks using the
25904         work-list based algorithm based on vt_find_locations in
25905         var-tracking.c.
25906
25907         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25908
25909 2011-01-24  Nick Clifton  <nickc@redhat.com>
25910
25911         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25912         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25913         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
25914         then define __v850e1__.
25915         * doc/invoke.texi: Document -mv850es.
25916
25917 2011-01-24  Richard Henderson  <rth@redhat.com>
25918
25919         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25920         compound unordered comparisons.
25921         * config/rx/rx.c (rx_split_fp_compare): Remove.
25922         * config/rx/rx-protos.h: Update.
25923         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25924         (cbranchsf4): Don't call rx_split_fp_compare.
25925         (*cbranchsf4): Use rx_split_cbranch.
25926         (*cmpsf): Don't accept "i" constraint.
25927         (*conditional_branch): Only valid after reload.
25928         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
25929
25930 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25931
25932         PR target/47385
25933         * config/rs6000/altivec.md (vector constant splitters): Add
25934         support for creating vector single precision constants if -mvsx is
25935         used and we would create the constant using Altivec primitives.
25936
25937 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
25938             Richard Sandiford  <rdsandiford@googlemail.com>
25939
25940         PR rtl-optimization/47166
25941         * reload1.c (emit_reload_insns): Disable the spill_reg_store
25942         mechanism for PRE_MODIFY and POST_MODIFY.
25943         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25944         reloadreg.
25945
25946 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
25947
25948         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25949
25950 2011-01-22  Jan Hubicka  <jh@suse.cz>
25951
25952         PR lto/47333
25953         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25954
25955 2011-01-22  Jan Hubicka  <jh@suse.cz>
25956
25957         PR tree-optimization/43884
25958         PR lto/44334
25959         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25960         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
25961
25962 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
25963
25964         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25965         * config/s390/s390.c (s390_register_move_cost,
25966         s390_memory_move_cost): New.
25967         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
25968
25969 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25970
25971         PR middle-end/47401
25972         * except.c (sjlj_assign_call_site_values): Move setting the
25973         crtl->uses_eh_lsda flag to ...
25974         (sjlj_mark_call_sites): ... here.
25975         (sjlj_emit_function_enter): Support NULL dispatch label.
25976         (sjlj_build_landing_pads): In a function with no landing pads
25977         that still has must-not-throw regions, generate code to register
25978         a personality function with empty LSDA.
25979
25980 2011-01-21  Richard Henderson  <rth@redhat.com>
25981
25982         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
25983
25984         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
25985
25986         * compare-elim.c: New file.
25987         * Makefile.in (OBJS-common): Add it.
25988         (compare-elim.o): New.
25989         * common.opt (fcompare-elim): New.
25990         * opts.c (default_options_table): Add OPT_fcompare_elim.
25991         * tree-pass.h (pass_compare_elim_after_reload): New.
25992         * passes.c (init_optimization_passes): Add it.
25993         * recog.h: Protect against re-inclusion.
25994         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
25995         * doc/invoke.texi (-fcompare-elim): Document it.
25996         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
25997         * doc/tm.texi: Rebuild.
25998
25999 2011-01-22  Nick Clifton  <nickc@redhat.com>
26000
26001         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26002         rx_split_fp_compare.
26003
26004 2011-01-22  Nick Clifton  <nickc@redhat.com>
26005
26006         * config/rx/rx.md (UNSPEC_CONST): New.
26007         (deallocate_and_return): Wrap the amount popped off the stack in
26008         an UNSPEC_CONST in order to stop it being rejected by
26009         -mmax-constant-size.
26010         (pop_and_return): Add a "(return)" rtx.
26011         (call): Drop the immediate operand.
26012         (call_internal): Likewise.
26013         (call_value): Likewise.
26014         (call_value_internal): Likewise.
26015         (sibcall_internal): Likewise.
26016         (sibcall_value_internal): Likewise.
26017         (sibcall): Likewise.  Generate an explicit call using
26018         sibcall_internal.
26019         (sibcall_value): Likewise.
26020         (mov<>): FAIL if a constant operand is not legitimate.
26021         (addsi3_unpsec): New pattern.
26022
26023         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26024         (ok_for_max_constant): New function.
26025         (gen_safe_add): New function.
26026         (rx_expand_prologue): Use gen_safe_add.
26027         (rx_expand_epilogue): Likewise.
26028         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26029         UNSPEC CONSTs.
26030
26031 2011-01-21  Jeff Law  <law@redhat.com>
26032
26033         PR tree-optimization/47053
26034         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26035         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26036         statements are deleted.
26037         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26038         is nonempty, then purge dead edges and cleanup the CFG.
26039
26040 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26041
26042         PR debug/47402
26043         Temporarily revert:
26044         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26045         PR debug/47106
26046         * tree-dfa.c (create_var_ann): Mark variable as used.
26047
26048 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26049
26050         PR middle-end/45566
26051         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26052         notes from other section in hot/cold partitioning even if
26053         last_action is -3.  Increment call_site_base.
26054
26055         PR rtl-optimization/47366
26056         * fwprop.c (forward_propagate_into): Return bool.  If
26057         any changes are made, -fnon-call-exceptions is used and
26058         REG_EH_REGION note is present, call purge_dead_edges
26059         and return true if it purged anything.
26060         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26061         any EH edges were purged.
26062
26063 2011-01-21  Jeff Law  <law@redhat.com>
26064
26065         PR rtl-optimization/41619
26066         * caller-save.c (setup_save_areas): Break out code to determine
26067         which hard regs are live across calls by examining the reload chains
26068         so that it is always used.
26069         Eliminate code which checked REG_N_CALLS_CROSSED.
26070
26071 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26072
26073         PR tree-optimization/47355
26074         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26075         NOP has non-debug uses beyond PHIs in new_bb.
26076
26077 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26078
26079         PR debug/47106
26080         * cfgexpand.c (account_used_vars_for_block): Only account vars
26081         that are annotated as used.
26082         (estimated_stack_frame_size): Don't set TREE_USED.
26083         * tree-dfa.c (create_var_ann): Mark variable as used.
26084
26085 2011-01-21  Richard Guenther  <rguenther@suse.de>
26086
26087         PR middle-end/47395
26088         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26089
26090 2011-01-21  Richard Guenther  <rguenther@suse.de>
26091
26092         PR tree-optimization/47365
26093         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26094         (vn_reference_lookup_pieces): Adjust.
26095         (vn_reference_lookup): Likewise.
26096         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26097         (vn_reference_lookup_3): Only look through kills if in
26098         VN_WALKREWRITE mode.
26099         (vn_reference_lookup_pieces): Adjust.
26100         (vn_reference_lookup): Likewise.
26101         (visit_reference_op_load): Likewise.
26102         (visit_reference_op_store): Likewise.
26103         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26104         (compute_avail): Likewise.
26105         (eliminate): Likewise.
26106
26107 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26108
26109         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26110         DECL_IGNORED_P non-reg vars if they are used.
26111
26112         PR tree-optimization/47391
26113         * varpool.c (const_value_known_p): Return false if
26114         decl is volatile.
26115
26116 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26117
26118         PR bootstrap/47215
26119         * config/i386/i386.c (ix86_local_alignment): Handle
26120         case for va_list_type_node is nil.
26121         (ix86_canonical_va_list_type): Likewise.
26122
26123 2011-01-21  Alan Modra  <amodra@gmail.com>
26124
26125         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26126         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26127
26128 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26129
26130         * config/arm/arm.md (define_attr type): Rename f_load
26131         and f_store to f_fpa_load and f_fpa_store. Update.
26132         (write_conflict): Deal with rename fallout.
26133         (*push_fp_multi): Likewise.
26134         * config/arm/fpa.md (f_load): Use f_fpa_load.
26135         (f_store): Use f_fpa_store.
26136         (*movsf_fpa): Likewise.
26137         (*movdf_fpa): Likewise.
26138         (*movxf_fpa): Likewise.
26139         (*thumb2_movsf_fpa): Likewise.
26140         (*thumb2_movdf_fpa): Likewise.
26141         (*thumb2_movxf_fpa): Likewise.
26142         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26143         f_loadd and f_stored.
26144         (*thumb2_movdi_vfp): Likewise.
26145         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26146         (*thumb2_movsi_vfp): Likewise.
26147         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26148         Use f_loads instead of f_load.
26149         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26150
26151 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26152
26153         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26154         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26155         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26156         (xtensa_mode_dependent_address_p): New function.
26157         (constantpool_address_p): Make static. Change return type to bool.
26158         Change argument type to const_rtx. Use CONST_INT_P predicate.
26159
26160 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26161
26162         PR debug/46583
26163         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26164
26165 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26166
26167         PR debug/47283
26168         * cfgexpand.c (expand_debug_expr): Instead of generating
26169         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26170         etc. handling.
26171
26172 2011-01-20  Richard Guenther  <rguenther@suse.de>
26173
26174         PR middle-end/47370
26175         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26176         the pointer operand of MEM_REFs.
26177
26178 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26179
26180         PR tree-optimization/46130
26181         * ipa-split.c (consider_split): If return_bb contains non-virtual
26182         PHIs other than for retval or if split_function would not adjust it,
26183         refuse to split.
26184
26185 2011-01-20  Richard Guenther  <rguenther@suse.de>
26186
26187         PR tree-optimization/47167
26188         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26189         Revert previous change, only avoid enumeral type changes.
26190
26191 2011-01-19  Mike Stump  <mikestump@comcast.net>
26192
26193         * doc/tm.texi.in (BRANCH_COST): Englishify.
26194         * doc/tm.texi (BRANCH_COST): Likewise.
26195
26196 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26197
26198         PR c++/47291
26199         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26200         (gen_scheduled_generic_parms_dies): New functions.
26201         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26202         generation for the end of CU compilation.
26203         (dwarf2out_finish): Generate template parameters DIEs here.
26204
26205 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26206
26207         PR debug/46240
26208         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26209         debug bind stmt on merge edges.
26210
26211 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26212
26213         PR debug/47079
26214         PR debug/46724
26215         * function.c (instantiate_expr): Instantiate incoming rtl of
26216         implicit arguments, and recurse on VALUE_EXPRs.
26217         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26218         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26219
26220 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26221
26222         * c-parser.c (c_parser_for_statement): Initialize
26223         collection_expression.
26224
26225 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26226
26227         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26228
26229 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26230
26231         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26232         (LINK_SHLIB_SPEC): Don't use %(link_path).
26233         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26234
26235 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26236
26237         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26238         (NO_SHARED_LIB_SUPPORT): Remove.
26239         (LINK_SHLIB_SPEC): Remove one conditional definition.
26240
26241 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26242
26243         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26244         %{call_shared}.
26245         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26246         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26247         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26248         %{call_shared} and conditionals on these options not being passed.
26249         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26250         %{call_shared}.
26251
26252 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26253
26254         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26255         simplify.
26256
26257         * ipa-split.c: Spelling fixes.
26258
26259 2011-01-19  Richard Henderson  <rth@redhat.com>
26260
26261         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26262         (*mulsi3): Likewise.
26263
26264         * longlong.h [__mn10300__] (count_leading_zeros): New.
26265         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26266         [__mn10300__] (add_ssaaaa, subddmmss): New.
26267         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26268         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26269
26270 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26271
26272         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26273
26274 2011-01-19  Richard Henderson  <rth@redhat.com>
26275
26276         * config/mn10300/mn10300.md (addsi3_flags): New.
26277         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26278         (subsi3_flags, subc_internal, subdi3): New.
26279         (subdi3_internal, *subdi3_degenerate): New.
26280         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26281
26282         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26283         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26284         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26285         * config/mn10300/mn10300-protos.h: Update.
26286         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26287         (return_ret): Likewise.  Rename from return_internal_regs.
26288         (return_internal): Remove.
26289
26290         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26291         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26292         (mn10300_legitimate_constant_p): Likewise.
26293         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26294         (mn10300_frame_size): New.
26295         (mn10300_expand_prologue): Use it.
26296         (mn10300_expand_epilogue): Likewise.
26297         (mn10300_initial_offset): Likewise.
26298         * config/mn10300/mn10300-protos.h: Update.
26299         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26300         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26301         (prologue, epilogue, return_internal): Tidy output code.
26302         (mn10300_store_multiple_operation, return): Likewise.
26303         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26304         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26305         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26306         (load_pic, am33_load_pic): New.
26307         (mn10300_load_pic0, mn10300_load_pic1): New.
26308
26309         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26310         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26311         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26312         (cc_flags_for_mode, cc_flags_for_code): New.
26313         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26314         overflow flag is not valid.  Validate that the flags we need
26315         for the comparison are valid.
26316         (mn10300_output_cmp): Remove.
26317         (mn10300_output_add): New.
26318         (mn10300_select_cc_mode): Use cc_flags_for_code.
26319         (mn10300_split_cbranch): New.
26320         (mn10300_match_ccmode): New.
26321         (mn10300_split_and_operand_count): New.
26322         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26323         to the function.
26324         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26325         (addsi3): ... here.  Use mn10300_output_add.
26326         (*addsi3_flags): New.
26327         (*am33_subsi3, *mn10300_subsi3): Merge...
26328         (subsi3): ... here.  Use attribute isa.
26329         (*subsi3_flags): New.
26330         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
26331         when possible.
26332         (*am33_andsi3, *mn10300_andsi3): Merge...
26333         (andsi3): ... here.
26334         (*andsi3_flags): New.
26335         (andsi3 splitters): New.
26336         (*am33_iorsi3, *mn10300_iorsi3): Merge...
26337         (iorsi3): ... here.
26338         (*iorsi3_flags): New.
26339         (*am33_xorsi3, *mn10300_xorsi3): Merge...
26340         (xorsi3): ... here.
26341         (*xorsi3_flags): New.
26342         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26343         (one_cmplsi2): ... here.
26344         (*one_cmplsi2_flags): New.
26345         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
26346         instead of "dax" in constraints.  Use mn10300_split_cbranch.
26347         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
26348         use matching constraints to eliminate a self-comparison.
26349         (*integer_conditional_branch): Rename from integer_conditional_branch.
26350         Use int_mode_flags to match CC_REG.
26351         (*cbranchsi4_btst, *btstsi): New.
26352         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26353         mn10300_split_cbranch.
26354         (*am33_cmpsf): Rename from am33_cmpsf.
26355         (*float_conditional_branch): Rename from float_conditional_branch.
26356         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26357         (zero_extendqisi2): ... here.
26358         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26359         (zero_extendhisi2): ... here.
26360         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26361         (extendqisi2): ... here.
26362         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26363         (extendhisi2): ... here.
26364         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26365         (ashlsi3): ... here.
26366         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26367         (lshrsi3): ... here.
26368         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26369         (ashrsi3): ... here.
26370         (consecutive add peephole): Remove.
26371         * config/mn10300/predicates.md (label_ref_operand): New.
26372         (int_mode_flags): New.
26373         (CCZN_comparison_operator): New.
26374
26375         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26376         (throughput_42_latency_43): New reservation.
26377         (mulsidi3, umulsidi3): New expanders.
26378         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
26379         the MDR register to allocation; separately allocate the low and
26380         high parts of the DImode result.
26381         (umulsidi3_internal): Similarly.
26382         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26383         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
26384         (udivsi3, umodsi3): Remove.
26385         (udivmodsi4, divmodsi4): New expanders.
26386         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
26387         (*divmodsi4): Simiarly.
26388         (ext_internal): New.
26389
26390         * config/mn10300/constraints.md ("z"): New constraint.
26391         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26392         (FIXED_REGISTERS): Don't fix MDR.
26393         (CALL_USED_REGSITERS): Reformat nicely.
26394         (REG_ALLOC_ORDER): Add MDR.
26395         (enum regclass): Add MDR_REGS.
26396         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26397         (IRA_COVER_CLASSES): Add MDR_REGS.
26398         (REGNO_REG_CLASS): Handle MDR_REG.
26399         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26400         (mn10300_register_move_cost): Likewise.
26401         * config/mn10300/mn10300.md (MDR_REG): New.
26402         (*movsi_internal): Handle moves to/from MDR_REGS.
26403
26404         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26405         POST_MODIFY.
26406         (mn10300_secondary_reload): Tidy combination reload classes.
26407         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26408         addresses for AM33.  Allow symbolic offsets for reg+imm.
26409         (mn10300_regno_in_class_p): New.
26410         (mn10300_legitimize_reload_address): New.
26411         * config/mn10300/mn10300.h (enum reg_class): Remove
26412         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26413         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
26414         SP_OR_GENERAL_REGS.
26415         (REG_CLASS_NAMES): Update to match.
26416         (REG_CLASS_CONTENTS): Likewise.
26417         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26418         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26419         (REGNO_IN_RANGE_P): Remove.
26420         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26421         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26422         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26423         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26424         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26425         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26426         (REGNO_GENERAL_P): New.
26427         (HAVE_POST_MODIFY_DISP): New.
26428         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26429         (LEGITIMIZE_RELOAD_ADDRESS): New.
26430         * config/mn10300/mn10300-protos.h: Update.
26431
26432         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26433         DATA_REGS for AM33 stack-pointer destination.
26434         (mn10300_preferred_output_reload_class): Likewise.
26435         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26436         into a form appropriate for ...
26437         (TARGET_SECONDARY_RELOAD): New.
26438         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26439         * config/mn10300/mn10300-protos.h: Update.
26440         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26441         reload_insi; use the "A" constraint for the scratch; handle AM33
26442         moves of sp to non-address registers.
26443
26444         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26445         (*movqi_internal): ... here.
26446         (*am33_movhi, *mn10300_movhi): Merge into...
26447         (*movhi_internal): ... here.
26448         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
26449         as the source/destination of moves from/to SP.
26450         (movsf): Only allow for AM33-2.
26451         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26452         any integer constant constraint.  Only allow for AM33-2.  Tidy
26453         all of the alternative outputs.
26454         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26455         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
26456         for MN103.
26457         (udivsi3, umodsi3): New patterns for MN103 only.
26458
26459 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
26460
26461         * doc/tm.texi.in: Spell out that a lack of register class unions
26462         can lead to ICEs.
26463         * doc/tm.texi: Regenerate.
26464
26465 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26466
26467         PR rtl-optimization/47337
26468         * dce.c (check_argument_store): New function.
26469         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26470
26471         PR tree-optimization/47290
26472         * tree-eh.c (infinite_empty_loop_p): New function.
26473         (cleanup_empty_eh): Use it.
26474
26475 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26476
26477         PR target/46997
26478         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26479         (a64_expand_widen_sum): Ditto.
26480         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26481         (vec_extract_evenodd_help): Ditto.
26482         (vec_extract_evenv4hi): Ditto.
26483         (vec_extract_oddv4hi): Ditto.
26484         (vec_extract_evenv2si): Ditto.
26485         (vec_extract_oddv2si): Ditto.
26486         (vec_extract_evenv2sf): Ditto.
26487         (vec_extract_oddv2sf): Ditto.
26488         (vec_pack_trunc_v4hi: Ditto.
26489         (vec_pack_trunc_v2si): Ditto.
26490         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26491         (vec_interleave_highv8qi): Ditto.
26492         (mix1_r): Ditto.
26493         (vec_extract_oddv8qi): Ditto.
26494         (vec_interleave_lowv4hi): Ditto.
26495         (vec_interleave_highv4hi): Ditto.
26496         (vec_interleave_lowv2si): Ditto.
26497         (vec_interleave_highv2si): Ditto.
26498
26499 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26500
26501         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26502         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26503         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26504         (pa_c_mode_for_suffix): New.
26505         (TARGET_EXPAND_BUILTIN): Define.
26506         (TARGET_C_MODE_FOR_SUFFIX): Define.
26507         (pa_builtins): Define.
26508         (pa_init_builtins): Register __float128 type and init new support
26509         builtins.
26510         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26511         * config/pa/quadlib.c (_U_Qfcopysign): New.
26512
26513 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26514
26515         PR middle-end/46894
26516         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26517         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26518         are defined.
26519
26520 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26521
26522         PR tree-optimization/47179
26523         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26524         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26525
26526 2011-01-18  Richard Guenther  <rguenther@suse.de>
26527
26528         PR rtl-optimization/47216
26529         * emit-rtl.c: Include tree-flow.h.
26530         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26531         of replicating it with different semantics.
26532         * Makefile.in (emit-rtl.o): Adjust.
26533
26534 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26535
26536         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26537         (cortex_a9_dp): Handle neon types correctly.
26538
26539 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26540
26541         PR rtl-optimization/47299
26542         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26543         subtarget.  Use normal multiplication if both operands are constants.
26544         * expmed.c (expand_widening_mult): Don't try to optimize constant
26545         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26546         before using it.
26547
26548 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26549
26550         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26551         spacing after 'e.g.', typos, comma, hyphenation.
26552
26553 2011-01-17  Richard Henderson  <rth@redhat.com>
26554
26555         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26556         (rx_restricted_mem_operand): New.
26557         (rx_shift_operand): Use register_operand.
26558         (rx_source_operand, rx_compare_operand): Likewise.
26559         * config/rx/rx.md (addsi3_flags): New expander.
26560         (adddi3): Rewrite as expander.
26561         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26562         (subsi3_flags): New expander.
26563         (subdi3): Rewrite as expander.
26564         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26565
26566         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26567         (rx_init_builtins): Remove sat builtin.
26568         (rx_expand_builtin): Likewise.
26569         * config/rx/rx.md (ssaddsi3): New.
26570         (*sat): Rename from sat.  Represent the CC_REG input.
26571
26572         * config/rx/predicates.md (rshift_operator): New.
26573         * config/rx/rx.c (rx_expand_insv): Remove.
26574         * config/rx/rx-protos.h: Update.
26575         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26576         operand to the canonical position.
26577         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26578         (*bitclr, *bitclr_in_memory): Similarly.
26579         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26580         (insv): Retain the zero_extract in the expansion.
26581
26582         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26583         (bswaphi2, bitinvert, revw): Likewise.
26584
26585         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26586         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26587         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26588         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26589         (bitset, bitset_in_memory): Likewise.
26590         (bitinvert, bitinvert_in_memory): Likewise.
26591         (bitclr, bitclr_in_memory): Likewise.
26592         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26593         (rx_strend, rx_cmpstrn): Likewise.
26594         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26595         (bitop peep2 patterns): Remove.
26596
26597         * config/rx/rx.c (rx_match_ccmode): New.
26598         * config/rx/rx-protos.h: Update.
26599         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26600         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26601         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26602         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26603         (fix_truncsfsi2, floatsisf2): Likewise.
26604         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26605         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26606         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26607         (*subsi3_flags, *xorsi3_flags): New.
26608
26609         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26610
26611         * config/rx/rx.c (rx_print_operand): Remove workaround for
26612         unsplit comparison operations.
26613
26614         * config/rx/rx.md (movsicc): Split after reload.
26615         (*movsicc): Merge *movsieq and *movsine via match_operator.
26616         (*stcc): New pattern.
26617
26618         * config/rx/rx.c (rx_float_compare_mode): Remove.
26619         * config/rx/rx.h (rx_float_compare_mode): Remove.
26620         * config/rx/rx.md (cstoresi4): Split after reload.
26621         (*sccc): New pattern.
26622
26623         * config/rx/predicates.md (label_ref_operand): New.
26624         (rx_z_comparison_operator): New.
26625         (rx_zs_comparison_operator): New.
26626         (rx_fp_comparison_operator): New.
26627         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26628         Validate that the flags are set properly for the comparison.
26629         (rx_gen_cond_branch_template): Remove.
26630         (rx_cc_modes_compatible): Remove.
26631         (mode_from_flags): New.
26632         (flags_from_code): Rename from flags_needed_for_conditional.
26633         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26634         (rx_select_cc_mode): Likewise.
26635         (rx_split_fp_compare): New.
26636         (rx_split_cbranch): New.
26637         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26638         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26639         (*cbranchsf4): Similarly.
26640         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26641         match_operator and rx_split_cbranch.
26642         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26643         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26644         (*cmpsi): Rename from cmpsi.
26645         (*tstsi): Rename from tstsi.
26646         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26647         (*conditional_branch): Rename from conditional_branch.
26648         (*reveresed_conditional_branch): Remove.
26649         (b<code>): Remove expander.
26650         * config/rx/rx-protos.h: Update.
26651
26652         * config/rx/rx.c (rx_compare_redundant): Remove.
26653         * config/rx/rx.md (cmpsi): Don't use it.
26654         * config/rx/rx-protos.h: Update.
26655
26656         * config/rx/rx-modes.def (CC_F): New mode.
26657         * config/rx/rx.c (rx_select_cc_mode): New.
26658         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26659         * config/rx/rx-protos.h: Update.
26660
26661 2011-01-17  Richard Henderson  <rth@redhat.com>
26662
26663         * except.c (dump_eh_tree): Fix stray ; after for statement.
26664
26665 2011-01-17  Richard Guenther  <rguenther@suse.de>
26666
26667         PR tree-optimization/47313
26668         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26669         handling before copying the body.  Properly deal with
26670         by-reference result in SSA form.
26671
26672 2011-01-17  Ian Lance Taylor  <iant@google.com>
26673
26674         PR target/47219
26675         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26676         (struct_value_alias_set): Don't define.
26677         (sparc_option_override): Don't set sparc_sr_alias_set and
26678         struct_value_alias_set.
26679         (save_or_restore_regs): Use gen_frame_mem rather than calling
26680         set_mem_alias_set.
26681         (sparc_struct_value_rtx): Likewise.
26682
26683 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
26684
26685         PR target/47318
26686         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26687         (_mm_maskstore_pd): Likewise.
26688         (_mm_maskload_ps): Likewise.
26689         (_mm_maskstore_ps): Likewise.
26690         (_mm256_maskload_pd): Change mask to __m256i.
26691         (_mm256_maskstore_pd): Likewise.
26692         (_mm256_maskload_ps): Likewise.
26693         (_mm256_maskstore_ps): Likewise.
26694
26695         * config/i386/i386-builtin-types.def: Updated.
26696         (ix86_expand_special_args_builtin): Likewise.
26697
26698         * config/i386/i386.c (bdesc_special_args): Update
26699         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26700         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26701         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26702         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26703
26704         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26705         Use <avxpermvecmode> on mask register.
26706         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26707
26708 2011-01-17  Olivier Hainque  <hainque@adacore.com>
26709             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26710             Eric Botcazou  <ebotcazou@adacore.com>
26711
26712         PR target/46655
26713         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26714         if <= USHRT_MAX in 32-bit mode.
26715
26716 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26717
26718         * doc/install.texi (Configuration, Specific): Wrap long
26719         lines in examples.  Allow line wrapping in long options
26720         and URLs where beneficial for PDF output.
26721
26722 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
26723
26724         * config/mips/mips.c (mips_classify_symbol): Don't return
26725         SYMBOL_PC_RELATIVE for nonlocal labels.
26726
26727 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26728
26729         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26730
26731 2011-01-15  Jan Hubicka  <jh@suse.cz>
26732
26733         PR tree-optimization/47276
26734         * ipa.c (function_and_variable_visibility): Do not try to mark alias
26735         declarations as needed.
26736
26737 2011-01-15  Martin Jambor  <mjambor@suse.cz>
26738
26739         * common.opt (fdevirtualize): New flag.
26740         * doc/invoke.texi (Option Summary): Document it.
26741         * opts.c (default_options_table): Add devirtualize flag.
26742         * ipa-prop.c (detect_type_change): Return immediately if
26743         devirtualize flag is not set.
26744         (detect_type_change_ssa): Likewise.
26745         (compute_known_type_jump_func): Likewise.
26746         (ipa_analyze_virtual_call_uses): Likewise.
26747
26748 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26749
26750         PR tree-optimization/45934
26751         PR tree-optimization/46302
26752         * ipa-prop.c (type_change_info): New type.
26753         (stmt_may_be_vtbl_ptr_store): New function.
26754         (check_stmt_for_type_change): Likewise.
26755         (detect_type_change): Likewise.
26756         (detect_type_change_ssa): Likewise.
26757         (compute_complex_assign_jump_func): Check for dynamic type change.
26758         (compute_complex_ancestor_jump_func): Likewise.
26759         (compute_known_type_jump_func): Likewise.
26760         (compute_scalar_jump_functions): Likewise.
26761         (ipa_analyze_virtual_call_uses): Likewise.
26762         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26763
26764 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26765
26766         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26767         * config/i386/i386.opt (msse5): New Alias.
26768
26769 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26770
26771         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26772         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26773         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26774         * config/sparc/sparc.h (CC1_SPEC): Likewise.
26775
26776 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26777
26778         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26779         -mcpu options.
26780         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26781         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26782         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26783         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26784         Likewise.
26785         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26786
26787 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26788
26789         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26790
26791 2011-01-14  Mike Stump  <mikestump@comcast.net>
26792
26793         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26794         * config/fr30/fr30.md: Likweise
26795         (movsi_push): Likewise.
26796         (movsi_pop): Likewise.
26797         (enter_func): Likewise.
26798         * config/moxie/moxie.md (movsi_push): Likewise.
26799         (movsi_pop): Likewise.
26800
26801 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26802
26803         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26804         %{no_archive} %{exact_version}.
26805         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26806         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26807         %{no_archive} %{exact_version}.
26808         * config/mips/openbsd.h (LINK_SPEC): Likewise.
26809         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26810         * config/mips/vxworks.h: Likewise.
26811
26812 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26813
26814         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26815
26816 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26817
26818         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26819         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26820
26821 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26822
26823         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26824         -nodefaultlib.
26825
26826 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26827
26828         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26829         for mcpu not cpu.
26830         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26831         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26832         not cpu.
26833         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26834         Don't handle -shlib.
26835
26836 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26837
26838         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26839         (CC1_SPEC): Don't handle -profile.
26840
26841 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26842
26843         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26844         * config/mips/mips.h (CC1_SPEC): Likewise.
26845
26846 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26847
26848         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26849         * config/mips/mips.h (CC1_SPEC): Likewise.
26850
26851 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26852
26853         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26854         * config/m32r/linux.h (LINK_SPEC): Likewise.
26855         * config/mips/linux.h (LINK_SPEC): Likewise.
26856         * config/mips/linux64.h (LINK_SPEC): Likewise.
26857         * config/sparc/linux.h (LINK_SPEC): Likewise.
26858         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26859         LINK_SPEC): Likewise.
26860         * config/xtensa/linux.h (LINK_SPEC): Likewise.
26861
26862 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26863
26864         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26865         %{version:-v}.
26866         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26867
26868 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26869
26870         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26871         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26872
26873 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26876
26877 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26878
26879         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26880         supports -Bstatic/-Bdynamic.
26881         * configure: Regenerate.
26882
26883 2011-01-14  Jan Hubicka  <jh@suse.cz>
26884             Jack Howarth  <howarth@bromo.med.uc.edu>
26885
26886         PR target/46037
26887         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26888         when checking debug_info_level. Test write_symbols instead of
26889         debug_hooks->var_location when setting flag_var_tracking_uninit.
26890
26891 2011-01-14  Richard Guenther  <rguenther@suse.de>
26892
26893         PR tree-optimization/47179
26894         * target.def (ref_may_alias_errno): New target hook.
26895         * targhooks.h (default_ref_may_alias_errno): Declare.
26896         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26897         (default_ref_may_alias_errno): New function.
26898         * target.h (struct ao_ref_s): Declare.
26899         * tree-ssa-alias.c: Include target.h.
26900         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26901         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26902         (targhooks.o): Likewise.
26903         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26904         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26905
26906 2011-01-14  Richard Guenther  <rguenther@suse.de>
26907
26908         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
26909
26910 2011-01-14  Richard Guenther  <rguenther@suse.de>
26911
26912         PR tree-optimization/47280
26913         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26914         return CFG changes.
26915         (tree_ssa_forward_propagate_single_use_vars): Deal with
26916         CFG changes from associate_plusminus.
26917
26918 2011-01-14  Richard Guenther  <rguenther@suse.de>
26919
26920         PR middle-end/47281
26921         Revert
26922         2011-01-11  Richard Guenther  <rguenther@suse.de>
26923
26924         PR tree-optimization/46076
26925         * tree-ssa.c (useless_type_conversion_p): Conversions from
26926         unprototyped to empty argument list function types are useless.
26927
26928 2011-01-14  Richard Guenther  <rguenther@suse.de>
26929
26930         PR tree-optimization/47286
26931         * tree-ssa-structalias.c (new_var_info): Register variables are global.
26932
26933 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26934
26935         PR middle-end/46823
26936         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26937
26938 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
26939
26940         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26941         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26942         * config/xtensa/xtensa.c (xtensa_libcall_value,
26943         xtensa_function_value_regno_p): New functions.
26944         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26945
26946 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
26947
26948         PR c++/47213
26949         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26950         PE specific hook.
26951         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26952         New function prototype.
26953         * config/i386/winnt.c (i386_pe_assemble_visibility):
26954         Warn only if attribute was specified by user.
26955
26956 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26957
26958         PR target/47251
26959         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26960         floating point.
26961         (floatunsdidf2_fcfidu): Ditto.
26962
26963 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26964
26965         * config/s390/s390.c (print_operand_address): Replace 'error' with
26966         'output_operand_lossage'.
26967         (print_operand): Likewise.
26968
26969 2011-01-13  Jeff Law  <law@redhat.com>
26970
26971         PR rtl-optimization/39077
26972         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
26973         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
26974         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
26975         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
26976         * gcse.c (prune_insertions_deletions): New function.
26977         (compute_pre_data): Use it.
26978
26979 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
26980
26981         PR debug/PR46973
26982         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
26983         static function.
26984         (prune_unused_types_mark): Use it.
26985
26986 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
26987
26988         PR rtl-optimization/45352
26989         * sel-sched.c: Update copyright years.
26990         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
26991         in the advancing loop when we have issued issue_rate insns.
26992
26993 2011-01-12  Richard Henderson  <rth@redhat.com>
26994
26995         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
26996         (TARGET_MD_ASM_CLOBBERS): New.
26997
26998         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
26999         (TARGET_DELEGITIMIZE_ADDRESS): New.
27000
27001         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27002         (clzsi2, *bsch): New patterns.
27003
27004         * config/mn10300/mn10300.md (INT): New mode iterator.
27005         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27006
27007         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27008         flag_split_wide_types.
27009
27010         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27011         (mn10300_trampoline_init): Rewrite without a template, an immediate
27012         load and a direct branch.
27013         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27014
27015 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27016
27017         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27018         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27019         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27020         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27021
27022 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27023
27024         PR debug/47209
27025         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27026         of type.
27027
27028 2011-01-12  Jan Hubicka  <jh@suse.cz>
27029
27030         PR driver/47244
27031         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27032         (PLUGIN_COND_CLOSE): New macro.
27033         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27034
27035 2011-01-12  Richard Guenther  <rguenther@suse.de>
27036
27037         PR lto/47259
27038         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27039         register variables in a MEM_REF.
27040
27041 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27042
27043         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27044         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27045         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27046         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27047         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27048         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27049         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27050         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27051         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27052         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27053         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27054         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27055         * config/gnu-user.h: New.  Copied from linux.h.
27056         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27057         GNU_USER_TARGET_STARTFILE_SPEC.
27058         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27059         GNU_USER_TARGET_ENDFILE_SPEC.
27060         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27061         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27062         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27063         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27064         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27065         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27066         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27067         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27068         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27069         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27070         * config/arm/linux-eabi.h (CC1_SPEC): Use
27071         GNU_USER_TARGET_CC1_SPEC.
27072         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27073         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27074         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27075         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27076         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27077         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27078         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27079         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27080
27081 2011-01-12  Richard Guenther  <rguenther@suse.de>
27082
27083         PR other/46946
27084         * doc/invoke.texi (ffast-math): Document it is turned on
27085         with -Ofast.
27086
27087 2011-01-12  Jan Hubicka  <jh@suse.cz>
27088
27089         PR tree-optimization/47233
27090         * opts.c (common_handle_option): Disable ipa-reference with profile
27091         feedback.
27092
27093 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27094
27095         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27096         error message.
27097
27098 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27099
27100         * c-parser.c (c_lex_one_token): Updated and reindented some
27101         comments.  No changes in code.
27102
27103 2011-01-11  Ian Lance Taylor  <iant@google.com>
27104
27105         * godump.c (go_output_var): Don't output the variable if there is
27106         already a type with the same name.
27107
27108 2011-01-11  Ian Lance Taylor  <iant@google.com>
27109
27110         * godump.c (go_format_type): Don't generate float80.
27111
27112 2011-01-11  Richard Henderson  <rth@redhat.com>
27113
27114         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27115         declaration.  Rewrite for both speed and size.
27116         (mn10300_address_cost_1): Remove.
27117         (mn10300_register_move_cost): New.
27118         (mn10300_memory_move_cost): New.
27119         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27120         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27121         extensions, shifts, BSWAP, CLZ.
27122         (mn10300_wide_const_load_uses_clr): Remove.
27123         (TARGET_REGISTER_MOVE_COST): New.
27124         (TARGET_MEMORY_MOVE_COST): New.
27125         * config/mn10300/mn10300-protos.h: Update.
27126         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27127
27128         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27129         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27130         * config/mn10300/mn10300-protos.h: Update.
27131         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27132         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27133         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27134         (*test_int_bitfield, *test_byte_bitfield): Remove.
27135         (*bit_test, *subreg_bit_test): Remove.
27136         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27137
27138         * config/mn10300/constraints.md ("c"): Rename from "A".
27139         ("A", "D"): New constraint letters.
27140         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27141         (fmssf4, fnmasf4, fnmssf4): Likewise.
27142
27143         * config/mn10300/mn10300.md (isa): New attribute.
27144         (enabled): New attribute.
27145
27146         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27147         (abssf2, negsf2): Define only for hardware fp.
27148         (sqrtsf2): Reformat.
27149         (addsf3, subsf3, mulsf3): Merge expander and insn.
27150
27151         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27152         (DEBUGGER_AUTO_OFFSET): Remove.
27153         (DEBUGGER_ARG_OFFSET): Remove.
27154
27155         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27156         Emit register stores with the same offsets as the hardware.
27157         (mn10300_store_multiple_operation): Don't check that the register
27158         save offsets are monotonic.
27159         * config/mn10300/mn10300-protos.h: Update.
27160
27161         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27162
27163         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27164         in terms of the value on the stack, not the MDR register.
27165
27166 2011-01-11  Jan Hubicka  <jh@suse.cz>
27167
27168         PR lto/45721
27169         PR lto/45375
27170         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27171         (symbol_alias_set_destroy, symbol_alias_set_contains,
27172         propagate_aliases_backward): Declare.
27173         * lto-streamer-out.c (struct sets): New sturcture.
27174         (trivally_defined_alias): New function.
27175         (output_alias_pair_p): Rewrite.
27176         (output_unreferenced_globals): Fix output of alias pairs.
27177         (produce_symtab): Likewise.
27178         * ipa.c (function_and_variable_visibility): Set weak alias destination
27179         as needed in lto.
27180         * varasm.c (symbol_alias_set_t): Remove.
27181         (symbol_alias_set_destroy): Export.
27182         (propagate_aliases_forward, propagate_aliases_backward): New functions
27183         based on ...
27184         (compute_visible_aliases): ... this one; remove.
27185         (trivially_visible_alias): New
27186         (trivially_defined_alias): New.
27187         (remove_unreachable_alias_pairs): Rewrite.
27188         (finish_aliases_1): Reorganize code checking if alias is defined.
27189         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27190         in LTO mode.
27191
27192 2011-01-11  Richard Guenther  <rguenther@suse.de>
27193
27194         PR tree-optimization/46076
27195         * tree-ssa.c (useless_type_conversion_p): Conversions from
27196         unprototyped to empty argument list function types are useless.
27197
27198 2011-01-11  Richard Guenther  <rguenther@suse.de>
27199
27200         PR middle-end/45235
27201         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27202         volatile MEMs as MEM_READONLY_P.
27203
27204 2011-01-11  Richard Guenther  <rguenther@suse.de>
27205
27206         PR tree-optimization/47239
27207         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27208
27209 2011-01-11  Jeff Law  <law@redhat.com>
27210
27211         PR tree-optimization/47086
27212         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27213         IVs from statements that might throw.
27214
27215 2011-01-10  Jan Hubicka  <jh@suse.cz>
27216
27217         PR lto/45375
27218         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27219
27220 2011-01-10  Jan Hubicka  <jh@suse.cz>
27221
27222         PR lto/45375
27223         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27224         when correcting profile.
27225
27226 2011-01-10  Jan Hubicka  <jh@suse.cz>
27227
27228         PR lto/46083
27229         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27230         DECL_FINI_PRIORITY.
27231         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27232         Restore DECL_FINI_PRIORITY.
27233
27234 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27235
27236         * doc/gimple.texi: Fix quoting of multi-word return values in
27237         @deftypefn statements.  Ensure presence of return value.  Wrap
27238         overlong @deftypefn lines.
27239         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27240         descriptions of removed functions.
27241         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27242         of multi-word return value in @deftypefn statement.
27243
27244 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27245
27246         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27247         (Conditional Expressions, Logical Operators)
27248         (Statement and operand traversals): Do not indent smallexample
27249         code.  Fix duplicate function argument in example.
27250
27251 2011-01-10  Jeff Law  <law@redhat.com>
27252
27253         PR tree-optimization/47141
27254         * ipa-split.c (split_function): Handle case where we are
27255         returning a value and the return block has a virtual operand phi.
27256
27257 2011-01-10  Jan Hubicka  <jh@suse.cz>
27258
27259         PR tree-optimization/47234
27260         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27261         (pass_feedback_split_functions): Declare.
27262         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27263         tree-profile.
27264         * ipa-split.c (gate_split_functions): Update comments; disable
27265         split-functions for profile_arc_flag and branch_probabilities.
27266         (gate_feedback_split_functions): New function.
27267         (execute_feedback_split_functions): New function.
27268         (pass_feedback_split_functions): New global var.
27269
27270 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27271
27272         PR lto/46760
27273         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27274         calling gimple_call_set_cannot_inline.
27275
27276 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27277
27278         * config/darwin-sections.def: Remove unused section.
27279
27280 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27281
27282         PR c++/47218
27283         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27284
27285 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27286
27287         PR objc/47232
27288         * c-parser.c (c_parser_declaration_or_fndef): Improved
27289         error message.
27290
27291 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27292
27293         * config/i386/winnt.c (i386_pe_start_function): Make sure
27294         to switch back to function's section.
27295
27296 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27297
27298         PR gcc/46902
27299         PR testsuite/46912
27300         * plugin.c: Move include of dlfcn.h from here...
27301         * system.h: ... to here.
27302
27303 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27304
27305         * doc/cpp.texi (C++ Named Operators): Fix markup for header
27306         file name.
27307         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27308         two extra empty pages in PDF output.
27309
27310 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
27311
27312         PR objc/47078
27313         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27314         for error recovery purposes behave as if it was not specified so
27315         that the default type is usd.
27316
27317 2011-01-07  Jan Hubicka  <jh@suse.cz>
27318
27319         PR tree-optmization/46469
27320         * ipa.c (function_and_variable_visibility): Clear needed flags on
27321         nodes with external decls; handle weakrefs merging correctly.
27322
27323 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
27324
27325         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27326         not false.
27327
27328 2011-01-07  Jan Hubicka  <jh@suse.cz>
27329
27330         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27331         and no longer claim that gold is required for linker plugin.
27332         * configure: Regenerate.
27333         * gcc.c (PLUGIN_COND): New macro.
27334         (LINK_COMMAND_SPEC): Use it.
27335         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27336         * config.in (HAVE_LTO_PLUGIN): New.
27337         * configure.ac (--with-lto-plugin): New parameter; autodetect
27338         HAVE_LTO_PLUGIN.
27339
27340 2011-01-07  Jan Hubicka  <jh@suse.cz>
27341
27342         PR tree-optimization/46367
27343         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27344         when we can update original.
27345         (cgraph_mark_inline_edge): Sanity check.
27346         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27347
27348 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27349
27350         * config/spu/spu.h (ASM_COMMENT_START): Define.
27351
27352 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27353
27354         PR driver/42445
27355         * gcc.c (%>S): New.
27356         (SWITCH_KEEP_FOR_GCC): Likewise.
27357         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27358         (do_spec_1): Handle "%>".
27359
27360         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27361
27362 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
27363
27364         PR target/47201
27365         * config/i386/i386.c (ix86_delegitimize_address): If
27366         simplify_gen_subreg fails, return orig_x.
27367
27368         PR bootstrap/47187
27369         * value-prof.c (gimple_stringop_fixed_value): Handle
27370         lhs of the call properly.
27371
27372 2011-01-07  Jan Hubicka  <jh@suse.cz>
27373
27374         PR lto/45375
27375         * lto-opt.c (lto_reissue_options): Set flag_shlib.
27376
27377 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27378
27379         * target.def (function_switched_text_sections): New hook.
27380         * doc/tm.texi: Regenerated.
27381         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27382         * final.c (default_function_switched_text_sections): New.
27383         (final_scan_insn): Call function_switched_text_sections when a
27384         mid-function section change occurs.
27385         * output.h (default_function_switched_text_sections): Declare.
27386         * config/darwin-protos.h (darwin_function_switched_text_sections):
27387         Likewise.
27388         * config/darwin.c (darwin_function_switched_text_sections): New.
27389         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27390
27391 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27392
27393         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
27394         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
27395         the secondary code fragment when outputting for DWARF == 2.
27396
27397 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
27398
27399         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27400         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27401         Remove.
27402         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27403         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27404
27405 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27406
27407         PR debug/46704
27408         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27409         when it is not empty.
27410
27411 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
27412
27413         Bobcat Enablement
27414         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27415         (case ${target}): Add btver1.
27416         * config/i386/driver-i386.c (host_detect_local_cpu): Let
27417         -march=native recognize btver1 processors.
27418         * config/i386/i386-c.c (ix86_target_macros_internal): Add
27419         btver1 def_and_undef
27420         * config/i386/i386.c (struct processor_costs btver1_cost): New
27421         btver1 cost table.
27422         (m_BTVER1): New definition.
27423         (m_AMD_MULTIPLE): Includes m_BTVER1.
27424         (initial_ix86_tune_features): Add btver1 tune.
27425         (processor_target_table): Add btver1 entry.
27426         (static const char *const cpu_names): Add btver1 entry.
27427         (software_prefetching_beneficial_p): Add btver1.
27428         (ix86_option_override_internal): Add btver1 instruction sets.
27429         (ix86_issue_rate): Add btver1.
27430         (ix86_adjust_cost): Add btver1.
27431         * config/i386/i386.h (TARGET_BTVER1): New definition.
27432         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27433         (enum processor_type): Add PROCESSOR_BTVER1.
27434         * config/i386/i386.md (define_attr "cpu"): Add btver1.
27435
27436 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27437
27438         PR target/43309
27439         * config/i386/i386.c (legitimize_tls_address)
27440         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27441         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27442         (tls_initial_exec_64_sun): New pattern.
27443
27444 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27445
27446         * doc/invoke.texi (Overall Options): Improve wording and markup
27447         of the description of -wrapper.
27448
27449 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27450
27451         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27452         rdynamic, threads): New Driver options.
27453
27454 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27455
27456         PR target/38118
27457         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27458         if coming from .tdata.
27459         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27460
27461 2011-01-06  Jan Hubicka  <jh@suse.cz>
27462
27463         PR lto/47188
27464         * collect2.c (main): Do not enable LTOmode when plugin is active.
27465
27466 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27467
27468         PR other/45915
27469         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27470         --version output if supported.
27471         * configure: Regenerate.
27472
27473 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27474
27475         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27476         Driver options.
27477
27478 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27479
27480         PR c/47150
27481         * c-convert.c (convert): When converting a complex expression
27482         other than COMPLEX_EXPR to a different complex type, ensure
27483         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27484         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27485         when converting COMPLEX_TYPE.
27486
27487 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27488
27489         PR tree-optimization/47139
27490         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27491         only the last reduction value is used outside the loop.  Update
27492         documentation.
27493
27494 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27495
27496         * config/rtems.opt: New.
27497         * config.gcc (*-*-rtems*): Use rtems.opt.
27498
27499 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27500
27501         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27502         processors do not support 3DNow instructions.
27503
27504 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27505
27506         * config/spu/spu.c (spu_option_override): Set parameter
27507         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27508
27509 2011-01-05  Jan Hubicka  <jh@suse.cz>
27510
27511         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27512         at the command line.
27513
27514 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27515
27516         PR lto/47162
27517         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27518         deltas on streamed outgoing edges.
27519         (output_node_opt_summary): Output info for outgoing edges only when
27520         the node is in new parameter set.
27521         (output_cgraph_opt_summary): New parameter set, passed to the two
27522         aforementioned functions.  Update its forward declaration and its
27523         callee too.
27524
27525 2011-01-05  Tom Tromey  <tromey@redhat.com>
27526
27527         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27528         operator to c_finish_omp_atomic.
27529         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27530         (build_unary_op): Update.
27531         (build_modify_expr): Update.
27532         (build_asm_expr): Update.
27533
27534 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27535
27536         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27537         newly inserted insns.
27538         (pad_bb): Likewise.
27539         (spu_emit_branch_hint): Likewise.
27540         (insert_hbrp_for_ilb_runout): Likewise.
27541         (spu_machine_dependent_reorg): Call df_finish_pass after
27542         schedule_insns returns.
27543
27544 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27545
27546         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27547
27548 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27549
27550         PR tree-optimization/47005
27551         * tree-sra.c (struct access): Add 'non_addressable' bit.
27552         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27553         (decide_one_param_reduction): Return 0 if the parameter is passed by
27554         reference and one of the accesses in the group is non_addressable.
27555
27556 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27557
27558         PR tree-optimization/47056
27559         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27560         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27561         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27562
27563 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27564
27565         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27566         initializer.  Skip view conversions from aggregate types.
27567
27568 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27569
27570         PR bootstrap/47055
27571         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27572
27573 2011-01-04  Philipp Thomas  <pth@suse.de>
27574
27575         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27576         obvious typo.
27577
27578 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27579
27580         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27581         on empty epilogue sequences.
27582
27583 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27584
27585         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27586         non-static): New Driver options.
27587
27588 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27589
27590         PR driver/47137
27591         * gcc.c (default_compilers[]): Set combinable field to 0
27592         for all assembly languages.
27593
27594 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27595
27596         * config/mips/loongson3a.md: New file.
27597         * config/mips/mips.md: Include loongson3a.md.
27598         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27599         TUNE_LOONGSON_3A.
27600
27601 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27602
27603         PR middle-end/47017
27604         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27605         instead of convert_memory_address_addr_space on the base expression.
27606
27607 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27608
27609         * config/spu/spu.c (spu_option_override): Update error text
27610         for bad -march= / -mtune= values.
27611
27612 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27613
27614         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27615         if branch-hint optimization will be performed.
27616
27617 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27618
27619         PR tree-optimization/47148
27620         * ipa-split.c (split_function): Convert arguments to
27621         DECL_ARG_TYPE if possible.
27622
27623         PR tree-optimization/47155
27624         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27625         when computing uns.
27626
27627         PR rtl-optimization/47157
27628         * combine.c (try_combine): If undobuf.other_insn becomes
27629         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27630         and set *new_direct_jump_p too.
27631
27632 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27633
27634         PR tree-optimization/47021
27635         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27636
27637 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27638
27639         * gcc.c (process_command): Update copyright notice dates.
27640         * gcov.c (print_version): Likewise.
27641         * gcov-dump.c (print_version): Likewise.
27642         * mips-tfile.c (main): Likewise.
27643         * mips-tdump.c (main): Likewise.
27644
27645 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27646
27647         PR tree-optimization/46801
27648         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27649         aggregate fields start at byte boundary instead of the bit-field flag.
27650
27651 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27652
27653         PR driver/47137
27654         * gcc.c (main): Revert revision 168407.
27655
27656 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27657
27658         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27659
27660 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27661
27662         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27663         vector optab to expand vector/scalar shift, update gimple to vector.
27664
27665 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27666
27667         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27668         a thunk.
27669
27670 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27671
27672         PR tree-optimization/46984
27673         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27674         HOST_WIDE_INT.
27675         (cgraph_create_indirect_edge): Fixed line length.
27676         (cgraph_indirect_call_info): Declare.
27677         (cgraph_make_edge_direct) Update declaration.
27678         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27679         (cgraph_create_indirect_edge): Use it.
27680         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
27681         callees.
27682         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27683         the new thunk_delta representation.
27684         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27685         HOST_WIDE_INT.
27686         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27687         (ipa_read_indirect_edge_info): Likewise.
27688         * lto-cgraph.c (output_edge_opt_summary): New function.
27689         (output_node_opt_summary): Call it on all outgoing edges.
27690         (input_edge_opt_summary): New function.
27691         (input_node_opt_summary): Call it on all outgoing edges.
27692
27693 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
27694
27695         PR driver/47137
27696         * gcc.c (main): Don't check have_o when settting combine_inputs.
27697
27698 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
27699
27700         * regrename.c: Add general comment describing the pass.
27701         (struct du_head): Remove 'length' field.
27702         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27703         (regrename_optimize): Do not sort chains.  Rework comments, add others.
27704         Force renaming to the preferred class (if any) in the first pass and do
27705         not consider registers that belong to it in the second pass.
27706         (create_new_chain): Do not set 'length' field.
27707         (scan_rtx_reg): Likewise.
27708
27709 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
27710
27711         PR tree-optimization/47140
27712         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27713         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27714         to bit_value_binop.
27715
27716         PR rtl-optimization/47028
27717         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27718         parm_birth_insn instead of at the beginning of first bb.
27719
27720 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
27721
27722         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27723         Remove the word "see" before "@pxref".
27724         * doc/rtl.texi: Remove the word "see" before "@pxref".
27725
27726 2011-01-01  Jan Hubicka  <jh@suse.cz>
27727
27728         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27729         memory.
27730
27731 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
27732
27733         PR target/38662
27734         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27735
27736 \f
27737 Copyright (C) 2011 Free Software Foundation, Inc.
27738
27739 Copying and distribution of this file, with or without modification,
27740 are permitted in any medium without royalty provided the copyright
27741 notice and this notice are preserved.