OSDN Git Service

2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * calls.c (expand_call): Don't use callgraph to increase
4         preferred_stack_boundary.
5
6         * cgraph.h (cgraph_rtl_info): Use unsigned on
7         preferred_incoming_stack_boundary.
8
9         * final.c (rest_of_clean_state): Use unsigned on
10         preferred_stack_boundary.
11
12 2008-05-09  Tom Tromey  <tromey@redhat.com>
13
14         PR preprocessor/22231:
15         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
16         proceeding.
17
18 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
19
20         PR tree-optimization/36129
21         * tree-ssa-cpp.c: Include value-prof.h.
22         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
23         built-in function was folded to a constant.
24         * Makefile.in (tree-ssa-cpp.c): Depend on value-prof.h
25
26 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
27             Sebastian Pop  <sebastian.pop@amd.com>
28
29         * tree-scalar-evolution.c: Document instantiate_scev.
30         (instantiate_parameters_1): Renamed instantiate_scev_1.
31         Don't use the same loop for instantiation_loop and evolution_loop.
32         (instantiate_scev): New.
33         (instantiate_parameters): Moved...
34         (resolve_mixers): Update call to instantiate_scev_1 to pass the
35         same loop twice.  Maintains the semantics for this function.
36         * tree-scalar-evolution.h (instantiate_scev): Declare.
37         (instantiate_parameters): ...here.  Now static inline.
38         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
39         instead of resolve_mixers.
40
41 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
42
43         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
44
45 2008-05-09  Tomas Bily  <tbily@suse.cz>
46
47         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
48         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
49         * tree-ssa-structalias.c (get_constraint_for): Likewise.
50         * c-common.c (c_common_truthvalue_conversion): Likewise.
51         * tree-object-size.c (compute_object_offset): Likewise.
52         * tree-inline.c (estimate_num_insns_1): Likewise.
53         * varasm.c (const_hash_1, compare_constant, copy_constant)
54         (compute_reloc_for_constant, output_addressed_constants)
55         (initializer_constant_valid_p): Likewise.
56         * c-omp.c (check_omp_for_incr_expr): Likewise.
57         * gimplify.c (gimplify_expr): Likewise.
58         * c-typeck.c (c_finish_return): Likewise.
59         * tree-vectorizer.c (supportable_widening_operation)
60         (supportable_narrowing_operation): Likewise.
61         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
62         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
63         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
64         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
65         (descr_info_loc): Likewise.
66         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
67         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
68         (fold_unary): Likewise.
69         * builtins.c (get_pointer_alignment): Likewise.
70         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
71         (instantiate_parameters_1): Likewise.
72         * tree.c (expr_align, stabilize_reference): Likewise.
73         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
74         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
75         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
76         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
77         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
78         * c-common.c (c_alignof_expr, check_function_arguments_recurse): Likewise.
79         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
80         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
81         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
82         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
83         (forward_propagate_comparison)
84         (tree_ssa_forward_propagate_single_use_vars): Likewise.
85         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
86         * emit-rtl.c (component_ref_for_mem_expr)
87         (set_mem_attributes_minus_bitpos): Likewise.
88         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
89         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr): Likewise.
90         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
91         (build_function_call, pointer_diff, build_compound_expr)
92         (c_finish_return): Likewise.
93         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
94         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1): Likewise.
95         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
96         * expr.c (is_aligning_offset): Likewise.
97         * tree-ssa-alias.c (is_escape_site): Likewise.
98         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
99         (check_all_va_list_escapes): Likewise.
100         * tree-ssa-loop-ivopts.c (determine_base_object)
101         (determine_common_wider_type): Likewise.
102         * dojump.c (do_jump): Likewise.
103         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
104         * tree-gimple.c (is_gimple_cast): Likewise.
105         * fold-const.c (decode_field_reference, )
106         (fold_sign_changed_comparison, fold_unary, fold_comparison)
107         (fold_binary): Likewise.
108         * tree-ssa-alias-warnings.c (find_alias_site_helper)
109         (already_warned_in_frontend_p): Likewise.
110         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
111         * tree.c (really_constant_p, get_unwidened): Likewise.
112         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
113         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
114         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1): Likewise.
115         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use CONVERT_EXPR_P.
116         (CONVERT_EXPR_P): Define.
117         (CASE_CONVERT): Define.
118         
119 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
120
121         PR middle-end/36117
122         * dce.c (deletable_insn_p): Do not delete calls if 
123         df_in_progress.
124         (delete_unmarked_insns): When deleting a call, call 
125         delete_unreachable_blocks.
126         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
127         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed
128         doc.
129         
130 2008-05-08  Richard Guenther  <rguenther@suse.de>
131
132         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
133         (-ftree-salias): Likewise.
134         (salias-max-implicit-fields): Remove param documentation.
135         (salias-max-array-elements): Likewise.
136         * tree-pass.h (pass_create_structure_vars): Remove.
137         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
138         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
139         * tree-ssa-alias.c (create_structure_vars): Remove.
140         (gate_structure_vars): Likewise.
141         (pass_create_structure_vars): Likewise.
142         (gate_build_alias): Likewise.
143         (pass_build_alias): Adjust to run always and dump the function.
144         * common.opt (ftree-salias): Hide.
145         * passes.c (init_optimization_passes): Remove
146         pass_create_structure_vars, adjust comment.
147         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
148         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
149         * opts.c (decode_options): Do not set flag_tree_salias.
150         (common_handle_option): Add OPT_ftree_salias to the backward
151         compatibility section.
152
153 2008-05-08  Richard Guenther  <rguenther@suse.de>
154
155         * tree-flow-inline.h (var_can_have_subvars): Move ...
156         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
157         * tree-flow.h (var_can_have_subvars): Remove.
158         (push_fields_onto_fieldstack): Remove.
159         (sort_fieldstack): Likewise.
160         (struct fieldoff): Move ...
161         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
162         alias_set and base_for_components fields.
163         (sort_fieldstack): Make static.
164         (push_fields_onto_fieldstack): Likewise.  Remove code that
165         handles anything but RECORD_TYPEs.  Remove alias_set and
166         base_for_components handling.
167         (create_variable_info_for): Adjust.
168
169 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
170
171         * common.opt (Wframe-larger-than=): Shorten the help message
172         to one line.
173         * doc/invoke.texi (Wframe-larger-than=): Add more description.
174
175 2008-05-08  Rafael Espindola  <espindola@google.com>
176
177         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
178         trap.
179         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
180         trap and that both operands are gimple values.
181         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
182         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
183         is a fp operation.
184
185 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
186
187         * read-rtl.c (join_c_conditions): Return the first string if the
188         two strings are equal.
189
190 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
191
192         * gensupport.h (pred_data): Add a "num_codes" field.
193         (add_predicate_code): Declare.
194         * gensupport.c (add_predicate_code): New function.
195         (std_pred_table): Add an "allows_const_p" field.
196         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
197         Remove the (incomplete) list of such codes from the codes field.
198         (init_predicate_table): Use add_predicate_code.  Add all
199         RTX_CONST_OBJs if allows_const_p is true.
200         * genrecog.c (process_define_predicate): Use add_predicate_code.
201
202 2008-05-08  David Daney  <ddaney@avtrex.com>
203             Richard Sandiford  <rsandifo@nildram.co.uk>
204         
205         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
206         special case of constant zero operands.
207         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
208         old and new values.  Special case constant zero values.
209         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
210         fails.
211         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
212         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
213
214 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
215
216         PR target/36090
217         * simplify-rtx.c (simplify_plus_minus): Create CONST of
218         similar RTX_CONST_OBJ before CONST_INT.
219
220 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
221
222         * stmt.c (expand_stack_restore): Change sa mode if needed.
223
224 2008-05-08  Richard Guenther  <rguenther@suse.de>
225
226         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
227         return type to bool.
228         (ix86_sol10_return_in_memory): Likewise.
229         (ix86_i386elf_return_in_memory): Likewise.
230         (ix86_i386interix_return_in_memory): Likewise.
231         * config/i386/i386.c (ix86_return_in_memory): Likewise.
232         (ix86_sol10_return_in_memory): Likewise.
233         (ix86_i386elf_return_in_memory): Likewise.
234         (ix86_i386interix_return_in_memory): Likewise.
235
236 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
237
238         PR bootstrap/36180
239         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
240         fndecl argument.
241         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
242         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
243         declared in front.
244
245 2008-05-08  Richard Guenther  <rguenther@suse.de>
246
247         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
248         * tree-data-ref.h (struct dr_alias): Remove subvars field.
249         (DR_SUBVARS): Remove.
250         * tree-dfa.c (dump_subvars_for): Remove.
251         (debug_subvars_for): Likewise.
252         (dump_variable): Do not dump subvars.
253         (remove_referenced_var): Do not remove subvars.
254         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
255         (lookup_subvars_for_var): Remove.
256         (get_subvars_for_var): Likewise.
257         (get_subvars_at): Likewise.
258         (get_first_overlapping_subvar): Likewise.
259         (overlap_subvar): Likewise.
260         * tree-flow.h (subvar_t): Remove.
261         (struct var_ann_d): Remove subvars field.
262         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
263         argument.  Remove special handling of SFTs.
264         (compute_tag_properties): Likewise.
265         (set_initial_properties): Likewise.
266         (compute_call_clobbered): Likewise.
267         (count_mem_refs): Likewise.
268         (compute_memory_partitions): Likewise.
269         (compute_flow_insensitive_aliasing): Likewise.
270         (setup_pointers_and_addressables): Likewise.
271         (new_type_alias): Likewise.
272         (struct used_part): Remove.
273         (used_portions): Likewise.
274         (struct used_part_map): Likewise.
275         (used_part_map_eq): Likewise.
276         (used_part_map_hash): Likewise.
277         (free_used_part_map): Likewise.
278         (up_lookup): Likewise.
279         (up_insert): Likewise.
280         (get_or_create_used_part_for): Likewise.
281         (create_sft): Likewise.
282         (create_overlap_variables_for): Likewise.
283         (find_used_portions): Likewise.
284         (create_structure_vars): Likewise.
285         * tree.def (STRUCT_FIELD_TAG): Remove.
286         * tree.h (MTAG_P): Adjust.
287         (struct tree_memory_tag): Remove base_for_components and
288         unpartitionable flags.
289         (struct tree_struct_field_tag): Remove.
290         (SFT_PARENT_VAR): Likewise.
291         (SFT_OFFSET): Likewise.
292         (SFT_SIZE): Likewise.
293         (SFT_NONADDRESSABLE_P): Likewise.
294         (SFT_ALIAS_SET): Likewise.
295         (SFT_UNPARTITIONABLE_P): Likewise.
296         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
297         (union tree_node): Remove sft field.
298         * alias.c (get_alias_set): Remove special handling of SFTs.
299         * print-tree.c (print_node): Remove handling of SFTs.
300         * tree-dump.c (dequeue_and_dump): Likewise.
301         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
302         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
303         * tree-predcom.c (set_alias_info): Do not set subvars.
304         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
305         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
306         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
307         (add_vars_for_offset): Remove.
308         (add_virtual_operand): Remove special handling of SFTs.
309         (add_call_clobber_ops): Likewise.
310         (add_call_read_ops): Likewise.
311         (get_asm_expr_operands): Likewise.
312         (get_modify_stmt_operands): Likewise.
313         (get_expr_operands): Likewise.
314         (add_to_addressable_set): Likewise.
315         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
316         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
317         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not
318         set subvars.
319         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
320         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
321         (tree_node_structure): Likewise.
322         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
323         handling of SFTs.
324         (find_what_p_points_to): Likewise.
325
326 2008-05-08  Sa Liu  <saliu@de.ibm.com>
327
328         * config/spu/spu.md: Fixed subti3 pattern.
329
330 2008-05-08  Richard Guenther  <rguenther@suse.de>
331
332         PR middle-end/36154
333         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
334         sure to create a representative for trailing arrays for PTA.
335
336 2008-05-08  Richard Guenther  <rguenther@suse.de>
337
338         PR middle-end/36172
339         * fold-const.c (operand_equal_p): Two objects which types
340         differ in pointerness are not equal.
341
342 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
343
344         * calls.c (compute_argument_block_size): Add argument tree fndecl.
345         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
346         (emit_library_call_value_1): Add new variable fndecl initialized by
347         NULL_TREE. It should be the decl type of orgfun, but this information
348         seems not to be available here, so it uses the default calling abi.
349         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
350         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
351         by TARGET_RETURN_IN_MEMORY.
352         * config/i386/i386-interix.h: Likewise.
353         * config/i386/i386.h: Likewise.
354         * config/i386/i386elf.h: Likewise.
355         * config/i386/ptx4-i.h: Likewise.
356         * config/i386/sol2-10.h: Likewise.
357         * config/i386/sysv4.h: Likewise.
358         * config/i386/vx-common.h: Likewise.
359         * config/cris/cris.h: Removed #if 0 clause.
360         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
361         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
362         argument.
363         (ix86_sol10_return_in_memory): Likewise.
364         (ix86_i386elf_return_in_memory): New.
365         (ix86_i386interix_return_in_memory): New.
366         * config/mt/mt-protos.h (mt_return_in_memory): New.
367         * config/mt/mt.c: Likewise.
368         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
369         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
370         * config/bfin/bfin.h: Likewise.
371         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
372         argument.
373         * config/bfin/bfin.c: Likewise.
374         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
375         * config/alpha/unicosmk.h: Likewise.
376         * config/i386/cygming.h: Likewise.
377         * config/iq2000/iq2000.h: Likewise.
378         * config/mips/mips.h: Likewise.
379         * config/mn10300/mn10300.h: Likewise.
380         * config/rs6000/rs6000.h: Likewise.
381         * config/score/score.h: Likewise.
382         * config/spu/spu.h: Likewise.
383         * config/v850/v850.h: Likewise.
384         * defaults.h: Likewise.
385         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
386         * expr.c (emit_block_move): Adjust use of
387         OUTGOING_REG_PARM_STACK_SPACE.
388         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
389         OUTGOING_REG_PARM_STACK_SPACE.
390         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
391
392 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
393
394         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
395         on OMP_RETURN for OMP_FOR.
396
397         PR debug/35896
398         * dwarf2out.c (dw_expand_expr, common_check): Removed.
399         (fortran_common): New function.
400         (gen_variable_die): Call fortran_common instead of common_check,
401         adjust for it returning tree instead of rtx.  Formatting.
402
403 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
404
405         PR rtl/7335
406         PR rtl/33826
407         * see.c (see_copy_insn): Copy new pure const attributes for new call.
408         * c-decl.c (merge_decls): Ditto.
409         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
410         to RTL_CONST_OR_PURE_CALL_P.
411         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
412         Initialized DECL_LOOPING_CONST_PURE.
413         (process_call_operands): Set tree_side_effects properly.
414         * tree.h (TREE_READONLY_DECL_P): Removed.
415         (DECL_IS_PURE): Renamed to DECL_PURE_P.
416         (DECL_LOOPING_OR_CONST_P): New macro.
417         (struct tree_function_decl): Added looping_const_or_pure_p.
418         (ECF_*) Renumbered.
419         (ECF_LOOPING_OR_CONST_P): New macro.
420         * rtlanal.c (pure_const_p): Removed.
421         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
422         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
423         to RTL_CONST_CALL_P.
424         * ipa-pure-const.c (pure_const_state_e): Added looping field.
425         (check_decl, check_tree, check_call, scan_function): Initialize
426         looping.
427         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
428         (static_execute): Set looping true for recursive functions.
429         Undo setting state to IPA_NEITHER for recursive functions.
430         * cse.c (cse_insn): 
431         * ifcvt.c (noce_can_store_speculate_p): Changed
432         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
433         RTL_CONST_OR_PURE_CALL_P.
434         * dse.c (scan_insn): Ditto.
435         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
436         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
437         RTL_CONST_OR_PURE_CALL_P.
438         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
439         pure_call_p to RTL_CONST_CALL_P.
440         * gimplify.c (gimplify_call_expr): Clear side effects for
441         non-looping pure and constant calls.
442         * calls.c (emit_call_1): Set rtl flags from ecf flags.
443         (flags_from_decl_or_type): Set ecf flags from decl flags.
444         (initialize_argument_information): Turn off
445         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
446         Change const to pure if callee_copies is true rather than just
447         turning off const.
448         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
449         way of marking pure calls.
450         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
451         Remove hack that was supposed to fix pr7335 and remove old
452         way of marking pure calls.
453         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
454         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
455         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
456         RTL_CONST_OR_PURE_CALL_P.
457         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
458         * loop-invariant.c (find_exits, find_invariant_bb): Changed
459         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
460         * sched-deps.c (schedule_analyze): Ditto.
461         * rtl.h (struct rtx_def): Use call field, unchanging field, and
462         return_val field of calls to represent pure and const function info.
463         (CONST_OR_PURE_CALL_P): Deleted macro.
464         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
465         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
466         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
467         TREE_READONLY.
468         * tree-optimize.c (execute_fixup_cfg): Added test for
469         ECF_LOOPING_CONST_OR_PURE.
470         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
471         DECL_PURE_P.
472         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
473         effects for looping pure or const calls.
474         (verify_gimple_expr): Added verification code. 
475         * config/alpha/alpha.c (alpha_legitimize_address,
476         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
477         RTL_CONST_CALL_P.
478         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
479         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
480         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
481         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
482         RTL_CONST_OR_PURE_CALL_P.
483         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
484         and const calls to be deleted.
485
486 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
487
488         PR target/35714
489         * config/i386/mmx.md (mmx_subv2sf3): New expander.
490         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
491         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
492         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
493         to handle nonimmediate operands.
494         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
495         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
496         to handle nonimmediate operands.
497         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
498         (mmx_pmulhrwv4hi3): New expander.  Use
499         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
500         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
501         (sse2_umulv1siv1di3): New expander.  Use
502         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
503         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
504         (mmx_eq<mode>3): New expander.  Use
505         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
506         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
507         (mmx_uavgv8qi3): New expander.  Use
508         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
509         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
510         (mmx_uavgv4hi3): New expander.  Use
511         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
512
513         * config/i386/sse.md
514         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
515         to handle nonimmediate operands.
516         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
517         to handle nonimmediate operands.
518         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
519         to handle nonimmediate operands.
520         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
521         to handle nonimmediate operands.
522         (sse2_unpckhpd_exp): New expander.  Use
523         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
524         (sse2_unpcklpd_exp): New expander.  Use
525         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
526         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
527         to handle nonimmediate operands.
528         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
529         to handle nonimmediate operands.
530         (*sse2_<plusminus_insn><mode>3): Rename from
531         sse2_<plusminus_insn><mode>3 insn pattern.
532         (sse2_<plusminus_insn><mode>3): New expander.  Use
533         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
534         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
535         (sse2_umulv2siv2di3): New expander.  Use
536         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
537         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
538         (sse4_1_mulv2siv2di3): New expander.  Use
539         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
540         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
541         (sse2_pmaddwd): New expander.  Use
542         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
543         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
544         (sse2_eq<mode>3): New expander.  Use
545         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
546         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
547         (sse4_1_eqv2di3): New expander.  Use
548         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
549         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
550         (sse2_uavgv16qi3): New expander.  Use
551         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
552         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
553         (sse2_uavgv16qi3): New expander.  Use
554         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
555         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
556         (sse2_uavgv8hi3): New expander.  Use
557         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
558         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
559         (ssse3_pmulhrswv8hi3): New expander.  Use
560         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
561         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
562         (ssse3_pmulhrswv4hi3): New expander.  Use
563         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
564
565         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
566         (<sse>_vmmul<mode>3): Ditto.
567         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
568         (divv2df3): Ditto.
569         (ssse3_pmaddubsw128): Use register_operand for operand 1.
570         (ssse3_pmaddubsw): Ditto.
571
572         * config/i386/i386.c (struct_builtin_description)
573         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
574         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
575         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
576         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
577         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
578         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
579         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
580         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
581         (ix86_fixup_binary_operands): Assert that src1
582         and src2 must have the same mode when swapped.
583         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
584         and ix86_binary_operator_ok.  Do not force operands in registers
585         when optimizing.
586
587 2008-05-07  Jan Hubicka  <jh@suse.cz>
588
589         * cgraph.c (dump_cgraph_node): Update.
590         * cgraph.h (cgraph_local_info): Break out inline summary.
591         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
592         hook.
593         * ipa-inline (inline_summary): New accestor function.
594         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
595         cgraph_decide_inlining, compute_inline_parameters): Update.
596         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
597
598 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
599
600         Cleanup ColdFire scheduling support and add V4 pipeline model.
601
602         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
603         (define_attr cpu): Add cfv4 value.
604         (define_attr type, define_attr type1): Merge into a single 'type'
605         attribute.  Update all uses.
606         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
607         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
608         Update all uses.
609         (define_attr opx_mem, define_attr opy_mem): Remove.
610         (define_attr op_mem): Clean up, update comment.
611         (define_attr size): Use specific values instead of general int.
612         (define_attr guess, define_attr split): Remove.  Update all uses.
613         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
614         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
615         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
616         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
617         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
618         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
619         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
620         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
621         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
622         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
623         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
624         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
625         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
626         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
627         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
628         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
629         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
630         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
631         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
632         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
633         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
634         Update or set attributes.
635         (stack_tie): New fake instruction.
636
637         * config/m68k/m68k.h (TUNE_CFV4): New macro.
638         (m68k_sched_attr_size): Update declaration.
639         (m68k_sched_attr_type2): Remove.
640         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
641         Declare new bypass predicates.
642
643         * config/m68k/m68k.c (m68k_sched_issue_rate,
644         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
645         implementations.
646         (TARGET_SCHED_ISSUE_RATE,
647         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
648         (override_options): Handle scheduling for ColdFire V4 core.
649         (m68k_expand_prologue): Emit stack_tie.
650         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
651         'OP_TYPE_FPN'.  Update all uses.
652         (sched_guess_p): Remove.
653         (sched_address_type): Handle symbolic addresses.
654         (sched_get_operand): New static function.
655         (sched_operand_type): Merge into sched_attr_op_type.
656         (sched_attr_op_type): Handle FP registers, handle quick constants,
657         update.
658         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
659         (m68k_sched_attr_size): Update.  Move logic to ...
660         (sched_get_attr_size_int): New static function.
661         (sched_get_opxy_mem_type): New static function.
662         (m68k_sched_attr_op_mem): Update.
663         (m68k_sched_attr_type2): Remove.
664         (sched_cfv4_bypass_data): New static variable.
665         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
666         (m68k_sched_issue_rate): Implement scheduler hook.
667         (struct _sched_ib: enabled_p): New field.
668         (m68k_sched_variable_issue): Update.  Handle V4.
669         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
670         sched_dump_class_func_t, sched_dump_split_class,
671         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
672         sched_dump_dfa_class, m68k_sched_dump): Remove.
673         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
674         hook.
675         (m68k_sched_init_global): Remove statisctics dumping, introduce
676         sanity check that all instructions have pipeline reservations.  Handle
677         ColdFire V4 core.
678         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
679         Handle ColdFire V4 core.
680         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
681         New static functions.
682         (m68k_sched_address_bypass_p): New bypass predicate.
683         (sched_get_indexed_address_scale): New static function.
684         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
685
686         * cf.md: Update comments.
687         (define_attr type2): Remove.  Use 'type' attribute instead.
688         Update all uses.
689         (cf_ib): Rename to cfv123_ib.  Update all uses.
690         (cf_oep): Rename to cfv123_oep.  Update all uses.
691         (cf_chr): Rename to cfv123_chr.  Update all uses.
692         (cf_mem): Rename to cfv123_mem.  Update all uses.
693         (cf_mac): Move to more appropriate place.
694         (cfv123_guess): New automaton and cpu_unit.
695         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
696         Update uses of 'size' attribute.  Handle before reload scheduling.
697         (cfv123_guess): New dummy reservation for unhandled instructions.
698         (cfv4_*): Pipeline description of ColdFire V4 core.
699         (ignore): New reservation to handle 'ignore' type.
700
701 2008-05-07  Ian Lance Taylor  <iant@google.com>
702
703         PR middle-end/36013
704         * gimplify.c (find_single_pointer_decl_1): Don't look through
705         indirections.
706         (find_single_pointer_decl): Adjust comments.
707
708 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
709
710         PR middle-end/36137
711         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
712         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
713
714         PR middle-end/36106
715         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
716         integral type rather than floating point, then VIEW_CONVERT_EXPR
717         to the floating point type.
718
719 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
720
721         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
722         TFmode op0 to register.
723
724 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
725
726         * c-decl.c (grokdeclarator): Comment typo.
727
728 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
729
730         * tree-flow.h: Remove prototype for computed_goto_p.
731         * tree-cfg.c (computed_goto_p): Make static.
732
733 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
734
735         PR target/35657
736         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
737         (contains_aligned_value_p): This.  Handle _Decimal128.
738         (ix86_function_arg_boundary): Only align _Decimal128 to its
739         natural boundary and handle it properly.
740
741 2008-05-06  Martin Jambor  <mjambor@suse.cz>
742
743         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
744         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
745         (ipcp_method_set_orig_node): Removed.
746         (ipcp_cval_get_cvalue_type): Removed.
747         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
748         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
749         (ipcp_cval_set_cvalue_type): Removed.
750         (ipcp_cval_get_cvalue): Removed.
751         (ipcp_cval_set_cvalue): Removed.
752         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
753         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
754         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
755         (ipcp_cval_meet): Renamed to ipa_lattice_meet
756         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
757         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
758         (ipcp_get_ith_lattice): Changed parameters.
759         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
760         (ipcp_lattice_from_jfunc): Changed parameters.
761         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
762         (ipcp_method_cval_print): Added temporary variable info.
763         (ipcp_redirect): Removed already unused local variable caller.
764         (ipcp_redirect): New temporary variable orig_callee_info
765         (ipcp_redirect): Removed newly unused local variable callee.
766         (ipcp_redirect): Removed (a bit confusing) local variable type.
767         (ipcp_insert_stage): Added local variable info.
768         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
769         renamed too
770         (ipcp_formal_create): Removed.
771         (ipcp_method_cval_set): Removed.
772         (ipcp_propagate_stage): Renamed lattice variables.
773         (ipcp_method_cval_set_cvalue_type): Removed.
774         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
775         (ipcp_print_all_lattices): Changed printed strings to refer to 
776         lattices rather than cvals.
777         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
778         (ipcp_propagate_const): Changed formal parameters.
779         (build_const_val): Changed formal parameters.
780         (ipcp_insert_stage): Removed useless variable cvalue
781         (build_const_val): Changed formal parameters.
782         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
783         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
784         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
785         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
786         (ipcp_print_func_profile_counts): Changed string from "method" to 
787         "function"
788         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
789         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
790         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
791         (ipcp_structures_print): Renamed to ipcp_print_all_structures
792         (ipcp_profile_print): Renamed to ipcp_print_profile_data
793         (ipcp_lat_is_const): Changed parameters and made inline.
794         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
795         (ipcp_redirect): Renamed to ipcp_need_redirect_p
796         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
797         the predicate condition directly
798         (ipcp_propagate_stage): Added local variable args. Removed local
799         variable callee.  (Both are mere code simplifications.)
800         (ipcp_method_dont_insert_const): Renamed to
801         ipcp_node_not_modifiable_p.
802         (ipcp_node_not_modifiable_p): Made inline.
803         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
804         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
805         (ipcp_print_all_lattices): Removed variable cvalue
806         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
807         Updated comments.
808
809 2008-05-06  Olivier Hainque  <hainque@adacore.com>
810
811         * tree-sra.c (try_instantiate_multiple_fields): Early return
812         if field has POINTER_TYPE.
813
814 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
815
816         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
817         by using 'q' specifier for instruction.
818         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
819
820 2008-05-06  Anatoly Sokolov <aesok@post.ru>
821
822         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
823         Change mode of zero_extract from QImode to HImode.
824         (sign bit tests peepholes): (Ditto.).
825
826 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
827
828         * config/i386/mmx.md: Remove double backslashes from asm templates.
829         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
830         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
831         to handle nonimmediate operands.
832         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
833         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
834         to handle nonimmediate operands.
835         (*mmx_<code>v2sf3_finite): New insn pattern.
836         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
837         (mmx_<code>v2sf3): New expander.  Use
838         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
839         (mmx_<plusminus_insn><mode>3): New expander.  Use
840         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
841         (*mmx_<plusminus_insn><mode>3): New insn pattern.
842         (mmx_add<mode>3): Removed.
843         (mmx_ssadd<mode>3): Ditto.
844         (mmx_usadd<mode>3): Ditto.
845         (mmx_sub<mode>3): Ditto.
846         (mmx_sssub<mode>3): Ditto.
847         (mmx_ussub<mode>3): Ditto.
848         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
849         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
850         to handle nonimmediate operands.
851         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
852         insn pattern.
853         (mmx_smulv4hi3_highpart): New expander.  Use
854         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
855         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
856         insn pattern.
857         (mmx_umulv4hi3_highpart): New expander.  Use
858         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
859         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
860         (mmx_<code>v4hi3): New expander.  Use
861         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
862         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
863         (mmx_<code>v8qi3): New expander.  Use
864         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
865         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
866         (mmx_<code><mode>3): New expander.  Use
867         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
868
869 2008-05-05  Jan Hubicka  <jh@suse.cz>
870
871         PR tree-optimization/36118
872         * passes.c (pass_init_dump_file): Fix dump header.
873
874 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
875
876         PR middle-end/36141
877         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
878         VCE for function decls.
879
880 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
881
882         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
883
884 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
885
886         * config/i386/i386.md (sat_plusminus): New.
887         (plusminus_insn): Likewise.
888         (plusminus_mnemonic): Likewise.
889         (addsub): Removed.
890         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
891         (*<addsub><mode>3_cc_overflow): Renamed to ...
892         (*<plusminus_insn><mode>3_cc_overflow): This.
893         (*<addsub>si3_zext_cc_overflow): Renamed to ...
894         (*<plusminus_insn>si3_zext_cc_overflow): This.
895
896         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
897         (<plusminus_insn><mode>3): This.
898         (*<addsub><mode>3): Renamed to ...
899         (*<plusminus_insn><mode>3): This.
900         (<sse>_vm<addsub><mode>3): Renamed to ...
901         (<sse>_vm<plusminus_insn><mode>3): This.
902         (sse3_h<addsub>v4sf3): Renamed to ...
903         (sse3_h<plusminus_insn>v4sf3): This.
904         (sse3_h<addsub>v2df3): Renamed to ...
905         (sse3_h<plusminus_insn>v2df3): This.
906         (<plusminus_insn><mode>3): New.
907         (*<plusminus_insn><mode>3): Likewise.
908         (sse2_<plusminus_insn><mode>3): Likewise.
909         (add<mode>): Removed.
910         (*add<mode>3): Likewise.
911         (sse2_ssadd<mode>3): Likewise.
912         (sse2_usadd<mode>3): Likewise.
913         (sub<mode>3): Likewise.
914         (*sub<mode>3): Likewise.
915         (sse2_sssub<mode>3): Likewise.
916         (sse2_ussub<mode>3): Likewise.
917
918 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
919
920         * gthr-single.h: Add in required interface elements as per gthr.h.
921         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
922         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
923         Generalize UNUSED macro. 
924         (__gthread_once): Add.
925         (__gthread_key_create): Add.
926         (__gthread_key_delete): Add.
927         (__gthread_getspecific): Add.
928         (__gthread_setspecific): Add.
929         
930 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
931
932         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
933         the same size types for the indirect reference on the rhs, then
934         create a VCE.
935
936 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
937
938         * config/i386/i386.md
939         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
940         one insn template instead of template series.
941         (*xordi_1_rex64): Ditto.
942         (*xordi_2_rex64): Ditto.
943
944 2008-05-05  Ira Rosen  <irar@il.ibm.com>
945
946         PR tree-optimization/36119
947         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
948         in case of SLP.
949
950 2008-06-04  Jan Hubicka  <jh@suse.cz>
951
952         tree-optimization/36100
953         * tree-pass.h (pass_O0_always_inline): Declare.
954         * ipa-inline.c (inline_transform): Remove dead code.
955         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
956         pass_O0_always_inline): New.
957         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
958
959 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
960
961         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
962         mnemonic in this_param move for TARGET_64BIT.
963
964 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
965
966         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
967         (*strmovsi_rex_1): Ditto.
968         (*strsetsi_1): Ditto.
969         (*strsetsi_rex_1): Ditto.
970
971         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
972         adddicc expanders using SWI mode iterator.
973
974 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
975
976         PR target/36121
977         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
978         argument handling.
979
980 2008-05-04  David S. Miller  <davem@davemloft.net>
981
982         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
983         (sparc*-*-linux*): Use linux.h in tm_file.
984         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
985         compiler defaulting to 32-bit.
986         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
987         no longer needed.
988         * config/sparc/linux.h: Remove definitions now obtained
989         properly from linux.h
990         * config/sparc/linux64.h: Likewise.
991         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
992         don't want this setting for 32-bit builds in a biarch compiler.
993         * doc/install.texi: Add sparc-linux to list of targets
994         supporting --enable-targets=all.
995
996 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
997
998         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
999
1000 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1001
1002         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1003         after V4SI_FTYPE_V8HI.
1004         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1005         case V4SI_FTYPE_V2DF.
1006
1007 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1008
1009         * doc/invoke.texi (max-flow-memory-locations): Removed.
1010         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1011         
1012 2008-05-03  Richard Guenther  <rguenther@suse.de>
1013
1014         PR middle-end/34973
1015         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1016
1017 2008-05-02  David S. Miller  <davem@davemloft.net>
1018
1019         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1020
1021 2008-05-02  Simon Baldwin <simonb@google.com>
1022
1023         PR bootstrap/36108
1024         * c-common.h (warn_array_subscript_range): Removed.
1025         * c-common.c (warn_array_subscript_range): Ditto.
1026         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1027         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1028
1029 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1030
1031         * config/i386/i386.c (ix86_special_builtin_type): New.
1032         (bdesc_special_args): Likewise.
1033         (ix86_expand_special_args_builtin): Likewise.
1034         (ix86_init_mmx_sse_builtins): Updated.
1035         (ix86_expand_builtin): Updated.
1036         (ix86_expand_store_builtin): Removed.
1037         (ix86_expand_unop_builtin): Likewise.
1038
1039         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1040         * config/i386/mmintrin.h (__v2sf): Here.
1041
1042         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1043         const __v2sf.
1044         (_mm_loadl_pi): Likewise.
1045         (_mm_storeh_pi): Replace __v2si with __v2sf.
1046         (_mm_storel_pi): Likewise.
1047
1048         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1049         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1050         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1051         __builtin_ia32_loadlpd.
1052
1053 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1054
1055         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1056         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1057         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1058         (ix86_init_mmx_sse_builtins): Updated.
1059         (ix86_expand_args_builtin): Likewise.
1060         (ix86_expand_builtin): Likewise.
1061         (ix86_expand_unop1_builtin): Renamed to ...
1062         (ix86_expand_unop_vec_merge_builtin): This.
1063
1064 2008-05-01  Jan Hubicka  <jh@suse.cz>
1065
1066         PR bootstrap/36100
1067         * ipa-inline.c (inline_generate_summary): Make static.
1068         (inline_transform): Do not call inlining at -O0; make static.
1069         * passes.c (execute_todo): Add sanity check.
1070         (execute_one_ipa_transform_pass): Execute proper flags.
1071
1072 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1073
1074         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1075         (DECL_NONADDRESSABLE_P): Likewise.
1076         * alias.c (record_component_aliases): Fix comment.
1077
1078 2008-05-01  Simon Baldwin <simonb@google.com>
1079
1080         * c-common.h (warn_array_subscript_range): New function.
1081         * c-common.c (warn_array_subscript_range): Ditto.
1082         * tree-vrp.c (check_array_ref): Corrected code to agree with
1083         comment, ignoring only arrays of size 0 or size 1.
1084         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1085
1086 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1087
1088         * config/i386/i386.c (ix86_builtin_type): Replace
1089         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1090         (bdesc_args): Updated.
1091         (ix86_init_mmx_sse_builtins): Likewise.
1092         (ix86_expand_args_builtin): Likewise.
1093
1094         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1095         with __v1di.
1096
1097         * doc/extend.texi: Correct __builtin_ia32_palignr.
1098
1099 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         PR target/36095
1102         * config/i386/i386.c (bdesc_crc32): Removed.
1103         (ix86_expand_crc32): Likewise.
1104         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1105         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1106         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1107         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1108         UINT_FTYPE_UINT_UCHAR.
1109         (bdesc_args): Updated. Add crc32 builtins.
1110         (ix86_init_mmx_sse_builtins): Updated.
1111         (ix86_expand_args_builtin): Updated to support subreg.
1112
1113         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1114
1115 2008-05-01  Jan Hubicka  <jh@suse.cz>
1116
1117         * tree-pass.h (opt_pass): Add IPA_PASS.
1118         (varpool_node, cgraph_node): Forward declare.
1119         (ipa_opt_pass): Define.
1120         (pass_ipa_inline): Turn into ipa_opt_pass.
1121         (pass_apply_inline): Remove.
1122         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1123         (apply_inline): Turn into ....
1124         (inline_transform): ... this one.
1125         (inline_generate_summary): New function.
1126         (pass_apply_inline): Remove.
1127         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1128         vector.
1129         (struct function): Add ipa_transforms_to_apply.
1130         * passes.c (register_one_dump_file): Work on IPA_PASS.
1131         (init_optimization_passes): Remove pass_inline_parameters and
1132         pass_apply_inline.
1133         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1134         (execute_one_pass) ... here; apply transforms when possible.
1135         (add_ipa_transform_pass, execute_ipa_summary_asses,
1136         execute_one_ipa_transform_pass): New.
1137         (execute_ipa_pass_list): Update for IPA_PASS type.
1138
1139 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1140
1141         * config/i386/i386.c (ix86_builtin_type): Add
1142         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1143         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1144         (bdesc_args): Add SSE4a builtins.
1145         (ix86_init_mmx_sse_builtins): Updated.
1146         (ix86_expand_args_builtin): Likewise.
1147         (ix86_expand_builtin): Likewise.
1148
1149 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         * config/i386/i386.c (ix86_builtin_type): Add
1152         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1153         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1154         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1155         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1156         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1157         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1158         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1159         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1160         and DI_FTYPE_DI_DI_INT.
1161         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1162         (ix86_init_mmx_sse_builtins): Updated.
1163         (ix86_expand_args_builtin): Likewise.
1164         (ix86_expand_builtin): Likewise.
1165         (ix86_expand_binop_imm_builtin): Removed.
1166
1167         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1168
1169 2008-04-30  Richard Guenther  <rguenther@suse.de>
1170
1171         PR tree-optimization/32921
1172         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1173
1174 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1175
1176         * config/arm/arm.c (arm_unwind_emit): Use
1177         crtl->all_throwers_are_sibcalls instead of
1178         cfun->all_throwers_are_sibcalls.
1179         (arm_output_fn_unwind): Likewise.
1180         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1181         instead of cfun->uses_pic_offset_table.
1182         (frv_expand_prologue): Likewise.
1183         (frv_frame_pointer_required): Likewise.
1184         (frv_expand_fdpic_call): Likewise.
1185         (frv_emit_movsi): Likewise.
1186         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1187         cfun->returns_pcc_struct instead of
1188         current_function_returns_pcc_struct.
1189         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1190         instead of cfun->calls_eh_return.
1191         (m32c_pushm_popm): Likewise.
1192         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1193         "extern" declaration.
1194
1195 2008-04-30  Richard Guenther  <rguenther@suse.de>
1196
1197         PR tree-optimization/21636
1198         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1199         constant address.
1200         (evaluate_stmt): Print the likely value.
1201         (ccp_visit_stmt): Avoid excessive vertical spacing.
1202
1203 2008-04-30  Rafael Espindola  <espindola@google.com>
1204
1205         * builtins.c (fold_call_expr): Return realret.
1206         * tree-ssa-threadedge.c
1207         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1208         __builtin_object_size.
1209
1210 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1211
1212         * gcc.c (wrapper_string): New variable.
1213         (insert_wrapper): New function.
1214         (execute): New option -wrapper.
1215         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1216
1217 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1218
1219         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1220         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1221         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1222         from...
1223         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1224         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1225         config/rs6000/e500crtres64gprctr.asm,
1226         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1227         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1228         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1229         config/rs6000/e500crtsav64gprctr.asm,
1230         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1231         config/rs6000/e500crtsavg64gprctr.asm: New files.
1232         * config/rs6000/t-ppccomm: Add build rules for new files.
1233         (LIB2FUNCS_STATIC_EXTRA): Add new files.
1234         * config/rs6000/t-netbsd: Add build rules for new files.
1235         (LIB2FUNCS_STATIC_EXTRA): New variable.
1236         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1237         (CRTSAVRES_DEFAULT_SPEC): Likewise.
1238         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1239
1240 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         * config/i386/i386.c (ix86_builtin_type): Add
1243         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1244         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1245         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1246         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1247         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1248         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1249         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1250         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1251         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1252         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1253         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1254         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1255         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1256         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1257         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1258         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1259         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1260         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1261         V1DI_FTYPE_V2SI_V2SI.
1262         (bdesc_2arg): Moved to ...
1263         (bdesc_args): Here.
1264         (ix86_init_mmx_sse_builtins): Updated.
1265         (ix86_expand_args_builtin): Updated.  Take a pointer
1266         to const struct builtin_description.  Handle comparison
1267         builtin functions.
1268         (ix86_expand_sse_compare): Take a new argument for swapping operands.
1269         (ix86_expand_builtin): Updated.
1270
1271         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1272         (ssse3_pmaddubsw128): This.
1273         (ssse3_pmaddubswv4hi3): Renamed to ...
1274         (ssse3_pmaddubsw): This.
1275
1276         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1277         (__builtin_ia32_packssdw128): Likewise.
1278         (__builtin_ia32_packuswb128): Likewise.
1279         (__builtin_ia32_pmaddubsw): Likewise.
1280         (__builtin_ia32_pmaddubsw128): Likewise.
1281
1282 2008-04-30  Richard Guenther  <rguenther@suse.de>
1283
1284         PR tree-optimization/14847
1285         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1286         (recognize_bits_test): Use it.
1287         (recognize_single_bit_test): Likewise.
1288
1289 2008-04-30  Martin Jambor  <mjambor@suse.cz>
1290
1291         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1292         instead of setting number of formal parameters to zero.
1293         (ipcp_init_stage): Do not set the number of actual parameters to zero 
1294         either.
1295         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1296         which are called with variable number of arguments.
1297         (ipcp_insert_stage): Explicitely skipping all nodes which are
1298         called with variable number of arguments.
1299         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
1300         number of parameters.
1301
1302         * ipa-prop.h (struct ipa_node_params): Added flag
1303         called_with_var_arguments
1304         (ipa_set_param_count): Added.  Changed sole setter to use it.
1305         (ipa_get_param_count): Added.  All readers of param_count
1306         converted to use it instead.
1307         (ipa_set_called_with_variable_arg): Added.
1308         (ipa_is_called_with_var_arguments): Added.
1309         (ipa_get_ith_param): Added.  All readers of param_decls converted
1310         to use it instead.
1311         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
1312         changed to use it. 
1313         (ipa_get_cs_argument_count): Added, all readers of argument_count
1314         changed to cal it.
1315         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
1316         to use it.
1317         
1318         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1319         (struct ipcp_lattice): Renamed cval_type to type
1320         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1321
1322         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1323         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1324         (ipcp_insert_stage): Changed the type of variable cvalue to tree
1325         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1326         (build_const_val): Changed the type of parameter cvalue to tree
1327         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1328         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1329         
1330         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
1331         constant 
1332
1333         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1334         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1335         (ipa_add_method): Renamed to ipa_push_func_to_list
1336         (ipa_remove_method): Renamed to ipa_pop_func_from_list
1337         (ipa_callsite_param_count): Removed.
1338         (ipa_callsite_param_count_set): Removed.
1339         (ipa_callsite_param): Removed.
1340         (ipa_callsite_callee): Removed.
1341         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1342         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1343         (ipa_method_formal_count): Removed.
1344         (ipa_method_formal_count_set): Removed.
1345         (ipa_method_get_tree): Removed.
1346         (ipa_method_tree_map_create): Removed.
1347         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1348         (ipa_create_param_decls_array): Creates the array itself
1349         (ipa_create_param_decls_array): Temporary variable info instead of 
1350         a few dereferences.
1351         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1352         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1353         (get_type): Removed.
1354         (ipa_jf_get_info_type): Removed.
1355         (ipa_node_create): Renamed to ipa_create_node_params
1356         (ipa_free): Renamed to ipa_free_all_node_params
1357         (ipa_nodes_create): Renamed to ipa_create_all_node_params
1358         (ipa_edges_create): Renamed to ipa_create_all_edge_args
1359         (ipa_edges_free): Renamed to ipa_free_all_edge_args
1360         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1361         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
1362         ipa_free_all_edge_args
1363         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1364         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1365         (ipa_create_methodlist_node): Removed.
1366         (ipa_methodlist_method): Removed.
1367         (ipa_methodlist_method_set): Removed.
1368         (ipa_methodlist_next_method): Removed.
1369         (ipa_methodlist_next_method_set): Removed.
1370         (ipa_method_is_modified): Removed.
1371         (ipa_method_modify_create): Removed.
1372         (ipa_method_modify_init): Temporary variable info instead of a few 
1373         dereferences.
1374         (ipa_detect_param_modifications): Temporary variable info instead of 
1375         a few dereferences.
1376         (ipa_compute_jump_functions): Temporary variable info instead of 
1377         a few dereferences.
1378         (ipa_method_modify_set): Removed.
1379         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1380         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
1381         than craph_node as the first parameter.
1382         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1383         (ipa_method_modify_init): Removed.
1384         (ipa_compute_jump_functions): Added a temp variable instead of 
1385         repeatadly dereferencing the cgraph_edge.aux pointer
1386         (ipa_callsite_param_set_type): Removed.
1387         (ipa_compute_jump_functions): i renamed to index and moved to 
1388         an inner block
1389         (ipa_callsite_param_set_info_type_formal): Removed.
1390         (ipa_callsite_param_set_info_type): Removed.
1391         (ipa_callsite_param_map_create): Removed.
1392         (ipa_callsite_tree): Removed.
1393         (ipa_callsite_caller): Removed.
1394         (ipa_pop_func_from_list): return_method removed to return_func
1395
1396         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1397         prefixed all values with IPA_. Changed all users.
1398         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
1399         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
1400         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
1401         (union parameter_info): Renamed to jump_func_value.
1402         (union jump_func_value): Renamed value to constant
1403         (struct ipa_jump_func): Renamed info_type to value
1404         (struct ipa_node): Renamed to ipa_node_params
1405         (struct ipa_node_params): Renamed ipa_arg_num to param_count
1406         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1407         (struct ipa_node_params): Renamed ipa_mod to modified_flags
1408         (struct ipa_edge): Renamed to ipa_edge_args
1409         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1410         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1411         (struct ipa_methodlist): Renamed to ipa_func_list
1412         (struct ipa_func_list): method_p renamed to node, next_method
1413         renamed to next
1414         (ipa_methodlist_p): Removed, switched all users to struct pointer
1415         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1416
1417 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
1418
1419         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1420         (rs6000_emit_epilogue): Use backchain to restore only when we
1421         have a large frame.  Make use of frame pointer to restore if we
1422         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1423
1424 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
1425
1426         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1427         Add mode to zero_extract.
1428         (sign bit tests peepholes): (Ditto.).
1429
1430 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         * config/i386/i386.c (ix86_builtins): Replace Prescott New
1433         Instructions in comments with SSE3.
1434         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
1435         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1436         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1437         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1438         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1439         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1440         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1441         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1442         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1443         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1444         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1445         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1446         (bdesc_sse_args): Renamed to ...
1447         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1448         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1449         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1450         IX86_BUILTIN_FABSQ.
1451         (bdesc_1arg): Moved to ...
1452         (bdesc_args): Here.
1453         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
1454         Instructions in comments with SSE3.
1455         (ix86_expand_sse_operands_builtin): Renamed to ...
1456         (ix86_expand_args_builtin): This.  Updated.
1457         (ix86_expand_unop1_builtin): Update comments.
1458         (ix86_expand_builtin): Updated.
1459
1460 2008-04-29  Richard Guenther  <rguenther@suse.de>
1461
1462         PR tree-optimization/36078
1463         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1464         Update virtual SSA form after cleaning up the CFG.
1465
1466 2008-04-29  Richard Guenther  <rguenther@suse.de>
1467
1468         PR middle-end/15255
1469         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1470
1471 2008-04-29  Richard Guenther  <rguenther@suse.de>
1472
1473         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1474         (compute_may_aliases): Do not call finalize_ref_all_pointers.
1475         (compute_flow_insensitive_aliasing): Do not treat
1476         PTR_IS_REF_ALL pointers special.
1477         (get_smt_for): Likewise.
1478         (may_alias_p): Re-structure.
1479         (is_escape_site): A ref-all pointer conversion is not an escape site.
1480         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1481         PTR_IS_REF_ALL pointers special.
1482         * tree-ssa-structalias.h (struct alias_info): Remove
1483         ref_all_symbol_mem_tag field.
1484         (PTR_IS_REF_ALL): Remove.
1485
1486 2008-04-29  Richard Guenther  <rguenther@suse.de>
1487
1488         PR middle-end/36077
1489         * fold-const.c (extract_muldiv_1): In combining division constants
1490         make sure to never overflow.
1491
1492 2008-04-29  Nick Clifton  <nickc@redhat.com>
1493
1494         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1495
1496 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1497
1498         PR bootstrap/35169
1499         * optc-gen.awk: Work around HP-UX/IA awk bug.
1500
1501 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
1502
1503         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1504         2008-04-25 commit.
1505
1506 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1507
1508         PR target/36073
1509         * config/i386/i386.md
1510         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1511         Change operand 1 predicate to nonimmediate_operand.
1512
1513 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
1514
1515         PR debug/36060
1516         * dwarf2out.c (struct die_struct): Mark as chain_circular through
1517         die_sub field.
1518         * gengtype.c (walk_type, write_func_for_structure): Handle
1519         chain_circular.
1520         * doc/gty.texi: Document chain_circular.
1521
1522 2008-04-28  Richard Guenther  <rguenther@suse.de>
1523
1524         PR tree-optimization/36066
1525         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1526         SCEV and loop.
1527
1528 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1529
1530         PR target/36064
1531         * config/i386/i386.md
1532         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1533         Use match_scratch instead of match_operand for operands 3 and 4.
1534
1535 2008-04-27  Richard Guenther  <rguenther@suse.de>
1536
1537         PR tree-optimization/18754
1538         PR tree-optimization/34223
1539         * tree-pass.h (pass_complete_unrolli): Declare.
1540         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1541         loop size before and after unconditionally of UL_NO_GROWTH in effect.
1542         Rewrite loop into loop closed SSA form if it is not already.
1543         (tree_unroll_loops_completely): Re-structure to iterate over
1544         innermost loops with intermediate CFG cleanups.
1545         Unroll outermost loops only if requested or the code does not grow
1546         doing so.
1547         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
1548         loops are available.
1549         (tree_vectorize): Instead do so here.
1550         (tree_complete_unroll): Also unroll outermost loops.
1551         (tree_complete_unroll_inner): New function.
1552         (gate_tree_complete_unroll_inner): Likewise.
1553         (pass_complete_unrolli): New pass.
1554         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
1555         uses outside of the loop.
1556         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
1557         form if it is available.  
1558         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
1559         * passes.c (init_optimization_passes): Schedule complete inner
1560         loop unrolling pass before the first CCP pass after final inlining.
1561
1562 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1563
1564         * targhooks.h (default_emutls_var_fields,
1565         default_emutls_var_init): Declare.
1566         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
1567         * target.h (struct gcc_target): Add struct emutls member.
1568         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
1569         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
1570         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
1571         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
1572         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
1573         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
1574         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
1575         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
1576         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
1577         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
1578         emit debug information.
1579         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
1580         * varasm.c: Include targhooks.h.
1581         (emutls_object_section, emutls_tmpl_section): New.
1582         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
1583         (EMUTLS_SEPARATOR): New.
1584         (prefix_name): New.
1585         (get_emutls_object_name): New.
1586         (default_emutls_var_fields): New, broken out of ...
1587         (get_emutls_object_type): ... here.  Adjust to use target hooks.
1588         (get_emutls_init_templ_addr): Adjust to use target hooks.
1589         (emutls_decl): Adjust to use target hooks.
1590         (emutls_finish): Likewise.
1591         (default_emutls_var_init): New, broken out of ...
1592         (assemble_variable): ... here.  Adjust to use target hooks.
1593         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
1594         SECCAT_EMUTLS_TMPL.
1595         * c-common.c (handle_section_attribute): Prevent overriding
1596         sections for emulated tls with special sections.
1597         * config/i386/i386.c (x86_64_elf_select_section): Add
1598         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
1599         (x86_64_elf_unique_section): Likewise.
1600         * config/vxworks.c: Include tree.h.
1601         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
1602         (vxworks_override_options): Set TLS scheme.
1603         * doc/tm.texi (Emulated TLS): New node.
1604
1605 2008-04-26  Simon Baldwin <simonb@google.com>
1606
1607         PR c/35652
1608         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
1609         with propagated string constants.
1610
1611 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
1612
1613         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
1614         constraint for operand 2 when operand 0 is memory operand.
1615         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
1616         operand 0 is memory operand.
1617         (fix_trunc<mode>_i387_with_temp): Ditto.
1618         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
1619         operand 2 when operand 1 is memory operand.
1620         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
1621         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
1622         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
1623         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1624         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
1625         operands 2,3 and 4 when operand 1 is memory operand.
1626         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
1627         is memory operand.
1628         (fistdi2_floor_with_temp): Ditto.
1629         (fist<mode>2_floor_with_temp): Ditto.
1630         (fistdi2_ceil_with_temp): Ditto.
1631         (fist<mode>2_ceil_with_temp): Ditto.
1632         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
1633
1634 2008-04-26  David Daney  <ddaney@avtrex.com>
1635
1636         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
1637         unspec_volitile.
1638         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
1639         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1640         UNSPEC_UPDATE_GOT_VERSION): Renumber.
1641         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
1642         (compare_and_swap_12): New insn.
1643         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
1644         * config/mips/mips.c (mips_force_binary): New function.
1645         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
1646         (mips_expand_compare_and_swap_12): New function.
1647         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
1648
1649 2008-04-25  Jan Hubicka  <jh@suse.cz>
1650
1651         PR testsuite/35843
1652         * cfgexpand.c (pass_expand): Turn into RTL pass.
1653         * passes.c (execute_one_pass): Do pass typechecking after execution.
1654         * tree-pass.h (pass_expand): Turn into RTL pass.
1655
1656         * function.h (struct rtl_data): Move here fields
1657         accesses_prior_frames, calls_eh_return, saves_all_registers,
1658         has_nonlocal_goto, has_asm_statement, is_thunk,
1659         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
1660         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
1661         arg_pointer_save_area_init from struct function; turn into bool.
1662         (struct function): Move
1663         calls_eh_return, saves_all_registers, has_nonlocal_goto,
1664         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
1665         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
1666         tail_call_emit, arg_pointer_save_area_init
1667         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
1668         (current_function_returns_struct, current_function_returns_pcc_struct,
1669         current_function_calls_setjmp, current_function_calls_alloca,
1670         current_function_accesses_prior_frames,
1671         current_function_calls_eh_return, current_function_is_thunk,
1672         current_function_stdarg, current_function_profile,
1673         current_function_limit_stack, current_function_uses_pic_offset_table,
1674         current_function_uses_const_pool, current_function_has_nonlocal_label,
1675         current_function_saves_all_registers,
1676         current_function_has_nonlocal_goto,
1677         current_function_has_asm_statement): Remove accesor macros.
1678         * ra-conflict.c (global_conflicts): Update.
1679         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
1680         (suitable_for_tail_call_opt_p): Update.
1681         * builtins.c (expand_builtin_return_addr): Update.
1682         (expand_builtin_setjmp_setup): Update.
1683         (expand_builtin_nonlocal_goto): Update.
1684         * final.c (final_start_function): Update.
1685         (profile_function): Update.
1686         (leaf_function_p): Update.
1687         (only_leaf_regs_used): Update.
1688         * df-scan.c (df_get_exit_block_use_set): Update.
1689         * dojump.c (clear_pending_stack_adjust): Update.
1690         * tree-stdarg.c (gate_optimize_stdarg): Update.
1691         * gimple-low.c (lower_function_body): Update.
1692         * global.c (compute_regsets): Update.
1693         (global_alloc): Update.
1694         * dwarf2out.c (dwarf2out_begin_prologue): Update.
1695         * expr.c (expand_assignment): Update.
1696         * dse.c (dse_step0): Update.
1697         (dse_step1): Update.
1698         * c-decl.c (store_parm_decls): Update.
1699         * local-alloc.c (combine_regs): Update.
1700         (find_free_reg): Update.
1701         * function.c (assign_parms_augmented_arg_list): Update.
1702         (assign_parm_find_data_types): Update.
1703         (assign_parms): Update.
1704         (allocate_struct_function): Update.
1705         (expand_function_start): Update.
1706         (expand_function_end): Update.
1707         (get_arg_pointer_save_area): Update.
1708         (thread_prologue_and_epilogue_insns): Update.
1709         (rest_of_match_asm_constraints): Update.
1710         * stor-layout.c (variable_size): Update.
1711         * gcse.c (gcse_main): Update.
1712         (bypass_jumps): Update.
1713         * gimplify.c (gimplify_function_tree): Update.
1714         * calls.c (emit_call_1): Update.
1715         (expand_call): Update.
1716         * bt-load.c (compute_defs_uses_and_gen): Update.
1717         * except.c (sjlj_assign_call_site_values): Update.
1718         (sjlj_emit_function_enter): Update.
1719         (can_throw_external): Update.
1720         (set_nothrow_function_flags): Update.
1721         (expand_builtin_unwind_init): Update.
1722         (expand_eh_return): Update.
1723         (convert_to_eh_region_ranges): Update.
1724         (output_function_exception_table): Update.
1725         * emit-rtl.c (gen_tmp_stack_mem): Update.
1726         * cfgexpand.c (expand_used_vars): Update.
1727         (tree_expand_cfg): Update.
1728         * cfgcleanup.c (rest_of_handle_jump): Update.
1729         * explow.c (allocate_dynamic_stack_space): Update.
1730         * varasm.c (assemble_start_function): Update.
1731         (force_const_mem): Update.
1732         (mark_constant_pool): Update.
1733         * tree-optimize.c (tree_rest_of_compilation): Update.
1734         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
1735         * tree-cfg.c (notice_special_calls): Update.
1736         (is_ctrl_altering_stmt): Update.
1737         (tree_can_make_abnormal_goto): Update.
1738         (tree_purge_dead_abnormal_call_edges): Update.
1739         * config/alpha/predicates.md: Update.
1740         * config/alpha/alpha.c (alpha_sa_mask): Update.
1741         (alpha_sa_size): Update.
1742         (alpha_does_function_need_gp): Update.
1743         (alpha_expand_prologue): Update.
1744         (alpha_start_function): Update.
1745         (alpha_output_function_end_prologue): Update.
1746         (alpha_expand_epilogue): Update.
1747         * config/frv/frv.c (frv_stack_info): Update.
1748         (frv_expand_epilogue): Update.
1749         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
1750         (s390_register_info): Update.
1751         (s390_frame_info): Update.
1752         (s390_init_frame_layout): Update.
1753         (s390_can_eliminate): Update.
1754         (save_gprs): Update.
1755         * config/spu/spu.c (spu_split_immediate): Update.
1756         (need_to_save_reg): Update.
1757         (spu_expand_prologue): Update.
1758         (spu_expand_epilogue): Update.
1759         * config/sparc/sparc.md: Update.
1760         * config/sparc/sparc.c (eligible_for_return_delay): Update.
1761         (sparc_tls_got): Update.
1762         (legitimize_pic_address): Update.
1763         (sparc_emit_call_insn): Update.
1764         (sparc_expand_prologue): Update.
1765         (output_return): Update.
1766         (print_operand): Update.
1767         (sparc_function_ok_for_sibcall): Update.
1768         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
1769         * config/m32r/m32r.md: Update.
1770         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
1771         (m32r_compute_frame_size): Update.
1772         (m32r_expand_prologue): Update.
1773         (m32r_expand_epilogue): Update.
1774         (m32r_legitimize_pic_address): Update.
1775         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
1776         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1777         * config/i386/i386.c (ix86_frame_pointer_required): Update.
1778         (gen_push): Update.
1779         (ix86_save_reg): Update.
1780         (ix86_compute_frame_layout): Update.
1781         (ix86_expand_prologue): Update.
1782         (ix86_expand_epilogue): Update.
1783         * config/sh/sh.c (output_stack_adjust): Update.
1784         (calc_live_regs): Update.
1785         (sh5_schedule_saves): Update.
1786         (sh_expand_prologue): Update.
1787         (sh_expand_epilogue): Update.
1788         (sh_setup_incoming_varargs): Update.
1789         (sh_allocate_initial_value): Update.
1790         (sh_get_pr_initial_val): Update.
1791         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
1792         * config/sh/sh.md (label:): Update.
1793         * config/avr/avr.c (out_movhi_mr_r): Update.
1794         * config/crx/crx.h (enum): Update.
1795         * config/xtensa/xtensa.h (along): Update.
1796         * config/stormy16/stormy16.c Update.
1797         (xstormy16_compute_stack_layout): Update.
1798         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
1799         (fr30_expand_prologue): Update.
1800         * config/cris/cris.c (cris_conditional_register_usage): Update.
1801         (cris_reg_saved_in_regsave_area): Update.
1802         (cris_initial_frame_pointer_offset): Update.
1803         (cris_simple_epilogue): Update.
1804         (cris_expand_prologue): Update.
1805         (cris_expand_epilogue): Update.
1806         (cris_expand_pic_call_address): Update.
1807         (cris_asm_output_symbol_ref): Update.
1808         (cris_asm_output_label_ref): Update.
1809         * config/cris/cris.md Update.
1810         * config/iq2000/iq2000.c (compute_frame_size): Update.
1811         (iq2000_expand_epilogue): Update.
1812         * config/mt/mt.h (save_direction): Update.
1813         * config/mn10300/mn10300.c (mn10300_function_value): Update.
1814         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1815         (ia64_secondary_reload_class): Update.
1816         * config/m68k/m68k.c (m68k_save_reg): Update.
1817         (m68k_expand_prologue): Update.
1818         (m68k_expand_epilogue): Update.
1819         (legitimize_pic_address): Update.
1820         * config/rs6000/rs6000.c (rs6000_got_register): Update.
1821         (first_reg_to_save): Update.
1822         (first_altivec_reg_to_save): Update.
1823         (compute_vrsave_mask): Update.
1824         (compute_save_world_info): Update.
1825         (rs6000_stack_info): Update.
1826         (spe_func_has_64bit_regs_p): Update.
1827         (rs6000_ra_ever_killed): Update.
1828         (rs6000_emit_eh_reg_restore): Update.
1829         (rs6000_emit_allocate_stack): Update.
1830         (rs6000_emit_prologue): Update.
1831         (rs6000_emit_epilogue): Update.
1832         (rs6000_output_function_epilogue): Update.
1833         (output_profile_hook): Update.
1834         (rs6000_elf_declare_function_name): Update.
1835         * config/rs6000/rs6000.h (rs6000_args): Update.
1836         * config/rs6000/rs6000.md: Update.
1837         * config/mcore/mcore.c (mcore_expand_prolog): Update.
1838         * config/arc/arc.c (arc_output_function_epilogue): Update.
1839         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
1840         * config/darwin.c (machopic_function_base_name): Update.
1841         * config/score/score3.c (score3_compute_frame_size): Update.
1842         (rpush): Update.
1843         (rpop): Update.
1844         (score3_epilogue): Update.
1845         * config/score/score7.c (score7_compute_frame_size): Update.
1846         (score7_prologue): Update.
1847         (score7_epilogue): Update.
1848         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
1849         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1850         * config/arm/arm.c (use_return_insn): Update.
1851         (require_pic_register): Update.
1852         (arm_load_pic_register): Update.
1853         (arm_compute_save_reg0_reg12_mask): Update.
1854         (arm_compute_save_reg_mask): Update.
1855         (thumb1_compute_save_reg_mask): Update.
1856         (output_return_instruction): Update.
1857         (arm_output_function_prologue): Update.
1858         (arm_output_epilogue): Update.
1859         (arm_get_frame_offsets): Update.
1860         (arm_expand_prologue): Update.
1861         (thumb_pushpop): Update.
1862         (thumb_exit): Update.
1863         (thumb1_expand_prologue): Update.
1864         (thumb1_expand_epilogue): Update.
1865         (arm_unwind_emit): Update.
1866         (arm_output_fn_unwind): Update.
1867         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1868         * config/arm/arm.md: Update.
1869         * config/pa/pa.md: Update.
1870         * config/pa/pa.c (legitimize_pic_address): Update.
1871         (compute_frame_size): Update.
1872         (hppa_expand_prologue): Update.
1873         (hppa_expand_epilogue): Update.
1874         (borx_reg_operand): Update.
1875         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1876         (HARD_REGNO_RENAME_OK): Update.
1877         * config/mips/mips.c (mips_global_pointer): Update.
1878         (mips_save_reg_p): Update.
1879         (mips_compute_frame_info): Update.
1880         (mips_frame_pointer_required): Update.
1881         (mips_expand_prologue): Update.
1882         (mips_expand_epilogue): Update.
1883         (mips_can_use_return_insn): Update.
1884         (mips_reorg_process_insns): Update.
1885         * config/v850/v850.c (compute_register_save_size): Update.
1886         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1887         * config/mmix/mmix.c (along): Update.
1888         (mmix_expand_epilogue): Update.
1889         * config/bfin/bfin.c (legitimize_pic_address): Update.
1890         (must_save_p): Update.
1891         (stack_frame_needed_p): Update.
1892         (add_to_reg): Update.
1893         (bfin_expand_prologue): Update.
1894         * stmt.c (expand_asm_operands): Update.
1895         * reload1.c (reload): Update.
1896         (init_elim_table): Update.
1897
1898 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
1899         
1900         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
1901         
1902 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1903
1904         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
1905         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
1906         (mov<mode>): Removed.
1907         (*movv4sf_internal): Likewise.
1908         (*movv2df_internal): Likewise.
1909
1910 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
1911
1912         * config.gcc (crx-*-elf): Remove deprecation.
1913
1914 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
1915
1916         * config/i386/cygming-crtend.c (register_frame_ctor): Register
1917         __gcc_deregister_frame with atexit.
1918         (deregister_frame_dtor): Remove.
1919
1920 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
1921             Nathan Sidwell  <nathan@codesourcery.com>
1922
1923         * config/rs6000/rs6000.opt (mspe): Remove Var property.
1924         (misel): Likewise.
1925         * config/rs6000/rs6000.h (rs6000_spe): Declare.
1926         (rs6000_isel): Likewise.
1927         * config/rs6000/rs6000.c (rs6000_spe): New variable.
1928         (rs6000_isel): New variable.
1929         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
1930
1931 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
1932
1933         PR c++/35758
1934         * c-common.c (handle_vector_size_attribute): Call
1935         lang_hooks.types.reconstruct_complex_type instead of
1936         reconstruct_complex_type.
1937         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
1938         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
1939         * langhooks.h (struct lang_hooks_for_types): Add
1940         reconstruct_complex_type hook.
1941         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
1942         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
1943
1944 2008-04-24  Richard Guenther  <rguenther@suse.de>
1945
1946         * c-common.h (check_builtin_function_arguments): Declare.
1947         * c-common.c (validate_nargs): New function.
1948         (check_builtin_function_arguments): Likewise.
1949         * c-typeck.c (build_function_call): Call
1950         check_builtin_function_arguments.
1951         * builtins.c (fold_builtin_classify): Remove error reporting code.
1952         (fold_builtin_unordered_cmp): Likewise.
1953         (fold_builtin_1): Likewise.
1954         (fold_builtin_n): Likewise.
1955
1956 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
1957
1958         PR tree-optimization/36008
1959         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
1960         the original op1, rather than delta by step.
1961
1962 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
1963             Sebastian Pop  <sebastian.pop@amd.com>
1964
1965         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
1966         eliminate_local_variables_stmt, eliminate_local_variables,
1967         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
1968         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
1969         of code delimited by two edges in the CFG.
1970         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
1971         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
1972         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
1973         the case of parallelisation of reductions.
1974         (expr_invariant_in_region_p): New.
1975
1976         * tree-flow.h (gather_blocks_in_sese_region): Declared.
1977         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
1978
1979 2008-04-24  Ira Rosen  <irar@il.ibm.com>
1980             Richard Guenther  <rguenther@suse.de>
1981
1982         PR tree-optimization/36034
1983         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
1984         incapable of dealing with loads with gaps.
1985
1986 2008-04-24  Rafael Espindola  <espindola@google.com>
1987
1988         * tree-flow.h (vrp_evaluate_conditional): Change signature.
1989         * tree-ssa-propagate.c (fold_predicate_in): Update call to
1990         vrp_evaluate_conditional.
1991         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
1992         (vrp_evaluate_conditional): Split the cond argument.
1993         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
1994         (simplify_stmt_for_jump_threading): Update call to
1995         vrp_evaluate_conditional.
1996
1997 2008-04-24  Ira Rosen  <irar@il.ibm.com>
1998
1999         PR tree-optimization/35982
2000         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2001         interleaved data-refs are of the same type.
2002
2003 2008-04-24  Danny Smith  <dannysmith@users.net>
2004
2005         * c-format.c (check_format_info_main): Use strncmp rather than a
2006         magic prefix to handle multichar length specs.
2007         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2008         Don't prefix "I64" and "I32" with '\0'.
2009
2010 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2011
2012         PR target/36015
2013         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2014         in registers for -m32 only if stdarg_p (fntype).
2015
2016 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2017
2018         PR rtl-optimization/36006
2019         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2020         temp to op0 in order to avoid invalid rtx sharing.
2021
2022 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2023
2024         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2025         check TREE_INVARIANT.
2026         * tree-gimple.c (is_gimple_address): New.
2027         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2028         * tree-gimple.h (is_gimple_address): New.
2029         * tree.h (decl_address_invariant_p): New.
2030         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2031         (build_string): Likewise.
2032         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2033         (tree_invariant_p_1): Likewise.
2034         (save_expr): Use it.
2035         (tree_invariant_p): New.
2036         (skip_simple_arithmetic): Use it.
2037         (stabilize_reference_1): Use it.
2038         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2039         simplify.
2040         (build1_stat): Drop code to compute TREE_INVARIANT.
2041         (build2_stat): Drop code to compute TREE_INVARIANT.
2042         (build3_stat): Drop code to compute TREE_INVARIANT.
2043         (build4_stat): Drop code to compute TREE_INVARIANT.
2044         (build5_stat): Drop code to compute TREE_INVARIANT.
2045         (build7_stat): Drop code to compute TREE_INVARIANT.
2046         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2047         * tree.h (struct tree_base): Remove invariant_flag.
2048         (TREE_INVARIANT): Remove.
2049         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2050         (fold_builtin_expect): Check TREE_CONSTANT.
2051         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2052         * c-tree.h (c_expr_to_decl): Drop third parameter.
2053         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2054         (build_c_cast): Don't set TREE_INVARIANT.
2055         (pop_init_level): Don't set TREE_INVARIANT.
2056         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2057         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2058         TREE_CONSTANT.
2059         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2060         (gimplify_addr_expr): Adjust comment.
2061         * tree-mudflap.c (mf_build_string):
2062         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2063         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2064         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2065         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2066         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2067         * langhooks.h (struct lang_hooks): Drop third parameter from
2068         expr_to_decl.
2069
2070 2008-04-23  Richard Guenther  <rguenther@suse.de>
2071
2072         PR tree-optimization/27799
2073         PR tree-optimization/32921
2074         PR tree-optimization/32624
2075         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2076         SMTs aliases and the tag itself into the solution.
2077         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2078         merge the points-to solution back into the SMT aliases.
2079         (may_alias_p): Use alias_set_subset_of instead of
2080         aliases_conflict_p.  A pointer which points to
2081         memory with alias set zero may access any variable.
2082
2083 2008-04-23  Richard Guenther  <rguenther@suse.de>
2084
2085         * alias.c (alias_set_subset_of): Correctly handle asking
2086         if zero is a subset of an alias set with zero child.
2087         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2088         (compute_flow_insensitive_aliasing): Correctly walk all
2089         pointers.  Do not unnecessarily union sets.
2090
2091 2008-04-23  Richard Guenther  <rguenther@suse.de>
2092
2093         PR middle-end/36021
2094         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2095
2096 2008-04-22  Tomas Bily  <tbily@suse.cz>
2097
2098         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2099         unreachable case.
2100         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2101         NON_LVALUE_EXPR.
2102         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2103         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2104         * tree-inline.c (estimate_num_insns_1): Likewise.
2105         * varasm.c (const_hash_1, compare_constant, copy_constant)
2106         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2107         * emit-rtl.c (component_ref_for_mem_expr)
2108         (set_mem_attributes_minus_bitpos): Likewise.
2109         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2110         (is_aligning_offset): Likewise.
2111         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2112         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2113         * dojump.c (do_jump): Likewise.
2114         * builtins.c (get_pointer_alignment, get_memory_rtx)
2115         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2116         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2117
2118 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2119
2120         PR rtl-optimization/36017
2121         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2122         expanding the library call.
2123
2124 2008-04-22  Ian Lance Taylor  <iant@google.com>
2125
2126         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2127         than size_in_bytes.
2128
2129 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2130
2131         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2132         of LR/CTR moves for Power6.
2133
2134 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2135
2136         PR middle-end/36003
2137         * passes.c (init_optimization_passes): Remove
2138         pass_fast_rtl_byte_dce.
2139         
2140 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2141
2142         PR target/29096
2143         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2144         builtin functions to generate faster code.
2145         (_mm_cvtpu16_ps): Ditto.
2146         (_mm_cvtpi32x2_ps): Ditto.
2147
2148 2008-04-22  Nick Clifton  <nickc@redhat.com>
2149
2150         * common.opt (ftree-loop-distribution): Add Optimization
2151         attribute.
2152
2153         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2154         (frv_expand_builtin_va_start): Likewise.
2155
2156         * config/arm/arm.c (thumb_find_work_register): Fix location of
2157         argument register count.
2158
2159 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2160
2161         Support scheduling for ColdFire V1 and V3 microarchitecture.
2162         Improve scheduling of multiplication instructions.
2163
2164         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2165         (mac): New instruction attribute.
2166         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2167         (m68k_sched_mac): New variable.
2168         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2169         Handle cfv1 and cfv3.
2170         (max_insn_size): New static variable.
2171         (struct _sched_ib): New type.
2172         (sched_ib): New static variable.
2173         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2174         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2175         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2176         Update.
2177         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2178         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2179         new variables.  Update.
2180         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2181         Add modeling of cfv3 instruction buffer.  Update.
2182         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2183         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2184         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2185         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2186         a particular reservation applies to.
2187         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2188         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2189         to mul_l and mul_w.
2190         (cf_ib_*): Simplify description of instruction buffer.
2191         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2192         (cf_mem): Split into cf_mem1 and cf_mem2.
2193         (cf_v2_move_??): Rename to cfv12_alu_??.
2194         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2195         (cf_v2_mul_??): Remove reservations.
2196         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2197         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2198         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2199         appropriate place.
2200         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2201         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2202         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2203         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2204         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2205         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2206         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2207         expansions of the above reservations for instructions of sizes
2208         1, 2 and 3 words.
2209
2210 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2211
2212         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2213
2214 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2215
2216         * coverage.c: Include tree-pass.h.
2217         (coverage_counter_alloc): Print da_file_name to the dump file.
2218
2219 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2220
2221         * sbitmap.c (sbitmap_range_empty_p): New function.
2222         * sbitmap.h (sbitmap_range_empty_p): New function.
2223         * bitmap.h: Now includes obstack.h.
2224
2225 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2226             Kenneth Zadeck  <zadeck@naturalbridge.com>
2227
2228         * dbgcnt.def (ra_byte_scan): Added.
2229         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2230         when the last hit happens for a counter.  
2231         * timevar.def (TV_DF_BYTE_LR): New variable.
2232         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2233         * passes.c (pass_fast_rtl_byte_dce): New pass.
2234         * fwprop.c (update_df): Added mode to call df_ref_create.
2235         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2236         DF_REF_EXTRACT_OFFSET.
2237         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
2238         DF_BYTE_LR_OUT, df_byte_lr): New macro.
2239         (df_mm): New enum.
2240         (df_ref_extract): Added mode field.
2241         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2242         DF_REF_EXTRACT_OFFSET.
2243         (DF_REF_EXTRACT_MODE): New macro.
2244         (df_byte_lr_bb_info): New structure.
2245         (df_print_byte_regset, df_compute_accessed_bytes, 
2246         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2247         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2248         df_byte_lr_simulate_uses,
2249         df_byte_lr_simulate_artificial_refs_at_top,
2250         df_byte_lr_simulate_artificial_refs_at_end,
2251         df_compute_accessed_bytes): New function.
2252         (df_ref_create): Add parameter.
2253         (df_byte_lr_get_bb_info): New inline function.
2254         * df-scan.c (df_ref_record, df_uses_record,
2255         df_ref_create_structure): Added mode parameter.
2256         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
2257         df_defs_record, df_uses_record, df_get_conditional_uses,
2258         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
2259         df_entry_block_defs_collect, df_exit_block_uses_collect):
2260         Added mode parameter to calls to df_ref_record, df_uses_record,
2261         df_ref_create_structure.
2262         (df_ref_equal_p, df_ref_compare): Added test for modes.
2263         (df_ref_create_structure): Added code to set mode.  Renamed
2264         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2265         DF_REF_EXTRACT_OFFSET.
2266         * df-core.c (df_print_byte_regset): New function.
2267         * df-byte-scan.c: New file.
2268         * df-problems.c (df_rd_transfer_function): Removed unnecessary
2269         calls to BITMAP_FREE.  
2270         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2271         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2272         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
2273         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
2274         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2275         df_byte_lr_local_compute, df_byte_lr_init,
2276         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
2277         df_byte_lr_transfer_function, df_byte_lr_free, 
2278         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2279         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
2280         df_byte_lr_simulate_uses,
2281         df_byte_lr_simulate_artificial_refs_at_top,
2282         df_byte_lr_simulate_artificial_refs_at_end): New function.
2283         * dce.c (byte_dce_process_block): New function.
2284         (dce_process_block): au is now passed in rather than computed
2285         locally.  Changed loops that look at artificial defs to not look
2286         for conditional or partial ones, because there never are any.  
2287         (fast_dce): Now is able to drive byte_dce_process_block or 
2288         dce_process_block depending on the kind of dce being done.
2289         (rest_of_handle_fast_dce): Add parameter to fast_dce.
2290         (rest_of_handle_fast_byte_dce): New function.
2291         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2292         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2293
2294 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2295
2296         PR fortran/35019
2297         * gcc.h: Added fortran options that take arguments to
2298         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2299         macros.
2300
2301 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2302
2303         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2304         scalarization if on the LHS and not a full access.
2305
2306 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2307
2308         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2309
2310 2008-04-18  Rafael Espindola  <espindola@google.com>
2311
2312         * tree-vrp.c (find_case_label_index): Fix the binary search.
2313         (find_case_label_range): New.
2314         (vrp_visit_switch_stmt): Use find_case_label_range.
2315         (simplify_switch_using_ranges): Use find_case_label_range.
2316
2317 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2318
2319         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2320         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2321
2322 2008-04-18  Tom Tromey  <tromey@redhat.com>
2323
2324         PR libcpp/15500:
2325         * doc/cpp.texi (Implementation-defined behavior): Mention
2326         -finput-charset.
2327
2328 2008-04-18  Ian Lance Taylor  <iant@google.com>
2329
2330         * fold-const.c (pointer_may_wrap_p): New static function.
2331         (fold_comparison): Add another test for pointer overflow.  Use
2332         pointer_may_wrap_p to disable some false positives.
2333
2334 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2335           
2336         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2337         (fname_as_string): Match updated cpp_interpret_string prototype.
2338         (fix_string_type): Support char16_t* and char32_t*.
2339         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2340         derivative) nodes.  Register as builtin if C++0x.
2341         (c_parse_error): Support CPP_CHAR{16,32}.
2342         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
2343         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2344         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2345         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2346         CTI_CHAR32_ARRAY_TYPE>: New elements.
2347         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2348         char32_type_node, signed_char32_type_node, char16_array_type_node,
2349         char32_array_type_node): New defines.
2350         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2351         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2352         (lex_string): Support CPP_STRING{16,32}, match updated
2353         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2354         (lex_charconst): Support CPP_CHAR{16,32}.
2355         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2356         and CPP_STRING{16,32}.
2357
2358 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2359
2360         PR bootstrap/35457
2361         * aclocal.m4: Regenerate.
2362         * configure: Regenerate.
2363
2364 2008-04-18  Jan Hubicka  <jh@suse.cz>
2365
2366         * except.c (dw2_size_of_call_site_table,
2367         sjlj_size_of_call_site_table): Use vector API for call_site_record.
2368
2369         * cgraphbuild.c (build_cgraph_edges): Update.
2370         * tree-pass.h: Update comment.
2371         * final.c (leaf_function_p): Update.
2372         (leaf_renumber_regs): Update.
2373         (rest_of_clean_state): Update.
2374         * omp-low.c (expand_omp_parallel): Update.
2375         * ipa-reference.c (analyze_function): Update.
2376         * reorg.c (find_end_label): Update.
2377         (optimize_skip): Update.
2378         (fill_simple_delay_slots): Update.
2379         (fill_simple_delay_slots): Update.
2380         (make_return_insns): Update.
2381         (dbr_schedule): Update.
2382         * gimple-low.c (record_vars_into): Update.
2383         * cfgbuild.c (make_edges): Update.
2384         * function.c (assign_stack_local): Update.
2385         (assign_parm_adjust_stack_rtl): Update.
2386         (locate_and_pad_parm): Update.
2387         (allocate_struct_function): Do not initialize stack_alignment_needed
2388         and preferred_stack_boundary here.
2389         (stack_protect_prologue): Update.
2390         (stack_protect_epilogue): Update.
2391         (expand_function_start): Initialize stack_alignment_needed,
2392         preferred_stack_boundary and max_jumptable_ents.
2393         (expand_function_end): Update.
2394         (free_after_compilation): Do not NULLify epilogue_delay_list.
2395         * function.h (struct rtl_data): Add stack_protect_guard,
2396         stack_alignment_needed,
2397         preferred_stack_boundary, epilogue_delay_list.
2398         (struct function): Remove value_histograms, stack_alignment_needed,
2399         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2400         last_label_uid,
2401         unexpanded_var_list, stack_protect_guard.
2402         (current_function_epilogue_delay_list): Remove.
2403         * ipa-type-escape.c (analyze_function): Update.
2404         * gimplify.c (pop_gimplify_context): Update comment.
2405         * calls.c (expand_call): Update.
2406         (emit_library_call_value_1): Update.
2407         * except.c (set_nothrow_function_flags): Update.
2408         * cfgexpand.c (get_decl_align_unit): Update.
2409         (create_stack_guard): Update.
2410         (estimated_stack_frame_size): Update.
2411         (expand_used_vars): Update.
2412         (tree_expand_cfg): Free histogram earliers, init expansion variables.
2413         * explow.c (allocate_dynamic_stack_space): Update.
2414         * tree-ssa-live.c (remove_unused_locals): Update.
2415         * varasm.c (mark_constant_pool): Update.
2416         * tree-inline.c (remap_decls): Update.
2417         (initialize_cfun): Update.
2418         (declare_return_variable): Update.
2419         (inline_forbidden_p): Update.
2420         (expand_call_inline): Update.
2421         (declare_inline_vars): Update.
2422         (tree_function_versioning): Update.
2423         * tree-flow.h (value_histograms): New.
2424         (VALUE_HISTOGRAMS): New macro.
2425         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2426         last_label_uid.
2427         * tree-cfg.c (set_bb_for_stmt): Update.
2428         (replace_by_duplicate_decl): Update.
2429         (move_block_to_fn): Update.
2430         (new_label_mapper): Update.
2431         (dump_function_to_file): Update.
2432         * ipa-struct-reorg.c (build_data_structure): Update.
2433         * cfgrtl.c (print_rtl_with_bb): Update.
2434         * reload1.c (reload): Update.
2435         (reload): Update.
2436         * config/i386/i386.c (setup_incoming_varargs_64,
2437         ix86_compute_frame_layout): Update.
2438         * config/arc/arc.c (arc_output_function_epilogue): Update.
2439
2440 2008-04-18  Marius Strobl <marius@FreeBSD.org>
2441
2442         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2443         for FreeBSD as well.
2444         * gthr-posix95.h: Likewise.
2445
2446 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
2447
2448         PR rtl-optimization/35838
2449         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2450         out the byte offset of the first subreg.
2451
2452 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
2453
2454         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2455         to split_ti instead of three separate calls with single member arrays.
2456         (subti3 splitter): Ditto.
2457         (adddi3 splitter): Ditto with split_di.
2458         (subdi3 splitter): Ditto.
2459         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2460         two separate calls with single member arrays.  Swap match_dup
2461         operands 1 and 2 to better fit into the array.
2462         (negdi2 splitter): Ditto with split_di.
2463         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
2464         two separate calls with single member arrays.  Swap match_dup operands
2465         6 and 7 to better fit into the array.
2466
2467 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2468
2469         * config/i386/i386.c (sse_builtin_type): New.
2470         (bdesc_sse_args): Likewise.
2471         (bdesc_sse_3arg): Removed.
2472         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2473         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2474         IX86_BUILTIN_ROUNDPS.
2475         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
2476         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
2477         IX86_BUILTIN_ROUNDPS.
2478         (ix86_expand_sse_4_operands_builtin): Removed.
2479         (ix86_expand_sse_operands_builtin): New.
2480         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2481         and CODE_FOR_sse4_1_roundps.
2482         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2483         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
2484
2485 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
2486
2487         PR target/35907
2488         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2489         regs before frame pop when needed.  If use_backchain_to_restore_sp
2490         then load backchain into a temp reg to restore vr and vrsave.  Add
2491         code to restore vr after frame pop if possible.
2492
2493 2008-04-17  Richard Guenther  <rguenther@suse.de>
2494
2495         * tree-vn.c (expressions_equal_p): Do not check type
2496         equality or compatibility before calling operand_equal_p.
2497         * fold-const.c (operand_equal_p): Check equivalence of
2498         integer constants before bailing out due to signedness or
2499         precision differences.
2500         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2501         spurious differences in type qualification.  Ignore types
2502         for COMPONENT_REFs at all.
2503
2504 2008-04-17  Christian Bruel  <christian.bruel@st.com>
2505
2506         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2507         msw_skip comparison.
2508         
2509 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
2510
2511         PR c/35739
2512         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2513         reg type.
2514
2515         PR tree-optimization/35899
2516         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2517         rather than TREE_OPERAND.
2518
2519 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
2520
2521         PR target/35944
2522         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2523         temporary registers.  Change operand predicate to general_operand.
2524         (remainderxf3): Ditto.
2525
2526 2008-04-16  Richard Guenther  <rguenther@suse.de>
2527
2528         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2529         * tree-affine.c (aff_combination_expand): Look through some
2530         conversions.
2531
2532 2008-04-15  Doug Kwan  <dougkwan@google.com>
2533
2534         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2535         for hex printing.
2536         * tree-pretty-print.c (dump_generic_node): Ditto.
2537         * final.c (output_addr_const): Ditto.
2538         * dwarf2out.c (output_cfi): Ditto.
2539         * c-pretty-print.c (pp_c_integer_constant): Ditto.
2540         * print-rtl.c (print_rtx): Ditto.
2541         * print-tree.c (print_node_brief, print_node): Ditto.
2542         * c-common.c (match_case_to_enum_1): Ditto.
2543         * sched-vis.c (print_value): Ditto.
2544         * config/i386/i386.c (print_operand): Cast to long unsigned int
2545         for hex printing.
2546
2547 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
2548         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
2549         MS Windows VirtualProtect function.
2550
2551 2008-04-15  Jan Hubicka  <jh@suse.cz>
2552
2553         * gengtype.c (write_root): Param_is argument is OK.
2554         * expr.c (expand_expr_real_1): Update call of get_exception_*.
2555         * function.h: Include varray.h
2556         (rtl_eh): New stucture based on except.c one.
2557         (call_site_record): New forward declaration and vector type.
2558         * calls.c (emit_call_1): Do not call
2559         note_current_region_may_contain_throw.
2560         * except.c (eh_status): Remove cur_region, try_region since they are
2561         unused.
2562         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
2563         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
2564         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
2565         Remove call_site_data_used, call_site_data_size.
2566         Turn call_site_record into vector in function.h.
2567         (note_current_region_may_contain_throw): Remove.
2568         (get_exception_pointer, get_exception_filter): Do not take struct
2569         function argument; update.
2570         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
2571         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
2572         build_post_landing_pads, dw2_build_landing_pads,
2573         sjlj_assign_call_site_values, sjlj_mark_call_sites,
2574         sjlj_emit_function_enter, sjlj_emit_function_enter, 
2575         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2576         sjlj_build_landing_pads, finish_eh_generation,
2577         remove_exception_handler_label, remove_eh_handler,
2578         maybe_remove_eh_handler, add_reachable_handler,
2579         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
2580         add_action_record, collect_one_action_chain, add_call_site,
2581         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
2582         sjlj_output_call_site_table, output_function_exception_table,
2583         * except.h (note_current_region_may_contain_throw): Remove
2584         (get_exception_pointer, get_exception_filter): Do not take struct
2585         function argument.
2586         * Makefile.in (GTFILES): Put varargs before struct function.
2587
2588 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2589
2590         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
2591         punt for STRING_CST.
2592         (get_constraint_for): Deal with STRING_CST here instead.
2593
2594 2008-04-15  Richard Guenther  <rguenther@suse.de>
2595
2596         * tree-ssa-propagate.c (substitute_and_fold): Substitute
2597         statements in a basic-block with a backward walk.  Do not
2598         substitute into dead statements but instead remove those.
2599
2600 2008-04-15  Richard Guenther  <rguenther@suse.de>
2601
2602         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
2603         to zero, thus disable creation of SFTs.
2604
2605 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2606
2607         * tree-predcom.c (suitable_reference_p): Return false if the
2608         reference can throw.
2609
2610 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
2611
2612         PR c/35751
2613         * c-decl.c (finish_decl): If extern or static var has variable
2614         size, set TREE_TYPE (decl) to error_mark_node.
2615
2616 2008-04-15  Rafael Espindola  <espindola@google.com>
2617
2618         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
2619         variable arg1.
2620
2621 2008-04-15  Richard Guenther  <rguenther@suse.de>
2622
2623         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2624         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
2625         (visit_reference_op_load): Do walk vuse-vdef chains on
2626         vn_reference_lookup.
2627         (visit_reference_op_store): But do not here.
2628         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
2629         vn_reference_lookup.
2630         (vn_lookup_with_vuses): But do so here.
2631
2632 2008-04-14  Ian Lance Taylor  <iant@google.com>
2633
2634         * fold-const.c (fold_overflow_warning): Remove assertion.
2635
2636 2008-04-15  Ben Elliston  <bje@au.ibm.com>
2637
2638         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
2639         temp1 local variables.
2640
2641 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
2642
2643         PR target/35661
2644         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
2645         ".text.unlikely" section as executable.
2646
2647 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
2648
2649         * config/ia64/ia64.c (rtx_needs_barrier): Handle
2650         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
2651         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
2652         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
2653         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
2654         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
2655         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
2656
2657 2008-04-14  Ian Lance Taylor  <iant@google.com>
2658
2659         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
2660         * fold-const.c (fold_comparison): If appropriate, test
2661         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
2662         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
2663         reassociating a pointer type.
2664         * doc/invoke.texi (Optimize Options): Document that
2665         -fstrict-overflow applies to pointer wraparound.
2666
2667 2008-04-13  Jan Hubicka  <jh@suse.cz>
2668
2669         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
2670
2671 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
2672
2673         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
2674         we are going to "save the world".
2675
2676 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
2677
2678         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
2679         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
2680         operand 0 constraint, not "=".
2681
2682 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
2683
2684         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
2685
2686 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2687
2688         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
2689         of size of positions_needed * CHAR_BIT.
2690
2691 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         PR middle-end/35897
2694         * dse.c (store_info): Change positions_needed to unsigned
2695         HOST_WIDE_INT.
2696         (lowpart_bitmask): New.
2697         (record_store): Cast to unsigned HOST_WIDE_INT for
2698         positions_needed.  Assert width <= size of positions_needed *
2699         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
2700         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
2701         lowpart_bitmask to set mask.
2702
2703 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2704
2705         * config/bfin/constraints.md: New file.
2706         * config/bfin/bfin.md: Include it.
2707         (adddi3): Use satisfies_constraint functions instead of the old macros.
2708         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
2709         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
2710         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
2711         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
2712         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
2713         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
2714         EXTRA_CONSTRAINT): Delete.
2715         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
2716         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
2717         of the old macros.
2718         * config/bfin/bfin.c: Include "tm-constrs.h".
2719         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
2720         Use satisfies_constraint functions instead of the old macros.
2721         * doc/md.texi (Blackfin Constraints): Update file name reference.
2722
2723 2008-04-11  Richard Guenther  <rguenther@suse.de>
2724
2725         PR tree-optimization/35869
2726         * tree-vrp.c (execute_vrp): Move switch statement update after
2727         jump threading.  Schedule another cfg cleanup run.
2728
2729 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
2730
2731         PR c/35744
2732         * attribs.c (decl_attributes): Return early on errorneous node.
2733
2734 2008-04-10  Oleg Ryjkov  <olegr@google.com>
2735
2736         * tree.h (struct tree_base): Added a new flag default_def_flag.
2737         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
2738
2739 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2740
2741         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
2742
2743 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2744
2745         PR target/35768
2746         * pa.md: Define mode iterator P.  Define mode attribute dwc.
2747         (dcacheflush): Update pattern to use iterator P and attribute dwc.
2748         (icacheflush): Likewise.
2749         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
2750         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
2751
2752 2008-04-11  Ben Elliston  <bje@au.ibm.com>
2753
2754         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2755
2756 2008-04-10  Rafael Espindola  <espindola@google.com>
2757
2758         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
2759         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
2760         (extract_range_from_expr): The same.
2761
2762 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2763
2764         * config/mips/mips.md (GPR2): New mode iterator.
2765         (seq): Add comment.
2766         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
2767         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
2768         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
2769         Rewrite these to take two modes, the mode of comparison and the
2770         mode of the destination.
2771         * config/mips/mips.c (mips_expand_scc): Instead of having
2772         paradoxical subreg as destination, expand "narrowing" scc if mode
2773         of comparison is SI and target is requested in DI mode.
2774         (mips_emit_int_order_test): Update comment.  Make mode of
2775         comparison match CMP0 rather than TARGET.  When creating inverse
2776         target use mode of TARGET.
2777
2778 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2779
2780         * gcov-dump.c (tag_summary): Only print summaries for the first
2781         GCOV_COUNTERS_SUMMABLE counters.
2782
2783 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
2784
2785         * config/i386/i386.md (absneg): New code iterator.
2786         (absnegprefix): New code attribute.
2787         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
2788         patterns using absneg code iterator.
2789         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
2790         using absneg code iterator.
2791         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
2792         *neg<mode>2 patterns using absneg code iterator.
2793         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2794         *negextendsfdf2 patterns using absneg code iterator.
2795         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
2796         *negextendsfxf2 patterns using absneg code iterator.
2797         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2798         *negextendsfdf2 patterns using absneg code iterator.
2799         * config/i386/sse.md (<code><mode>2): Macroize expander from
2800         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
2801
2802 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2803
2804         * config/s390/s390.h: Remove the remains of the recent search
2805         & replace action of current_function_outgoing_args_size.
2806
2807 2008-04-10  Ira Rosen  <irar@il.ibm.com>
2808
2809         PR tree-optimization/35821
2810         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
2811         NEW_STMT_LIST is not NULL.
2812
2813 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
2814
2815         PR libstdc++/35597
2816         * toplev.c (process_options): Remove -ffunction-sections debugging
2817         warning.
2818
2819 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
2820
2821         PR middle-end/PR28690
2822         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
2823         than gen_rtx_fmt_ee to perform more canonicalizations.
2824
2825 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2826
2827         PR driver/35665
2828         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
2829
2830 2008-04-09  Richard Guenther  <rguenther@suse.de>
2831
2832         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
2833         (dump_function_to_file): Dump function arguments with types.
2834
2835 2008-04-08  Richard Guenther  <rguenther@suse.de>
2836
2837         * fold-const.c (fold_widened_comparison): Do not allow
2838         sign-changes that change the result.
2839
2840 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
2841
2842         PR target/35839
2843         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
2844         kinds of indirect references.
2845
2846 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
2847
2848         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
2849         GNU Fortran language string.
2850
2851 2008-04-08  Rafael Espindola  <espindola@google.com>
2852
2853         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
2854         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
2855         * tree.h (tree_call_nonnegative_warnv_p): New.
2856
2857 2008-04-08  Jan Hubicka  <jh@suse.cz>
2858
2859         * function.c (free_after_compilation): Clear out regno_reg_rtx
2860         pointer.
2861
2862 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
2863
2864         Revert
2865         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
2866
2867         PR middle-end/PR28690
2868         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2869         same precedence as REG_POINTER and MEM_POINTER operands.
2870
2871 2008-04-08  Richard Guenther  <rguenther@suse.de>
2872
2873         PR middle-end/35834
2874         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2875         for adding index to base.
2876
2877 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
2878
2879         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2880         (MINGW_ENABLE_EXECUTE_STACK): New.
2881         (IN_LIBGCC2): For libgcc include windows.h file for
2882         function declarations.
2883
2884 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
2885
2886         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2887         and tem2 if tem1 is not a REG or MULT.
2888
2889 2008-04-08  Jan Hubicka  <jh@suse.cz>
2890
2891         * function.h (incomming_args): Break out of struct function.
2892         (function_subsections): Break out of struct function.
2893         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2894         return_rtx and hard_reg_initial_vals from struct function.
2895         Kill inl_max_label_num.
2896         (current_function_pops_args, current_function_args_info,
2897         current_function_args_size, current_function_args_size,
2898         current_function_pretend_args_size,
2899         current_function_outgoing_args_size,
2900         current_function_internal_arg_pointer, current_function_return_rtx):
2901         Kill compatibility accestor macros.
2902         * builtins.c (expand_builtin_apply_args_1): Update.
2903         (expand_builtin_next_arg): Update.
2904         * df-scan.c (df_get_call_refs): Update.
2905         * dbxout.c (dbxout_function_end): Update.
2906         * dwarf2out.c (dwarf2out_switch_text_section): Update.
2907         (output_line_info): Update.
2908         (secname_for_decl): Update.
2909         (dwarf2out_var_location): Update.
2910         * function.c (free_after_compilation): Update.
2911         (assign_parm_find_stack_rtl): Update.
2912         (assign_parms): Update.
2913         (expand_dummy_function_end): Update.
2914         (expand_function_end): Update.
2915         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
2916         (expand_call): Update.
2917         (emit_library_call_value_1): Update.
2918         (store_one_arg): Update.
2919         * varasm.c (initialize_cold_section_name): Update.
2920         (unlikely_text_section): Update.
2921         (unlikely_text_section_p): Update.
2922         (assemble_start_function): Update.
2923         (assemble_end_function): Update.
2924         (default_section_type_flags): Update.
2925         (switch_to_section): Update.
2926         * integrate.c (set_decl_abstract_flags): Update.
2927         (get_hard_reg_initial_val): Update.
2928         (has_hard_reg_initial_val): Update.
2929         (allocate_initial_values): Update.
2930         * resource.c (init_resource_info): Update.
2931         * config/alpha/alpha.c (NUM_ARGS): Update.
2932         (direct_return): Update.
2933         (alpha_va_start): Update.
2934         (alpha_sa_size): Update.
2935         (alpha_initial_elimination_offset): Update.
2936         (alpha_expand_prologue): Update.
2937         (alpha_start_function): Update.
2938         (alpha_expand_epilogue): Update.
2939         (unicosmk_initial_elimination_offset):
2940         * config/alpha/alpha.md (call expander): Update.
2941         * config/s390/s390.c (s390_register_info): Update.
2942         (s390_register_info): Update.
2943         (s390_frame_info): Update.
2944         (s390_initial_elimination_offset): Update.
2945         (s390_build_builtin_va_list): Update.
2946         (s390_va_start): Update.
2947         * config/spu/spu.c (direct_return): Update.
2948         (spu_expand_prologue): Update.
2949         (spu_initial_elimination_offset): Update.
2950         (spu_build_builtin_va_list): Update.
2951         (spu_va_start): Update.
2952         * config/sparc/sparc.c (sparc_init_modes): Update.
2953         (sparc_compute_frame_size): Update.
2954         (function_value): Update.
2955         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
2956         * config/i386/i386.md (return expander): Update.
2957         * config/i386/i386.c (ix86_va_start): Update.
2958         (ix86_can_use_return_insn_p): Update.
2959         (ix86_compute_frame_layout): Update.
2960         (ix86_expand_epilogue): Update.
2961         * config/sh/sh.c (output_stack_adjust): Update.
2962         (calc_live_regs): Update.
2963         (sh_expand_prologue): Update.
2964         (sh_builtin_saveregs): Update.
2965         (sh_va_start): Update.
2966         (initial_elimination_offset): Update.
2967         (sh_allocate_initial_value): Update.
2968         (sh_function_ok_for_sibcall): Update.
2969         (sh_get_pr_initial_val): Update.
2970         * config/sh/sh.md (return expander): Update.
2971         * config/avr/avr.c (frame_pointer_required_p): UPdate.
2972         * config/crx/crx.c (crx_compute_frame): UPdate.
2973         (crx_initial_elimination_offset): UPdate.
2974         * config/xtensa/xtensa.c (compute_frame_size): Update
2975         (xtensa_builtin_saveregs): Update.
2976         (xtensa_va_start): Update.
2977         (order_regs_for_local_alloc): Update.
2978         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
2979         (xstormy16_expand_builtin_va_start): Update.
2980         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
2981         * config/m68hc11/m68hc11.md (return expanders): Update.
2982         * config/m68hc11/m68hc11.c (expand_prologue): Update.
2983         (expand_epilogue): Update.
2984         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
2985         (cris_simple_epilogue): Update.
2986         (cris_expand_prologue): Update.
2987         (cris_expand_epilogue): Update.
2988         * config/iq2000/iq2000.c (iq2000_va_start): Update.
2989         (compute_frame_size): Update.
2990         * config/mt/mt.c (mt_compute_frame_size): Update.
2991         * config/mn10300/mn10300.c (expand_prologue): Update.
2992         (expand_epilogue): Update.
2993         (initial_offset): Update.
2994         (mn10300_builtin_saveregs):
2995         * config/mn10300/mn10300.md (return expander): Update.
2996         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2997         (ia64_initial_elimination_offset): Update.
2998         (ia64_initial_elimination_offset): Update.
2999         (ia64_expand_prologue): Update.
3000         * config/m68k/m68k.md (return expander): Update.
3001         * config/rs6000/rs6000.c (rs6000_va_start): Update.
3002         (rs6000_stack_info): Update.
3003         * config/mcore/mcore.c (layout_mcore_frame): Update.
3004         (mcore_expand_prolog): Update.
3005         * config/arc/arc.c (arc_compute_frame_size): Update.
3006         * config/score/score3.c (score3_compute_frame_size): Update.
3007         * config/score/score7.c (score7_compute_frame_size): Update.
3008         * config/arm/arm.c (use_return_insn): Update.
3009         (thumb_find_work_register): Update.
3010         (arm_compute_save_reg_mask): Update.
3011         (arm_output_function_prologue): Update.
3012         (arm_output_epilogue): Update.
3013         (arm_size_return_regs): Update.
3014         (arm_get_frame_offsets): Update.
3015         (arm_expand_prologue): Update.
3016         (thumb_exit): Update.
3017         (thumb_unexpanded_epilogue): Update.
3018         (thumb1_output_function_prologue): Update.
3019         * config/pa/pa.md (return expander): Update.
3020         * config/pa/pa.c (compute_frame_size): Update.
3021         (hppa_builtin_saveregs): Update.
3022         * config/mips/mips.c (mips_va_start): Update.
3023         (mips16_build_function_stub): Update.
3024         (mips_compute_frame_info): Update.
3025         (mips_restore_gp): Update.
3026         (mips_output_function_prologue): Update.
3027         (mips_expand_prologue): Update.
3028         * config/v850/v850.c (compute_frame_size): Update.
3029         (expand_prologue): * config/mmix/mmix.c (along): update.
3030         (mmix_initial_elimination_offset): update.
3031         (mmix_reorg): update.
3032         (mmix_use_simple_return): update.
3033         (mmix_expand_prologue): update.
3034         (mmix_expand_epilogue): Update.
3035         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3036         (emit_link_insn): Update.
3037
3038 2008-04-08  Anatoly Sokolov <aesok@post.ru>
3039
3040         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
3041         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
3042         instructions.
3043         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
3044         atmega103 device.
3045
3046 2008-04-07  Jan Hubicka  <jh@suse.cz>
3047
3048         * function.h (rtl): Rename to x_rtl.
3049         (crtl): New define.
3050         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3051         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3052         used_temp_slots avail_temp_slots, temp_slot_level,
3053         nonlocal_goto_handler_labels): Update accesstors.
3054         (rtl): New global variable.
3055         (struct function): Move some fileds to rtl_data.
3056         (get_arg_pointer_save_area): Update prototype.
3057         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3058         get_arg_pointer_save_area.
3059         * expr.c (init_expr): Update
3060         * function.c (get_frame_size): Update
3061         (assign_stack_local): Update
3062         (expand_function_end): Update.
3063         (get_art_pointer_save_area): Update
3064         * function.h 
3065         * emit-rtl.c (rtl): Declare.
3066         (regno_reg_rtx): Declare.
3067         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3068         Update.
3069         (gen_reg_rtx): Update.
3070         * varasm.c (n_deferred_constatns): Update accestor.
3071         (init_varasm_status): Do not allocate varasm_status.
3072         (force_const_mem, get_pool_size, output_constant_pool): Update.
3073         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3074         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3075         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3076         * sparc/sparc.h (INIT_EXPANDERS): Update.
3077         * ia64/ia64.h (INIT_EXPANDERS): Update.
3078
3079 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
3080
3081         * reload.c (push_secondary_reload): Add missing break to for loop.
3082
3083 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3084
3085         PR middle-end/PR28690
3086         * rtlanal.c: Update copyright years.
3087         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3088         as REG_POINTER and MEM_POINTER operands.
3089         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3090         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3091         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3092         * gcse.c: Update copyright years.
3093         (pre_delete): Call gen_reg_rtx_and_attrs.
3094         (hoist_code): Likewise.
3095         (build_store_vectors): Likewise.
3096         (delete_store): Likewise.
3097         * loop-invariant.c (move_invariant_reg): Likewise.
3098         Update copyright years.
3099
3100 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
3101
3102         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3103         control string instead of quoted.
3104
3105 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3106
3107         * doc/rtl.texi: Rewrite of subreg section.
3108
3109 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
3110
3111         PR/35842
3112         * config/i386/i386.c (legitimize_pic_address): Add treating
3113         of dllimport SYM_REF's.
3114         (legitimize_dllimport_symbol): Add prototype.
3115
3116 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3117
3118         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
3119         reference in constructor with non self-referential type.
3120
3121 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3122
3123         Removal of Return with Depressed Stack Pointer support
3124         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3125         (ECF_SP_DEPRESSED): Likewise.
3126         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3127         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3128         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3129         (expand_call): Do not test ECF_SP_DEPRESSED.
3130         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3131         * function.c (keep_stack_depressed): Delete.
3132         (handle_epilogue_set): Likewise.
3133         (update_epilogue_consts): Likewise.
3134         (emit_equiv_load): Likewise.
3135         (thread_prologue_and_epilogue_insns): Remove support for Return with
3136         Depressed Stack Pointer.
3137         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3138
3139 2008-04-06  Richard Guenther  <rguenther@suse.de>
3140
3141         PR tree-optimization/35400
3142         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3143         information from SSA_NAMEs.
3144
3145 2008-04-06  Anatoly Sokolov <aesok@post.ru>
3146
3147         * config/avr/avr.h (avr_mega_p): Remove declaration.
3148         (AVR_MEGA): Remove macro.
3149         * config/avr/avr.c (avr_mega_p): Remove variable.
3150         (avr_override_options): Remove inicializion of avr_mega_p.
3151         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3152         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3153         (avr_jump_mode): (Ditto.).
3154         (avr_output_progmem_section_asm_op): (Ditto.).
3155         (avr_asm_init_sections): (Ditto.).
3156         (avr_asm_init_sections): (Ditto.).
3157         (avr_rtx_costs): (Ditto.).
3158         * config/avr/avr.md: (Ditto.).
3159         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
3160         '__AVR_MEGA__'.
3161
3162 2008-04-06  Richard Guenther  <rguenther@suse.de>
3163
3164         PR tree-optimization/35842
3165         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3166         is_gimple_invariant_address.
3167
3168 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3169
3170         * gcc.c (default_compilers): Sync Fortran extensions list with
3171         that in fortran/lang-specs.h.
3172         * doc/invoke.texi: Likewise.
3173         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3174         * dwarf2out.c (gen_compile_unit_die): Likewise.
3175
3176 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
3177
3178         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3179
3180 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
3181
3182         PR target/12329
3183         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3184         attribute is used for nested functions.
3185
3186 2008-04-05  Jan Hubicka  <jh@suse.cz>
3187
3188         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3189
3190         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3191         letter argument.
3192         (dump_files): Update.
3193         (enable_rtl_dump_file): Do not accept letter argument.
3194         * tree-pass.h (dump_file_info): Remove letter argument.
3195         * toplev.c (decode_d_option): Update -da handling.
3196         * toplev.h (enable_rtl_dump_file): Update prototype.
3197         * passes.c (register_one_dump_file): Do not accept IPA argument; work
3198         it out based on pass type.
3199         (register_dump_files_1): Likewise.
3200         (init_optimization_passes): Update register_one_dump_file calls.
3201         (execute_one_pass): Sanity check that IPA passes are called at IPA
3202         level and RTL passes at RTL level.
3203         (execute_pass_list): IPA pass can not be after or subpass of
3204         GIMPLE/RTL pass.
3205         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3206         disallov RTL subpasses of IPA subpasses.
3207
3208 2008-04-05  Ben Elliston  <bje@au.ibm.com>
3209
3210         * tree-cfg.c (need_fake_edge_p): Return false for calls to
3211         builtins that return exactly once and do not throw. Cache call to
3212         call_expr_flags.
3213
3214 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3215
3216         PR rtl-optimization/34916
3217         PR middle-end/35519
3218         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3219         between instruction pairs.
3220
3221 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
3222
3223         * doc/invoke.texi: Document -mbitops for SH.
3224         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3225         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3226         * config/sh/sh.c (print_operand): Add %t operand code.
3227         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3228         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3229         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3230         (extendqihi2): Likewise.
3231         (movqi_i): Likewise.
3232         (insv): Use bset, bclr and bst instructions for SH2A if possible.
3233         (extv): Use bld instruction for SH2A if possible.
3234         (extzv): Likewise.
3235         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3236         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3237         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3238         (bset.b, bclr.b): Define peepholes.
3239         * config/sh/sh.opt (mbitops): New option.
3240
3241 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
3242
3243         PR target/35620
3244         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3245         and view convert expression.
3246
3247 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3248
3249         PR target/35364
3250         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3251
3252 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3253
3254         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3255
3256         * config/i386/cpuid.h (bit_AES): New.
3257         (bit_PCLMUL): Likewise.
3258
3259         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3260         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
3261         SSE2 if AES or PCLMUL is enabled.
3262         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3263         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3264         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3265         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3266         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3267         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3268         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3269         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3270         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3271         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3272         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3273         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3274         __builtin_ia32_aeskeygenassist128 and
3275         __builtin_ia32_pclmulqdq128.
3276         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3277         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3278         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
3279
3280         * config/i386/i386.h (TARGET_AES): New.
3281         (TARGET_PCLMUL): Likewise.
3282         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3283
3284         * config/i386/i386.md (UNSPEC_AESENC): New.
3285         (UNSPEC_AESENCLAST): Likewise.
3286         (UNSPEC_AESDEC): Likewise.
3287         (UNSPEC_AESDECLAST): Likewise.
3288         (UNSPEC_AESIMC): Likewise.
3289         (UNSPEC_AESKEYGENASSIST): Likewise.
3290         (UNSPEC_PCLMUL): Likewise.
3291
3292         * config/i386/i386.opt (maes): New.
3293         (mpclmul): Likewise.
3294
3295         * config/i386/sse.md (aesenc): New pattern.
3296         (aesenclast): Likewise.
3297         (aesdec): Likewise.
3298         (aesdeclast): Likewise.
3299         (aesimc): Likewise.
3300         (aeskeygenassist): Likewise.
3301         (pclmulqdq): Likewise.
3302
3303         * config/i386/wmmintrin.h: New.
3304
3305         * doc/extend.texi: Document AES and PCLMUL built-in function.
3306
3307         * doc/invoke.texi: Document -maes and -mpclmul.
3308
3309 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
3310
3311         * function.c (free_after_parsing): Replace with
3312         cxx_push_function_context from C++ front-end.
3313         (allocate_struct_function): Don't call langhook.
3314         * langhooks.h (struct lang_hooks_for_functions): Delete.
3315         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3316         member "function".
3317         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3318         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3319         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3320         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3321         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3322         remove LANG_HOOKS_FUNCTION_INITIALIZER.
3323         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3324
3325         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3326         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3327         
3328 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3329
3330         PR c/35440
3331         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3332         for all types.
3333
3334 2008-04-04  Richard Guenther  <rguenther@suse.de>
3335
3336         PR middle-end/35823
3337         * fold-const.c (optimize_minmax_comparison): Use the correct
3338         type for the constant in the simplified comparison.
3339
3340 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
3341
3342         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3343         Pass L2 size as "--param l2-cache-size" to the compiler.
3344         (decode_l2_cache): New function to decode L2 cache parameters using
3345         0x8000006 extended cpuid function.
3346         (detect_caches_amd): Determine parameters of L2 cache using
3347         decode_l2_caches function.
3348         (decode_caches_intel): Decode L2 cache parameters.
3349         (detect_caches_intel): Determine L2 cache parameters using
3350         decode_caches_intel and decode_l2_caches functions.
3351
3352 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
3353
3354         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3355         secondary input reload for subword loads from the constant pool.
3356
3357 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
3358
3359         PR target/35713
3360         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3361           constants of the appropriate size for runtime calculations.
3362
3363         PR c/35712
3364         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3365           decimal-float literal constant zero.
3366
3367 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
3368
3369         PR c/35738
3370         * c-parser.c (c_parser_omp_atomic): Call
3371         default_function_array_conversion on the RHS.
3372