OSDN Git Service

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