OSDN Git Service

* config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
2
3         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
4
5 2008-05-12  Anatoly Sokolov <aesok@post.ru>
6
7         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
9         Use 'machine->is_leaf' instead of 'leaf_func_p'.
10
11 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
14         (*vec_concatv4sf_sse): This.
15         (*sse2_concatv2si): Renamed to ...
16         (*vec_concatv2si_sse2): This.
17         (*sse1_concatv2si): Renamed to ...
18         (*vec_concatv2si_sse): This.
19         (*vec_concatv2di_rex): Renamed to ...
20         (*vec_concatv2di_rex64): This.
21         (*vec_concatv2si_sse4_1): New.
22         (*vec_concatv2di_rex64_sse4_1): Likewise.
23
24 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
25
26         PR rtl-optimization/36111
27         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
28         that was created for swappable operands.
29
30 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
31
32         PR ada/36001
33         * Makefile.in: Substitute GNATMAKE and GNATBIND.
34         * configure.ac: Add call to ACX_PROG_GNAT.
35
36 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
37
38         * optc-gen.awk: Fix comment typo.
39
40 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
41
42         * pretty-print.c (pp_integer_with_precision): Use
43         HOST_LONG_LONG_FORMAT.
44
45 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
46
47         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
48                 
49 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
50
51         * config/i386/i386.c (bdesc_ptest): Removed.
52         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
53         (bdesc_args): Add __builtin_ia32_ptestz128,
54         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
55         (ix86_init_mmx_sse_builtins): Updated.
56         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
57         (ix86_expand_builtin): Updated.
58
59 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
60
61         * tree-cfg.c (valid_fixed_convert_types_p): New function.
62         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
63
64 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
65
66         * value-prof.c (interesting_stringop_to_profile): Do not
67         return early for BUILT_IN_MEMPCPY.
68
69 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
70
71         * calls.c (expand_call): Don't use callgraph to increase
72         preferred_stack_boundary.
73
74         * cgraph.h (cgraph_rtl_info): Use unsigned on
75         preferred_incoming_stack_boundary.
76
77         * final.c (rest_of_clean_state): Use unsigned on
78         preferred_stack_boundary.
79
80 2008-05-09  Tom Tromey  <tromey@redhat.com>
81
82         PR preprocessor/22231:
83         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
84         proceeding.
85
86 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
87
88         PR tree-optimization/36129
89         * tree-ssa-ccp.c: Include value-prof.h.
90         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
91         built-in function was folded to a constant.
92         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
93
94 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
95             Sebastian Pop  <sebastian.pop@amd.com>
96
97         * tree-scalar-evolution.c: Document instantiate_scev.
98         (instantiate_parameters_1): Renamed instantiate_scev_1.
99         Don't use the same loop for instantiation_loop and evolution_loop.
100         (instantiate_scev): New.
101         (instantiate_parameters): Moved...
102         (resolve_mixers): Update call to instantiate_scev_1 to pass the
103         same loop twice.  Maintains the semantics for this function.
104         * tree-scalar-evolution.h (instantiate_scev): Declare.
105         (instantiate_parameters): ...here.  Now static inline.
106         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
107         instead of resolve_mixers.
108
109 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
110
111         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
112
113 2008-05-09  Tomas Bily  <tbily@suse.cz>
114
115         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
116         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
117         * tree-ssa-structalias.c (get_constraint_for): Likewise.
118         * c-common.c (c_common_truthvalue_conversion): Likewise.
119         * tree-object-size.c (compute_object_offset): Likewise.
120         * tree-inline.c (estimate_num_insns_1): Likewise.
121         * varasm.c (const_hash_1, compare_constant, copy_constant)
122         (compute_reloc_for_constant, output_addressed_constants)
123         (initializer_constant_valid_p): Likewise.
124         * c-omp.c (check_omp_for_incr_expr): Likewise.
125         * gimplify.c (gimplify_expr): Likewise.
126         * c-typeck.c (c_finish_return): Likewise.
127         * tree-vectorizer.c (supportable_widening_operation)
128         (supportable_narrowing_operation): Likewise.
129         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
130         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
131         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
132         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
133         (descr_info_loc): Likewise.
134         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
135         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
136         (fold_unary): Likewise.
137         * builtins.c (get_pointer_alignment): Likewise.
138         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
139         (instantiate_parameters_1): Likewise.
140         * tree.c (expr_align, stabilize_reference): Likewise.
141         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
142         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
143         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
144         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
145         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
146         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
147         Likewise.
148         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
149         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
150         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
151         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
152         (forward_propagate_comparison)
153         (tree_ssa_forward_propagate_single_use_vars): Likewise.
154         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
155         * emit-rtl.c (component_ref_for_mem_expr)
156         (set_mem_attributes_minus_bitpos): Likewise.
157         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
158         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
159         Likewise.
160         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
161         (build_function_call, pointer_diff, build_compound_expr)
162         (c_finish_return): Likewise.
163         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
164         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
165         Likewise.
166         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
167         * expr.c (is_aligning_offset): Likewise.
168         * tree-ssa-alias.c (is_escape_site): Likewise.
169         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
170         (check_all_va_list_escapes): Likewise.
171         * tree-ssa-loop-ivopts.c (determine_base_object)
172         (determine_common_wider_type): Likewise.
173         * dojump.c (do_jump): Likewise.
174         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
175         * tree-gimple.c (is_gimple_cast): Likewise.
176         * fold-const.c (decode_field_reference, )
177         (fold_sign_changed_comparison, fold_unary, fold_comparison)
178         (fold_binary): Likewise.
179         * tree-ssa-alias-warnings.c (find_alias_site_helper)
180         (already_warned_in_frontend_p): Likewise.
181         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
182         * tree.c (really_constant_p, get_unwidened): Likewise.
183         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
184         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
185         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
186         Likewise.
187         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
188         CONVERT_EXPR_P.
189         (CONVERT_EXPR_P): Define.
190         (CASE_CONVERT): Define.
191         
192 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
193
194         PR middle-end/36117
195         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
196         (delete_unmarked_insns): When deleting a call, call
197         delete_unreachable_blocks.
198         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
199         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
200
201 2008-05-08  Richard Guenther  <rguenther@suse.de>
202
203         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
204         (-ftree-salias): Likewise.
205         (salias-max-implicit-fields): Remove param documentation.
206         (salias-max-array-elements): Likewise.
207         * tree-pass.h (pass_create_structure_vars): Remove.
208         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
209         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
210         * tree-ssa-alias.c (create_structure_vars): Remove.
211         (gate_structure_vars): Likewise.
212         (pass_create_structure_vars): Likewise.
213         (gate_build_alias): Likewise.
214         (pass_build_alias): Adjust to run always and dump the function.
215         * common.opt (ftree-salias): Hide.
216         * passes.c (init_optimization_passes): Remove
217         pass_create_structure_vars, adjust comment.
218         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
219         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
220         * opts.c (decode_options): Do not set flag_tree_salias.
221         (common_handle_option): Add OPT_ftree_salias to the backward
222         compatibility section.
223
224 2008-05-08  Richard Guenther  <rguenther@suse.de>
225
226         * tree-flow-inline.h (var_can_have_subvars): Move ...
227         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
228         * tree-flow.h (var_can_have_subvars): Remove.
229         (push_fields_onto_fieldstack): Remove.
230         (sort_fieldstack): Likewise.
231         (struct fieldoff): Move ...
232         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
233         alias_set and base_for_components fields.
234         (sort_fieldstack): Make static.
235         (push_fields_onto_fieldstack): Likewise.  Remove code that
236         handles anything but RECORD_TYPEs.  Remove alias_set and
237         base_for_components handling.
238         (create_variable_info_for): Adjust.
239
240 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
241
242         * common.opt (Wframe-larger-than=): Shorten the help message
243         to one line.
244         * doc/invoke.texi (Wframe-larger-than=): Add more description.
245
246 2008-05-08  Rafael Espindola  <espindola@google.com>
247
248         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
249         trap.
250         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
251         trap and that both operands are gimple values.
252         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
253         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
254         is a fp operation.
255
256 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
257
258         * read-rtl.c (join_c_conditions): Return the first string if the
259         two strings are equal.
260
261 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
262
263         * gensupport.h (pred_data): Add a "num_codes" field.
264         (add_predicate_code): Declare.
265         * gensupport.c (add_predicate_code): New function.
266         (std_pred_table): Add an "allows_const_p" field.
267         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
268         Remove the (incomplete) list of such codes from the codes field.
269         (init_predicate_table): Use add_predicate_code.  Add all
270         RTX_CONST_OBJs if allows_const_p is true.
271         * genrecog.c (process_define_predicate): Use add_predicate_code.
272
273 2008-05-08  David Daney  <ddaney@avtrex.com>
274             Richard Sandiford  <rsandifo@nildram.co.uk>
275         
276         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
277         special case of constant zero operands.
278         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
279         old and new values.  Special case constant zero values.
280         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
281         fails.
282         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
283         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
284
285 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
286
287         PR target/36090
288         * simplify-rtx.c (simplify_plus_minus): Create CONST of
289         similar RTX_CONST_OBJ before CONST_INT.
290
291 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
292
293         * stmt.c (expand_stack_restore): Change sa mode if needed.
294
295 2008-05-08  Richard Guenther  <rguenther@suse.de>
296
297         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
298         return type to bool.
299         (ix86_sol10_return_in_memory): Likewise.
300         (ix86_i386elf_return_in_memory): Likewise.
301         (ix86_i386interix_return_in_memory): Likewise.
302         * config/i386/i386.c (ix86_return_in_memory): Likewise.
303         (ix86_sol10_return_in_memory): Likewise.
304         (ix86_i386elf_return_in_memory): Likewise.
305         (ix86_i386interix_return_in_memory): Likewise.
306
307 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
308
309         PR bootstrap/36180
310         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
311         fndecl argument.
312         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
313         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
314         declared in front.
315
316 2008-05-08  Richard Guenther  <rguenther@suse.de>
317
318         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
319         * tree-data-ref.h (struct dr_alias): Remove subvars field.
320         (DR_SUBVARS): Remove.
321         * tree-dfa.c (dump_subvars_for): Remove.
322         (debug_subvars_for): Likewise.
323         (dump_variable): Do not dump subvars.
324         (remove_referenced_var): Do not remove subvars.
325         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
326         (lookup_subvars_for_var): Remove.
327         (get_subvars_for_var): Likewise.
328         (get_subvars_at): Likewise.
329         (get_first_overlapping_subvar): Likewise.
330         (overlap_subvar): Likewise.
331         * tree-flow.h (subvar_t): Remove.
332         (struct var_ann_d): Remove subvars field.
333         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
334         argument.  Remove special handling of SFTs.
335         (compute_tag_properties): Likewise.
336         (set_initial_properties): Likewise.
337         (compute_call_clobbered): Likewise.
338         (count_mem_refs): Likewise.
339         (compute_memory_partitions): Likewise.
340         (compute_flow_insensitive_aliasing): Likewise.
341         (setup_pointers_and_addressables): Likewise.
342         (new_type_alias): Likewise.
343         (struct used_part): Remove.
344         (used_portions): Likewise.
345         (struct used_part_map): Likewise.
346         (used_part_map_eq): Likewise.
347         (used_part_map_hash): Likewise.
348         (free_used_part_map): Likewise.
349         (up_lookup): Likewise.
350         (up_insert): Likewise.
351         (get_or_create_used_part_for): Likewise.
352         (create_sft): Likewise.
353         (create_overlap_variables_for): Likewise.
354         (find_used_portions): Likewise.
355         (create_structure_vars): Likewise.
356         * tree.def (STRUCT_FIELD_TAG): Remove.
357         * tree.h (MTAG_P): Adjust.
358         (struct tree_memory_tag): Remove base_for_components and
359         unpartitionable flags.
360         (struct tree_struct_field_tag): Remove.
361         (SFT_PARENT_VAR): Likewise.
362         (SFT_OFFSET): Likewise.
363         (SFT_SIZE): Likewise.
364         (SFT_NONADDRESSABLE_P): Likewise.
365         (SFT_ALIAS_SET): Likewise.
366         (SFT_UNPARTITIONABLE_P): Likewise.
367         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
368         (union tree_node): Remove sft field.
369         * alias.c (get_alias_set): Remove special handling of SFTs.
370         * print-tree.c (print_node): Remove handling of SFTs.
371         * tree-dump.c (dequeue_and_dump): Likewise.
372         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
373         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
374         * tree-predcom.c (set_alias_info): Do not set subvars.
375         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
376         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
377         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
378         (add_vars_for_offset): Remove.
379         (add_virtual_operand): Remove special handling of SFTs.
380         (add_call_clobber_ops): Likewise.
381         (add_call_read_ops): Likewise.
382         (get_asm_expr_operands): Likewise.
383         (get_modify_stmt_operands): Likewise.
384         (get_expr_operands): Likewise.
385         (add_to_addressable_set): Likewise.
386         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
387         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
388         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
389         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
390         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
391         (tree_node_structure): Likewise.
392         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
393         handling of SFTs.
394         (find_what_p_points_to): Likewise.
395
396 2008-05-08  Sa Liu  <saliu@de.ibm.com>
397
398         * config/spu/spu.md: Fixed subti3 pattern.
399
400 2008-05-08  Richard Guenther  <rguenther@suse.de>
401
402         PR middle-end/36154
403         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
404         sure to create a representative for trailing arrays for PTA.
405
406 2008-05-08  Richard Guenther  <rguenther@suse.de>
407
408         PR middle-end/36172
409         * fold-const.c (operand_equal_p): Two objects which types
410         differ in pointerness are not equal.
411
412 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
413
414         * calls.c (compute_argument_block_size): Add argument tree fndecl.
415         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
416         (emit_library_call_value_1): Add new variable fndecl initialized by
417         NULL_TREE. It should be the decl type of orgfun, but this information
418         seems not to be available here, so it uses the default calling abi.
419         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
420         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
421         by TARGET_RETURN_IN_MEMORY.
422         * config/i386/i386-interix.h: Likewise.
423         * config/i386/i386.h: Likewise.
424         * config/i386/i386elf.h: Likewise.
425         * config/i386/ptx4-i.h: Likewise.
426         * config/i386/sol2-10.h: Likewise.
427         * config/i386/sysv4.h: Likewise.
428         * config/i386/vx-common.h: Likewise.
429         * config/cris/cris.h: Removed #if 0 clause.
430         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
431         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
432         argument.
433         (ix86_sol10_return_in_memory): Likewise.
434         (ix86_i386elf_return_in_memory): New.
435         (ix86_i386interix_return_in_memory): New.
436         * config/mt/mt-protos.h (mt_return_in_memory): New.
437         * config/mt/mt.c: Likewise.
438         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
439         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
440         * config/bfin/bfin.h: Likewise.
441         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
442         argument.
443         * config/bfin/bfin.c: Likewise.
444         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
445         * config/alpha/unicosmk.h: Likewise.
446         * config/i386/cygming.h: Likewise.
447         * config/iq2000/iq2000.h: Likewise.
448         * config/mips/mips.h: Likewise.
449         * config/mn10300/mn10300.h: Likewise.
450         * config/rs6000/rs6000.h: Likewise.
451         * config/score/score.h: Likewise.
452         * config/spu/spu.h: Likewise.
453         * config/v850/v850.h: Likewise.
454         * defaults.h: Likewise.
455         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
456         * expr.c (emit_block_move): Adjust use of
457         OUTGOING_REG_PARM_STACK_SPACE.
458         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
459         OUTGOING_REG_PARM_STACK_SPACE.
460         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
461
462 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
463
464         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
465         on OMP_RETURN for OMP_FOR.
466
467         PR debug/35896
468         * dwarf2out.c (dw_expand_expr, common_check): Removed.
469         (fortran_common): New function.
470         (gen_variable_die): Call fortran_common instead of common_check,
471         adjust for it returning tree instead of rtx.  Formatting.
472
473 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
474
475         PR rtl/7335
476         PR rtl/33826
477         * see.c (see_copy_insn): Copy new pure const attributes for new call.
478         * c-decl.c (merge_decls): Ditto.
479         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
480         to RTL_CONST_OR_PURE_CALL_P.
481         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
482         Initialized DECL_LOOPING_CONST_PURE.
483         (process_call_operands): Set tree_side_effects properly.
484         * tree.h (TREE_READONLY_DECL_P): Removed.
485         (DECL_IS_PURE): Renamed to DECL_PURE_P.
486         (DECL_LOOPING_OR_CONST_P): New macro.
487         (struct tree_function_decl): Added looping_const_or_pure_p.
488         (ECF_*) Renumbered.
489         (ECF_LOOPING_OR_CONST_P): New macro.
490         * rtlanal.c (pure_const_p): Removed.
491         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
492         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
493         to RTL_CONST_CALL_P.
494         * ipa-pure-const.c (pure_const_state_e): Added looping field.
495         (check_decl, check_tree, check_call, scan_function): Initialize
496         looping.
497         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
498         (static_execute): Set looping true for recursive functions.
499         Undo setting state to IPA_NEITHER for recursive functions.
500         * cse.c (cse_insn): 
501         * ifcvt.c (noce_can_store_speculate_p): Changed
502         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
503         RTL_CONST_OR_PURE_CALL_P.
504         * dse.c (scan_insn): Ditto.
505         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
506         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
507         RTL_CONST_OR_PURE_CALL_P.
508         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
509         pure_call_p to RTL_CONST_CALL_P.
510         * gimplify.c (gimplify_call_expr): Clear side effects for
511         non-looping pure and constant calls.
512         * calls.c (emit_call_1): Set rtl flags from ecf flags.
513         (flags_from_decl_or_type): Set ecf flags from decl flags.
514         (initialize_argument_information): Turn off
515         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
516         Change const to pure if callee_copies is true rather than just
517         turning off const.
518         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
519         way of marking pure calls.
520         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
521         Remove hack that was supposed to fix pr7335 and remove old
522         way of marking pure calls.
523         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
524         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
525         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
526         RTL_CONST_OR_PURE_CALL_P.
527         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
528         * loop-invariant.c (find_exits, find_invariant_bb): Changed
529         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
530         * sched-deps.c (schedule_analyze): Ditto.
531         * rtl.h (struct rtx_def): Use call field, unchanging field, and
532         return_val field of calls to represent pure and const function info.
533         (CONST_OR_PURE_CALL_P): Deleted macro.
534         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
535         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
536         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
537         TREE_READONLY.
538         * tree-optimize.c (execute_fixup_cfg): Added test for
539         ECF_LOOPING_CONST_OR_PURE.
540         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
541         DECL_PURE_P.
542         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
543         effects for looping pure or const calls.
544         (verify_gimple_expr): Added verification code. 
545         * config/alpha/alpha.c (alpha_legitimize_address,
546         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
547         RTL_CONST_CALL_P.
548         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
549         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
550         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
551         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
552         RTL_CONST_OR_PURE_CALL_P.
553         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
554         and const calls to be deleted.
555
556 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
557
558         PR target/35714
559         * config/i386/mmx.md (mmx_subv2sf3): New expander.
560         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
561         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
562         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
563         to handle nonimmediate operands.
564         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
565         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
566         to handle nonimmediate operands.
567         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
568         (mmx_pmulhrwv4hi3): New expander.  Use
569         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
570         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
571         (sse2_umulv1siv1di3): New expander.  Use
572         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
573         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
574         (mmx_eq<mode>3): New expander.  Use
575         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
576         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
577         (mmx_uavgv8qi3): New expander.  Use
578         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
579         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
580         (mmx_uavgv4hi3): New expander.  Use
581         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
582
583         * config/i386/sse.md
584         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
585         to handle nonimmediate operands.
586         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
587         to handle nonimmediate operands.
588         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
589         to handle nonimmediate operands.
590         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
591         to handle nonimmediate operands.
592         (sse2_unpckhpd_exp): New expander.  Use
593         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
594         (sse2_unpcklpd_exp): New expander.  Use
595         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
596         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
597         to handle nonimmediate operands.
598         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
599         to handle nonimmediate operands.
600         (*sse2_<plusminus_insn><mode>3): Rename from
601         sse2_<plusminus_insn><mode>3 insn pattern.
602         (sse2_<plusminus_insn><mode>3): New expander.  Use
603         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
604         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
605         (sse2_umulv2siv2di3): New expander.  Use
606         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
607         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
608         (sse4_1_mulv2siv2di3): New expander.  Use
609         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
610         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
611         (sse2_pmaddwd): New expander.  Use
612         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
613         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
614         (sse2_eq<mode>3): New expander.  Use
615         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
616         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
617         (sse4_1_eqv2di3): New expander.  Use
618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
619         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
620         (sse2_uavgv16qi3): New expander.  Use
621         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
622         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
623         (sse2_uavgv16qi3): New expander.  Use
624         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
625         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
626         (sse2_uavgv8hi3): New expander.  Use
627         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
628         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
629         (ssse3_pmulhrswv8hi3): New expander.  Use
630         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
631         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
632         (ssse3_pmulhrswv4hi3): New expander.  Use
633         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
634
635         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
636         (<sse>_vmmul<mode>3): Ditto.
637         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
638         (divv2df3): Ditto.
639         (ssse3_pmaddubsw128): Use register_operand for operand 1.
640         (ssse3_pmaddubsw): Ditto.
641
642         * config/i386/i386.c (struct_builtin_description)
643         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
644         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
645         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
646         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
647         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
648         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
649         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
650         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
651         (ix86_fixup_binary_operands): Assert that src1
652         and src2 must have the same mode when swapped.
653         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
654         and ix86_binary_operator_ok.  Do not force operands in registers
655         when optimizing.
656
657 2008-05-07  Jan Hubicka  <jh@suse.cz>
658
659         * cgraph.c (dump_cgraph_node): Update.
660         * cgraph.h (cgraph_local_info): Break out inline summary.
661         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
662         hook.
663         * ipa-inline (inline_summary): New accestor function.
664         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
665         cgraph_decide_inlining, compute_inline_parameters): Update.
666         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
667
668 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
669
670         Cleanup ColdFire scheduling support and add V4 pipeline model.
671
672         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
673         (define_attr cpu): Add cfv4 value.
674         (define_attr type, define_attr type1): Merge into a single 'type'
675         attribute.  Update all uses.
676         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
677         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
678         Update all uses.
679         (define_attr opx_mem, define_attr opy_mem): Remove.
680         (define_attr op_mem): Clean up, update comment.
681         (define_attr size): Use specific values instead of general int.
682         (define_attr guess, define_attr split): Remove.  Update all uses.
683         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
684         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
685         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
686         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
687         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
688         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
689         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
690         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
691         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
692         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
693         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
694         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
695         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
696         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
697         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
698         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
699         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
700         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
701         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
702         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
703         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
704         Update or set attributes.
705         (stack_tie): New fake instruction.
706
707         * config/m68k/m68k.h (TUNE_CFV4): New macro.
708         (m68k_sched_attr_size): Update declaration.
709         (m68k_sched_attr_type2): Remove.
710         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
711         Declare new bypass predicates.
712
713         * config/m68k/m68k.c (m68k_sched_issue_rate,
714         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
715         implementations.
716         (TARGET_SCHED_ISSUE_RATE,
717         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
718         (override_options): Handle scheduling for ColdFire V4 core.
719         (m68k_expand_prologue): Emit stack_tie.
720         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
721         'OP_TYPE_FPN'.  Update all uses.
722         (sched_guess_p): Remove.
723         (sched_address_type): Handle symbolic addresses.
724         (sched_get_operand): New static function.
725         (sched_operand_type): Merge into sched_attr_op_type.
726         (sched_attr_op_type): Handle FP registers, handle quick constants,
727         update.
728         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
729         (m68k_sched_attr_size): Update.  Move logic to ...
730         (sched_get_attr_size_int): New static function.
731         (sched_get_opxy_mem_type): New static function.
732         (m68k_sched_attr_op_mem): Update.
733         (m68k_sched_attr_type2): Remove.
734         (sched_cfv4_bypass_data): New static variable.
735         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
736         (m68k_sched_issue_rate): Implement scheduler hook.
737         (struct _sched_ib: enabled_p): New field.
738         (m68k_sched_variable_issue): Update.  Handle V4.
739         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
740         sched_dump_class_func_t, sched_dump_split_class,
741         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
742         sched_dump_dfa_class, m68k_sched_dump): Remove.
743         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
744         hook.
745         (m68k_sched_init_global): Remove statisctics dumping, introduce
746         sanity check that all instructions have pipeline reservations.  Handle
747         ColdFire V4 core.
748         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
749         Handle ColdFire V4 core.
750         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
751         New static functions.
752         (m68k_sched_address_bypass_p): New bypass predicate.
753         (sched_get_indexed_address_scale): New static function.
754         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
755
756         * cf.md: Update comments.
757         (define_attr type2): Remove.  Use 'type' attribute instead.
758         Update all uses.
759         (cf_ib): Rename to cfv123_ib.  Update all uses.
760         (cf_oep): Rename to cfv123_oep.  Update all uses.
761         (cf_chr): Rename to cfv123_chr.  Update all uses.
762         (cf_mem): Rename to cfv123_mem.  Update all uses.
763         (cf_mac): Move to more appropriate place.
764         (cfv123_guess): New automaton and cpu_unit.
765         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
766         Update uses of 'size' attribute.  Handle before reload scheduling.
767         (cfv123_guess): New dummy reservation for unhandled instructions.
768         (cfv4_*): Pipeline description of ColdFire V4 core.
769         (ignore): New reservation to handle 'ignore' type.
770
771 2008-05-07  Ian Lance Taylor  <iant@google.com>
772
773         PR middle-end/36013
774         * gimplify.c (find_single_pointer_decl_1): Don't look through
775         indirections.
776         (find_single_pointer_decl): Adjust comments.
777
778 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
779
780         PR middle-end/36137
781         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
782         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
783
784         PR middle-end/36106
785         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
786         integral type rather than floating point, then VIEW_CONVERT_EXPR
787         to the floating point type.
788
789 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
790
791         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
792         TFmode op0 to register.
793
794 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
795
796         * c-decl.c (grokdeclarator): Comment typo.
797
798 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
799
800         * tree-flow.h: Remove prototype for computed_goto_p.
801         * tree-cfg.c (computed_goto_p): Make static.
802
803 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
804
805         PR target/35657
806         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
807         (contains_aligned_value_p): This.  Handle _Decimal128.
808         (ix86_function_arg_boundary): Only align _Decimal128 to its
809         natural boundary and handle it properly.
810
811 2008-05-06  Martin Jambor  <mjambor@suse.cz>
812
813         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
814         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
815         (ipcp_method_set_orig_node): Removed.
816         (ipcp_cval_get_cvalue_type): Removed.
817         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
818         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
819         (ipcp_cval_set_cvalue_type): Removed.
820         (ipcp_cval_get_cvalue): Removed.
821         (ipcp_cval_set_cvalue): Removed.
822         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
823         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
824         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
825         (ipcp_cval_meet): Renamed to ipa_lattice_meet
826         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
827         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
828         (ipcp_get_ith_lattice): Changed parameters.
829         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
830         (ipcp_lattice_from_jfunc): Changed parameters.
831         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
832         (ipcp_method_cval_print): Added temporary variable info.
833         (ipcp_redirect): Removed already unused local variable caller.
834         (ipcp_redirect): New temporary variable orig_callee_info
835         (ipcp_redirect): Removed newly unused local variable callee.
836         (ipcp_redirect): Removed (a bit confusing) local variable type.
837         (ipcp_insert_stage): Added local variable info.
838         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
839         renamed too
840         (ipcp_formal_create): Removed.
841         (ipcp_method_cval_set): Removed.
842         (ipcp_propagate_stage): Renamed lattice variables.
843         (ipcp_method_cval_set_cvalue_type): Removed.
844         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
845         (ipcp_print_all_lattices): Changed printed strings to refer to 
846         lattices rather than cvals.
847         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
848         (ipcp_propagate_const): Changed formal parameters.
849         (build_const_val): Changed formal parameters.
850         (ipcp_insert_stage): Removed useless variable cvalue
851         (build_const_val): Changed formal parameters.
852         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
853         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
854         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
855         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
856         (ipcp_print_func_profile_counts): Changed string from "method" to 
857         "function"
858         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
859         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
860         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
861         (ipcp_structures_print): Renamed to ipcp_print_all_structures
862         (ipcp_profile_print): Renamed to ipcp_print_profile_data
863         (ipcp_lat_is_const): Changed parameters and made inline.
864         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
865         (ipcp_redirect): Renamed to ipcp_need_redirect_p
866         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
867         the predicate condition directly
868         (ipcp_propagate_stage): Added local variable args. Removed local
869         variable callee.  (Both are mere code simplifications.)
870         (ipcp_method_dont_insert_const): Renamed to
871         ipcp_node_not_modifiable_p.
872         (ipcp_node_not_modifiable_p): Made inline.
873         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
874         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
875         (ipcp_print_all_lattices): Removed variable cvalue
876         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
877         Updated comments.
878
879 2008-05-06  Olivier Hainque  <hainque@adacore.com>
880
881         * tree-sra.c (try_instantiate_multiple_fields): Early return
882         if field has POINTER_TYPE.
883
884 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
885
886         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
887         by using 'q' specifier for instruction.
888         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
889
890 2008-05-06  Anatoly Sokolov <aesok@post.ru>
891
892         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
893         Change mode of zero_extract from QImode to HImode.
894         (sign bit tests peepholes): (Ditto.).
895
896 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
897
898         * config/i386/mmx.md: Remove double backslashes from asm templates.
899         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
900         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
901         to handle nonimmediate operands.
902         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
903         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
904         to handle nonimmediate operands.
905         (*mmx_<code>v2sf3_finite): New insn pattern.
906         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
907         (mmx_<code>v2sf3): New expander.  Use
908         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
909         (mmx_<plusminus_insn><mode>3): New expander.  Use
910         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
911         (*mmx_<plusminus_insn><mode>3): New insn pattern.
912         (mmx_add<mode>3): Removed.
913         (mmx_ssadd<mode>3): Ditto.
914         (mmx_usadd<mode>3): Ditto.
915         (mmx_sub<mode>3): Ditto.
916         (mmx_sssub<mode>3): Ditto.
917         (mmx_ussub<mode>3): Ditto.
918         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
919         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
920         to handle nonimmediate operands.
921         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
922         insn pattern.
923         (mmx_smulv4hi3_highpart): New expander.  Use
924         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
925         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
926         insn pattern.
927         (mmx_umulv4hi3_highpart): New expander.  Use
928         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
929         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
930         (mmx_<code>v4hi3): New expander.  Use
931         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
932         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
933         (mmx_<code>v8qi3): New expander.  Use
934         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
935         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
936         (mmx_<code><mode>3): New expander.  Use
937         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
938
939 2008-05-05  Jan Hubicka  <jh@suse.cz>
940
941         PR tree-optimization/36118
942         * passes.c (pass_init_dump_file): Fix dump header.
943
944 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
945
946         PR middle-end/36141
947         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
948         VCE for function decls.
949
950 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
951
952         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
953
954 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
955
956         * config/i386/i386.md (sat_plusminus): New.
957         (plusminus_insn): Likewise.
958         (plusminus_mnemonic): Likewise.
959         (addsub): Removed.
960         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
961         (*<addsub><mode>3_cc_overflow): Renamed to ...
962         (*<plusminus_insn><mode>3_cc_overflow): This.
963         (*<addsub>si3_zext_cc_overflow): Renamed to ...
964         (*<plusminus_insn>si3_zext_cc_overflow): This.
965
966         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
967         (<plusminus_insn><mode>3): This.
968         (*<addsub><mode>3): Renamed to ...
969         (*<plusminus_insn><mode>3): This.
970         (<sse>_vm<addsub><mode>3): Renamed to ...
971         (<sse>_vm<plusminus_insn><mode>3): This.
972         (sse3_h<addsub>v4sf3): Renamed to ...
973         (sse3_h<plusminus_insn>v4sf3): This.
974         (sse3_h<addsub>v2df3): Renamed to ...
975         (sse3_h<plusminus_insn>v2df3): This.
976         (<plusminus_insn><mode>3): New.
977         (*<plusminus_insn><mode>3): Likewise.
978         (sse2_<plusminus_insn><mode>3): Likewise.
979         (add<mode>): Removed.
980         (*add<mode>3): Likewise.
981         (sse2_ssadd<mode>3): Likewise.
982         (sse2_usadd<mode>3): Likewise.
983         (sub<mode>3): Likewise.
984         (*sub<mode>3): Likewise.
985         (sse2_sssub<mode>3): Likewise.
986         (sse2_ussub<mode>3): Likewise.
987
988 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
989
990         * gthr-single.h: Add in required interface elements as per gthr.h.
991         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
992         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
993         Generalize UNUSED macro. 
994         (__gthread_once): Add.
995         (__gthread_key_create): Add.
996         (__gthread_key_delete): Add.
997         (__gthread_getspecific): Add.
998         (__gthread_setspecific): Add.
999         
1000 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
1001
1002         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1003         the same size types for the indirect reference on the rhs, then
1004         create a VCE.
1005
1006 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
1007
1008         * config/i386/i386.md
1009         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1010         one insn template instead of template series.
1011         (*xordi_1_rex64): Ditto.
1012         (*xordi_2_rex64): Ditto.
1013
1014 2008-05-05  Ira Rosen  <irar@il.ibm.com>
1015
1016         PR tree-optimization/36119
1017         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1018         in case of SLP.
1019
1020 2008-06-04  Jan Hubicka  <jh@suse.cz>
1021
1022         tree-optimization/36100
1023         * tree-pass.h (pass_O0_always_inline): Declare.
1024         * ipa-inline.c (inline_transform): Remove dead code.
1025         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1026         pass_O0_always_inline): New.
1027         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1028
1029 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
1030
1031         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1032         mnemonic in this_param move for TARGET_64BIT.
1033
1034 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
1035
1036         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1037         (*strmovsi_rex_1): Ditto.
1038         (*strsetsi_1): Ditto.
1039         (*strsetsi_rex_1): Ditto.
1040
1041         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1042         adddicc expanders using SWI mode iterator.
1043
1044 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1045
1046         PR target/36121
1047         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1048         argument handling.
1049
1050 2008-05-04  David S. Miller  <davem@davemloft.net>
1051
1052         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1053         (sparc*-*-linux*): Use linux.h in tm_file.
1054         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1055         compiler defaulting to 32-bit.
1056         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1057         no longer needed.
1058         * config/sparc/linux.h: Remove definitions now obtained
1059         properly from linux.h
1060         * config/sparc/linux64.h: Likewise.
1061         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1062         don't want this setting for 32-bit builds in a biarch compiler.
1063         * doc/install.texi: Add sparc-linux to list of targets
1064         supporting --enable-targets=all.
1065
1066 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
1067
1068         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1069
1070 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1071
1072         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1073         after V4SI_FTYPE_V8HI.
1074         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1075         case V4SI_FTYPE_V2DF.
1076
1077 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1078
1079         * doc/invoke.texi (max-flow-memory-locations): Removed.
1080         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1081         
1082 2008-05-03  Richard Guenther  <rguenther@suse.de>
1083
1084         PR middle-end/34973
1085         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1086
1087 2008-05-02  David S. Miller  <davem@davemloft.net>
1088
1089         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1090
1091 2008-05-02  Simon Baldwin <simonb@google.com>
1092
1093         PR bootstrap/36108
1094         * c-common.h (warn_array_subscript_range): Removed.
1095         * c-common.c (warn_array_subscript_range): Ditto.
1096         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1097         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1098
1099 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         * config/i386/i386.c (ix86_special_builtin_type): New.
1102         (bdesc_special_args): Likewise.
1103         (ix86_expand_special_args_builtin): Likewise.
1104         (ix86_init_mmx_sse_builtins): Updated.
1105         (ix86_expand_builtin): Updated.
1106         (ix86_expand_store_builtin): Removed.
1107         (ix86_expand_unop_builtin): Likewise.
1108
1109         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1110         * config/i386/mmintrin.h (__v2sf): Here.
1111
1112         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1113         const __v2sf.
1114         (_mm_loadl_pi): Likewise.
1115         (_mm_storeh_pi): Replace __v2si with __v2sf.
1116         (_mm_storel_pi): Likewise.
1117
1118         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1119         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1120         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1121         __builtin_ia32_loadlpd.
1122
1123 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1126         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1127         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1128         (ix86_init_mmx_sse_builtins): Updated.
1129         (ix86_expand_args_builtin): Likewise.
1130         (ix86_expand_builtin): Likewise.
1131         (ix86_expand_unop1_builtin): Renamed to ...
1132         (ix86_expand_unop_vec_merge_builtin): This.
1133
1134 2008-05-01  Jan Hubicka  <jh@suse.cz>
1135
1136         PR bootstrap/36100
1137         * ipa-inline.c (inline_generate_summary): Make static.
1138         (inline_transform): Do not call inlining at -O0; make static.
1139         * passes.c (execute_todo): Add sanity check.
1140         (execute_one_ipa_transform_pass): Execute proper flags.
1141
1142 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1143
1144         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1145         (DECL_NONADDRESSABLE_P): Likewise.
1146         * alias.c (record_component_aliases): Fix comment.
1147
1148 2008-05-01  Simon Baldwin <simonb@google.com>
1149
1150         * c-common.h (warn_array_subscript_range): New function.
1151         * c-common.c (warn_array_subscript_range): Ditto.
1152         * tree-vrp.c (check_array_ref): Corrected code to agree with
1153         comment, ignoring only arrays of size 0 or size 1.
1154         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1155
1156 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         * config/i386/i386.c (ix86_builtin_type): Replace
1159         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1160         (bdesc_args): Updated.
1161         (ix86_init_mmx_sse_builtins): Likewise.
1162         (ix86_expand_args_builtin): Likewise.
1163
1164         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1165         with __v1di.
1166
1167         * doc/extend.texi: Correct __builtin_ia32_palignr.
1168
1169 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1170
1171         PR target/36095
1172         * config/i386/i386.c (bdesc_crc32): Removed.
1173         (ix86_expand_crc32): Likewise.
1174         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1175         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1176         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1177         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1178         UINT_FTYPE_UINT_UCHAR.
1179         (bdesc_args): Updated. Add crc32 builtins.
1180         (ix86_init_mmx_sse_builtins): Updated.
1181         (ix86_expand_args_builtin): Updated to support subreg.
1182
1183         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1184
1185 2008-05-01  Jan Hubicka  <jh@suse.cz>
1186
1187         * tree-pass.h (opt_pass): Add IPA_PASS.
1188         (varpool_node, cgraph_node): Forward declare.
1189         (ipa_opt_pass): Define.
1190         (pass_ipa_inline): Turn into ipa_opt_pass.
1191         (pass_apply_inline): Remove.
1192         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1193         (apply_inline): Turn into ....
1194         (inline_transform): ... this one.
1195         (inline_generate_summary): New function.
1196         (pass_apply_inline): Remove.
1197         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1198         vector.
1199         (struct function): Add ipa_transforms_to_apply.
1200         * passes.c (register_one_dump_file): Work on IPA_PASS.
1201         (init_optimization_passes): Remove pass_inline_parameters and
1202         pass_apply_inline.
1203         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1204         (execute_one_pass) ... here; apply transforms when possible.
1205         (add_ipa_transform_pass, execute_ipa_summary_asses,
1206         execute_one_ipa_transform_pass): New.
1207         (execute_ipa_pass_list): Update for IPA_PASS type.
1208
1209 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         * config/i386/i386.c (ix86_builtin_type): Add
1212         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1213         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1214         (bdesc_args): Add SSE4a builtins.
1215         (ix86_init_mmx_sse_builtins): Updated.
1216         (ix86_expand_args_builtin): Likewise.
1217         (ix86_expand_builtin): Likewise.
1218
1219 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1220
1221         * config/i386/i386.c (ix86_builtin_type): Add
1222         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1223         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1224         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1225         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1226         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1227         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1228         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1229         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1230         and DI_FTYPE_DI_DI_INT.
1231         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1232         (ix86_init_mmx_sse_builtins): Updated.
1233         (ix86_expand_args_builtin): Likewise.
1234         (ix86_expand_builtin): Likewise.
1235         (ix86_expand_binop_imm_builtin): Removed.
1236
1237         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1238
1239 2008-04-30  Richard Guenther  <rguenther@suse.de>
1240
1241         PR tree-optimization/32921
1242         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1243
1244 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1245
1246         * config/arm/arm.c (arm_unwind_emit): Use
1247         crtl->all_throwers_are_sibcalls instead of
1248         cfun->all_throwers_are_sibcalls.
1249         (arm_output_fn_unwind): Likewise.
1250         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1251         instead of cfun->uses_pic_offset_table.
1252         (frv_expand_prologue): Likewise.
1253         (frv_frame_pointer_required): Likewise.
1254         (frv_expand_fdpic_call): Likewise.
1255         (frv_emit_movsi): Likewise.
1256         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1257         cfun->returns_pcc_struct instead of
1258         current_function_returns_pcc_struct.
1259         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1260         instead of cfun->calls_eh_return.
1261         (m32c_pushm_popm): Likewise.
1262         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1263         "extern" declaration.
1264
1265 2008-04-30  Richard Guenther  <rguenther@suse.de>
1266
1267         PR tree-optimization/21636
1268         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1269         constant address.
1270         (evaluate_stmt): Print the likely value.
1271         (ccp_visit_stmt): Avoid excessive vertical spacing.
1272
1273 2008-04-30  Rafael Espindola  <espindola@google.com>
1274
1275         * builtins.c (fold_call_expr): Return realret.
1276         * tree-ssa-threadedge.c
1277         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1278         __builtin_object_size.
1279
1280 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1281
1282         * gcc.c (wrapper_string): New variable.
1283         (insert_wrapper): New function.
1284         (execute): New option -wrapper.
1285         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1286
1287 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1288
1289         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1290         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1291         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1292         from...
1293         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1294         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1295         config/rs6000/e500crtres64gprctr.asm,
1296         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1297         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1298         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1299         config/rs6000/e500crtsav64gprctr.asm,
1300         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1301         config/rs6000/e500crtsavg64gprctr.asm: New files.
1302         * config/rs6000/t-ppccomm: Add build rules for new files.
1303         (LIB2FUNCS_STATIC_EXTRA): Add new files.
1304         * config/rs6000/t-netbsd: Add build rules for new files.
1305         (LIB2FUNCS_STATIC_EXTRA): New variable.
1306         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1307         (CRTSAVRES_DEFAULT_SPEC): Likewise.
1308         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1309
1310 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         * config/i386/i386.c (ix86_builtin_type): Add
1313         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1314         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1315         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1316         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1317         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1318         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1319         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1320         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1321         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1322         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1323         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1324         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1325         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1326         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1327         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1328         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1329         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1330         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1331         V1DI_FTYPE_V2SI_V2SI.
1332         (bdesc_2arg): Moved to ...
1333         (bdesc_args): Here.
1334         (ix86_init_mmx_sse_builtins): Updated.
1335         (ix86_expand_args_builtin): Updated.  Take a pointer
1336         to const struct builtin_description.  Handle comparison
1337         builtin functions.
1338         (ix86_expand_sse_compare): Take a new argument for swapping operands.
1339         (ix86_expand_builtin): Updated.
1340
1341         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1342         (ssse3_pmaddubsw128): This.
1343         (ssse3_pmaddubswv4hi3): Renamed to ...
1344         (ssse3_pmaddubsw): This.
1345
1346         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1347         (__builtin_ia32_packssdw128): Likewise.
1348         (__builtin_ia32_packuswb128): Likewise.
1349         (__builtin_ia32_pmaddubsw): Likewise.
1350         (__builtin_ia32_pmaddubsw128): Likewise.
1351
1352 2008-04-30  Richard Guenther  <rguenther@suse.de>
1353
1354         PR tree-optimization/14847
1355         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1356         (recognize_bits_test): Use it.
1357         (recognize_single_bit_test): Likewise.
1358
1359 2008-04-30  Martin Jambor  <mjambor@suse.cz>
1360
1361         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1362         instead of setting number of formal parameters to zero.
1363         (ipcp_init_stage): Do not set the number of actual parameters to zero 
1364         either.
1365         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1366         which are called with variable number of arguments.
1367         (ipcp_insert_stage): Explicitely skipping all nodes which are
1368         called with variable number of arguments.
1369         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
1370         number of parameters.
1371
1372         * ipa-prop.h (struct ipa_node_params): Added flag
1373         called_with_var_arguments
1374         (ipa_set_param_count): Added.  Changed sole setter to use it.
1375         (ipa_get_param_count): Added.  All readers of param_count
1376         converted to use it instead.
1377         (ipa_set_called_with_variable_arg): Added.
1378         (ipa_is_called_with_var_arguments): Added.
1379         (ipa_get_ith_param): Added.  All readers of param_decls converted
1380         to use it instead.
1381         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
1382         changed to use it. 
1383         (ipa_get_cs_argument_count): Added, all readers of argument_count
1384         changed to cal it.
1385         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
1386         to use it.
1387         
1388         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1389         (struct ipcp_lattice): Renamed cval_type to type
1390         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1391
1392         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1393         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1394         (ipcp_insert_stage): Changed the type of variable cvalue to tree
1395         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1396         (build_const_val): Changed the type of parameter cvalue to tree
1397         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1398         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1399         
1400         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
1401         constant 
1402
1403         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1404         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1405         (ipa_add_method): Renamed to ipa_push_func_to_list
1406         (ipa_remove_method): Renamed to ipa_pop_func_from_list
1407         (ipa_callsite_param_count): Removed.
1408         (ipa_callsite_param_count_set): Removed.
1409         (ipa_callsite_param): Removed.
1410         (ipa_callsite_callee): Removed.
1411         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1412         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1413         (ipa_method_formal_count): Removed.
1414         (ipa_method_formal_count_set): Removed.
1415         (ipa_method_get_tree): Removed.
1416         (ipa_method_tree_map_create): Removed.
1417         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1418         (ipa_create_param_decls_array): Creates the array itself
1419         (ipa_create_param_decls_array): Temporary variable info instead of 
1420         a few dereferences.
1421         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1422         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1423         (get_type): Removed.
1424         (ipa_jf_get_info_type): Removed.
1425         (ipa_node_create): Renamed to ipa_create_node_params
1426         (ipa_free): Renamed to ipa_free_all_node_params
1427         (ipa_nodes_create): Renamed to ipa_create_all_node_params
1428         (ipa_edges_create): Renamed to ipa_create_all_edge_args
1429         (ipa_edges_free): Renamed to ipa_free_all_edge_args
1430         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1431         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
1432         ipa_free_all_edge_args
1433         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1434         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1435         (ipa_create_methodlist_node): Removed.
1436         (ipa_methodlist_method): Removed.
1437         (ipa_methodlist_method_set): Removed.
1438         (ipa_methodlist_next_method): Removed.
1439         (ipa_methodlist_next_method_set): Removed.
1440         (ipa_method_is_modified): Removed.
1441         (ipa_method_modify_create): Removed.
1442         (ipa_method_modify_init): Temporary variable info instead of a few 
1443         dereferences.
1444         (ipa_detect_param_modifications): Temporary variable info instead of 
1445         a few dereferences.
1446         (ipa_compute_jump_functions): Temporary variable info instead of 
1447         a few dereferences.
1448         (ipa_method_modify_set): Removed.
1449         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1450         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
1451         than craph_node as the first parameter.
1452         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1453         (ipa_method_modify_init): Removed.
1454         (ipa_compute_jump_functions): Added a temp variable instead of 
1455         repeatadly dereferencing the cgraph_edge.aux pointer
1456         (ipa_callsite_param_set_type): Removed.
1457         (ipa_compute_jump_functions): i renamed to index and moved to 
1458         an inner block
1459         (ipa_callsite_param_set_info_type_formal): Removed.
1460         (ipa_callsite_param_set_info_type): Removed.
1461         (ipa_callsite_param_map_create): Removed.
1462         (ipa_callsite_tree): Removed.
1463         (ipa_callsite_caller): Removed.
1464         (ipa_pop_func_from_list): return_method removed to return_func
1465
1466         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1467         prefixed all values with IPA_. Changed all users.
1468         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
1469         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
1470         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
1471         (union parameter_info): Renamed to jump_func_value.
1472         (union jump_func_value): Renamed value to constant
1473         (struct ipa_jump_func): Renamed info_type to value
1474         (struct ipa_node): Renamed to ipa_node_params
1475         (struct ipa_node_params): Renamed ipa_arg_num to param_count
1476         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1477         (struct ipa_node_params): Renamed ipa_mod to modified_flags
1478         (struct ipa_edge): Renamed to ipa_edge_args
1479         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1480         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1481         (struct ipa_methodlist): Renamed to ipa_func_list
1482         (struct ipa_func_list): method_p renamed to node, next_method
1483         renamed to next
1484         (ipa_methodlist_p): Removed, switched all users to struct pointer
1485         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1486
1487 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
1488
1489         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1490         (rs6000_emit_epilogue): Use backchain to restore only when we
1491         have a large frame.  Make use of frame pointer to restore if we
1492         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1493
1494 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
1495
1496         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1497         Add mode to zero_extract.
1498         (sign bit tests peepholes): (Ditto.).
1499
1500 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1501
1502         * config/i386/i386.c (ix86_builtins): Replace Prescott New
1503         Instructions in comments with SSE3.
1504         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
1505         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1506         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1507         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1508         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1509         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1510         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1511         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1512         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1513         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1514         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1515         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1516         (bdesc_sse_args): Renamed to ...
1517         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1518         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1519         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1520         IX86_BUILTIN_FABSQ.
1521         (bdesc_1arg): Moved to ...
1522         (bdesc_args): Here.
1523         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
1524         Instructions in comments with SSE3.
1525         (ix86_expand_sse_operands_builtin): Renamed to ...
1526         (ix86_expand_args_builtin): This.  Updated.
1527         (ix86_expand_unop1_builtin): Update comments.
1528         (ix86_expand_builtin): Updated.
1529
1530 2008-04-29  Richard Guenther  <rguenther@suse.de>
1531
1532         PR tree-optimization/36078
1533         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1534         Update virtual SSA form after cleaning up the CFG.
1535
1536 2008-04-29  Richard Guenther  <rguenther@suse.de>
1537
1538         PR middle-end/15255
1539         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1540
1541 2008-04-29  Richard Guenther  <rguenther@suse.de>
1542
1543         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1544         (compute_may_aliases): Do not call finalize_ref_all_pointers.
1545         (compute_flow_insensitive_aliasing): Do not treat
1546         PTR_IS_REF_ALL pointers special.
1547         (get_smt_for): Likewise.
1548         (may_alias_p): Re-structure.
1549         (is_escape_site): A ref-all pointer conversion is not an escape site.
1550         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1551         PTR_IS_REF_ALL pointers special.
1552         * tree-ssa-structalias.h (struct alias_info): Remove
1553         ref_all_symbol_mem_tag field.
1554         (PTR_IS_REF_ALL): Remove.
1555
1556 2008-04-29  Richard Guenther  <rguenther@suse.de>
1557
1558         PR middle-end/36077
1559         * fold-const.c (extract_muldiv_1): In combining division constants
1560         make sure to never overflow.
1561
1562 2008-04-29  Nick Clifton  <nickc@redhat.com>
1563
1564         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1565
1566 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1567
1568         PR bootstrap/35169
1569         * optc-gen.awk: Work around HP-UX/IA awk bug.
1570
1571 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
1572
1573         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1574         2008-04-25 commit.
1575
1576 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1577
1578         PR target/36073
1579         * config/i386/i386.md
1580         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1581         Change operand 1 predicate to nonimmediate_operand.
1582
1583 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
1584
1585         PR debug/36060
1586         * dwarf2out.c (struct die_struct): Mark as chain_circular through
1587         die_sub field.
1588         * gengtype.c (walk_type, write_func_for_structure): Handle
1589         chain_circular.
1590         * doc/gty.texi: Document chain_circular.
1591
1592 2008-04-28  Richard Guenther  <rguenther@suse.de>
1593
1594         PR tree-optimization/36066
1595         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1596         SCEV and loop.
1597
1598 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1599
1600         PR target/36064
1601         * config/i386/i386.md
1602         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1603         Use match_scratch instead of match_operand for operands 3 and 4.
1604
1605 2008-04-27  Richard Guenther  <rguenther@suse.de>
1606
1607         PR tree-optimization/18754
1608         PR tree-optimization/34223
1609         * tree-pass.h (pass_complete_unrolli): Declare.
1610         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1611         loop size before and after unconditionally of UL_NO_GROWTH in effect.
1612         Rewrite loop into loop closed SSA form if it is not already.
1613         (tree_unroll_loops_completely): Re-structure to iterate over
1614         innermost loops with intermediate CFG cleanups.
1615         Unroll outermost loops only if requested or the code does not grow
1616         doing so.
1617         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
1618         loops are available.
1619         (tree_vectorize): Instead do so here.
1620         (tree_complete_unroll): Also unroll outermost loops.
1621         (tree_complete_unroll_inner): New function.
1622         (gate_tree_complete_unroll_inner): Likewise.
1623         (pass_complete_unrolli): New pass.
1624         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
1625         uses outside of the loop.
1626         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
1627         form if it is available.  
1628         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
1629         * passes.c (init_optimization_passes): Schedule complete inner
1630         loop unrolling pass before the first CCP pass after final inlining.
1631
1632 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1633
1634         * targhooks.h (default_emutls_var_fields,
1635         default_emutls_var_init): Declare.
1636         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
1637         * target.h (struct gcc_target): Add struct emutls member.
1638         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
1639         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
1640         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
1641         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
1642         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
1643         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
1644         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
1645         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
1646         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
1647         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
1648         emit debug information.
1649         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
1650         * varasm.c: Include targhooks.h.
1651         (emutls_object_section, emutls_tmpl_section): New.
1652         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
1653         (EMUTLS_SEPARATOR): New.
1654         (prefix_name): New.
1655         (get_emutls_object_name): New.
1656         (default_emutls_var_fields): New, broken out of ...
1657         (get_emutls_object_type): ... here.  Adjust to use target hooks.
1658         (get_emutls_init_templ_addr): Adjust to use target hooks.
1659         (emutls_decl): Adjust to use target hooks.
1660         (emutls_finish): Likewise.
1661         (default_emutls_var_init): New, broken out of ...
1662         (assemble_variable): ... here.  Adjust to use target hooks.
1663         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
1664         SECCAT_EMUTLS_TMPL.
1665         * c-common.c (handle_section_attribute): Prevent overriding
1666         sections for emulated tls with special sections.
1667         * config/i386/i386.c (x86_64_elf_select_section): Add
1668         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
1669         (x86_64_elf_unique_section): Likewise.
1670         * config/vxworks.c: Include tree.h.
1671         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
1672         (vxworks_override_options): Set TLS scheme.
1673         * doc/tm.texi (Emulated TLS): New node.
1674
1675 2008-04-26  Simon Baldwin <simonb@google.com>
1676
1677         PR c/35652
1678         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
1679         with propagated string constants.
1680
1681 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
1682
1683         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
1684         constraint for operand 2 when operand 0 is memory operand.
1685         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
1686         operand 0 is memory operand.
1687         (fix_trunc<mode>_i387_with_temp): Ditto.
1688         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
1689         operand 2 when operand 1 is memory operand.
1690         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
1691         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
1692         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
1693         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1694         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
1695         operands 2,3 and 4 when operand 1 is memory operand.
1696         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
1697         is memory operand.
1698         (fistdi2_floor_with_temp): Ditto.
1699         (fist<mode>2_floor_with_temp): Ditto.
1700         (fistdi2_ceil_with_temp): Ditto.
1701         (fist<mode>2_ceil_with_temp): Ditto.
1702         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
1703
1704 2008-04-26  David Daney  <ddaney@avtrex.com>
1705
1706         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
1707         unspec_volitile.
1708         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
1709         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1710         UNSPEC_UPDATE_GOT_VERSION): Renumber.
1711         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
1712         (compare_and_swap_12): New insn.
1713         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
1714         * config/mips/mips.c (mips_force_binary): New function.
1715         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
1716         (mips_expand_compare_and_swap_12): New function.
1717         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
1718
1719 2008-04-25  Jan Hubicka  <jh@suse.cz>
1720
1721         PR testsuite/35843
1722         * cfgexpand.c (pass_expand): Turn into RTL pass.
1723         * passes.c (execute_one_pass): Do pass typechecking after execution.
1724         * tree-pass.h (pass_expand): Turn into RTL pass.
1725
1726         * function.h (struct rtl_data): Move here fields
1727         accesses_prior_frames, calls_eh_return, saves_all_registers,
1728         has_nonlocal_goto, has_asm_statement, is_thunk,
1729         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
1730         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
1731         arg_pointer_save_area_init from struct function; turn into bool.
1732         (struct function): Move
1733         calls_eh_return, saves_all_registers, has_nonlocal_goto,
1734         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
1735         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
1736         tail_call_emit, arg_pointer_save_area_init
1737         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
1738         (current_function_returns_struct, current_function_returns_pcc_struct,
1739         current_function_calls_setjmp, current_function_calls_alloca,
1740         current_function_accesses_prior_frames,
1741         current_function_calls_eh_return, current_function_is_thunk,
1742         current_function_stdarg, current_function_profile,
1743         current_function_limit_stack, current_function_uses_pic_offset_table,
1744         current_function_uses_const_pool, current_function_has_nonlocal_label,
1745         current_function_saves_all_registers,
1746         current_function_has_nonlocal_goto,
1747         current_function_has_asm_statement): Remove accesor macros.
1748         * ra-conflict.c (global_conflicts): Update.
1749         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
1750         (suitable_for_tail_call_opt_p): Update.
1751         * builtins.c (expand_builtin_return_addr): Update.
1752         (expand_builtin_setjmp_setup): Update.
1753         (expand_builtin_nonlocal_goto): Update.
1754         * final.c (final_start_function): Update.
1755         (profile_function): Update.
1756         (leaf_function_p): Update.
1757         (only_leaf_regs_used): Update.
1758         * df-scan.c (df_get_exit_block_use_set): Update.
1759         * dojump.c (clear_pending_stack_adjust): Update.
1760         * tree-stdarg.c (gate_optimize_stdarg): Update.
1761         * gimple-low.c (lower_function_body): Update.
1762         * global.c (compute_regsets): Update.
1763         (global_alloc): Update.
1764         * dwarf2out.c (dwarf2out_begin_prologue): Update.
1765         * expr.c (expand_assignment): Update.
1766         * dse.c (dse_step0): Update.
1767         (dse_step1): Update.
1768         * c-decl.c (store_parm_decls): Update.
1769         * local-alloc.c (combine_regs): Update.
1770         (find_free_reg): Update.
1771         * function.c (assign_parms_augmented_arg_list): Update.
1772         (assign_parm_find_data_types): Update.
1773         (assign_parms): Update.
1774         (allocate_struct_function): Update.
1775         (expand_function_start): Update.
1776         (expand_function_end): Update.
1777         (get_arg_pointer_save_area): Update.
1778         (thread_prologue_and_epilogue_insns): Update.
1779         (rest_of_match_asm_constraints): Update.
1780         * stor-layout.c (variable_size): Update.
1781         * gcse.c (gcse_main): Update.
1782         (bypass_jumps): Update.
1783         * gimplify.c (gimplify_function_tree): Update.
1784         * calls.c (emit_call_1): Update.
1785         (expand_call): Update.
1786         * bt-load.c (compute_defs_uses_and_gen): Update.
1787         * except.c (sjlj_assign_call_site_values): Update.
1788         (sjlj_emit_function_enter): Update.
1789         (can_throw_external): Update.
1790         (set_nothrow_function_flags): Update.
1791         (expand_builtin_unwind_init): Update.
1792         (expand_eh_return): Update.
1793         (convert_to_eh_region_ranges): Update.
1794         (output_function_exception_table): Update.
1795         * emit-rtl.c (gen_tmp_stack_mem): Update.
1796         * cfgexpand.c (expand_used_vars): Update.
1797         (tree_expand_cfg): Update.
1798         * cfgcleanup.c (rest_of_handle_jump): Update.
1799         * explow.c (allocate_dynamic_stack_space): Update.
1800         * varasm.c (assemble_start_function): Update.
1801         (force_const_mem): Update.
1802         (mark_constant_pool): Update.
1803         * tree-optimize.c (tree_rest_of_compilation): Update.
1804         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
1805         * tree-cfg.c (notice_special_calls): Update.
1806         (is_ctrl_altering_stmt): Update.
1807         (tree_can_make_abnormal_goto): Update.
1808         (tree_purge_dead_abnormal_call_edges): Update.
1809         * config/alpha/predicates.md: Update.
1810         * config/alpha/alpha.c (alpha_sa_mask): Update.
1811         (alpha_sa_size): Update.
1812         (alpha_does_function_need_gp): Update.
1813         (alpha_expand_prologue): Update.
1814         (alpha_start_function): Update.
1815         (alpha_output_function_end_prologue): Update.
1816         (alpha_expand_epilogue): Update.
1817         * config/frv/frv.c (frv_stack_info): Update.
1818         (frv_expand_epilogue): Update.
1819         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
1820         (s390_register_info): Update.
1821         (s390_frame_info): Update.
1822         (s390_init_frame_layout): Update.
1823         (s390_can_eliminate): Update.
1824         (save_gprs): Update.
1825         * config/spu/spu.c (spu_split_immediate): Update.
1826         (need_to_save_reg): Update.
1827         (spu_expand_prologue): Update.
1828         (spu_expand_epilogue): Update.
1829         * config/sparc/sparc.md: Update.
1830         * config/sparc/sparc.c (eligible_for_return_delay): Update.
1831         (sparc_tls_got): Update.
1832         (legitimize_pic_address): Update.
1833         (sparc_emit_call_insn): Update.
1834         (sparc_expand_prologue): Update.
1835         (output_return): Update.
1836         (print_operand): Update.
1837         (sparc_function_ok_for_sibcall): Update.
1838         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
1839         * config/m32r/m32r.md: Update.
1840         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
1841         (m32r_compute_frame_size): Update.
1842         (m32r_expand_prologue): Update.
1843         (m32r_expand_epilogue): Update.
1844         (m32r_legitimize_pic_address): Update.
1845         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
1846         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1847         * config/i386/i386.c (ix86_frame_pointer_required): Update.
1848         (gen_push): Update.
1849         (ix86_save_reg): Update.
1850         (ix86_compute_frame_layout): Update.
1851         (ix86_expand_prologue): Update.
1852         (ix86_expand_epilogue): Update.
1853         * config/sh/sh.c (output_stack_adjust): Update.
1854         (calc_live_regs): Update.
1855         (sh5_schedule_saves): Update.
1856         (sh_expand_prologue): Update.
1857         (sh_expand_epilogue): Update.
1858         (sh_setup_incoming_varargs): Update.
1859         (sh_allocate_initial_value): Update.
1860         (sh_get_pr_initial_val): Update.
1861         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
1862         * config/sh/sh.md (label:): Update.
1863         * config/avr/avr.c (out_movhi_mr_r): Update.
1864         * config/crx/crx.h (enum): Update.
1865         * config/xtensa/xtensa.h (along): Update.
1866         * config/stormy16/stormy16.c Update.
1867         (xstormy16_compute_stack_layout): Update.
1868         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
1869         (fr30_expand_prologue): Update.
1870         * config/cris/cris.c (cris_conditional_register_usage): Update.
1871         (cris_reg_saved_in_regsave_area): Update.
1872         (cris_initial_frame_pointer_offset): Update.
1873         (cris_simple_epilogue): Update.
1874         (cris_expand_prologue): Update.
1875         (cris_expand_epilogue): Update.
1876         (cris_expand_pic_call_address): Update.
1877         (cris_asm_output_symbol_ref): Update.
1878         (cris_asm_output_label_ref): Update.
1879         * config/cris/cris.md Update.
1880         * config/iq2000/iq2000.c (compute_frame_size): Update.
1881         (iq2000_expand_epilogue): Update.
1882         * config/mt/mt.h (save_direction): Update.
1883         * config/mn10300/mn10300.c (mn10300_function_value): Update.
1884         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1885         (ia64_secondary_reload_class): Update.
1886         * config/m68k/m68k.c (m68k_save_reg): Update.
1887         (m68k_expand_prologue): Update.
1888         (m68k_expand_epilogue): Update.
1889         (legitimize_pic_address): Update.
1890         * config/rs6000/rs6000.c (rs6000_got_register): Update.
1891         (first_reg_to_save): Update.
1892         (first_altivec_reg_to_save): Update.
1893         (compute_vrsave_mask): Update.
1894         (compute_save_world_info): Update.
1895         (rs6000_stack_info): Update.
1896         (spe_func_has_64bit_regs_p): Update.
1897         (rs6000_ra_ever_killed): Update.
1898         (rs6000_emit_eh_reg_restore): Update.
1899         (rs6000_emit_allocate_stack): Update.
1900         (rs6000_emit_prologue): Update.
1901         (rs6000_emit_epilogue): Update.
1902         (rs6000_output_function_epilogue): Update.
1903         (output_profile_hook): Update.
1904         (rs6000_elf_declare_function_name): Update.
1905         * config/rs6000/rs6000.h (rs6000_args): Update.
1906         * config/rs6000/rs6000.md: Update.
1907         * config/mcore/mcore.c (mcore_expand_prolog): Update.
1908         * config/arc/arc.c (arc_output_function_epilogue): Update.
1909         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
1910         * config/darwin.c (machopic_function_base_name): Update.
1911         * config/score/score3.c (score3_compute_frame_size): Update.
1912         (rpush): Update.
1913         (rpop): Update.
1914         (score3_epilogue): Update.
1915         * config/score/score7.c (score7_compute_frame_size): Update.
1916         (score7_prologue): Update.
1917         (score7_epilogue): Update.
1918         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
1919         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1920         * config/arm/arm.c (use_return_insn): Update.
1921         (require_pic_register): Update.
1922         (arm_load_pic_register): Update.
1923         (arm_compute_save_reg0_reg12_mask): Update.
1924         (arm_compute_save_reg_mask): Update.
1925         (thumb1_compute_save_reg_mask): Update.
1926         (output_return_instruction): Update.
1927         (arm_output_function_prologue): Update.
1928         (arm_output_epilogue): Update.
1929         (arm_get_frame_offsets): Update.
1930         (arm_expand_prologue): Update.
1931         (thumb_pushpop): Update.
1932         (thumb_exit): Update.
1933         (thumb1_expand_prologue): Update.
1934         (thumb1_expand_epilogue): Update.
1935         (arm_unwind_emit): Update.
1936         (arm_output_fn_unwind): Update.
1937         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1938         * config/arm/arm.md: Update.
1939         * config/pa/pa.md: Update.
1940         * config/pa/pa.c (legitimize_pic_address): Update.
1941         (compute_frame_size): Update.
1942         (hppa_expand_prologue): Update.
1943         (hppa_expand_epilogue): Update.
1944         (borx_reg_operand): Update.
1945         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1946         (HARD_REGNO_RENAME_OK): Update.
1947         * config/mips/mips.c (mips_global_pointer): Update.
1948         (mips_save_reg_p): Update.
1949         (mips_compute_frame_info): Update.
1950         (mips_frame_pointer_required): Update.
1951         (mips_expand_prologue): Update.
1952         (mips_expand_epilogue): Update.
1953         (mips_can_use_return_insn): Update.
1954         (mips_reorg_process_insns): Update.
1955         * config/v850/v850.c (compute_register_save_size): Update.
1956         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1957         * config/mmix/mmix.c (along): Update.
1958         (mmix_expand_epilogue): Update.
1959         * config/bfin/bfin.c (legitimize_pic_address): Update.
1960         (must_save_p): Update.
1961         (stack_frame_needed_p): Update.
1962         (add_to_reg): Update.
1963         (bfin_expand_prologue): Update.
1964         * stmt.c (expand_asm_operands): Update.
1965         * reload1.c (reload): Update.
1966         (init_elim_table): Update.
1967
1968 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
1969         
1970         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
1971         
1972 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1973
1974         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
1975         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
1976         (mov<mode>): Removed.
1977         (*movv4sf_internal): Likewise.
1978         (*movv2df_internal): Likewise.
1979
1980 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
1981
1982         * config.gcc (crx-*-elf): Remove deprecation.
1983
1984 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
1985
1986         * config/i386/cygming-crtend.c (register_frame_ctor): Register
1987         __gcc_deregister_frame with atexit.
1988         (deregister_frame_dtor): Remove.
1989
1990 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
1991             Nathan Sidwell  <nathan@codesourcery.com>
1992
1993         * config/rs6000/rs6000.opt (mspe): Remove Var property.
1994         (misel): Likewise.
1995         * config/rs6000/rs6000.h (rs6000_spe): Declare.
1996         (rs6000_isel): Likewise.
1997         * config/rs6000/rs6000.c (rs6000_spe): New variable.
1998         (rs6000_isel): New variable.
1999         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2000
2001 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2002
2003         PR c++/35758
2004         * c-common.c (handle_vector_size_attribute): Call
2005         lang_hooks.types.reconstruct_complex_type instead of
2006         reconstruct_complex_type.
2007         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2008         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2009         * langhooks.h (struct lang_hooks_for_types): Add
2010         reconstruct_complex_type hook.
2011         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2012         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2013
2014 2008-04-24  Richard Guenther  <rguenther@suse.de>
2015
2016         * c-common.h (check_builtin_function_arguments): Declare.
2017         * c-common.c (validate_nargs): New function.
2018         (check_builtin_function_arguments): Likewise.
2019         * c-typeck.c (build_function_call): Call
2020         check_builtin_function_arguments.
2021         * builtins.c (fold_builtin_classify): Remove error reporting code.
2022         (fold_builtin_unordered_cmp): Likewise.
2023         (fold_builtin_1): Likewise.
2024         (fold_builtin_n): Likewise.
2025
2026 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2027
2028         PR tree-optimization/36008
2029         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2030         the original op1, rather than delta by step.
2031
2032 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
2033             Sebastian Pop  <sebastian.pop@amd.com>
2034
2035         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2036         eliminate_local_variables_stmt, eliminate_local_variables,
2037         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2038         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2039         of code delimited by two edges in the CFG.
2040         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2041         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2042         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
2043         the case of parallelisation of reductions.
2044         (expr_invariant_in_region_p): New.
2045
2046         * tree-flow.h (gather_blocks_in_sese_region): Declared.
2047         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2048
2049 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2050             Richard Guenther  <rguenther@suse.de>
2051
2052         PR tree-optimization/36034
2053         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2054         incapable of dealing with loads with gaps.
2055
2056 2008-04-24  Rafael Espindola  <espindola@google.com>
2057
2058         * tree-flow.h (vrp_evaluate_conditional): Change signature.
2059         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2060         vrp_evaluate_conditional.
2061         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2062         (vrp_evaluate_conditional): Split the cond argument.
2063         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2064         (simplify_stmt_for_jump_threading): Update call to
2065         vrp_evaluate_conditional.
2066
2067 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2068
2069         PR tree-optimization/35982
2070         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2071         interleaved data-refs are of the same type.
2072
2073 2008-04-24  Danny Smith  <dannysmith@users.net>
2074
2075         * c-format.c (check_format_info_main): Use strncmp rather than a
2076         magic prefix to handle multichar length specs.
2077         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2078         Don't prefix "I64" and "I32" with '\0'.
2079
2080 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2081
2082         PR target/36015
2083         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2084         in registers for -m32 only if stdarg_p (fntype).
2085
2086 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2087
2088         PR rtl-optimization/36006
2089         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2090         temp to op0 in order to avoid invalid rtx sharing.
2091
2092 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2093
2094         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2095         check TREE_INVARIANT.
2096         * tree-gimple.c (is_gimple_address): New.
2097         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2098         * tree-gimple.h (is_gimple_address): New.
2099         * tree.h (decl_address_invariant_p): New.
2100         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2101         (build_string): Likewise.
2102         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2103         (tree_invariant_p_1): Likewise.
2104         (save_expr): Use it.
2105         (tree_invariant_p): New.
2106         (skip_simple_arithmetic): Use it.
2107         (stabilize_reference_1): Use it.
2108         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2109         simplify.
2110         (build1_stat): Drop code to compute TREE_INVARIANT.
2111         (build2_stat): Drop code to compute TREE_INVARIANT.
2112         (build3_stat): Drop code to compute TREE_INVARIANT.
2113         (build4_stat): Drop code to compute TREE_INVARIANT.
2114         (build5_stat): Drop code to compute TREE_INVARIANT.
2115         (build7_stat): Drop code to compute TREE_INVARIANT.
2116         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2117         * tree.h (struct tree_base): Remove invariant_flag.
2118         (TREE_INVARIANT): Remove.
2119         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2120         (fold_builtin_expect): Check TREE_CONSTANT.
2121         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2122         * c-tree.h (c_expr_to_decl): Drop third parameter.
2123         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2124         (build_c_cast): Don't set TREE_INVARIANT.
2125         (pop_init_level): Don't set TREE_INVARIANT.
2126         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2127         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2128         TREE_CONSTANT.
2129         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2130         (gimplify_addr_expr): Adjust comment.
2131         * tree-mudflap.c (mf_build_string):
2132         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2133         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2134         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2135         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2136         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2137         * langhooks.h (struct lang_hooks): Drop third parameter from
2138         expr_to_decl.
2139
2140 2008-04-23  Richard Guenther  <rguenther@suse.de>
2141
2142         PR tree-optimization/27799
2143         PR tree-optimization/32921
2144         PR tree-optimization/32624
2145         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2146         SMTs aliases and the tag itself into the solution.
2147         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2148         merge the points-to solution back into the SMT aliases.
2149         (may_alias_p): Use alias_set_subset_of instead of
2150         aliases_conflict_p.  A pointer which points to
2151         memory with alias set zero may access any variable.
2152
2153 2008-04-23  Richard Guenther  <rguenther@suse.de>
2154
2155         * alias.c (alias_set_subset_of): Correctly handle asking
2156         if zero is a subset of an alias set with zero child.
2157         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2158         (compute_flow_insensitive_aliasing): Correctly walk all
2159         pointers.  Do not unnecessarily union sets.
2160
2161 2008-04-23  Richard Guenther  <rguenther@suse.de>
2162
2163         PR middle-end/36021
2164         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2165
2166 2008-04-22  Tomas Bily  <tbily@suse.cz>
2167
2168         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2169         unreachable case.
2170         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2171         NON_LVALUE_EXPR.
2172         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2173         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2174         * tree-inline.c (estimate_num_insns_1): Likewise.
2175         * varasm.c (const_hash_1, compare_constant, copy_constant)
2176         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2177         * emit-rtl.c (component_ref_for_mem_expr)
2178         (set_mem_attributes_minus_bitpos): Likewise.
2179         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2180         (is_aligning_offset): Likewise.
2181         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2182         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2183         * dojump.c (do_jump): Likewise.
2184         * builtins.c (get_pointer_alignment, get_memory_rtx)
2185         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2186         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2187
2188 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2189
2190         PR rtl-optimization/36017
2191         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2192         expanding the library call.
2193
2194 2008-04-22  Ian Lance Taylor  <iant@google.com>
2195
2196         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2197         than size_in_bytes.
2198
2199 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2200
2201         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2202         of LR/CTR moves for Power6.
2203
2204 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2205
2206         PR middle-end/36003
2207         * passes.c (init_optimization_passes): Remove
2208         pass_fast_rtl_byte_dce.
2209         
2210 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2211
2212         PR target/29096
2213         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2214         builtin functions to generate faster code.
2215         (_mm_cvtpu16_ps): Ditto.
2216         (_mm_cvtpi32x2_ps): Ditto.
2217
2218 2008-04-22  Nick Clifton  <nickc@redhat.com>
2219
2220         * common.opt (ftree-loop-distribution): Add Optimization
2221         attribute.
2222
2223         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2224         (frv_expand_builtin_va_start): Likewise.
2225
2226         * config/arm/arm.c (thumb_find_work_register): Fix location of
2227         argument register count.
2228
2229 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2230
2231         Support scheduling for ColdFire V1 and V3 microarchitecture.
2232         Improve scheduling of multiplication instructions.
2233
2234         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2235         (mac): New instruction attribute.
2236         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2237         (m68k_sched_mac): New variable.
2238         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2239         Handle cfv1 and cfv3.
2240         (max_insn_size): New static variable.
2241         (struct _sched_ib): New type.
2242         (sched_ib): New static variable.
2243         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2244         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2245         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2246         Update.
2247         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2248         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2249         new variables.  Update.
2250         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2251         Add modeling of cfv3 instruction buffer.  Update.
2252         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2253         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2254         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2255         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2256         a particular reservation applies to.
2257         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2258         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2259         to mul_l and mul_w.
2260         (cf_ib_*): Simplify description of instruction buffer.
2261         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2262         (cf_mem): Split into cf_mem1 and cf_mem2.
2263         (cf_v2_move_??): Rename to cfv12_alu_??.
2264         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2265         (cf_v2_mul_??): Remove reservations.
2266         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2267         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2268         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2269         appropriate place.
2270         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2271         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2272         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2273         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2274         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2275         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2276         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2277         expansions of the above reservations for instructions of sizes
2278         1, 2 and 3 words.
2279
2280 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2281
2282         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2283
2284 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2285
2286         * coverage.c: Include tree-pass.h.
2287         (coverage_counter_alloc): Print da_file_name to the dump file.
2288
2289 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2290
2291         * sbitmap.c (sbitmap_range_empty_p): New function.
2292         * sbitmap.h (sbitmap_range_empty_p): New function.
2293         * bitmap.h: Now includes obstack.h.
2294
2295 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2296             Kenneth Zadeck  <zadeck@naturalbridge.com>
2297
2298         * dbgcnt.def (ra_byte_scan): Added.
2299         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2300         when the last hit happens for a counter.  
2301         * timevar.def (TV_DF_BYTE_LR): New variable.
2302         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2303         * passes.c (pass_fast_rtl_byte_dce): New pass.
2304         * fwprop.c (update_df): Added mode to call df_ref_create.
2305         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2306         DF_REF_EXTRACT_OFFSET.
2307         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
2308         DF_BYTE_LR_OUT, df_byte_lr): New macro.
2309         (df_mm): New enum.
2310         (df_ref_extract): Added mode field.
2311         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2312         DF_REF_EXTRACT_OFFSET.
2313         (DF_REF_EXTRACT_MODE): New macro.
2314         (df_byte_lr_bb_info): New structure.
2315         (df_print_byte_regset, df_compute_accessed_bytes, 
2316         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2317         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2318         df_byte_lr_simulate_uses,
2319         df_byte_lr_simulate_artificial_refs_at_top,
2320         df_byte_lr_simulate_artificial_refs_at_end,
2321         df_compute_accessed_bytes): New function.
2322         (df_ref_create): Add parameter.
2323         (df_byte_lr_get_bb_info): New inline function.
2324         * df-scan.c (df_ref_record, df_uses_record,
2325         df_ref_create_structure): Added mode parameter.
2326         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
2327         df_defs_record, df_uses_record, df_get_conditional_uses,
2328         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
2329         df_entry_block_defs_collect, df_exit_block_uses_collect):
2330         Added mode parameter to calls to df_ref_record, df_uses_record,
2331         df_ref_create_structure.
2332         (df_ref_equal_p, df_ref_compare): Added test for modes.
2333         (df_ref_create_structure): Added code to set mode.  Renamed
2334         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2335         DF_REF_EXTRACT_OFFSET.
2336         * df-core.c (df_print_byte_regset): New function.
2337         * df-byte-scan.c: New file.
2338         * df-problems.c (df_rd_transfer_function): Removed unnecessary
2339         calls to BITMAP_FREE.  
2340         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2341         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2342         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
2343         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
2344         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2345         df_byte_lr_local_compute, df_byte_lr_init,
2346         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
2347         df_byte_lr_transfer_function, df_byte_lr_free, 
2348         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2349         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
2350         df_byte_lr_simulate_uses,
2351         df_byte_lr_simulate_artificial_refs_at_top,
2352         df_byte_lr_simulate_artificial_refs_at_end): New function.
2353         * dce.c (byte_dce_process_block): New function.
2354         (dce_process_block): au is now passed in rather than computed
2355         locally.  Changed loops that look at artificial defs to not look
2356         for conditional or partial ones, because there never are any.  
2357         (fast_dce): Now is able to drive byte_dce_process_block or 
2358         dce_process_block depending on the kind of dce being done.
2359         (rest_of_handle_fast_dce): Add parameter to fast_dce.
2360         (rest_of_handle_fast_byte_dce): New function.
2361         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2362         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2363
2364 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2365
2366         PR fortran/35019
2367         * gcc.h: Added fortran options that take arguments to
2368         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2369         macros.
2370
2371 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2372
2373         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2374         scalarization if on the LHS and not a full access.
2375
2376 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2377
2378         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2379
2380 2008-04-18  Rafael Espindola  <espindola@google.com>
2381
2382         * tree-vrp.c (find_case_label_index): Fix the binary search.
2383         (find_case_label_range): New.
2384         (vrp_visit_switch_stmt): Use find_case_label_range.
2385         (simplify_switch_using_ranges): Use find_case_label_range.
2386
2387 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2388
2389         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2390         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2391
2392 2008-04-18  Tom Tromey  <tromey@redhat.com>
2393
2394         PR libcpp/15500:
2395         * doc/cpp.texi (Implementation-defined behavior): Mention
2396         -finput-charset.
2397
2398 2008-04-18  Ian Lance Taylor  <iant@google.com>
2399
2400         * fold-const.c (pointer_may_wrap_p): New static function.
2401         (fold_comparison): Add another test for pointer overflow.  Use
2402         pointer_may_wrap_p to disable some false positives.
2403
2404 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2405           
2406         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2407         (fname_as_string): Match updated cpp_interpret_string prototype.
2408         (fix_string_type): Support char16_t* and char32_t*.
2409         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2410         derivative) nodes.  Register as builtin if C++0x.
2411         (c_parse_error): Support CPP_CHAR{16,32}.
2412         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
2413         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2414         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2415         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2416         CTI_CHAR32_ARRAY_TYPE>: New elements.
2417         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2418         char32_type_node, signed_char32_type_node, char16_array_type_node,
2419         char32_array_type_node): New defines.
2420         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2421         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2422         (lex_string): Support CPP_STRING{16,32}, match updated
2423         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2424         (lex_charconst): Support CPP_CHAR{16,32}.
2425         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2426         and CPP_STRING{16,32}.
2427
2428 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2429
2430         PR bootstrap/35457
2431         * aclocal.m4: Regenerate.
2432         * configure: Regenerate.
2433
2434 2008-04-18  Jan Hubicka  <jh@suse.cz>
2435
2436         * except.c (dw2_size_of_call_site_table,
2437         sjlj_size_of_call_site_table): Use vector API for call_site_record.
2438
2439         * cgraphbuild.c (build_cgraph_edges): Update.
2440         * tree-pass.h: Update comment.
2441         * final.c (leaf_function_p): Update.
2442         (leaf_renumber_regs): Update.
2443         (rest_of_clean_state): Update.
2444         * omp-low.c (expand_omp_parallel): Update.
2445         * ipa-reference.c (analyze_function): Update.
2446         * reorg.c (find_end_label): Update.
2447         (optimize_skip): Update.
2448         (fill_simple_delay_slots): Update.
2449         (fill_simple_delay_slots): Update.
2450         (make_return_insns): Update.
2451         (dbr_schedule): Update.
2452         * gimple-low.c (record_vars_into): Update.
2453         * cfgbuild.c (make_edges): Update.
2454         * function.c (assign_stack_local): Update.
2455         (assign_parm_adjust_stack_rtl): Update.
2456         (locate_and_pad_parm): Update.
2457         (allocate_struct_function): Do not initialize stack_alignment_needed
2458         and preferred_stack_boundary here.
2459         (stack_protect_prologue): Update.
2460         (stack_protect_epilogue): Update.
2461         (expand_function_start): Initialize stack_alignment_needed,
2462         preferred_stack_boundary and max_jumptable_ents.
2463         (expand_function_end): Update.
2464         (free_after_compilation): Do not NULLify epilogue_delay_list.
2465         * function.h (struct rtl_data): Add stack_protect_guard,
2466         stack_alignment_needed,
2467         preferred_stack_boundary, epilogue_delay_list.
2468         (struct function): Remove value_histograms, stack_alignment_needed,
2469         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2470         last_label_uid,
2471         unexpanded_var_list, stack_protect_guard.
2472         (current_function_epilogue_delay_list): Remove.
2473         * ipa-type-escape.c (analyze_function): Update.
2474         * gimplify.c (pop_gimplify_context): Update comment.
2475         * calls.c (expand_call): Update.
2476         (emit_library_call_value_1): Update.
2477         * except.c (set_nothrow_function_flags): Update.
2478         * cfgexpand.c (get_decl_align_unit): Update.
2479         (create_stack_guard): Update.
2480         (estimated_stack_frame_size): Update.
2481         (expand_used_vars): Update.
2482         (tree_expand_cfg): Free histogram earliers, init expansion variables.
2483         * explow.c (allocate_dynamic_stack_space): Update.
2484         * tree-ssa-live.c (remove_unused_locals): Update.
2485         * varasm.c (mark_constant_pool): Update.
2486         * tree-inline.c (remap_decls): Update.
2487         (initialize_cfun): Update.
2488         (declare_return_variable): Update.
2489         (inline_forbidden_p): Update.
2490         (expand_call_inline): Update.
2491         (declare_inline_vars): Update.
2492         (tree_function_versioning): Update.
2493         * tree-flow.h (value_histograms): New.
2494         (VALUE_HISTOGRAMS): New macro.
2495         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2496         last_label_uid.
2497         * tree-cfg.c (set_bb_for_stmt): Update.
2498         (replace_by_duplicate_decl): Update.
2499         (move_block_to_fn): Update.
2500         (new_label_mapper): Update.
2501         (dump_function_to_file): Update.
2502         * ipa-struct-reorg.c (build_data_structure): Update.
2503         * cfgrtl.c (print_rtl_with_bb): Update.
2504         * reload1.c (reload): Update.
2505         (reload): Update.
2506         * config/i386/i386.c (setup_incoming_varargs_64,
2507         ix86_compute_frame_layout): Update.
2508         * config/arc/arc.c (arc_output_function_epilogue): Update.
2509
2510 2008-04-18  Marius Strobl <marius@FreeBSD.org>
2511
2512         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2513         for FreeBSD as well.
2514         * gthr-posix95.h: Likewise.
2515
2516 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
2517
2518         PR rtl-optimization/35838
2519         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2520         out the byte offset of the first subreg.
2521
2522 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
2523
2524         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2525         to split_ti instead of three separate calls with single member arrays.
2526         (subti3 splitter): Ditto.
2527         (adddi3 splitter): Ditto with split_di.
2528         (subdi3 splitter): Ditto.
2529         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2530         two separate calls with single member arrays.  Swap match_dup
2531         operands 1 and 2 to better fit into the array.
2532         (negdi2 splitter): Ditto with split_di.
2533         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
2534         two separate calls with single member arrays.  Swap match_dup operands
2535         6 and 7 to better fit into the array.
2536
2537 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2538
2539         * config/i386/i386.c (sse_builtin_type): New.
2540         (bdesc_sse_args): Likewise.
2541         (bdesc_sse_3arg): Removed.
2542         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2543         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2544         IX86_BUILTIN_ROUNDPS.
2545         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
2546         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
2547         IX86_BUILTIN_ROUNDPS.
2548         (ix86_expand_sse_4_operands_builtin): Removed.
2549         (ix86_expand_sse_operands_builtin): New.
2550         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2551         and CODE_FOR_sse4_1_roundps.
2552         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2553         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
2554
2555 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
2556
2557         PR target/35907
2558         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2559         regs before frame pop when needed.  If use_backchain_to_restore_sp
2560         then load backchain into a temp reg to restore vr and vrsave.  Add
2561         code to restore vr after frame pop if possible.
2562
2563 2008-04-17  Richard Guenther  <rguenther@suse.de>
2564
2565         * tree-vn.c (expressions_equal_p): Do not check type
2566         equality or compatibility before calling operand_equal_p.
2567         * fold-const.c (operand_equal_p): Check equivalence of
2568         integer constants before bailing out due to signedness or
2569         precision differences.
2570         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2571         spurious differences in type qualification.  Ignore types
2572         for COMPONENT_REFs at all.
2573
2574 2008-04-17  Christian Bruel  <christian.bruel@st.com>
2575
2576         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2577         msw_skip comparison.
2578         
2579 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
2580
2581         PR c/35739
2582         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2583         reg type.
2584
2585         PR tree-optimization/35899
2586         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2587         rather than TREE_OPERAND.
2588
2589 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
2590
2591         PR target/35944
2592         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2593         temporary registers.  Change operand predicate to general_operand.
2594         (remainderxf3): Ditto.
2595
2596 2008-04-16  Richard Guenther  <rguenther@suse.de>
2597
2598         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2599         * tree-affine.c (aff_combination_expand): Look through some
2600         conversions.
2601
2602 2008-04-15  Doug Kwan  <dougkwan@google.com>
2603
2604         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2605         for hex printing.
2606         * tree-pretty-print.c (dump_generic_node): Ditto.
2607         * final.c (output_addr_const): Ditto.
2608         * dwarf2out.c (output_cfi): Ditto.
2609         * c-pretty-print.c (pp_c_integer_constant): Ditto.
2610         * print-rtl.c (print_rtx): Ditto.
2611         * print-tree.c (print_node_brief, print_node): Ditto.
2612         * c-common.c (match_case_to_enum_1): Ditto.
2613         * sched-vis.c (print_value): Ditto.
2614         * config/i386/i386.c (print_operand): Cast to long unsigned int
2615         for hex printing.
2616
2617 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
2618         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
2619         MS Windows VirtualProtect function.
2620
2621 2008-04-15  Jan Hubicka  <jh@suse.cz>
2622
2623         * gengtype.c (write_root): Param_is argument is OK.
2624         * expr.c (expand_expr_real_1): Update call of get_exception_*.
2625         * function.h: Include varray.h
2626         (rtl_eh): New stucture based on except.c one.
2627         (call_site_record): New forward declaration and vector type.
2628         * calls.c (emit_call_1): Do not call
2629         note_current_region_may_contain_throw.
2630         * except.c (eh_status): Remove cur_region, try_region since they are
2631         unused.
2632         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
2633         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
2634         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
2635         Remove call_site_data_used, call_site_data_size.
2636         Turn call_site_record into vector in function.h.
2637         (note_current_region_may_contain_throw): Remove.
2638         (get_exception_pointer, get_exception_filter): Do not take struct
2639         function argument; update.
2640         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
2641         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
2642         build_post_landing_pads, dw2_build_landing_pads,
2643         sjlj_assign_call_site_values, sjlj_mark_call_sites,
2644         sjlj_emit_function_enter, sjlj_emit_function_enter, 
2645         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2646         sjlj_build_landing_pads, finish_eh_generation,
2647         remove_exception_handler_label, remove_eh_handler,
2648         maybe_remove_eh_handler, add_reachable_handler,
2649         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
2650         add_action_record, collect_one_action_chain, add_call_site,
2651         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
2652         sjlj_output_call_site_table, output_function_exception_table,
2653         * except.h (note_current_region_may_contain_throw): Remove
2654         (get_exception_pointer, get_exception_filter): Do not take struct
2655         function argument.
2656         * Makefile.in (GTFILES): Put varargs before struct function.
2657
2658 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2659
2660         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
2661         punt for STRING_CST.
2662         (get_constraint_for): Deal with STRING_CST here instead.
2663
2664 2008-04-15  Richard Guenther  <rguenther@suse.de>
2665
2666         * tree-ssa-propagate.c (substitute_and_fold): Substitute
2667         statements in a basic-block with a backward walk.  Do not
2668         substitute into dead statements but instead remove those.
2669
2670 2008-04-15  Richard Guenther  <rguenther@suse.de>
2671
2672         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
2673         to zero, thus disable creation of SFTs.
2674
2675 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2676
2677         * tree-predcom.c (suitable_reference_p): Return false if the
2678         reference can throw.
2679
2680 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
2681
2682         PR c/35751
2683         * c-decl.c (finish_decl): If extern or static var has variable
2684         size, set TREE_TYPE (decl) to error_mark_node.
2685
2686 2008-04-15  Rafael Espindola  <espindola@google.com>
2687
2688         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
2689         variable arg1.
2690
2691 2008-04-15  Richard Guenther  <rguenther@suse.de>
2692
2693         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2694         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
2695         (visit_reference_op_load): Do walk vuse-vdef chains on
2696         vn_reference_lookup.
2697         (visit_reference_op_store): But do not here.
2698         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
2699         vn_reference_lookup.
2700         (vn_lookup_with_vuses): But do so here.
2701
2702 2008-04-14  Ian Lance Taylor  <iant@google.com>
2703
2704         * fold-const.c (fold_overflow_warning): Remove assertion.
2705
2706 2008-04-15  Ben Elliston  <bje@au.ibm.com>
2707
2708         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
2709         temp1 local variables.
2710
2711 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
2712
2713         PR target/35661
2714         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
2715         ".text.unlikely" section as executable.
2716
2717 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
2718
2719         * config/ia64/ia64.c (rtx_needs_barrier): Handle
2720         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
2721         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
2722         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
2723         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
2724         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
2725         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
2726
2727 2008-04-14  Ian Lance Taylor  <iant@google.com>
2728
2729         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
2730         * fold-const.c (fold_comparison): If appropriate, test
2731         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
2732         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
2733         reassociating a pointer type.
2734         * doc/invoke.texi (Optimize Options): Document that
2735         -fstrict-overflow applies to pointer wraparound.
2736
2737 2008-04-13  Jan Hubicka  <jh@suse.cz>
2738
2739         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
2740
2741 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
2742
2743         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
2744         we are going to "save the world".
2745
2746 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
2747
2748         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
2749         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
2750         operand 0 constraint, not "=".
2751
2752 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
2753
2754         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
2755
2756 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2757
2758         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
2759         of size of positions_needed * CHAR_BIT.
2760
2761 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
2762
2763         PR middle-end/35897
2764         * dse.c (store_info): Change positions_needed to unsigned
2765         HOST_WIDE_INT.
2766         (lowpart_bitmask): New.
2767         (record_store): Cast to unsigned HOST_WIDE_INT for
2768         positions_needed.  Assert width <= size of positions_needed *
2769         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
2770         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
2771         lowpart_bitmask to set mask.
2772
2773 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2774
2775         * config/bfin/constraints.md: New file.
2776         * config/bfin/bfin.md: Include it.
2777         (adddi3): Use satisfies_constraint functions instead of the old macros.
2778         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
2779         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
2780         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
2781         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
2782         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
2783         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
2784         EXTRA_CONSTRAINT): Delete.
2785         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
2786         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
2787         of the old macros.
2788         * config/bfin/bfin.c: Include "tm-constrs.h".
2789         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
2790         Use satisfies_constraint functions instead of the old macros.
2791         * doc/md.texi (Blackfin Constraints): Update file name reference.
2792
2793 2008-04-11  Richard Guenther  <rguenther@suse.de>
2794
2795         PR tree-optimization/35869
2796         * tree-vrp.c (execute_vrp): Move switch statement update after
2797         jump threading.  Schedule another cfg cleanup run.
2798
2799 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
2800
2801         PR c/35744
2802         * attribs.c (decl_attributes): Return early on errorneous node.
2803
2804 2008-04-10  Oleg Ryjkov  <olegr@google.com>
2805
2806         * tree.h (struct tree_base): Added a new flag default_def_flag.
2807         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
2808
2809 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2810
2811         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
2812
2813 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2814
2815         PR target/35768
2816         * pa.md: Define mode iterator P.  Define mode attribute dwc.
2817         (dcacheflush): Update pattern to use iterator P and attribute dwc.
2818         (icacheflush): Likewise.
2819         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
2820         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
2821
2822 2008-04-11  Ben Elliston  <bje@au.ibm.com>
2823
2824         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2825
2826 2008-04-10  Rafael Espindola  <espindola@google.com>
2827
2828         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
2829         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
2830         (extract_range_from_expr): The same.
2831
2832 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2833
2834         * config/mips/mips.md (GPR2): New mode iterator.
2835         (seq): Add comment.
2836         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
2837         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
2838         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
2839         Rewrite these to take two modes, the mode of comparison and the
2840         mode of the destination.
2841         * config/mips/mips.c (mips_expand_scc): Instead of having
2842         paradoxical subreg as destination, expand "narrowing" scc if mode
2843         of comparison is SI and target is requested in DI mode.
2844         (mips_emit_int_order_test): Update comment.  Make mode of
2845         comparison match CMP0 rather than TARGET.  When creating inverse
2846         target use mode of TARGET.
2847
2848 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2849
2850         * gcov-dump.c (tag_summary): Only print summaries for the first
2851         GCOV_COUNTERS_SUMMABLE counters.
2852
2853 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
2854
2855         * config/i386/i386.md (absneg): New code iterator.
2856         (absnegprefix): New code attribute.
2857         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
2858         patterns using absneg code iterator.
2859         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
2860         using absneg code iterator.
2861         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
2862         *neg<mode>2 patterns using absneg code iterator.
2863         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2864         *negextendsfdf2 patterns using absneg code iterator.
2865         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
2866         *negextendsfxf2 patterns using absneg code iterator.
2867         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2868         *negextendsfdf2 patterns using absneg code iterator.
2869         * config/i386/sse.md (<code><mode>2): Macroize expander from
2870         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
2871
2872 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2873
2874         * config/s390/s390.h: Remove the remains of the recent search
2875         & replace action of current_function_outgoing_args_size.
2876
2877 2008-04-10  Ira Rosen  <irar@il.ibm.com>
2878
2879         PR tree-optimization/35821
2880         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
2881         NEW_STMT_LIST is not NULL.
2882
2883 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
2884
2885         PR libstdc++/35597
2886         * toplev.c (process_options): Remove -ffunction-sections debugging
2887         warning.
2888
2889 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
2890
2891         PR middle-end/PR28690
2892         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
2893         than gen_rtx_fmt_ee to perform more canonicalizations.
2894
2895 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2896
2897         PR driver/35665
2898         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
2899
2900 2008-04-09  Richard Guenther  <rguenther@suse.de>
2901
2902         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
2903         (dump_function_to_file): Dump function arguments with types.
2904
2905 2008-04-08  Richard Guenther  <rguenther@suse.de>
2906
2907         * fold-const.c (fold_widened_comparison): Do not allow
2908         sign-changes that change the result.
2909
2910 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
2911
2912         PR target/35839
2913         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
2914         kinds of indirect references.
2915
2916 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
2917
2918         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
2919         GNU Fortran language string.
2920
2921 2008-04-08  Rafael Espindola  <espindola@google.com>
2922
2923         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
2924         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
2925         * tree.h (tree_call_nonnegative_warnv_p): New.
2926
2927 2008-04-08  Jan Hubicka  <jh@suse.cz>
2928
2929         * function.c (free_after_compilation): Clear out regno_reg_rtx
2930         pointer.
2931
2932 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
2933
2934         Revert
2935         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
2936
2937         PR middle-end/PR28690
2938         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2939         same precedence as REG_POINTER and MEM_POINTER operands.
2940
2941 2008-04-08  Richard Guenther  <rguenther@suse.de>
2942
2943         PR middle-end/35834
2944         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2945         for adding index to base.
2946
2947 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
2948
2949         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2950         (MINGW_ENABLE_EXECUTE_STACK): New.
2951         (IN_LIBGCC2): For libgcc include windows.h file for
2952         function declarations.
2953
2954 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
2955
2956         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2957         and tem2 if tem1 is not a REG or MULT.
2958
2959 2008-04-08  Jan Hubicka  <jh@suse.cz>
2960
2961         * function.h (incomming_args): Break out of struct function.
2962         (function_subsections): Break out of struct function.
2963         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2964         return_rtx and hard_reg_initial_vals from struct function.
2965         Kill inl_max_label_num.
2966         (current_function_pops_args, current_function_args_info,
2967         current_function_args_size, current_function_args_size,
2968         current_function_pretend_args_size,
2969         current_function_outgoing_args_size,
2970         current_function_internal_arg_pointer, current_function_return_rtx):
2971         Kill compatibility accestor macros.
2972         * builtins.c (expand_builtin_apply_args_1): Update.
2973         (expand_builtin_next_arg): Update.
2974         * df-scan.c (df_get_call_refs): Update.
2975         * dbxout.c (dbxout_function_end): Update.
2976         * dwarf2out.c (dwarf2out_switch_text_section): Update.
2977         (output_line_info): Update.
2978         (secname_for_decl): Update.
2979         (dwarf2out_var_location): Update.
2980         * function.c (free_after_compilation): Update.
2981         (assign_parm_find_stack_rtl): Update.
2982         (assign_parms): Update.
2983         (expand_dummy_function_end): Update.
2984         (expand_function_end): Update.
2985         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
2986         (expand_call): Update.
2987         (emit_library_call_value_1): Update.
2988         (store_one_arg): Update.
2989         * varasm.c (initialize_cold_section_name): Update.
2990         (unlikely_text_section): Update.
2991         (unlikely_text_section_p): Update.
2992         (assemble_start_function): Update.
2993         (assemble_end_function): Update.
2994         (default_section_type_flags): Update.
2995         (switch_to_section): Update.
2996         * integrate.c (set_decl_abstract_flags): Update.
2997         (get_hard_reg_initial_val): Update.
2998         (has_hard_reg_initial_val): Update.
2999         (allocate_initial_values): Update.
3000         * resource.c (init_resource_info): Update.
3001         * config/alpha/alpha.c (NUM_ARGS): Update.
3002         (direct_return): Update.
3003         (alpha_va_start): Update.
3004         (alpha_sa_size): Update.
3005         (alpha_initial_elimination_offset): Update.
3006         (alpha_expand_prologue): Update.
3007         (alpha_start_function): Update.
3008         (alpha_expand_epilogue): Update.
3009         (unicosmk_initial_elimination_offset):
3010         * config/alpha/alpha.md (call expander): Update.
3011         * config/s390/s390.c (s390_register_info): Update.
3012         (s390_register_info): Update.
3013         (s390_frame_info): Update.
3014         (s390_initial_elimination_offset): Update.
3015         (s390_build_builtin_va_list): Update.
3016         (s390_va_start): Update.
3017         * config/spu/spu.c (direct_return): Update.
3018         (spu_expand_prologue): Update.
3019         (spu_initial_elimination_offset): Update.
3020         (spu_build_builtin_va_list): Update.
3021         (spu_va_start): Update.
3022         * config/sparc/sparc.c (sparc_init_modes): Update.
3023         (sparc_compute_frame_size): Update.
3024         (function_value): Update.
3025         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3026         * config/i386/i386.md (return expander): Update.
3027         * config/i386/i386.c (ix86_va_start): Update.
3028         (ix86_can_use_return_insn_p): Update.
3029         (ix86_compute_frame_layout): Update.
3030         (ix86_expand_epilogue): Update.
3031         * config/sh/sh.c (output_stack_adjust): Update.
3032         (calc_live_regs): Update.
3033         (sh_expand_prologue): Update.
3034         (sh_builtin_saveregs): Update.
3035         (sh_va_start): Update.
3036         (initial_elimination_offset): Update.
3037         (sh_allocate_initial_value): Update.
3038         (sh_function_ok_for_sibcall): Update.
3039         (sh_get_pr_initial_val): Update.
3040         * config/sh/sh.md (return expander): Update.
3041         * config/avr/avr.c (frame_pointer_required_p): UPdate.
3042         * config/crx/crx.c (crx_compute_frame): UPdate.
3043         (crx_initial_elimination_offset): UPdate.
3044         * config/xtensa/xtensa.c (compute_frame_size): Update
3045         (xtensa_builtin_saveregs): Update.
3046         (xtensa_va_start): Update.
3047         (order_regs_for_local_alloc): Update.
3048         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3049         (xstormy16_expand_builtin_va_start): Update.
3050         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3051         * config/m68hc11/m68hc11.md (return expanders): Update.
3052         * config/m68hc11/m68hc11.c (expand_prologue): Update.
3053         (expand_epilogue): Update.
3054         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3055         (cris_simple_epilogue): Update.
3056         (cris_expand_prologue): Update.
3057         (cris_expand_epilogue): Update.
3058         * config/iq2000/iq2000.c (iq2000_va_start): Update.
3059         (compute_frame_size): Update.
3060         * config/mt/mt.c (mt_compute_frame_size): Update.
3061         * config/mn10300/mn10300.c (expand_prologue): Update.
3062         (expand_epilogue): Update.
3063         (initial_offset): Update.
3064         (mn10300_builtin_saveregs):
3065         * config/mn10300/mn10300.md (return expander): Update.
3066         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3067         (ia64_initial_elimination_offset): Update.
3068         (ia64_initial_elimination_offset): Update.
3069         (ia64_expand_prologue): Update.
3070         * config/m68k/m68k.md (return expander): Update.
3071         * config/rs6000/rs6000.c (rs6000_va_start): Update.
3072         (rs6000_stack_info): Update.
3073         * config/mcore/mcore.c (layout_mcore_frame): Update.
3074         (mcore_expand_prolog): Update.
3075         * config/arc/arc.c (arc_compute_frame_size): Update.
3076         * config/score/score3.c (score3_compute_frame_size): Update.
3077         * config/score/score7.c (score7_compute_frame_size): Update.
3078         * config/arm/arm.c (use_return_insn): Update.
3079         (thumb_find_work_register): Update.
3080         (arm_compute_save_reg_mask): Update.
3081         (arm_output_function_prologue): Update.
3082         (arm_output_epilogue): Update.
3083         (arm_size_return_regs): Update.
3084         (arm_get_frame_offsets): Update.
3085         (arm_expand_prologue): Update.
3086         (thumb_exit): Update.
3087         (thumb_unexpanded_epilogue): Update.
3088         (thumb1_output_function_prologue): Update.
3089         * config/pa/pa.md (return expander): Update.
3090         * config/pa/pa.c (compute_frame_size): Update.
3091         (hppa_builtin_saveregs): Update.
3092         * config/mips/mips.c (mips_va_start): Update.
3093         (mips16_build_function_stub): Update.
3094         (mips_compute_frame_info): Update.
3095         (mips_restore_gp): Update.
3096         (mips_output_function_prologue): Update.
3097         (mips_expand_prologue): Update.
3098         * config/v850/v850.c (compute_frame_size): Update.
3099         (expand_prologue): * config/mmix/mmix.c (along): update.
3100         (mmix_initial_elimination_offset): update.
3101         (mmix_reorg): update.
3102         (mmix_use_simple_return): update.
3103         (mmix_expand_prologue): update.
3104         (mmix_expand_epilogue): Update.
3105         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3106         (emit_link_insn): Update.
3107
3108 2008-04-08  Anatoly Sokolov <aesok@post.ru>
3109
3110         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
3111         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
3112         instructions.
3113         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
3114         atmega103 device.
3115
3116 2008-04-07  Jan Hubicka  <jh@suse.cz>
3117
3118         * function.h (rtl): Rename to x_rtl.
3119         (crtl): New define.
3120         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3121         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3122         used_temp_slots avail_temp_slots, temp_slot_level,
3123         nonlocal_goto_handler_labels): Update accesstors.
3124         (rtl): New global variable.
3125         (struct function): Move some fileds to rtl_data.
3126         (get_arg_pointer_save_area): Update prototype.
3127         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3128         get_arg_pointer_save_area.
3129         * expr.c (init_expr): Update
3130         * function.c (get_frame_size): Update
3131         (assign_stack_local): Update
3132         (expand_function_end): Update.
3133         (get_art_pointer_save_area): Update
3134         * function.h 
3135         * emit-rtl.c (rtl): Declare.
3136         (regno_reg_rtx): Declare.
3137         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3138         Update.
3139         (gen_reg_rtx): Update.
3140         * varasm.c (n_deferred_constatns): Update accestor.
3141         (init_varasm_status): Do not allocate varasm_status.
3142         (force_const_mem, get_pool_size, output_constant_pool): Update.
3143         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3144         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3145         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3146         * sparc/sparc.h (INIT_EXPANDERS): Update.
3147         * ia64/ia64.h (INIT_EXPANDERS): Update.
3148
3149 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
3150
3151         * reload.c (push_secondary_reload): Add missing break to for loop.
3152
3153 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3154
3155         PR middle-end/PR28690
3156         * rtlanal.c: Update copyright years.
3157         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3158         as REG_POINTER and MEM_POINTER operands.
3159         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3160         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3161         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3162         * gcse.c: Update copyright years.
3163         (pre_delete): Call gen_reg_rtx_and_attrs.
3164         (hoist_code): Likewise.
3165         (build_store_vectors): Likewise.
3166         (delete_store): Likewise.
3167         * loop-invariant.c (move_invariant_reg): Likewise.
3168         Update copyright years.
3169
3170 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
3171
3172         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3173         control string instead of quoted.
3174
3175 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3176
3177         * doc/rtl.texi: Rewrite of subreg section.
3178
3179 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
3180
3181         PR/35842
3182         * config/i386/i386.c (legitimize_pic_address): Add treating
3183         of dllimport SYM_REF's.
3184         (legitimize_dllimport_symbol): Add prototype.
3185
3186 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3187
3188         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
3189         reference in constructor with non self-referential type.
3190
3191 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3192
3193         Removal of Return with Depressed Stack Pointer support
3194         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3195         (ECF_SP_DEPRESSED): Likewise.
3196         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3197         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3198         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3199         (expand_call): Do not test ECF_SP_DEPRESSED.
3200         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3201         * function.c (keep_stack_depressed): Delete.
3202         (handle_epilogue_set): Likewise.
3203         (update_epilogue_consts): Likewise.
3204         (emit_equiv_load): Likewise.
3205         (thread_prologue_and_epilogue_insns): Remove support for Return with
3206         Depressed Stack Pointer.
3207         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3208
3209 2008-04-06  Richard Guenther  <rguenther@suse.de>
3210
3211         PR tree-optimization/35400
3212         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3213         information from SSA_NAMEs.
3214
3215 2008-04-06  Anatoly Sokolov <aesok@post.ru>
3216
3217         * config/avr/avr.h (avr_mega_p): Remove declaration.
3218         (AVR_MEGA): Remove macro.
3219         * config/avr/avr.c (avr_mega_p): Remove variable.
3220         (avr_override_options): Remove inicializion of avr_mega_p.
3221         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3222         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3223         (avr_jump_mode): (Ditto.).
3224         (avr_output_progmem_section_asm_op): (Ditto.).
3225         (avr_asm_init_sections): (Ditto.).
3226         (avr_asm_init_sections): (Ditto.).
3227         (avr_rtx_costs): (Ditto.).
3228         * config/avr/avr.md: (Ditto.).
3229         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
3230         '__AVR_MEGA__'.
3231
3232 2008-04-06  Richard Guenther  <rguenther@suse.de>
3233
3234         PR tree-optimization/35842
3235         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3236         is_gimple_invariant_address.
3237
3238 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3239
3240         * gcc.c (default_compilers): Sync Fortran extensions list with
3241         that in fortran/lang-specs.h.
3242         * doc/invoke.texi: Likewise.
3243         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3244         * dwarf2out.c (gen_compile_unit_die): Likewise.
3245
3246 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
3247
3248         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3249
3250 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
3251
3252         PR target/12329
3253         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3254         attribute is used for nested functions.
3255
3256 2008-04-05  Jan Hubicka  <jh@suse.cz>
3257
3258         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3259
3260         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3261         letter argument.
3262         (dump_files): Update.
3263         (enable_rtl_dump_file): Do not accept letter argument.
3264         * tree-pass.h (dump_file_info): Remove letter argument.
3265         * toplev.c (decode_d_option): Update -da handling.
3266         * toplev.h (enable_rtl_dump_file): Update prototype.
3267         * passes.c (register_one_dump_file): Do not accept IPA argument; work
3268         it out based on pass type.
3269         (register_dump_files_1): Likewise.
3270         (init_optimization_passes): Update register_one_dump_file calls.
3271         (execute_one_pass): Sanity check that IPA passes are called at IPA
3272         level and RTL passes at RTL level.
3273         (execute_pass_list): IPA pass can not be after or subpass of
3274         GIMPLE/RTL pass.
3275         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3276         disallov RTL subpasses of IPA subpasses.
3277
3278 2008-04-05  Ben Elliston  <bje@au.ibm.com>
3279
3280         * tree-cfg.c (need_fake_edge_p): Return false for calls to
3281         builtins that return exactly once and do not throw. Cache call to
3282         call_expr_flags.
3283
3284 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3285
3286         PR rtl-optimization/34916
3287         PR middle-end/35519
3288         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3289         between instruction pairs.
3290
3291 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
3292
3293         * doc/invoke.texi: Document -mbitops for SH.
3294         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3295         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3296         * config/sh/sh.c (print_operand): Add %t operand code.
3297         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3298         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3299         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3300         (extendqihi2): Likewise.
3301         (movqi_i): Likewise.
3302         (insv): Use bset, bclr and bst instructions for SH2A if possible.
3303         (extv): Use bld instruction for SH2A if possible.
3304         (extzv): Likewise.
3305         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3306         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3307         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3308         (bset.b, bclr.b): Define peepholes.
3309         * config/sh/sh.opt (mbitops): New option.
3310
3311 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
3312
3313         PR target/35620
3314         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3315         and view convert expression.
3316
3317 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3318
3319         PR target/35364
3320         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3321
3322 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3323
3324         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3325
3326         * config/i386/cpuid.h (bit_AES): New.
3327         (bit_PCLMUL): Likewise.
3328
3329         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3330         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
3331         SSE2 if AES or PCLMUL is enabled.
3332         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3333         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3334         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3335         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3336         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3337         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3338         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3339         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3340         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3341         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3342         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3343         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3344         __builtin_ia32_aeskeygenassist128 and
3345         __builtin_ia32_pclmulqdq128.
3346         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3347         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3348         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
3349
3350         * config/i386/i386.h (TARGET_AES): New.
3351         (TARGET_PCLMUL): Likewise.
3352         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3353
3354         * config/i386/i386.md (UNSPEC_AESENC): New.
3355         (UNSPEC_AESENCLAST): Likewise.
3356         (UNSPEC_AESDEC): Likewise.
3357         (UNSPEC_AESDECLAST): Likewise.
3358         (UNSPEC_AESIMC): Likewise.
3359         (UNSPEC_AESKEYGENASSIST): Likewise.
3360         (UNSPEC_PCLMUL): Likewise.
3361
3362         * config/i386/i386.opt (maes): New.
3363         (mpclmul): Likewise.
3364
3365         * config/i386/sse.md (aesenc): New pattern.
3366         (aesenclast): Likewise.
3367         (aesdec): Likewise.
3368         (aesdeclast): Likewise.
3369         (aesimc): Likewise.
3370         (aeskeygenassist): Likewise.
3371         (pclmulqdq): Likewise.
3372
3373         * config/i386/wmmintrin.h: New.
3374
3375         * doc/extend.texi: Document AES and PCLMUL built-in function.
3376
3377         * doc/invoke.texi: Document -maes and -mpclmul.
3378
3379 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
3380
3381         * function.c (free_after_parsing): Replace with
3382         cxx_push_function_context from C++ front-end.
3383         (allocate_struct_function): Don't call langhook.
3384         * langhooks.h (struct lang_hooks_for_functions): Delete.
3385         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3386         member "function".
3387         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3388         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3389         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3390         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3391         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3392         remove LANG_HOOKS_FUNCTION_INITIALIZER.
3393         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3394
3395         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3396         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3397         
3398 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3399
3400         PR c/35440
3401         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3402         for all types.
3403
3404 2008-04-04  Richard Guenther  <rguenther@suse.de>
3405
3406         PR middle-end/35823
3407         * fold-const.c (optimize_minmax_comparison): Use the correct
3408         type for the constant in the simplified comparison.
3409
3410 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
3411
3412         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3413         Pass L2 size as "--param l2-cache-size" to the compiler.
3414         (decode_l2_cache): New function to decode L2 cache parameters using
3415         0x8000006 extended cpuid function.
3416         (detect_caches_amd): Determine parameters of L2 cache using
3417         decode_l2_caches function.
3418         (decode_caches_intel): Decode L2 cache parameters.
3419         (detect_caches_intel): Determine L2 cache parameters using
3420         decode_caches_intel and decode_l2_caches functions.
3421
3422 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
3423
3424         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3425         secondary input reload for subword loads from the constant pool.
3426
3427 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
3428
3429         PR target/35713
3430         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3431           constants of the appropriate size for runtime calculations.
3432
3433         PR c/35712
3434         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3435           decimal-float literal constant zero.
3436
3437 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
3438
3439         PR c/35738
3440         * c-parser.c (c_parser_omp_atomic): Call
3441         default_function_array_conversion on the RHS.
3442
3443         PR middle-end/35818
3444         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
3445         call is_variable_sized if decl has incomplete type.
3446
3447 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
3448
3449         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
3450
3451 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
3452
3453         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
3454         iterators.
3455         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
3456         (sgt<u>): Merge sgt and sgtu into new expander.
3457         (sgt, sgtu): Remove expanders.
3458         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
3459         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
3460         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
3461         *sgtu_<mode>_mips16 into new pattern.
3462         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
3463         (sge<u>): Merge sge and sgeu into new expander.
3464         (sge, sgeu): Remove expanders.
3465         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
3466         new pattern.
3467         (*sge_<mode>, second *sge_<mode>): Remove patterns.
3468         (slt<u>): Merge slt and sltu into new expander.
3469         (slt, sltu): Remove expanders.
3470         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
3471         (*slt_<mode>, *sltu_<mode>): Remove patterns.
3472         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
3473         *sltu_<mode>_mips16 into new pattern.
3474         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
3475         (sle<u>): Merge sle and sleu into new expander.
3476         (sle, sleu): Remove expanders.
3477         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
3478         (*sle_<mode>, *sleu_<mode>): Remove patterns.
3479         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
3480         *sleu_<mode>_mips16 into new pattern.
3481         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
3482
3483 2008-04-03  Jan Hubicka  <jh@suse.cz>
3484
3485         PR tree-optimization/35795
3486         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
3487         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3488         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3489         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
3490         * score/score3.c (score3_output_mi_thunk): Likewise.
3491         * score/score7.c (score7_output_mi_thunk): Likewise.
3492         * mips/mips.c (mips_output_mi_thunk): Likewise.
3493
3494 2008-04-03  Richard Guenther  <rguenther@suse.de>
3495
3496         * tree-vrp.c (extract_range_from_unary_expr): Handle all
3497         conversions.  Simplify code.
3498
3499 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3500
3501         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
3502
3503 2008-04-03  Tom Tromey  <tromey@redhat.com>
3504             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3505
3506         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
3507         * config/bfin/t-bfin-linux (generated_files): Add
3508         linux-sysroot-suffix.h.
3509         * doc/install.texi (Prerequisites): Require make 3.80.
3510         * doc/sourcebuild.texi (Front End Directory): Document new
3511         variable.
3512         * Makefile.in (generated_files): New variable.
3513         (ALL_HOST_OBJS): New variable.
3514         ($(ALL_HOST_OBJS)): New target.
3515
3516 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3517
3518         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
3519         (remap_block): Call id->transform_lang_insert_block instead
3520         of langhook.
3521         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
3522         Set id.transform_lang_insert_block to NULL.
3523         (clone_body): Move to cp/optimize.c
3524         * tree-inline.h (struct copy_body_data): Change
3525         transform_lang_insert_block to function pointer.
3526         (copy_generic_body, copy_decl_no_change): Export.
3527         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
3528         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
3529         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
3530
3531         * c-tree.h (insert_block): Kill.
3532         * c-decl.c (insert_block): Kill.
3533
3534 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3535
3536         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3537         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3538         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
3539         argument.
3540         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
3541         argument, call {push,pop}_function_context from here.
3542         * c-parser.c: Use c_{push,pop}_function_context.
3543
3544         * function.c (push_function_context_to): Move meat ...
3545         (push_function_context): ... here.  Simplify.
3546         * function.c (pop_function_context_from): Move meat ...
3547         (pop_function_context): ... here.  Simplify.
3548         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
3549         leave_nested).
3550         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3551         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3552         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
3553         * tree.h (push_function_context_to, pop_function_context_from): Remove.
3554
3555 2008-04-03  Ben Elliston  <bje@au.ibm.com>
3556
3557         * expmed.c (extract_force_align_mem_bit_field): Remove.
3558
3559 2008-04-03  Richard Guenther  <rguenther@suse.de>
3560
3561         PR middle-end/35800
3562         * expr.h (try_casesi): Adjust prototype.
3563         * expr.c (try_casesi): Take fallback label as extra parameter.
3564         Use that for gen_casesi if default_label is NULL.
3565         * stmt.c (expand_case): Pass fallback label to try_casesi,
3566         make sure to fill gaps with a fallback label if default_label
3567         is not present.
3568
3569 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
3570
3571         PR target/35801
3572         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
3573
3574 2008-04-03  Ben Elliston  <bje@au.ibm.com>
3575
3576         * expmed.c (extract_split_bit_field): Remove if (0) code.
3577         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
3578         (do_ds_constraint): Likewise.
3579
3580 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
3581
3582         * doc/cppopts.texi (-dU): Document.
3583         * c-common.h (flag_dump_macros): Update comment.
3584         * c-opts.c (handle_OPT_d): Handle -dU.
3585         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
3586         dump_queued_macros, cb_used_define, cb_used_undef): New.
3587         (init_pp_output): Handle -dU.
3588         (cb_line_change): Call dump_queued_macros.
3589         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
3590
3591 2008-04-02  Anatoly Sokolov <aesok@post.ru>
3592
3593         * config/avr/predicates.md (io_address_operand): New predicate. 
3594         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
3595         * config/avr/avr.c (avr_io_address_p): Remove function.
3596         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
3597         'avr_io_address_p' function.
3598         (out_movhi_r_mr): (Ditto.).
3599         (out_movqi_mr_r): (Ditto.).
3600         (out_movhi_mr_r): (Ditto.).
3601         (avr_address_cost): (Ditto.).
3602
3603 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
3604
3605         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
3606         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
3607         in 32bit mode when XMM registers are available to avoid store
3608         forwarding stalls.
3609         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
3610         corresponding post-reload splitters.
3611
3612 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3613
3614         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
3615         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
3616         __builtin_ia32_roundss.
3617         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
3618         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
3619         __builtin_ia32_roundss.
3620         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
3621         IX86_BUILTIN_SHUFPD here.
3622
3623 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3624
3625         * config/i386/i386.md (plogic): New.
3626         (plogicprefix): Likewise.
3627
3628         * config/i386/mmx.md (mmx_<code><mode>3): New.
3629         (mmx_and<mode>3): Removed.
3630         (mmx_ior<mode>3): Likewise.
3631         (mmx_xor<mode>3): Likewise.
3632
3633         * config/i386/sse.md (<code><mode>3): New.
3634         (*<code><mode>3): Likewise.
3635         (*<code><mode>3): Likewise.
3636         (<code><mode>3): Likewise.
3637         (*sse_<code><mode>3): Likewise.
3638         (*sse2_<code><mode>3): Likewise.
3639         (<code>tf3): Likewise.
3640         (*<code>tf3): Likewise.
3641         (and<mode>3): Likewise.
3642         (*and<mode>3): Likewise.
3643         (ior<mode>3): Removed.
3644         (*ior<mode>3): Likewise.
3645         (xor<mode>3): Likewise.
3646         (*xor<mode>3): Likewise.
3647         (*and<mode>3): Likewise.
3648         (*ior<mode>3): Likewise.
3649         (*xor<mode>3): Likewise.
3650         (and<mode>3): Likewise.
3651         (*sse_and<mode>3): Likewise.
3652         (*sse2_and<mode>3): Likewise.
3653         (andtf3): Likewise.
3654         (*andtf3): Likewise.
3655         (ior<mode>3): Likewise.
3656         (*sse_ior<mode>3): Likewise.
3657         (*sse2_ior<mode>3): Likewise.
3658         (iortf3): Likewise.
3659         (*iortf3): Likewise.
3660         (xor<mode>3): Likewise.
3661         (*sse_xor<mode>3): Likewise.
3662         (*sse2_xor<mode>3): Likewise.
3663         (xortf3): Likewise.
3664         (*xortf3): Likewise.
3665
3666 2008-04-02  Richard Guenther  <rguenther@suse.de>
3667
3668         PR tree-optimization/14495
3669         PR tree-optimization/34793
3670         * tree-vrp.c (struct switch_update): New structure.
3671         (to_remove_edges, to_update_switch_stmts): New VECs.
3672         (simplify_switch_using_ranges): New function.  Remove not taken
3673         case labels and edges.
3674         (simplify_stmt_using_ranges): Call it.
3675         (identify_jump_threads): Mark edges we have queued for removal
3676         so we don't thread them.
3677         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
3678         case label vector.
3679         * tree-cfg.c (group_case_labels): Deal with missing default label.
3680         (tree_verify_flow_info): Allow missing default label.
3681         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
3682         (emit_case_nodes): Likewise.
3683         (expand_case): Do not rely on the default label to be present.
3684         * expr.c (try_casesi): Deal with NULL default_label.
3685         (do_tablejump): Likewise.
3686
3687 2008-04-02  Richard Guenther  <rguenther@suse.de>
3688
3689         PR tree-optimization/14495
3690         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
3691         SWITCH_EXPR here ...
3692         (vrp_visit_switch_stmt): ... but here (new function).
3693         (find_case_label_index): New helper function.
3694         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
3695
3696 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
3697
3698         * fwprop.c: Fix ISO-C99ism.
3699
3700 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
3701
3702         PR bootstrap/35752
3703         * Makefile.in (objdir): Set it here.
3704         * configure.ac: Not here.  Find dynamic linker characteristics.
3705         * exec-tool.in: Use them.
3706         * aclocal.m4: Regenerate.
3707         * configure: Regenerate.
3708
3709 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
3710
3711         * expr.c (expand_var): Delete it.
3712         * expr.h (expand_var): Delete prototype.
3713         * function.c (expand_function_start): Use expand_decl instead.
3714         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
3715         langhook.
3716
3717 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
3718
3719         PR rtl-optimization/35542
3720         * fwprop.c (forward_propagate_and_simplify): Replace
3721         loc_reg_mentioned_in_p with reg_mentioned_p.
3722
3723 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
3724
3725         PR rtl-optimization/35281
3726         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
3727         (propagate_rtx_1): Handle PR_HANDLE_MEM.
3728         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
3729         (varying_mem_p): Move above propagate_rtx.
3730         (all_uses_available_at): Do not check MEMs.
3731
3732 2008-04-02  Rafael Espindola  <espindola@google.com>
3733
3734         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
3735         (register_edge_assert_for_2): Split the cond argument.
3736         (register_edge_assert_for_1): Adjust for the change in
3737         register_edge_assert_for_2.
3738         (register_edge_assert_for): Split the cond argument.
3739         (find_switch_asserts): Adjust for the change in
3740         register_edge_assert_for.
3741
3742 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
3743
3744         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
3745         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
3746         offsets for 64-bit mingw.
3747         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
3748         abi for x86_64-pc-mingw.
3749
3750 2008-04-02  Richard Guenther  <rguenther@suse.de>
3751
3752         * tree-vrp.c (extract_range_from_assert): Make sure to not
3753         produce range min/max with TREE_OVERFOW set.
3754         If merging a anti-range and a range keep the anti-range if
3755         the range covers all values of the type.
3756         (register_edge_assert_for_2): Only allow sign-changing
3757         conversions in detecting canonical range checks.  Also
3758         register an assert for the unsigned name if useful.
3759
3760         PR tree-optimization/35787
3761         * tree-vrp.c (vrp_val_max): New function.
3762         (vrp_val_min): Likewise.
3763         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
3764         (vrp_val_is_min): Likewise.
3765         (supports_overflow_infinity): Use vrp_val_{min,max}.
3766         (negative_overflow_infinity): Likewise.
3767         (positive_overflow_infinity): Likewise.
3768         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
3769         (is_positive_overflow_infinity): Likewise.
3770         (is_overflow_infinity): Likewise.
3771         (avoid_overflow_infinity): Use vrp_val_{min,max} and
3772         vrp_val_is_{min,max}.
3773         (set_and_canonicalize_value_range): Canonicalize anti-ranges
3774         to ranges if possible.  Avoid empty ranges.
3775
3776 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3777
3778         PR middle-end/35705
3779         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
3780         the expression is a function address.
3781
3782 2008-04-01  George Helffrich  <george@gcc.gnu.org>
3783
3784         PR fortran/35154, fortran/23057
3785         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
3786         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
3787         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
3788         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
3789         in common.
3790         (dbxout_syms): Check for COMMON-based symbol and wrap in
3791         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
3792         in bracket for efficiency.
3793
3794         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
3795         using DW_TAG_common_block + member offset.
3796         (add_pubname_string): New function.
3797         (dw_expand_expr): New function to find block name and offset for
3798         COMMON var.
3799         (common_check): New function to check whether symbol in Fortran COMMON.
3800         (gen_variable_die): If COMMON, use DW_TAG_common_block.
3801
3802 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
3803
3804         PR c/35436
3805         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
3806
3807 2008-04-02  Ben Elliston  <bje@au.ibm.com>
3808
3809         * config/v850/v850.md (casesi): Remove if (0) code.
3810         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3811         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
3812
3813 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
3814
3815         * config/i386/i386.md (rex64suffix): New mode attribute.
3816         (floathi<mode>2): Disable expander for SSE math.
3817         (*floathi<mode>2_1): New insn insn_and_split pattern.
3818         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
3819         corresponding post-reload splitters.
3820         (*floathi<mode>2_i387): New macroized insn pattern.
3821         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
3822         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
3823         insn_and_split pattern.
3824         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
3825         New macroized instruction patterns and corresponding post-reload
3826         splitters.
3827         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
3828         and corresponding post-reload splitters.
3829         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
3830         New macroized instruction patterns.
3831         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
3832         macroized instruction patterns and corresponding post-reload splitters.
3833         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
3834         corresponding post-reload splitters.
3835         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
3836         New macroized instruction patterns.
3837         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
3838         corresponding post-reload splitters.
3839         (*floatsi<mode>2_i387): New macroized instruction patterns.
3840
3841 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
3842
3843         * config/i386/i386.md (smaxmin): New.
3844         (umaxmin): Likewise.
3845         (maxminiprefix): Likewise.
3846         (maxminfprefix): Likewise.
3847         (<code><mode>3): Likewise.
3848         (smin<mode>3): Removed.
3849         (smax<mode>3): Likewise.
3850
3851         * config/i386/mmx.md (mmx_<code>v2sf3): New.
3852         (mmx_<code>v4hi3): Likewise.
3853         (mmx_<code>v8qi3): Likewise.
3854         (mmx_smaxv2sf3): Removed.
3855         (mmx_sminv2sf3): Likewise.
3856         (mmx_umaxv8qi3): Likewise.
3857         (mmx_smaxv4hi3): Likewise.
3858         (mmx_uminv8qi3): Likewise.
3859         (mmx_sminv4hi3): Likewise.
3860
3861         * config/i386/sse.md (<addsub><mode>3): New.
3862         (*<addsub><mode>3): Likewise.
3863         (<sse>_vm<addsub><mode>3): Likewise.
3864         (<maxmin><mode>3): Likewise.
3865         (*<maxmin><mode>3_finite): Likewise.
3866         (*<maxmin><mode>3): Likewise.
3867         (<sse>_vm<maxmin><mode>3): Likewise.
3868         (sse3_h<addsub>v4sf3): Likewise.
3869         (sse3_h<addsub>v2df3): Likewise.
3870         (<maxmin>v16qi3): Likewise.
3871         (*<maxmin>v16qi3): Likewise.
3872         (<maxmin>v8hi3): Likewise.
3873         (*<maxmin>v8hi3): Likewise.
3874         (*sse4_1_<maxmin><mode>3): Likewise.
3875         (*sse4_1_<maxmin><mode>3): Likewise.
3876         (add<mode>3): Removed.
3877         (*add<mode>3): Likewise.
3878         (<sse>_vmadd<mode>3): Likewise.
3879         (sub<mode>3): Likewise.
3880         (*sub<mode>3): Likewise.
3881         (<sse>_vmsub<mode>3): Likewise.
3882         (smin<mode>3): Likewise.
3883         (*smin<mode>3_finite): Likewise.
3884         (*smin<mode>3): Likewise.
3885         (<sse>_vmsmin<mode>3): Likewise.
3886         (smax<mode>3): Likewise.
3887         (*smax<mode>3_finite): Likewise.
3888         (*smax<mode>3): Likewise.
3889         (<sse>_vmsmax<mode>3): Likewise.
3890         (sse3_haddv4sf3): Likewise.
3891         (sse3_haddv2df3): Likewise.
3892         (sse3_hsubv4sf3): Likewise.
3893         (sse3_hsubv2df3): Likewise.
3894         (umaxv16qi3): Likewise.
3895         (*umaxv16qi3): Likewise.
3896         (smaxv8hi3): Likewise.
3897         (*smaxv8hi3): Likewise.
3898         (*sse4_1_smax<mode>3): Likewise.
3899         (*sse4_1_umax<mode>3): Likewise.
3900         (uminv16qi3): Likewise.
3901         (*uminv16qi3): Likewise.
3902         (sminv8hi3): Likewise.
3903         (*sminv8hi3): Likewise.
3904         (*sse4_1_smin<mode>3): Likewise.
3905         (*sse4_1_umin<mode>3): Likewise.
3906
3907 2008-04-01  Rafael Espindola  <espindola@google.com>
3908
3909         * tree-cfg.c (verify_expr): remove in_phi.
3910         (verify_stmt): Don't call walk_tree with verify_expr. Use
3911         is_gimple_min_invariant instead of is_gimple_val.
3912
3913 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
3914
3915         * doc/include/gpl_v3.texi: Update for manpage generation.
3916         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
3917         gpl.texi.
3918         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
3919         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
3920         gpl_v3.texi instead of gpl.texi.
3921         (gpl.pod): New.
3922
3923 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
3924
3925         PR pch/13675
3926         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
3927
3928 2008-04-01  Rafael Espindola  <espindola@google.com>
3929
3930         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
3931         (extract_code_and_val_from_cond): Use
3932         extract_code_and_val_from_cond_with_ops.
3933
3934 2008-04-01  Jan Hubicka  <jh@suse.cz>
3935
3936         * function.c (free_after_compilation): Free epilogue_delay_list.
3937         (prepare_function_start): Assert that previous compilation was freed.
3938
3939 2008-04-01  Jan Hubicka  <jh@suse.cz>
3940             Jim Wilson  <wilson@tuliptree.org>
3941             Andreas Tobler <andreast@gcc.gnu.org>
3942
3943         PR middle-end/35781
3944         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
3945         rtl.emit instead cfun->emit.
3946         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
3947         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
3948
3949 2008-04-01  Ben Elliston  <bje@au.ibm.com>
3950
3951         * doc/c-tree.texi (Function Basics): Fix grammatical error.
3952
3953 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
3954
3955         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
3956         New options
3957         (fprofile-use): Add var flag_profile_use
3958         * coverage.c (coverage_begin_output): Do not open a gcno file for
3959         output only if -ftest-coverage is set.
3960         Do not add getpwd() to gcda file path.
3961         (build_gcov_info): Check the new flag
3962         flag_profile_datafile_relative_path.
3963         (coverage_init): Use profile_data_prefix.
3964         Read profile counter only if flag_profile_use is set.
3965         * opts.c (common_handle_option): New option fprofile-use=,
3966         fprofile-dir=, fprofile-generate=.
3967         * toplev.c (profile_data_prefix): New variable definition.
3968         * toplev.h (profile_data_prefix): New declaration.
3969         * doc/invoke.tex (Option Summary, Optimization Options):
3970         Add new options.
3971
3972 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
3973
3974         * varasm.c (output_constant_pool_1): In LABEL_REF check,
3975         use tmp consistently.
3976
3977         PR target/35695
3978         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
3979         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3980         UNSPEC_FR_RECIP_APPROX_RES.
3981         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
3982
3983 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
3984
3985         PR c/35750
3986         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
3987
3988 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3989
3990         PR middle-end/30186
3991         * fold-const.c (fold_indirect_ref_1): Support accessing non first
3992         element of the vector via a pointer.
3993
3994 2008-03-31  Ian Lance Taylor  <iant@google.com>
3995
3996         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
3997
3998 2008-03-31  Jan Hubicka  <jh@suse.cz>
3999
4000         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4001         get_arg_pointer_save_area.
4002         * expr.c (init_expr): Just clear out rtl.expr.
4003         * function.c (free_after_compilation): Clear out whole RTL structure.
4004         (get_func_frame_size): Merge into ...
4005         (get_frame_size): ... this one.
4006         (assign_stack_local_1): Merge into ...
4007         (assign_stack_local): ... this one.
4008         (expand_function_end): Update call of get_arg_pointer_save_area.
4009         (get_art_pointer_save_area): Remove cfun argument.
4010         * function.h (emit_status): regno_pointer_align does not need length
4011         attribute. Move x_regno_reg_rtx to ...
4012         (regno_reg_rtx): ... new global array.
4013         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
4014         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
4015         apply_args_value, forced_labels, stack_pointer_delta):
4016         Update accestors.
4017         (struct varasm_status): Move here from varasm.c
4018         (struct rtl_data): New. Move here some fields from struct function.
4019         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4020         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4021         used_temp_slots avail_temp_slots, temp_slot_level,
4022         nonlocal_goto_handler_labels): Update accesstors.
4023         (rtl): New global variable.
4024         (struct function): Move some fileds to rtl_data.
4025         (get_arg_pointer_save_area): Update prototype.
4026         * emit-rtl.c (rtl): Declare.
4027         (regno_reg_rtx): Declare.
4028         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4029         Update.
4030         (gen_reg_rtx): Update.
4031         (init_virtual_regs): Do not tate emit_status argument.
4032         (init_emit): Do not allocate emit.
4033         * varasm.c (varasm_statuc): Move to function.h.
4034         (n_deferred_constatns): Update accestor.
4035         (init_varasm_status): Do not allocate varasm_status.
4036         (force_const_mem, get_pool_size, output_constant_pool): Update.
4037         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4038         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4039
4040 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
4041
4042         PR rtl-optimization/35729
4043         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4044         references.
4045
4046 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         PR target/32000
4049         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4050         load/store if memory is unaligned.
4051         (*movti_rex64): Likewise.
4052
4053         * config/i386/predicates.md (misaligned_operand): New.
4054
4055 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
4056
4057         PR tree-opt/35431
4058         * tree-ssa-phiopt.c (conditional_replacement): Return early for
4059         complex types.
4060
4061 2008-03-31  Jan Beulich  <jbeulich@novell.com>
4062
4063         * config/ia64/constraints.md: Add 'j' constraint.
4064         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4065         (movdi_internal): Likewise.
4066
4067 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
4068
4069         PR c/35748
4070         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4071
4072 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4073
4074         PR target/35757
4075         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4076         proper error message for the third argument on blendpd and
4077         blendps.
4078
4079         * config/i386/sse.md (blendbits): New.
4080         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4081
4082 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4083
4084         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4085
4086 2008-03-30  Richard Guenther  <rguenther@suse.de>
4087
4088         PR middle-end/31023
4089         * fold-const.c (fold_sign_changed_comparison): Do leave
4090         conversions to base-types alone.
4091
4092 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4093
4094         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4095         the link register if one altivec register is be saved.
4096
4097 2008-03-30  Ben Elliston  <bje@au.ibm.com>
4098
4099         * final.c (final_scan_insn): Remove if (0) code.
4100
4101 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
4102
4103         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4104
4105 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4106
4107         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4108         of V4SFmode to ix86_binary_operator_ok.
4109
4110 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
4111
4112         * config/i386/i386.c (override_options): Initialize
4113         ix86_veclib_handler to ix86_veclibabi_svml when
4114         -mveclibabi=svml is used.
4115         (ix86_veclibabi_svml): New function for SVML ABI style
4116         vectorization support.
4117         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4118
4119 2008-03-28  Rafael Espindola  <espindola@google.com>
4120
4121         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4122         (tree_binary_nonnegative_warnv_p): Make it public.
4123         (tree_single_nonnegative_warnv_p): Make it public.
4124         (tree_invalid_nonnegative_warnv_p): Make it public.
4125         (tree_unary_nonzero_warnv_p): Make it public.
4126         (tree_binary_nonzero_warnv_p): Make it public
4127         (tree_single_nonzero_warnv_p): Make it public.
4128         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4129         (extract_range_from_binary_expr): Split the expr argument.
4130         (extract_range_from_unary_expr): Split the expr argument.
4131         (extract_range_from_comparison): Split the expr argument.
4132         (extract_range_from_expr): Use the new aux functions.
4133         (vrp_evaluate_conditional_warnv): Use
4134         vrp_evaluate_conditional_warnv_with_ops.
4135         * tree.h (tree_unary_nonzero_warnv_p): Declare.
4136         (tree_binary_nonzero_warnv_p): Declare.
4137         (tree_single_nonzero_warnv_p): Declare.
4138         (tree_expr_nonzero_warnv_p): Declare.
4139         (tree_unary_nonnegative_warnv_p): Declare.
4140         (tree_binary_nonnegative_warnv_p): Declare.
4141         (tree_single_nonnegative_warnv_p): Declare.
4142         (tree_invalid_nonnegative_warnv_p): Declare.
4143
4144 2008-03-28  Richard Guenther  <rguenther@suse.de>
4145
4146         PR tree-optimization/30317
4147         PR tree-optimization/30911
4148         PR tree-optimization/34793
4149         * tree-vrp.c (set_and_canonicalize_value_range): New function.
4150         (struct assert_locus_d): New member EXPR.
4151         (register_new_assert_for): Add EXPR parameter to support
4152         ASSERT_EXPR <name, expr OP limit>.
4153         (register_edge_assert_for_1): Adjust callers.
4154         (find_assert_locations): Likewise.
4155         (process_assert_insertions_for): Build condition from expression.
4156         (extract_range_from_assert): Handle ASSERT_EXPRs
4157         of the form ASSERT_EXPR <name, expr OP limit>.
4158         (register_edge_assert_for_2): New helper registering
4159         asserts for comparisons.  Recognize range tests of the form
4160         (unsigned)i - CST1 OP CST2.
4161         (register_edge_assert_for_1): Use it.
4162         (register_edge_assert_for): Likewise.
4163         (needs_overflow_infinity): Integer sub-types
4164         do not need overflow infinities.
4165         (vrp_val_is_max): The extreme values of integer sub-types
4166         are those of the base type.
4167         (vrp_val_is_min): Likewise.
4168         * tree.def (ASSERT_EXPR): Document extra allowed conditional
4169         expressions.
4170
4171 2008-03-28  Nick Clifton  <nickc@redhat.com>
4172
4173         PR target/31110
4174         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4175         Return GENERAL_REGS for stack adjustment reloads.
4176
4177 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4178
4179         PR target/31334
4180         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4181         const_vector when all the vectors are constant.
4182
4183 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
4184
4185         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4186         comparisons.
4187         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4188         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4189         (scc_sf): New.
4190         (s<code>_sf): Use new scc_sf attribute for opcode names.
4191
4192 2008-03-27  Tom Tromey  <tromey@redhat.com>
4193
4194         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4195         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4196         config/spu/t-spu-elf, config/i386/t-interix,
4197         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4198         config/i386/x-darwin, config/i386/x-mingw32,
4199         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4200         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4201         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4202         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4203         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4204         config/rs6000/x-darwin, config/rs6000/t-rs6000,
4205         config/score/t-score-elf, config/arm/t-strongarm-pe,
4206         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4207         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4208         Revert automatic dependency patch.
4209
4210 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4211
4212         PR target/35657
4213         * config/i386/i386.c (ix86_function_arg_boundary): Align
4214         decimal floating point to its natural boundary.
4215
4216 2008-03-27  Richard Guenther  <rguenther@suse.de>
4217
4218         PR middle-end/35716
4219         * fold-const.c (fold_comparison): Restrict distinct decl
4220         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
4221         solely rely on operand_equal_p.
4222
4223 2008-03-27  Richard Guenther  <rguenther@suse.de>
4224
4225         PR c/32511
4226         * c-common.c (handle_weak_attribute): Reject combination of
4227         weak and inline.
4228
4229 2008-03-27  Richard Guenther  <rguenther@suse.de>
4230
4231         PR tree-optimization/32810
4232         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4233         conversions from DECL_INITIAL.
4234         (fold_const_aggregate_ref): Likewise from constructor elements.
4235
4236 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
4237
4238         * tree-affine.h (aff_combination_expand): Declare.
4239         (get_inner_reference_aff): Likewise.
4240         * tree-affine.c (aff_combination_expand): Split out from
4241         tree_to_aff_combination_expand.
4242         (get_inner_reference_aff): New function.
4243         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4244         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4245         (struct lim_aux_data): sm_done field removed.
4246         (mem_ref_loc_p, mem_ref_locs_p): New types.
4247         (struct mem_ref): Added id, stored, accesses_in_loop,
4248         indep_loop, dep_loop, indep_ref, dep_ref fields.
4249         Removed is_stored, locs and next fields.
4250         (memory_accesses): New variable.
4251         (movement_possibility): Do not allow moving statements
4252         that store to memory.
4253         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4254         New functions.
4255         (determine_max_movement): For statements with memory references,
4256         find the outermost loop in that the reference is independent.
4257         (move_computations_stmt): Mark the virtual operands for renaming.
4258         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4259         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4260         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4261         add_vop_ref_mapping, create_vop_ref_mapping_loop,
4262         create_vop_ref_mapping, analyze_memory_references,
4263         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4264         get_all_locs_in_loop, ref_always_accessed_p,
4265         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4266         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4267         store_motion_loop, store_motion): New functions.
4268         (struct vop_to_refs_elt): New type.
4269         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4270         memref_hash, memref_eq, hoist_memory_references): Rewritten.
4271         (schedule_sm): Replaced by...
4272         (execute_sm): ... this.
4273         (determine_lsm_ref, hoist_memory_references,
4274         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4275         find_more_ref_vops, free_mem_ref, free_mem_refs,
4276         determine_lsm_loop, determine_lsm): Removed.
4277         (tree_ssa_lim_finalize): Free data structures used by store motion.
4278         (tree_ssa_lim): Call analyze_memory_references.  Use
4279         store_motion instead of determine_lsm.
4280
4281 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4282
4283         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4284         rename tmake_file to m68hc11/t-m68hc11.
4285         (mcore): Set inhibit_libc to true.
4286         * config.host (alpha*-dec-*vms*): Set extra_programs.
4287         (interix3*): Don't use host_xmake_file.
4288         * configure.ac: Let config.gcc override inhibit_libc.
4289         * configure: Regenerate.
4290
4291         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4292         * config/t-openbsd-thread: Remove commented out lines.
4293         
4294         * config/x-interix: Remove.
4295
4296         * config/m68hc11/t-m68hc11-gas: Rename to...
4297         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
4298
4299         * config/mcore/t-mcore: Remove T_CFLAGS.
4300         * config/mcore/t-mcore-pe: Likewise.
4301
4302 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4303
4304         * configure.ac: Replace custom __GNU_SOURCE test with
4305         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
4306         * aclocal.m4: Regenerate.
4307         * configure: Regenerate.
4308         * config.in: Regenerate.
4309
4310 2008-03-27  Richard Guenther  <rguenther@suse.de>
4311
4312         * fold-const.c (target.h): Include.
4313         (fold_comparison): Fold comparison of addresses of decls
4314         that bind locally or of constants.  Consolidate address folding code.
4315         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
4316         results from fold_binary_to_constant.
4317         (compare_values_warnv): Likewise.
4318
4319 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
4320
4321         PR middle-end/35429
4322         * fold-const.c (fold_truthop): Check for integeral types when folding
4323         a == 0 && b == 0 and a != 0 || b != 0 .
4324
4325 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4326
4327         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
4328
4329 2008-03-26  Andreas Schwab  <schwab@suse.de>
4330
4331         * doc/invoke.texi: Fix use of @item vs. @itemx.
4332
4333 2008-03-26  Tom Tromey  <tromey@redhat.com>
4334
4335         * Makefile.in (build/gensupport.o, build/print-rtl.o,
4336         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
4337         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
4338         build/gencodes.o, build/genconditions.o, build/genconfig.o,
4339         build/genconstants.o, build/genemit.o, build/genextract.o,
4340         build/genflags.o, build/genmddeps.o, build/genopinit.o,
4341         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
4342         options.h.
4343
4344 2008-03-26  Richard Guenther  <rguenther@suse.de>
4345
4346         Revert
4347         2008-03-26  Richard Guenther  <rguenther@suse.de>
4348
4349         * fold-const.c (target.h): Include.
4350         (fold_comparison): Fold comparison of addresses of two decls
4351         that bind locally.  Consolidate address folding code.
4352
4353 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4354
4355         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
4356         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
4357         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
4358         dconstsqrt2, dconstthird, dconste and/or dconst10.
4359         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
4360         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
4361         dconstsqrt2, dconste): Delete.
4362         (init_emit_once): Likewise.  Simplify initializing dconstm1.
4363         Constify variable.
4364         * real.c (get_real_const): New.
4365         * real.h (dconst3, dconst10, dconstm2, dconstthird,
4366         dconstsqrt2, dconste): Delete.
4367         (real_value_const, get_real_const): New.
4368
4369 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
4370
4371         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
4372
4373         * config/i386/i386.c (ix86_function_arg_boundary): Check
4374         BIGGEST_ALIGNMENT instead of 128.
4375         (setup_incoming_varargs_64): Likewise.
4376
4377 2008-03-26  Tom Tromey  <tromey@redhat.com>
4378
4379         * Makefile.in (DEPFILES): Add missing '/'.
4380
4381 2008-03-26  Richard Guenther  <rguenther@suse.de>
4382
4383         * fold-const.c (target.h): Include.
4384         (fold_comparison): Fold comparison of addresses of two decls
4385         that bind locally.  Consolidate address folding code.
4386
4387 2008-03-26  Nick Clifton  <nickc@redhat.com>
4388
4389         PR target/31232
4390         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
4391         not allow INT+INT as a legitimate addressing mode.
4392
4393 2008-03-26  Richard Guenther  <rguenther@suse.de>
4394
4395         * tree-flow.h (widen_bitfield): Remove declaration.
4396         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
4397         (widen_bitfield): Remove function.
4398         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
4399         code.
4400
4401 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4402
4403         PR target/31558
4404         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
4405         error_mark_node's.
4406
4407 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
4408
4409         PR rtl-optimization/35232
4410         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
4411         (forget_old_reloads_1, forget_marked_reloads): Don't clear
4412         reg_reloaded_call_part_clobbered here.
4413         (reload_regs_reach_end_p): New function.
4414         (reload_reg_rtx_for_input): New variable.
4415         (reload_reg_rtx_for_output): Likewise.
4416         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
4417         when reassigning a pseudo register.  Load reloadreg from 
4418         reload_reg_rtx_for_input, moving the mode and register
4419         calculation to...
4420         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
4421         instead of the original when deciding whether an input reload
4422         would be a no-op or whether an output reload can be deleted.
4423         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
4424         when setting up new_spill_reg_store.  Load it from
4425         reload_reg_rtx_for_output, moving the mode and register
4426         calculation to...
4427         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
4428         instead of the original when deciding whether an output reload
4429         would be a no-op.  Do the same when modifying insn notes.
4430         Use rtx_equal_p instead of == to compare the registers.
4431         (inherit_piecemeal_p): Take a mode and two register numbers
4432         as argument.
4433         (emit_reload_insns): Clear new_spill_reg_store for every hard
4434         register in the reload register.  Remove spill registers
4435         from reg_reloaded_valid before considering whether to record
4436         inheritance information for them.  Use reload_reg_rtx_for_output
4437         instead of reg_rtx when recording output reloads.  Use
4438         reload_reg_rtx_for_input instead of reg_rtx when recording
4439         input reloads.  Set or clear reg_reloaded_call_part_clobbered
4440         at the same time as setting reg_reloaded_valid.
4441         (delete_output_reload): Add a new_reload_reg parameter and use it
4442         instead of rld[j].reg_rtx.
4443         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
4444         calls accordingly.
4445
4446 2008-03-25  Tom Tromey  <tromey@redhat.com>
4447
4448         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
4449         (build/genattr.o): Likewise.
4450         (build/genattrtab.o): Likewise.
4451         (build/gencodes.o): Likewise.
4452         (build/genconfig.o): Likewise.
4453         (build/genconstants.o): Likewise.
4454         (build/genemit.o): Likewise.
4455         (build/genextract.o): Likewise.
4456         (build/genflags.o): Likewise.
4457
4458 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
4459         
4460         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
4461         instead of size_int for integer types.
4462         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
4463         to match type of MINUS_EXPR.
4464         
4465 2008-03-25  Tom Tromey  <tromey@redhat.com>
4466
4467         * configure: Rebuilt.
4468         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
4469         Makefile.
4470
4471 2008-03-25  Tom Tromey  <tromey@redhat.com>
4472
4473         * config/x-solaris (host-solaris.o): Update.
4474         * config/x-linux (host-linux.o): Update.
4475         * config/x-hpux (host-hpux.o): Update.
4476         * config/x-darwin (host-darwin.o): Update.
4477         * config/v850/t-v850e (v850-c.o): Update.
4478         * config/v850/t-v850 (v850-c.o): Update.
4479         * config/t-vxworks (vxworks.o): Update.
4480         * config/t-sol2 (sol2-c.o, sol2.o): Update.
4481         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
4482         * config/spu/t-spu-elf (spu-c.o): Update.
4483         (spu.o): Remove.
4484         * config/sh/t-symbian (sh-c.o): Update.
4485         (symbian.o): Update.
4486         * config/sh/t-sh (sh-c.o): Update.
4487         * config/score/t-score-elf (score7.o, score3.o): Update.
4488         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
4489         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
4490         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
4491         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
4492         (rs6000.o): Remove.
4493         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4494         * config/m32c/t-m32c (m32c-pragma.o): Update.
4495         * config/ia64/t-ia64 (ia64-c.o): Update.
4496         * config/i386/x-mingw32 (host-mingw32.o): Update.
4497         * config/i386/x-i386 (driver-i386.o): Update.
4498         * config/i386/x-darwin (host-i386-darwin.o): Update.
4499         * config/i386/x-cygwin (host-cygwin.o): Update.
4500         * config/i386/t-nwld (nwld.o): Update.
4501         * config/i386/t-netware (netware.o): Update.
4502         * config/i386/t-interix (winnt.o): Update.
4503         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
4504         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
4505         msformat-c.o): Update.
4506         * config/bfin/t-bfin-linux (generated_files): Add
4507         linux-sysroot-suffix.h.
4508         * config/arm/t-wince-pe (pe.o): Update.
4509         * config/arm/t-strongarm-pe (pe.o): Update.
4510         * config/arm/t-pe (pe.o): Update.
4511         * config/arm/t-arm (arm-c.o): Update.
4512         * doc/install.texi (Prerequisites): Require make 3.80.
4513         * Makefile.in: Remove .o targets.
4514         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
4515         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
4516         (simple_generated_h, simple_generated_c): Move earlier.
4517         (generated_files): New variable.
4518         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
4519         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
4520         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
4521         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
4522         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
4523         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
4524         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
4525         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
4526         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
4527         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
4528         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
4529         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
4530         (.c.o): Remove.
4531         (COMPILE.base, COMPILE): New variables.
4532         (%.o): New pattern rule.
4533         (ALL_HOST_OBJS): New variable.
4534         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
4535         (dummy-checksum.o, cc1-checksum.o): Remove.
4536         (DRIVER_SHLIB): New variable.
4537         (DRIVER_DEFINES): Use it.
4538         (gencondmd.c): Move out of build/.
4539         (s-conditions): Update.
4540         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
4541         (ALL_BUILD_OBJS): Likewise.
4542         (build/%.o): Use BUILDCOMPILE.
4543         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
4544         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
4545         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
4546         build/gencheck.o, build/gencodes.o, build/genconditions.o,
4547         build/genconfig.o, build/genconstants.o, build/genemit.o,
4548         build/genextract.o, build/genflags.o, build/genmddeps.o,
4549         build/genopinit.o, build/genoutput.o, build/genpeep.o,
4550         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
4551         build/gen-protos.o, build/scan.o, build/fix-header.o,
4552         build/scan-decls.o): Simplify.
4553         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
4554         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
4555         prefix.o, toplev.o): Reduce to variable setting.
4556         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
4557         ($(out_object_file), gcc-options.o): New targets.
4558         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
4559         * configure: Rebuilt.
4560         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
4561         * doc/sourcebuild.texi (Front End Directory): Document new variable.
4562
4563 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
4564
4565         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
4566         complain when we hit an error, return ERROR_MARK_NODE.
4567
4568 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4569
4570         * config/sh/constraints.md (Pso, Psz): New constraints.
4571         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
4572         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
4573
4574 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4575
4576         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
4577         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
4578
4579 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4580
4581         * config/sh/sh.md (prefetch): Add condition for SH2A target.
4582         (prefetch_sh2a): New.   
4583
4584 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
4585             Naveen.H.S  <naveen.hs@kpitcummins.com>
4586
4587         * config/sh/constraints.md (I28): New constraint.
4588         * config/sh/sh.c (broken_move): Add support for movi20s.
4589         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
4590
4591 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
4592             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
4593             Naveen.H.S  <naveen.hs@kpitcummins.com>
4594
4595         * config/sh/sh.c (SH_ATTRIBUTES): Define.
4596         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
4597         (print_operand): Handle resbank in %@ operand code.
4598         (sh_encode_section_info): New.
4599         (push_regs): Add conditions for resbank.
4600         (sh_expand_epilogue): Likewise.
4601         (sh_insert_attributes): Likewise.
4602         (sh_attribute_table): Likewise.
4603         (sh_handle_resbank_handler_attribute): New.
4604         (sh2a_handle_function_vector_handler_attribute): New.
4605         (sh2a_is_function_vector_call): New.
4606         (sh2a_get_function_vector_number): New.
4607         (sh2a_function_vector_p): New.
4608         (sh_cfun_resbank_handler_p): New.
4609         * config/sh/sh.md (calli): Emit jsr/n if possible.
4610         (calli_tbr_rel): New.
4611         (calli_pcrel): Emit jsr/n if possible.
4612         (return_i): Emit rts/n if possible.
4613         (call_valuei_tbr_rel): New.
4614         (call_valuei_pcrel): Add condition for SH2A target.
4615         (call_value): Likewise.
4616         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
4617         (sh2a_get_function_vector_number): Likewise.
4618         (sh2a_is_function_vector_call): Likewise.
4619         * doc/extend.texi: Document TBR relative addressing of SH2A.
4620         (resbank): Add description for SH2A.
4621
4622 2008-03-24  Richard Guenther  <rguenther@suse.de>
4623
4624         PR c/22371
4625         * gimplify.c (gimplify_modify_expr): For frontend type-correct
4626         pointer assignments change conversions according to middle-end rules.
4627         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
4628         * configure.ac: Include type checking in yes.
4629         * configure: Regenerate.
4630
4631 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4632
4633         * diagnostic.c (diagnostic_count_diagnostic): Delete.
4634         (diagnostic_report_diagnostic): Update. Handle ICEs here.
4635         
4636 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
4637
4638         * gthr-vxworks.h (UNUSED): Define.
4639
4640 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4641
4642         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
4643
4644 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
4645
4646         * doc/extend.texi (Function Attributes): Add missing comma in the
4647         example of the "alloc_size" attribute.
4648         
4649 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
4650
4651         Revert:
4652         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4653
4654         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4655         32bit host.
4656
4657         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
4658
4659         PR target/35496
4660         * stor-layout.c (update_alignment_for_field): Set minimum alignment
4661         of the underlying type of a MS bitfield layout to the natural
4662         alignment of the type.
4663
4664         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
4665
4666         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4667         to their natural alignment to avoid store forwarding stalls.
4668
4669 2008-03-22  Richard Guenther  <rguenther@suse.de>
4670
4671         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
4672         For PHI nodes verify the address is invariant.
4673         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
4674         (get_symbol_constant_value): Use is_gimple_min_invariant.
4675         (maybe_fold_stmt_indirect): Likewise.
4676
4677 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4678
4679         PR rtl-optimization/33927
4680         * Makefile.in (dse.o): Depend on $(TM_P_H).
4681         * expr.h (extract_low_bits): Declare.
4682         * expmed.c (extract_low_bits): New function.
4683         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
4684         * dse.c: Include tm_p.h.
4685         (find_shift_sequence): Remove the read_reg argument and return the
4686         read value.  Emit the instructions instead of returning them.
4687         Iterate on new_mode rather than calculating it each time.
4688         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
4689         source to NEW_MODE and extract_low_bits to convert the shifted
4690         value to READ_MODE.
4691         (replace_read): Allow the load and store to have different mode
4692         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
4693         or extraction instructions before trying the replacement.  Update
4694         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
4695
4696 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
4697
4698         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4699         to their natural alignment to avoid store forwarding stalls.
4700
4701 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4702
4703         PR target/27946
4704         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
4705         encouraging but not allowing gprs for input;
4706         change the input constraint to !f#r.
4707         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
4708         gprs for output;
4709         change the output constraint to !f#r.
4710
4711 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
4712
4713         PR target/13958
4714         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
4715         corresponding post-reload splitters.
4716         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
4717         when x87 FP math is selected.
4718         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
4719         New function prototype.
4720         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
4721         unreachable function to ease macroization of insn patterns.
4722
4723 2008-03-21  Martin Jambor  <mjambor@suse.cz>
4724
4725         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
4726         reference dumps if ddr is NULL or dependence is unknown.
4727
4728 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4729
4730         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
4731         unsigned extension into account.
4732         (ATOMIC_COMPARE_AND_SWAP): Likewise.
4733         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
4734         Do computations on a scratch register.
4735
4736 2008-03-21  Richard Guenther  <rguenther@suse.de>
4737
4738         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4739         Use is_gimple_min_invariant instead of TREE_INVARIANT.
4740         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4741         * tree-ssa-dom.c (record_equality): Likewise.
4742         * tree-inline.c (copy_body_r): Likewise.
4743         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
4744         TREE_INVARIANT.
4745
4746 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4747
4748         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
4749         as 'delete_unused' argument.
4750
4751 2008-03-20  Richard Guenther  <rguenther@suse.de>
4752
4753         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
4754         special casing of constant qualifiers.
4755         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
4756         care about them in general.
4757         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
4758         regardless of their type.
4759         (fold_stmt_r): Forcefully fold *& if we end up with that.
4760
4761 2008-03-20  Paul Brook  <paul@codesourcery.com>
4762
4763         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
4764         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
4765         linker flags.
4766         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
4767         definition.
4768         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
4769         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
4770
4771 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
4772
4773         * common.opt (Wmudflap): New option.
4774         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
4775         (mx_register_decls): Likewise.
4776         (mudflap_finish_file): Likewise.
4777         * doc/invoke.texi: Document -Wno-mudflap.
4778
4779 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
4780
4781         * c-format.c (replace_format_name_to_system_name): New.
4782         (cmp_attribs): New.
4783         (convert_format_name_to_system_name): New.
4784         (decode_format_attr): Add use of convert_format_name_to_system_name.
4785         (format_types_orig): Add gnu_ prefix to names.
4786         (check_format_info_main): Special treating of \0 escaped names for
4787         supporting multi-character format specifiers as I32, I64.
4788         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
4789         (gnu_target_overrides_format_attributes): New.
4790         * c-format.h: Add structure target_ovr_attr to hold
4791         system specific formatter names.
4792         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
4793         msformat-c.o file to c_target_objs and cxx_target_objs.
4794         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4795         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
4796         (TARGET_N_FORMAT_TYPES): New.
4797         * config/i386/msformat-c.c: New.
4798         * config/i386/t-cygming: Add build rule for msformat-c.o.
4799         * doc/extend.texi: Add new format names gnu_* and ms_* and
4800         further details.
4801         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
4802
4803 2008-03-20  Ira Rosen  <irar@il.ibm.com>
4804
4805         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
4806         optimizations turned on under -O3.
4807         (ftree-vectorize): Add that the flag is turned on with -O3.
4808
4809 2008-03-20  Ben Elliston  <bje@au.ibm.com>
4810
4811         * regmove.c (try_auto_increment): Fix spelling error in comment.
4812         * final.c (final_scan_insn): Likewise.
4813
4814 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
4815
4816         PR target/14552
4817         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
4818         allocator preferences for "y" and "r" class registers.
4819         ("*mov<mode>_internal"): Ditto.
4820         ("*movv2sf_internal_rex64"): Ditto.
4821         ("*movv2sf_internal"): Ditto.
4822
4823 2008-03-19  Michael Matz  <matz@suse.de>
4824
4825         PR middle-end/35616
4826         * calls.c (expand_call): Check overlap of arguments with call
4827         address for sibcalls.
4828
4829 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
4830
4831         PR target/35496
4832         * stor-layout.c (update_alignment_for_field): Set minimum alignment
4833         of the underlying type of a MS bitfield layout to the natural
4834         alignment of the type.
4835
4836 2008-03-19  Jan Hubicka  <jh@suse.cz>
4837
4838         PR other/35094
4839         * toplev.c (decode_d_option): Handle all CPP flags.
4840         * tree-vrp.c: Update tree_pass descriptors.
4841         * regrename.c: Update tree_pass descriptors.
4842         * fwprop.c: Update tree_pass descriptors.
4843         * doc/invoke.texi: Remove documentation of dropped -d? flags.
4844         * tree-into-ssa.c: Update tree_pass descriptors.
4845         * tree-dump.c: Update tree_pass descriptors.
4846         * tree-complex.c: Update tree_pass descriptors.
4847         * tree-dump.h: Update tree_pass descriptors.
4848         * see.c: Update tree_pass descriptors.
4849         * cgraphbuild.c: Update tree_pass descriptors.
4850         * tracer.c: Update tree_pass descriptors.
4851         * tree-loop-distribution.c: Update tree_pass descriptors.
4852         * cgraph.c: Update tree_pass descriptors.
4853         * postreload-gcse.c: Update tree_pass descriptors.
4854         * postreload.c: Update tree_pass descriptors.
4855         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
4856         * tree-tailcall.c: Update tree_pass descriptors.
4857         * tree-pass.h (tree_opt_pass): Rename to ...
4858         (opt_pass) ... this one; add "type" field and remove letter field.
4859         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
4860         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
4861         all_lowering_passes): Update declaration.
4862         * ipa-cp.c: Update tree_pass descriptors.
4863         * final.c: Update tree_pass descriptors.
4864         * omp-low.c: Update tree_pass descriptors.
4865         * tree-ssa-dse.c: Update tree_pass descriptors.
4866         * ipa-reference.c: Update tree_pass descriptors.
4867         * tree-ssa-uncprop.c: Update tree_pass descriptors.
4868         * auto-inc-dec.c: Update tree_pass descriptors.
4869         * reorg.c: Update tree_pass descriptors.
4870         * cgraphunit.c: Update tree_pass descriptors.
4871         * tree-ssa-copyrename.c: Update tree_pass descriptors.
4872         * tree-ssa-ccp.c: Update tree_pass descriptors.
4873         * df-core.c: Update tree_pass descriptors.
4874         * mode-switching.c: Update tree_pass descriptors.
4875         * tree-nomudflap.c: Update tree_pass descriptors.
4876         * modulo-sched.c: Update tree_pass descriptors.
4877         * ipa-pure-const.c: Update tree_pass descriptors.
4878         * cse.c: Update tree_pass descriptors.
4879         * web.c: Update tree_pass descriptors.
4880         * tree-stdarg.c: Update tree_pass descriptors.
4881         * tree-ssa-math-opts.c: Update tree_pass descriptors.
4882         * tree-ssa-dom.c: Update tree_pass descriptors.
4883         * tree-nrv.c: Update tree_pass descriptors.
4884         * tree-ssa-alias.c: Update tree_pass descriptors.
4885         * loop-init.c: Update tree_pass descriptors.
4886         * gimple-low.c: Update tree_pass descriptors.
4887         * ipa-inline.c: Update tree_pass descriptors.
4888         * tree-ssa-sink.c: Update tree_pass descriptors.
4889         * global.c: Update tree_pass descriptors.
4890         * ifcvt.c: Update tree_pass descriptors.
4891         * jump.c: Update tree_pass descriptors.
4892         * predict.c: Update tree_pass descriptors.
4893         * tree-ssa-loop.c: Update tree_pass descriptors.
4894         * recog.c: Update tree_pass descriptors.
4895         * dse.c: Update tree_pass descriptors.
4896         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
4897         * tree-eh.c: Update tree_pass descriptors.
4898         * regmove.c: Update tree_pass descriptors.
4899         * local-alloc.c
4900         * function.c: Update tree_pass descriptors.
4901         * tree-vectorizer.c: Update tree_pass descriptors.
4902         * gcse.c: Update tree_pass descriptors.
4903         * ipa-type-escape.c: Update tree_pass descriptors.
4904         * tree-if-conv.c: Update tree_pass descriptors.
4905         * init-regs.c: Update tree_pass descriptors.
4906         * ipa.c: Update tree_pass descriptors.
4907         * tree-ssa-phiopt.c: Update tree_pass descriptors.
4908         * rtl-factoring.c: Update tree_pass descriptors.
4909         * lower-subreg.c: Update tree_pass descriptors.
4910         * bt-load.c: Update tree_pass descriptors.
4911         * tree-dfa.c: Update tree_pass descriptors.
4912         * except.c: Update tree_pass descriptors.
4913         * emit-rtl.c: Update tree_pass descriptors.
4914         * cfgexpand.c: Update tree_pass descriptors.
4915         * tree-cfgcleanup.c: Update tree_pass descriptors.
4916         * cfgcleanup.c: Update tree_pass descriptors.
4917         * tree-ssa-pre.c: Update tree_pass descriptors.
4918         * tree-sra.c: Update tree_pass descriptors.
4919         * tree-mudflap.c: Update tree_pass descriptors.
4920         * tree-ssa-copy.c: Update tree_pass descriptors.
4921         * cfglayout.c: Update tree_pass descriptors.
4922         * tree-ssa-forwprop.c: Update tree_pass descriptors.
4923         * tree-ssa-dce.c: Update tree_pass descriptors.
4924         * tree-ssa.c: Update tree_pass descriptors.
4925         * regclass.c: Update tree_pass descriptors.
4926         * integrate.c: Update tree_pass descriptors.
4927         * tree-optimize.c: Update tree_pass descriptors.
4928         * tree-ssa-phiprop.c: Update tree_pass descriptors.
4929         * tree-object-size.c: Update tree_pass descriptors.
4930         * combine.c: Update tree_pass descriptors.
4931         * tree-outof-ssa.c: Update tree_pass descriptors.
4932         * bb-reorder.c: Update tree_pass descriptors.
4933         * stack-ptr-mod.c: Update tree_pass descriptors.
4934         * var-tracking.c: Update tree_pass descriptors.
4935         * tree-profile.c: Update tree_pass descriptors.
4936         * tree-vect-generic.c: Update tree_pass descriptors.
4937         * reg-stack.c: Update tree_pass descriptors.
4938         * sched-rgn.c: Update tree_pass descriptors.
4939         * tree-ssa-structalias.c: Update tree_pass descriptors.
4940         * tree-cfg.c: Update tree_pass descriptors.
4941         * passes.c (current_pass): Update declaration.
4942         (finish_optimization_passes): Update.
4943         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
4944         (register_one_dump_file, register_dump_files_1, next_pass_1):
4945         Update arguments.
4946         (init_optimization_passes): Update handling of new types.
4947         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
4948         * ipa-struct-reorg.c: Update tree_pass descriptors.
4949         * tree-ssa-reassoc.c: Update tree_pass descriptors.
4950         * combine-stack-adj.c: Update tree_pass descriptors.
4951         * cfgrtl.c: Update tree_pass descriptors.
4952         * dce.c: Update tree_pass descriptors.
4953         * tree-ssanames.c: Update tree_pass descriptors.
4954
4955 2008-03-19  Richard Guenther  <rguenther@suse.de>
4956
4957         PR middle-end/35609
4958         * tree-ssa.c (walk_data): New structure.
4959         (warn_uninitialized_var): If not always_executed warn with "maybe"
4960         instead of "is".
4961         (execute_early_warn_uninitialized): Compute post-dominators.
4962         Initialize always_executed before processing each basic block.
4963
4964 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
4965
4966         PR target/35504
4967         * config/i386/i386.c (x86_this_parameter): Calculate correct location
4968         of "this" pointer when "regparm = N" or "fastcall" is in effect.
4969
4970 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4971
4972         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
4973
4974 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
4975
4976         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
4977         is true.
4978         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
4979         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
4980         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
4981         target after ignore has been set, and move there also the commputation
4982         of subtarget and original_target.
4983         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4984         (LANG_HOOKS_INITIALIZER): Remove it.
4985         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
4986
4987 2008-03-18  Richard Guenther  <rguenther@suse.de>
4988
4989         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
4990         found an expression with constants, note that in the VN for the lhs.
4991         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
4992         fold them to constants if possible.  Run cleanup_cfg if done so.
4993         (execute_pre): Return todo.
4994         (do_pre): Likewise.
4995         (execute_fre): Likewise.
4996         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
4997         of constants.
4998         (get_prop_source_stmt): Look through pointer conversions.
4999
5000 2008-03-18  Jan Hubicka  <jh@suse.cz>
5001
5002         * tree-pretty-print.c: Include predict.h.
5003         (dump_generic_node): Dump predictor.
5004         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5005         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5006         * gimple-low.c (lower_stmt): Likewise.
5007         * expr.c (expand_expr_real): Likewise.
5008         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5009         them.
5010         (build_predict_expr, build_predict_expr): New.
5011         * predict.h (predictor_name, build_predict_expr): Update.
5012         * c-typeck.c (c_finish_bc_stmt): Add prediction.
5013         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5014         * predict.def (PRED_CONTINUE): Update hitrate.
5015         * tree.def (PREDICT_EXPR): Define.
5016         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5017         do not handle BIND_EXPR.
5018         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5019         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5020         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5021         operands.
5022
5023 2008-03-18  Michael Matz  <matz@suse.de>
5024
5025         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5026
5027 2008-03-18  Richard Guenther  <rguenther@suse.de>
5028
5029         * tree-gimple.h (is_gimple_invariant_address): Declare.
5030         (is_gimple_constant): Likewise.
5031         * tree-gimple.c (is_gimple_constant): New function.
5032         (is_gimple_invariant_address): Likewise.
5033         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5034         and is_gimple_invariant_address.
5035         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5036         previous change.
5037         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5038         an addressable base.
5039
5040 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5041
5042         PR middle-end/35611
5043         * gimplify.c (gimplify_expr): Gimplify second operand of
5044         OMP_ATOMIC_LOAD.
5045
5046 2008-03-17  Richard Guenther  <rguenther@suse.de>
5047
5048         PR tree-optimization/19637
5049         * fold-const.c (fold_unary): Remove restrictions of removing
5050         intermediate pointer-conversions (P2)(P1)P0.
5051         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5052         conversion to void pointer.
5053         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5054
5055 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
5056
5057         PR debug/31510
5058         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5059         emulated thread local variables.
5060
5061 2008-03-16  Richard Guenther  <rguenther@suse.de>
5062
5063         PR middle-end/35607
5064         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5065         expand TREE_INVARIANT operations that are not gimple invariant.
5066
5067 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
5068
5069         * doc/extend.texi (Alignment): Say that the ABI controls
5070         the __alignof__ for non-strict-alignment targets rather
5071         than being a recommendation.
5072
5073 2008-03-15  Paul Brook  <paul@codesourcery.com>
5074
5075         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5076         annotations.
5077         (arm_output_fn_unwind): Mark functions that can not be unwound.
5078
5079 2008-03-15  Paul Brook  <paul@codesourcery.com>
5080
5081         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5082         extension instructions.
5083
5084 2008-03-15  Richard Guenther  <rguenther@suse.de>
5085
5086         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5087         and fold constant aggregate refs.
5088         (fold_const_aggregate_ref): Handle string constants
5089         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
5090         (evaluate_stmt): Simplify now that ccp_fold folds constant
5091         aggregate refs.
5092
5093 2008-03-15  Paul Brook  <paul@codesourcery.com>
5094
5095         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5096         (extzv): Use gen_extzv_t2.
5097         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5098
5099 2008-03-15  Richard Guenther  <rguenther@suse.de>
5100
5101         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5102         (fold_const_aggregate_ref): Likewise.
5103         (get_value): Return NULL if we don't have any values.
5104         (ccp_finalize): Set const_val to NULL after freeing it.
5105         * tree-flow.h (get_symbol_constant_value): Declare.
5106         (fold_const_aggregate_ref): Likewise.
5107         * tree-ssa-sccvn.c (try_to_simplify): Use them.
5108
5109 2008-03-15  Richard Guenther  <rguenther@suse.de>
5110
5111         PR middle-end/35593
5112         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5113         to not produce negative array indices if not allowed.  Add
5114         parameter to indicate that.
5115         (maybe_fold_offset_to_component_ref): Allow negative array
5116         indices only for the first member of a structure.
5117         (maybe_fold_offset_to_reference): Allow negative array indices.
5118         (maybe_fold_stmt_addition): Likewise.
5119
5120 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
5121             Anatoly Sokolov <aesok@post.ru>
5122
5123         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5124         (avr_arch): Add ARCH_AVR6.
5125         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5126         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
5127         instead of fixed value 2.
5128         (print_operand_address): Use gs() asm specifier instead of pm().
5129         (avr_assemble_integer): (Ditto.).
5130         (avr_output_addr_vec_elt): (Ditto.).
5131         (print_operand): Handle "!" code.
5132         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
5133         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5134         (AVR_HAVE_EIJMP_EICALL): Define.
5135         (AVR_3_BYTE_PC): Redefine.
5136         (AVR_2_BYTE_PC): (Ditto.).
5137         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5138         (LINK_SPEC): Add atmega2560 and atmega2561.
5139         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
5140         (crtm2561.o).
5141         * config/avr/avr.md (call_insn): Use eicall instead of icall 
5142         for 3 byte PC devices.
5143         (call_value_insn): (Ditto.).
5144         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5145         (indirect_jump): Use only for for 2 byte PC devices.
5146         (*tablejump): (Ditto.).
5147         (*indirect_jump_avr6): Add insn.
5148         (*tablejump_rjmp): Don't use for 3 byte PC devices.
5149         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
5150         instead of ijmp for 3 byte PC devices.
5151         (__tablejump2__): (Ditto.).
5152         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5153         (MULITLIB_DIRNAMES): (Ditto.). 
5154         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5155
5156 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
5157
5158         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5159         "sse2_umulsidi3".  Use V1DI mode for operand 0.
5160         ("mmx_psadbw"): Use V1DI mode for operand 0.
5161         * config/i386/i386-modes.def (V1SI): New vector mode.
5162         * config/i386/i386.c (struct builtin_description)
5163         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5164         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5165         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5166         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5167         v1di_ftype_v8qi_v8qi type.
5168         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5169
5170         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5171         __builtin_ia32_pmuludq]: Fix the mode of return value.
5172
5173 2008-03-15  Richard Guenther  <rguenther@suse.de>
5174
5175         PR middle-end/35595
5176         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5177         being a PHI_NODE.
5178
5179 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
5180         
5181         * doc/invoke.texi (Option Summary, Xtensa Options): Document
5182         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5183         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5184         unless TARGET_SERIALIZE_VOLATILE is enabled.
5185         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5186         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5187         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5188
5189 2008-03-14  Richard Guenther  <rguenther@suse.de>
5190
5191         PR tree-optimization/34172
5192         * tree-flow.h (refs_may_alias_p): Declare.
5193         (get_single_def_stmt): Likewise.
5194         (get_single_def_stmt_from_phi): Likewise.
5195         (get_single_def_stmt_with_phi): Likewise.
5196         * tree-dfa.c (refs_may_alias_p): New function.
5197         (get_single_def_stmt): Likewise.
5198         (get_single_def_stmt_from_phi): Likewise.
5199         (get_single_def_stmt_with_phi): Likewise.
5200         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5201         (vn_reference_lookup_1): New helper function.
5202         (vn_reference_lookup): Walk the virtual use-def chain to
5203         continue searching for a match if the def does not alias the
5204         reference we are looking for.
5205
5206 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
5207
5208         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
5209         archive and Perzl.  Update The Written Word listing.
5210
5211 2008-03-14  Richard Guenther  <rguenther@suse.de>
5212
5213         PR tree-optimization/34043
5214         PR tree-optimization/33989
5215         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5216         when doing FRE.
5217         (bitmap_find_leader): Use extra argument to verify dominance
5218         relationship inside a basic-block.
5219         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5220         (find_leader_in_sets): Adjust.
5221         (create_component_ref_by_pieces): Take extra argument for
5222         dominance check, handle lookup failures.
5223         (find_or_generate_expression): Likewise.
5224         (create_expression_by_pieces): Likewise.
5225         (insert_into_preds_of_block): Adjust.
5226         (create_value_expr_from): If asked for, verify all operands
5227         are in the blocks AVAIL_OUT set.
5228         (make_values_for_stmt): Check for SSA_NAMEs that are life
5229         over an abnormal edge.
5230         (compute_avail): Remove such check.
5231         (do_SCCVN_insertion): New function.
5232         (eliminate): If we do not find a leader suitable for replacement
5233         insert a replacement expression from SCCVN if available.
5234         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5235         (struct vn_ssa_aux): Add needs_insertion flag.
5236         * tree-ssa-sccvn.c (may_insert): New global flag.
5237         (copy_reference_ops_from_ref): Value-number union member access
5238         based on its size, not type and member if insertion is allowed.
5239         (visit_reference_op_load): For a weak match from union type
5240         punning lookup a view-converted value and insert a SSA_NAME
5241         for that value if that is not found.
5242         (visit_use): Make dumps shorter.  Do not disallow value numbering
5243         SSA_NAMEs that are life over an abnormal edge to constants.
5244         (free_scc_vn): Release inserted SSA_NAMEs.
5245         (run_scc_vn): New flag to specify whether insertion is allowed.
5246         Process SSA_NAMEs in forward order.
5247         * tree-ssa-loop-im.c (for_each_index): Handle invariant
5248         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5249         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5250         pointer type to/from integral types that do not change the
5251         precision to regular conversions.
5252
5253 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5254
5255         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5256         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5257         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5258         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5259         input arguments and the mode of return value.  Built-in functions
5260         that operate on whole 64-bit MMX register now use V1DI mode.
5261
5262 2008-03-13  Alon Dayan  <alond@il.ibm.com>
5263             Olga Golovanevsky  <olga@il.ibm.com>
5264
5265         PR tree-optimization/35041
5266         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5267         to locate the right position in a statement.
5268
5269 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5270
5271         PR target/34000
5272         PR target/35553
5273         * config/i386/xmmintrin.h:  Change all static inline functions to
5274         extern inline and add __gnu_inline__ attribute.
5275         * config/i386/bmintrin.h: Ditto.
5276         * config/i386/smmintrin.h: Ditto.
5277         * config/i386/tmmintrin.h: Ditto.
5278         * config/i386/mmintrin-common.h: Ditto.
5279         * config/i386/ammintrin.h: Ditto.
5280         * config/i386/emmintrin.h: Ditto.
5281         * config/i386/pmmintrin.h: Ditto.
5282         * config/i386/mmintrin.h: Ditto.
5283         * config/i386/mm3dnow.h: Ditto.
5284
5285 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
5286
5287         PR middle-end/35185
5288         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5289         (lower_omp_2): New function.
5290         (lower_omp_1, lower_omp): Rewritten.
5291
5292 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
5293
5294         PR 35054
5295         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5296         with the phrase "Microsoft Windows compilers".
5297         (Push/Pop Macro Pragmas): New subsection. Document
5298         #pragma push_macro and pragma pop_macro.
5299
5300 2008-03-12  Paul Brook  <paul@codesourcery.com>
5301
5302         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
5303
5304 2008-03-12  Paul Brook  <paul@codesourcery.com>
5305
5306         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
5307         (thumb2_alusi3_short): Exclude PLUS and MINUS.
5308         (thumb2_addsi_shortim): Rename ...
5309         (thumb2_addsi_short): ... to this.  Allow register operands.
5310         (thumb2_subsi_short): New pattern.
5311         (thumb2_one_cmplsi2_short,
5312         thumb2_negsi2_short): New patterns and peepholes.
5313
5314 2008-03-12  Paul Brook  <paul@codesourcery.com>
5315
5316         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
5317
5318 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
5319
5320         * config/i386/i386.md (int_cond): New code iterator.
5321         (fp_cond): Ditto.
5322         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
5323         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
5324         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
5325         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
5326         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
5327         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
5328         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
5329         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
5330
5331 2008-03-12  Paul Brook  <paul@codesourcery.com>
5332
5333         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
5334         instead of {arm,thumb}_compute_save_reg_mask.
5335         (output_return_instruction): Ditto.
5336         (thumb_unexpanded_epilogue): Ditto.
5337         (thumb1_expand_prologue): Ditto.
5338         (thumb1_output_function_prologue): Ditto.
5339         (arm_set_return_address): Ditto.
5340         (thumb_set_return_address): Ditto.
5341         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
5342         regs to achieve stack alignment.
5343         (thumb1_compute_save_reg_mask): Fix compiler warning.
5344         (arm_output_epilogue): Use offsets->saved_regs_mask.
5345         Adjust stack pointer by poping call clobered registers.
5346         (arm_expand_prologue): Use offsets->saved_regs_mask.
5347         Adjust stack pointer by pushing extra registers.
5348         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
5349
5350 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
5351
5352         PR tree-opt/35422
5353         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
5354         conversion to the operands of a multiplication.
5355
5356 2008-03-12  Richard Guenther  <rguenther@suse.de>
5357
5358         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
5359         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
5360         * timevar.def (TV_TREE_PHIPROP): Add.
5361         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
5362         pass description.  Use TV_TREE_PHIPROP.
5363         * tree-ssa-forwprop.c: Remove phiprop code.
5364
5365 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
5366
5367         PR middle-end/35549
5368         * omp-low.c (maybe_lookup_decl): Constify first argument.
5369         (use_pointer_for_field): Change last argument from bool to
5370         omp_context *.  Disallow shared copy-in/out in nested
5371         parallel if decl is shared in outer parallel too.
5372         (build_outer_var_ref, scan_sharing_clauses,
5373         lower_rec_input_clauses, lower_copyprivate_clauses,
5374         lower_send_clauses, lower_send_shared_vars): Adjust callers.
5375
5376 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
5377             Ira Rosen  <irar@il.ibm.com>
5378
5379         * tree-vectorizer.c (free_stmt_vec_info): New function.
5380         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
5381         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
5382         * tree-vectorizer.h (free_stmt_vec_info): Declare.
5383         * tree-vect-transform.c (vectorizable_conversion): Free
5384         vec_oprnds0 if it was allocated.
5385         (vect_permute_store_chain): Remove unused VECs.
5386         (vectorizable_store): Free VECs that are allocated in the..
5387         function.
5388         (vect_transform_strided_load, vectorizable_load): Likewise.
5389         (vect_remove_stores): Simplify the code.
5390         (vect_transform_loop): Move code to vect_remove_stores().
5391         Call vect_remove_stores() and free_stmt_vec_info().
5392
5393 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5394
5395         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
5396         TARGET_HPUX.  Revise comment.
5397         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
5398         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
5399         Use sr4 variant of `be' instruction when not generating PIC code.
5400         (attr_length_call): Adjust for above change.
5401
5402 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5403
5404         * ipa-reference.c (static_execute): Remove module_statics_const and
5405         associated setting code.
5406
5407 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5408
5409         PR target/35540
5410         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
5411         predicate for operand 1.
5412         (paritysi2_cmp): Use register_operand predicate for operand 2.
5413         Use earlyclobber modifier for operand 1.  Remove support for
5414         memory operands.
5415         (paritydi2_cmp): Use register_operand predicate for operand 3.
5416         Use earlyclobber modifier for operand 1.  Remove support for
5417         memory operands.
5418
5419 2008-03-11  Paul Brook  <paul@codesourcery.com>
5420             Vladimir Prus  <vladimir@codesourcery.com>
5421
5422         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
5423         (arm_compute_save_reg0_reg12_mask): Always
5424         check if register 11 must be saved.  Always safe hard frame pointer
5425         when frame_pointer_needeed.
5426         (arm_compute_save_reg_mask): Save IP and PC
5427         only with apcs frames.
5428         (arm_output_epilogue): Adjust Thumb2 codepath to
5429         be also invoked and work for ARM non-apcs frames.
5430         (arm_expand_prologue): Don't bother saving IP
5431         for non-apcs frame, since it's not clobbered by
5432         prologue code.  Implement non-apcs frame
5433         layout.
5434
5435 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5436
5437         PR rtl-optimization/35281
5438         * expr.c (convert_move): Use a new pseudo for the intermediate
5439         from_mode->word_mode result.
5440
5441 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5442
5443         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
5444         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
5445         * toplev.c (compile_file): Don't call it.
5446
5447 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5448
5449         PR middle-end/35526
5450         * expr.c (store_expr): Call emit_block_move if the mode
5451         of "temp" RTX is BLKmode.
5452
5453 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5454             Richard Guenther  <rguenther@suse.de>
5455
5456         PR tree-optimization/31358
5457         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
5458         the step with a NULL_TREE.
5459         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
5460         to sizetype if type is a pointer type.
5461         (add_candidate_1): Don't convert the base and step to
5462         the generic type if the orginal type is a pointer type.
5463         (add_iv_value_candidates): Use sizetype for the step
5464         if type is a pointer type.
5465         (cand_value_at): Likewise.
5466         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5467         for pointer types.
5468         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
5469         Don't convert the tem affine to the type.
5470         (add_elt_to_tree): Use sizetype for the step if a pointer.
5471         Use POINTER_PLUS_EXPR for pointers.
5472         (aff_combination_to_tree): Use sizetype for the step if a
5473         pointer.
5474
5475 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
5476
5477         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5478         Remove commutativity hint.
5479
5480 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
5481
5482         PR c/35438
5483         PR c/35439
5484         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
5485         errorneous type.  Check that v is a VAR_DECL.
5486
5487         PR middle-end/35099
5488         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
5489
5490 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
5491
5492         PR tree-optimization/35494
5493         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
5494         may be overriden at link and run time.
5495
5496 2008-03-10  Richard Guenther  <rguenther@suse.de>
5497
5498         PR tree-optimization/34677
5499         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
5500         (poolify_tree): Likewise.
5501         (modify_expr_template): Likewise.
5502         (poolify_modify_stmt): Likewise.
5503         (insert_fake_stores): Handle all component-ref style stores
5504         in addition to INDIRECT_REF.  Also handle complex types.
5505         Do not poolify the inserted load.
5506         (realify_fake_stores): Do not rebuild the tree but only
5507         make it a SSA_NAME copy.
5508         (init_pre): Remove initialzation of modify_expr_template.
5509         Do not allocate modify_expr_node_pool.
5510         (fini_pre): Do not free modify_expr_node_pool.
5511
5512 2008-03-10  Paul Brook  <paul@codesourcery.com>
5513
5514         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
5515         to avoid conflicts.
5516
5517 2008-03-10  Paul Brook  <paul@codesourcery.com>
5518             Mark Shinwell  <shinwell@codesourcery.com>
5519
5520         * config/arm/cortex-r4.md: New.
5521         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
5522         insn attributes.
5523         * config/arm/arm.md: Include cortex-r4.md.
5524         (insn): Add smmls, sdiv and udiv values.
5525         (generic_sched): Don't use generic scheduling for Cortex-R4.
5526         (arm_issue_rate): New function.
5527         (TARGET_SCHED_ISSUE_RATE): Define.
5528
5529 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
5530
5531         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
5532
5533 2008-03-10  Richard Guenther  <rguenther@suse.de>
5534
5535         * tree-ssa-pre.c (get_sccvn_value): Simplify.
5536         (compute_avail): Do not add stmt uses to AVAIL_OUT.
5537
5538 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
5539
5540         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
5541         Set default to true.
5542
5543 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5544
5545         * c.opt (Wsynth): Deprecate.
5546         * doc/invoke.texi (Option Summary, Warning Options): Document
5547         -Wno-format-contains-nul.
5548
5549 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
5550
5551         PR target/35496
5552         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
5553         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
5554
5555 2008-03-09  Ira Rosen  <irar@il.ibm.com>
5556
5557         * config/rs6000/rs6000.c (builtin_description): Rename vector
5558         left shift operations.
5559         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
5560         (altivec_vsl<VI_char>): Rename to ...
5561         (ashl<mode>3): ... new name.
5562         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
5563         gen_ashlv4si3.
5564         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
5565
5566 2008-03-08  Richard Guenther  <rguenther@suse.de>
5567
5568         * coverage.h (tree_coverage_counter_addr): Declare.
5569         * coverage.c (tree_coverage_counter_addr): New function.
5570         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
5571         before using again.
5572         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
5573         (tree_gen_one_value_profiler): Likewise.
5574         (tree_gen_ic_profiler): Likewise.
5575         (tree_gen_average_profiler): Likewise.
5576         (tree_gen_ior_profiler): Likewise.
5577
5578 2008-03-08  Richard Guenther  <rguenther@suse.de>
5579
5580         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
5581         (vn_binary_op_insert): Likewise.
5582         (vn_unary_op_lookup): Likewise.
5583         (vn_unary_op_insert): Likewise.
5584         (vn_nary_op_lookup): Declare.
5585         (vn_nary_op_insert): Likewise.
5586         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
5587         and binary hashes, use a single obstack for unary_op_pool
5588         and binary_op_pool.
5589         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
5590         a single struct vn_nary_op_s.  Store tree code length and
5591         a variable number of operands.
5592         (struct vn_reference_op_struct): Remove unused op2.
5593         (vn_reference_op_eq): Do not compare op2.
5594         (vn_reference_op_compute_hash): Do not compute hash of op2.
5595         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
5596         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
5597         with vn_nary_op_compute_hash.
5598         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
5599         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
5600         vn_nary_op_lookup.
5601         (vn_unary_op_insert, vn_binary_op_insert): Replace with
5602         vn_nary_op_insert.
5603         (visit_unary_op): Call nary functions.
5604         (visit_binary_op): Likewise.
5605         (process_scc): Adjust for struct vn_tables_s changes.
5606         (allocate_vn_table): Likewise.
5607         (free_vn_table): Likewise.
5608         * tree-vn.c (vn_add): Call nary functions.
5609         (vn_lookup): Likewise.
5610
5611 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
5612
5613         PR target/35498
5614         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
5615         wdst back after sync_compare_and_swapqhi_internal.
5616
5617 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
5618
5619         PR target/22152
5620         * config/i386/i386-modes.def (V1DI): New vector mode.
5621         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
5622         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
5623         (MMXMODE248): Ditto.
5624         (MMXMODE): Add V1DI mode.
5625         (mmxvecsize): Change DI mode to V1DI mode.
5626         ("mov<mode>): Use MMXMODEI8 mode iterator.
5627         ("*mov<mode>_internal_rex64"): Ditto.
5628         ("*mov<mode>_internal"): Ditto.
5629         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
5630         ("mmx_sub<mode>3"): Ditto.
5631         ("mmx_adddi3"): Remove insn pattern.
5632         ("mmx_subdi3"): Ditto.
5633         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
5634         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
5635         ("mmx_ashl<mode>3"): Ditto.
5636         ("mmx_lshrdi3"): Remove insn pattern.
5637         ("mmx_ashldi3"): Ditto.
5638         * config/i386/i386.c (classify_argument): Handle V1DImode.
5639         (function_arg_advance_32): Ditto.
5640         (function_arg_32): Ditto.
5641         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
5642         mmx_addv1di3 insn pattern.
5643         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
5644         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
5645         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
5646         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
5647         Remove definitions of built-in functions.
5648         (V1DI_type_node): New node.
5649         (v1di_ftype_v1di_int): Ditto.
5650         (v1di_ftype_v1di_v1di): Ditto.
5651         (v2si_ftype_v2si_si): Ditto.
5652         (v4hi_ftype_v4hi_di): Remove node.
5653         (v2si_ftype_v2si_di): Ditto.
5654         (ix86_init_mmx_sse_builtins): Handle V1DImode.
5655         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
5656         Redefine builtins using def_builtin_const with *_ftype_*_int node.
5657         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
5658         Add new builtins using def_builtin_const.
5659         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
5660         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
5661         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
5662         * config/i386/mmintrin.h (__v1di): New typedef.
5663         (_mm_add_si64): Cast arguments to __v1di type.
5664         (_mm_sub_si64): Ditto.
5665         (_mm_sll_pi16): Cast __count to __v4hi type.
5666         (_mm_sll_pi32): Cast __count to __v2si type.
5667         (_mm_sll_si64): Cast arguments to __v1di type.
5668         (_mm_srl_pi16): Cast __count to __v4hi type.
5669         (_mm_srl_pi32): Cast __count to __v2si type.
5670         (_mm_srl_si64): Cast arguments to __v1di type.
5671         (_mm_sra_pi16): Cast __count to __v4hi type.
5672         (_mm_sra_pi32): Cast __count to __v2si type.
5673         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
5674         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
5675         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
5676         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
5677         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
5678         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
5679         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
5680         (_mm_srai_pi32): Use __builtin_ia32_psradi.
5681         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
5682         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5683         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5684         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
5685
5686 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
5687
5688         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
5689
5690 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
5691
5692         PR target/35373
5693         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
5694         reg+const addressing for Altivec modes.  Don't generate reg+reg
5695         addressing for TFmode or TDmode quantities.
5696
5697 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
5698
5699         * c-common.c (vector_types_convertible_p): Call langhook
5700         instead of comptypes.
5701
5702 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5703
5704         PR tree-opt/35402
5705         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
5706         integral and scalar float variables which have a
5707         NULL DECL_INITIAL.
5708
5709 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
5710
5711         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
5712         dwarf_register_span hook when emitting unwind information for
5713         register-to-memory saves.
5714         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
5715         (rs6000_frame_related): Remove call to spe_synthesize_frame.
5716
5717 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
5718
5719         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
5720         for the same VAR_DECL.
5721
5722 2008-03-06  Tom Tromey  <tromey@redhat.com>
5723
5724         * treelang: Delete.
5725         * doc/standards.texi (Standards): Don't mention treelang.
5726         * doc/invoke.texi (Overall Options): Don't mention treelang.
5727         * doc/install.texi (Prerequisites): Don't mention bison or
5728         treelang.
5729         (Configuration): Don't mention treelang.
5730         (Building): Likewise.
5731         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
5732
5733 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
5734
5735         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
5736         word-extractions out of a multi-word object.
5737
5738 2008-03-06  Richard Guenther  <rguenther@suse.de>
5739
5740         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
5741         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
5742         result type and precision.
5743         * expr.c (get_inner_reference): Set unsignedp based on the result
5744         type of BIT_FIELD_REF.
5745         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
5746         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
5747         (try_instantiate_multiple_fields): Likewise.  Use the correct type
5748         for BIT_FIELD_REF.
5749         (sra_build_assignment): Likewise.
5750         (sra_build_elt_assignment): Likewise.
5751         (sra_explode_bitfield_assignment): Likewise.
5752         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
5753         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
5754         set BIT_FIELD_REF_UNSIGNED.
5755         (vectorizable_load): Likewise.
5756
5757 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5758
5759         * cse.c (cse_extended_basic_block): Invalidate artificial defs
5760         at bb start.
5761
5762 2008-03-06  Richard Guenther  <rguenther@suse.de>
5763
5764         * alias.c (struct alias_set_entry): Move has_zero_child field
5765         to pack with alias_set.
5766
5767 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5768
5769         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5770         32bit host.
5771
5772 2008-03-05  Ian Lance Taylor  <iant@google.com>
5773
5774         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
5775
5776 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
5777
5778         * fwprop.c (update_df): Support width and offset parameters of
5779         df_ref_create.
5780         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
5781         global_conflicts): Change DF_REF_EXTRACT to either
5782         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
5783         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5784         * df-scan.c (df_ref_record, df_defs_record,
5785         df_ref_create_structure, df_def_record_1, df_uses_record,
5786         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
5787         df_bb_refs_collect, df_entry_block_defs_collect,
5788         df_exit_block_uses_collect): Support new width and offset fields.
5789         (ref_extract_pool): New storage pool.
5790         (df_free_ref): New function.
5791         (df_reg_chain_unlink, df_free_collection_rec,
5792         df_sort_and_compress_refs): Call df_free_ref.
5793         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
5794         of df_ref_extract.
5795         (df_ref_create_structure): Allocate df_ref_extract if offset and
5796         width fields are used.
5797         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
5798         (df_uses_record): Get offset and width from ZERO_EXTRACT 
5799         and SIGN_EXTRACT.
5800         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
5801         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
5802         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5803         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
5804         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
5805         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
5806         (df_ref_extract): New structure.
5807         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
5808         (df_ref_create): Add width and offset parameters.
5809         
5810 2008-03-05  Richard Guenther  <rguenther@suse.de>
5811
5812         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5813         Use ranges_overlap_p.
5814         (offset_overlaps_with_access): Rename
5815         to ranges_overlap_p and move ...
5816         * tree-flow-inline.h (ranges_overlap_p): ... here.
5817
5818         * tree.h (get_inner_reference, handled_component_p): Update
5819         comments.
5820
5821         * tree.h (record_component_aliases, get_alias_set,
5822         alias_sets_conflict_p, alias_sets_must_conflict_p,
5823         objects_must_conflict_p): Move declarations ...
5824         * alias.h (record_component_aliases, get_alias_set,
5825         alias_sets_conflict_p, alias_sets_must_conflict_p,
5826         objects_must_conflict_p): ... here.
5827         Include coretypes.h.
5828         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
5829
5830 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
5831
5832         * cfg.c: Include tree-flow.h.
5833         (remove_edge_raw): Call redirect_edge_var_map_clear.
5834         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
5835         * tree-flow-inline.h (redirect_edge_var_map_def): New.
5836         (redirect_edge_var_map_result): New.
5837         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
5838         PENDING_STMT use with redirect_edge_var_map_*.
5839         * tree-ssa.c (edge_var_maps): New definition.
5840         (redirect_edge_var_map_add): New.
5841         (redirect_edge_var_map_clear): New.
5842         (redirect_edge_var_map_dup): New.
5843         (redirect_edge_var_map_vector): New.
5844         (redirect_edge_var_map_destroy): New.
5845         (ssa_redirect_edge): Replace PENDING_STMT use with
5846         redirect_edge_var_map_*.
5847         (flush_pending_stmts): Same.
5848         (delete_tree_ssa): Destroy edge var map.
5849         * tree-flow.h (struct _edge_var_map): New.
5850         Define edge_var_map vector type.
5851         Declare redirect_edge_var_map_* prototypes.
5852         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
5853         * tree-cfg.c (reinstall_phi_args): Replace
5854         PENDING_STMT use with redirect_edge_var_map_*.
5855
5856 2008-03-05  Richard Guenther  <rguenther@suse.de>
5857
5858         PR tree-optimization/35472
5859         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
5860         whose single use_stmt has a overlapping set of loaded and
5861         stored symbols as that use_stmt might be a noop assignment then.
5862
5863 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
5864
5865         * gthr-rtems.h: Implement __gthread_mutex_destroy.
5866
5867 2008-03-05  Richard Guenther  <rguenther@suse.de>
5868
5869         PR c++/35336
5870         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
5871         should be constants.
5872         * tree-cfg.c (verify_expr): Verify it.
5873         * fold-const.c (fold_truthop): Remove code generating
5874         BIT_FIELD_REFs of structure bases.
5875         (fold_binary): Likewise.
5876         (fold_ternary): Position and size of BIT_FIELD_REFs are
5877         always host integers.
5878         (make_bit_field_ref): Remove.
5879         (optimize_bit_field_compare): Remove.
5880         (all_ones_mask_p): Remove.
5881
5882 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
5883
5884         PR gcc/33009
5885         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
5886         (split_block_and_df_analyze): New. Split basic block and rebuild
5887         dataflow.
5888         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
5889         SPLIT_BLOCK.
5890         (split_pattern_seq): Likewise.
5891         (erase_matching_seqs): Likewise.
5892         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
5893
5894 2008-03-04  Geoff Keating  <geoffk@apple.com>
5895
5896         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
5897         declaration and code.
5898         (tree_invalid_nonnegative_warnv_p): Likewise.
5899
5900 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5901
5902         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
5903         examples.  Truncate option-names then causing overfull hbox.
5904
5905 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5906
5907         PR target/35222
5908         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
5909         on hpux10.
5910         * configure: Rebuilt.
5911
5912 2008-03-04  Rafael Espindola  <espindola@google.com>
5913
5914         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
5915         (tree_unary_nonnegative_warnv_p): New.
5916         (tree_binary_nonnegative_warnv_p): New.
5917         (tree_single_nonnegative_warnv_p): New.
5918         (tree_invalid_nonnegative_warnv_p): New.
5919         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
5920
5921 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5922
5923         PR 28322
5924         * opts.c (handle_option): Postpone 'unknown option' errors only for
5925         warning options.
5926
5927 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5928
5929         PR target/35453
5930         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
5931         (_SIDD_XXX): This.
5932
5933 2008-03-04  Rafael Espindola  <espindola@google.com>
5934
5935         * fold-const.c (tree_unary_nonzero_warnv_p): New.
5936         (tree_binary_nonzero_warnv_p): New.
5937         (tree_single_nonzero_warnv_p): New.
5938         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
5939
5940 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
5941
5942         PR middle-end/35456
5943         * fold-const.c (fold_cond_expr_with_comparison): Prevent
5944         transformations for modes that have signed zeros.
5945         * ifcvt.c (noce_try_abs): Ditto.
5946
5947 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
5948
5949         * config/i386/i386.c (override_options): Force
5950         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
5951
5952 2008-03-04  Jan Hubicka  <jh@suse.cz>
5953
5954         PR c++/35262
5955         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
5956         in last commit.
5957
5958 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
5959
5960         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
5961         label to probe the stack.
5962
5963 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
5964
5965         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
5966         (__gthr_win32_mutex_destroy): Declare.
5967         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
5968         __gthr_win32_mutex_destroy.
5969         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
5970
5971 2008-03-03  Jan Hubicka  <jh@suse.cz>
5972
5973         PR c++/35262
5974         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
5975         aggressive on inlining cold calls.
5976
5977 2008-03-03  Richard Guenther  <rguenther@suse.de>
5978
5979         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
5980         struct copies into the expression table.
5981         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
5982         (try_to_simplify): Likewise.
5983         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
5984         integral and pointer arguments which do not change the
5985         precision to NOP_EXPRs.
5986         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
5987         VIEW_CONVERT_EXPR case.
5988
5989 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
5990
5991         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
5992         defined in a loop at depth 0 is invariant.
5993         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5994         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
5995         be called at loop depth 0.
5996
5997 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
5998
5999         PR driver/35420
6000         * gcc.c (process_command): Update copyright notice dates.
6001         * gcov.c (print_version): Likewise.
6002         * gcov-dump.c (print_version): Likewise.
6003         * mips-tfile.c (main): Likewise.
6004         * mips-tdump.c (main): Likewise.
6005
6006 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6007
6008         PR 24924
6009         * c-common.c (flag_permissive): Delete.
6010         (constant_expression_warnings): Check flags first.
6011         (constant_expression_error): New.
6012         * c-common.h (flag_permissive): Delete.
6013         (constant_expression_error): Declare.
6014         * flags.h (flag_permissive): Declare. Update description.
6015         * diagnostic.c (pedwarn): Update.
6016         (permerror): New.
6017         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6018         (permissive_error_kind): New.
6019         * toplev.c (flag_permissive): Define. Update description.
6020         * toplev.h (permissive_error_kind): Declare.
6021         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6022         (pedwarn_c90): Use pedantic_warning_kind.
6023         * c-opts.c (c_common_post_options): flag_permissive does not affect
6024         flag_pedantic_errors.
6025
6026 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
6027
6028         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6029         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6030         __absvsi2, __absvDI2): Use unsigned arithmetic.
6031
6032 2008-03-02  Andi Kleen  <ak@suse.de>
6033             Richard Guenther  <rguenther@suse.de>
6034
6035         * struct-equiv.c: Remove file.
6036         * cfg_cleanup.c (condjump_equiv_p): Remove.
6037         * Makefile.in (OBJS-common): Remove struct-equiv.o.
6038         (struct-equiv.o): Remove rule.
6039         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6040         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
6041         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6042
6043 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6044
6045         * ifcvt.c (noce_process_if_block): Try to handle only the then
6046         block if the else block exists but isn't suitable.
6047
6048 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6049
6050         PR gcc/35063
6051         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6052         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6053         regression from previous patch.
6054
6055 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6056
6057         PR gcc/35063
6058         * gthr.h: Add __gthread_mutex_destroy as a function that must be
6059         implemented.
6060         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6061         * gthr-single.h (__gthread_mutex_destroy): Likewise.
6062         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6063         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6064         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6065         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6066         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6067         (__gthread_mutex_destroy_function): Rename to
6068         __gthread_mutex_destroy.
6069         * gthr-dce.h (__gthread_mutex_destroy): Call
6070         pthread_mutex_destroy.
6071         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6072         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6073         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6074
6075 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6076
6077         * df-scan.c (df_ref_chain_change_bb): Simplify.
6078         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
6079         set_block_for_insn if there's any change.
6080         * df.h ((df_insn_change_bb): Fix prototype.
6081         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6082         df_insn_change_bb, don't call set_block_for_insn.
6083         * emit-rtl.c (reorder_insns): Likewise.
6084         * haifa-sched.c (move_insn): Likewise.
6085
6086 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6087
6088         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6089
6090 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6091
6092         * tree-flow-inline.h (next_readonly_imm_use): Return
6093         NULL_USE_OPERAND_P after the end.
6094
6095 2008-03-01  Richard Guenther  <rguenther@suse.de>
6096
6097         PR tree-optimization/35411
6098         * tree-sra.c (sra_build_assignment): Split conversion to
6099         final type to a separate statement if we are not assigning
6100         to a register.
6101
6102 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
6103
6104         * fold-const.c (fold_convertible_p): Correct the logic to follow
6105         that in fold_convert().
6106
6107 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
6108
6109         PR c++/35315
6110         * tree-inline.c (build_duplicate_type): When we make a
6111         duplicate type, make it unique in the canonical types system.
6112
6113 2008-02-29  Tom Tromey  <tromey@redhat.com>
6114
6115         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6116         input_file_stack_history, input_file_stack_restored): Remove.
6117         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6118         * input.h (struct file_stack): Remove.
6119         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6120         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6121         Likewise.
6122         * diagnostic.h (struct diagnostic_context) <last_module>: Change
6123         type.
6124         (diagnostic_last_module_changed): Add 'map' argument.
6125         (diagnostic_set_last_function): Likewise.
6126         * diagnostic.c (undiagnostic_report_current_module): Iterate using
6127         line map, not input_file_stack.
6128         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6129
6130 2008-02-29  Paul Brook  <paul@codesourcery.com>
6131
6132         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6133
6134 2008-02-29  Paul Brook  <paul@codesourcery.com>
6135
6136         * config/arm/ieee754-df.S (muldf3): Use RET macros.
6137
6138 2008-02-29  Richard Guenther  <rguenther@suse.de>
6139
6140         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6141         vn_lookup_or_add.
6142         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6143         value for comparing for a store match.
6144         (simplify_unary_expression): Do nothing for SSA_NAMEs.
6145         (try_to_simplify): Do not do a full-blown reference lookup.
6146
6147 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6148
6149         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6150         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6151
6152         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6153
6154 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
6155
6156         * tree-loop-linear.c (try_interchange_loops): Compare memory access
6157         strides against cache sizes.
6158
6159 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6160
6161         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6162         constant to fpul.
6163
6164 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
6165
6166         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6167         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6168         is smaller than the original promoted value.
6169         (simplify_subreg): If OP is a SUBREG, try to preserve its
6170         SUBREG_PROMOTED_VAR_P information.
6171
6172 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
6173
6174         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6175         (VN_INFO_GET): Allocate new objects on the obstack.
6176         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
6177         for rpo_numbers_temp, for consistency.
6178         (free_scc_vn): Free the obstack.
6179
6180 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
6181
6182         * doc/invoke.texi: Document -ftree-loop-distribution.
6183         * tree-loop-distribution.c: New.
6184         * tree-pass.h (pass_loop_distribution): New.
6185         * graphds.h (struct graph): Add htab_t indices.
6186         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6187         * tree-vectorizer.c (rename_variables_in_loop): Extern.
6188         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6189         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6190         * tree-data-ref.c (debug_data_dependence_relations): New.
6191         (dump_data_dependence_relation): Also print data references.
6192         (free_data_ref): Extern.
6193         (same_access_functions): Moved...
6194         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6195         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6196         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6197         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6198         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6199         (stmts_from_loop): Skip LABEL_EXPR.
6200         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6201         New.
6202         (build_rdg): Initialize rdg->indices htab.
6203         (free_rdg, stores_from_loop, ref_base_address,
6204         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6205         have_similar_memory_accesses_1, ref_base_address_1,
6206         remove_similar_memory_refs): New.
6207         * tree-data-ref.h: Depend on tree-chrec.h.
6208         (debug_data_dependence_relations, free_data_ref): Declared.
6209         (same_access_functions): ... here.
6210         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6211         New.
6212         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6213         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6214         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6215         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6216         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6217         rdg_vertex_for_stmt): Declared.
6218         (struct rdg_edge): Add level.
6219         (RDGE_LEVEL): New.
6220         (free_rdg, stores_from_loop, remove_similar_memory_refs,
6221         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6222         Declared.
6223         (rdg_has_similar_memory_accesses): New.
6224         * tree-vect-analyze.c: Remove unused static decls.
6225         * lambda.h (dependence_level): New.
6226         * common.opt (ftree-loop-distribution): New.
6227         * tree-flow.h (mark_virtual_ops_in_bb, 
6228         slpeel_tree_duplicate_loop_to_edge_cfg,
6229         rename_variables_in_loop): Declared.
6230         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6231         (OBJS-common): Add tree-loop-distribution.o.
6232         (tree-loop-distribution.o): New rule.
6233         * tree-cfg.c (mark_virtual_ops_in_bb): New.
6234         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6235         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6236
6237 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
6238
6239         PR target/33963
6240         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6241         other than structures and unions.
6242
6243 2008-02-28  Richard Guenther  <rguenther@suse.de>
6244
6245         Revert:
6246         2008-02-26  Richard Guenther  <rguenther@suse.de>
6247
6248         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6249         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6250         (lookup_decl_from_uid): Declare.
6251         (remove_decl_from_map): Likewise.
6252         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6253         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6254         (decl_for_uid_map): New global hashtable mapping DECL_UID
6255         to the decl tree.
6256         (init_ttree): Allocate it.
6257         (insert_decl_to_uid_decl_map): New helper function.
6258         (make_node_stat): Insert new decls into the map.
6259         (copy_node_stat): Likewise.
6260         (lookup_decl_from_uid): New function.
6261         (remove_decl_from_map): Likewise.
6262         (print_decl_for_uid_map_statistics): New helper.
6263         (dump_tree_statistics): Call it.
6264
6265         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6266         (referenced_var_iterator): Adjust.
6267         (FOR_EACH_REFERENCED_VAR): Adjust.
6268         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6269         (num_referenced_vars): Adjust.
6270         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6271         (first_referenced_var): Remove.
6272         (end_referenced_vars_p): Likewise.
6273         (next_referenced_var): Likewise.
6274         (referenced_var_iterator_set): New helper function.
6275         * tree-dfa.c (referenced_var_lookup): Adjust.
6276         (referenced_var_check_and_insert): Likewise.
6277         (remove_referenced_var): Likewise.
6278         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6279         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6280         (verify_call_clobbering): Likewise.
6281         (verify_memory_partitions): Likewise.
6282         (init_tree_ssa): Allocate bitmap instead of hashtable for
6283         referenced_vars.
6284         (delete_tree_ssa): Adjust.
6285         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6286         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6287         (compute_tag_properties): Likewise.
6288         (set_initial_properties): Likewise.
6289         (find_partition_for): Likewise.
6290         (update_reference_counts): Likewise.
6291         (dump_may_aliases_for): Likewise.
6292         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6293         (add_call_clobber_ops): Likewise.
6294         (add_call_read_ops): Likewise.
6295         (get_asm_expr_operands): Likewise.
6296         * tree-into-ssa.c (dump_decl_set): Likewise.
6297         (update_ssa): Likewise.
6298         * tree-sra.c (scan_function): Likewise.
6299         (decide_instantiations): Likewise.
6300         (scalarize_parms): Likewise.
6301         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6302         (dsa_named_for): Likewise.
6303         * tree-ssa-structalias.c (update_alias_info): Likewise.
6304         (merge_smts_into): Likewise.
6305
6306 2008-02-27  David Daney  <ddaney@avtrex.com>
6307
6308         PR target/34409
6309         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
6310         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
6311         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
6312         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
6313         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
6314
6315 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
6316
6317         PR target/25477
6318         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
6319         (BUILT_IN_NEXTTOWARD): Remove.
6320         (BUILT_IN_NEXTTOWARDF): Ditto.
6321         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
6322         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
6323
6324 2008-02-27  Tom Tromey  <tromey@redhat.com>
6325
6326         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
6327         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
6328
6329 2008-02-27  Jan Beulich  <jbeulich@novell.com>
6330
6331         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
6332         update the respective field on newdecl.
6333
6334 2008-02-27  Revital Eres  <eres@il.ibm.com>
6335
6336         PR rtl-optimization/34999
6337         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
6338         crossing edges that ends with a call insn.
6339         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
6340         call insn and clear the EDGE_CROSSING flag of the crossing edge
6341         when fixing fallthru edges.
6342
6343 2008-02-27  Richard Guenther  <rguenther@suse.de>
6344
6345         PR middle-end/35390
6346         * fold-const.c (fold_unary): Return the correct argument,
6347         converted to the result type.
6348
6349 2008-02-27  Richard Guenther  <rguenther@suse.de>
6350
6351         PR middle-end/34971
6352         * expr.c (expand_expr_real_1): Assert on rotates that operate
6353         on partial modes.
6354         * fold-const.c (fold_binary): Use the types precision, not the
6355         bitsize of the mode if folding rotate expressions.  Build rotates
6356         only for full modes.
6357
6358 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
6359
6360         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
6361         and CPP_PRAGMA_EOL.
6362         * c-pragma.c (pragma_ns_name): New typedef.
6363         (registered_pp_pragmas): New variable.
6364         (c_pp_lookup_pragma): New function.
6365         (c_register_pragma_1): If flag_preprocess_only, do nothing
6366         for non-expanded pragmas, for expanded ones push pragma's
6367         namespace and name into registered_pp_pragmas vector.
6368         (c_invoke_pragma_handler): Register OpenMP pragmas even when
6369         flag_preprocess_only, don't register GCC pch_preprocess
6370         pragma if flag_preprocess_only.
6371         * c-opts.c (c_common_init): Call init_pragma even if
6372         flag_preprocess_only.
6373         * c-pragma.c (c_pp_lookup_pragma): New prototype.
6374         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
6375         cpp_register_pragma if flag_preprocess_only.
6376
6377 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6378
6379         PR c/28800
6380         * c-parser.c (c_parser_translation_unit): Warn for empty
6381         translation unit, not empty source file.
6382
6383 2008-02-26  Paul Brook  <paul@codesourcery.com>
6384
6385         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
6386         operand for Thumb-2.
6387         * config/arm/arm.h (reg_class): Add CORE_REGS.
6388         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
6389         (BASE_REG_CLASS): Use CORE_REGS.
6390         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
6391         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
6392         (REGNO_OK_FOR_INDEX_P): Exclude SP.
6393         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
6394         ARM_REGNO_OK_FOR_INDEX_P.
6395         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
6396         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
6397         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
6398         (ldm/stm peepholes): Ditto.
6399         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
6400         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
6401         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
6402         * config/arm/constraints.md: Enable "k" constraint on ARM.
6403
6404 2008-02-27  Ben Elliston  <bje@au.ibm.com>
6405
6406         * config/rs6000/rs6000.c: Annotate cache line size field in all
6407         instances of struct processor_costs.
6408
6409 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
6410
6411         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
6412         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
6413         jump_bypass): New counters.
6414         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
6415         * dce.c (gate_ud_dce): Same.
6416         (gate_fast_dce): Same.
6417         * dse.c (gate_dse1): New function.
6418         (gate_dse2): New function.
6419         (gate_dse): Merge results of new gate functions.
6420         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
6421         (gate_handle_jump_bypass): Add dbg_cnt.
6422         (gate_handle_gcse): Add dbg_cnt.
6423         * ifcvt.c (gate_handle_if_conversion): Same.
6424         (gate_handle_if_after_combine): Same.
6425         (gate_handle_if_after_reload): Same.
6426         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
6427
6428 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
6429
6430         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
6431         line sizes.
6432         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
6433
6434 2008-02-26  Jason Merrill  <jason@redhat.com>
6435
6436         PR c++/35315
6437         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
6438         alone if it's the naming decl for the type's main variant.
6439
6440 2008-02-26  Tom Tromey  <tromey@redhat.com>
6441
6442         * system.h (USE_MAPPED_LOCATION): Poison.
6443         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
6444         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
6445         (make_goto_expr_edges): Likewise.
6446         (remove_bb): Likewise.
6447         (execute_warn_function_return): Likewise.
6448         * basic-block.h (struct edge_def) <goto_locus>: Change type to
6449         location_t.
6450         * c-common.c (fname_decl): Remove old location code.
6451         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
6452         location code.
6453         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
6454         variant.
6455         (ASM_INPUT_SOURCE_LOCATION): Likewise.
6456         (gen_rtx_ASM_INPUT): Likewise.
6457         (gen_rtx_ASM_INPUT_loc): Likewise.
6458         (get_rtx_asm_OPERANDS): Remove.
6459         * cfglayout.c (insn_locators_alloc): Remove old location code.
6460         (set_curr_insn_source_location): Likewise.
6461         (curr_insn_locator): Likewise.
6462         * print-tree.c (print_node): Remove old location code.
6463         * tree-mudflap.c (mf_varname_tree): Remove old location code.
6464         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
6465         * cfgexpand.c (expand_gimple_cond_expr): Don't use
6466         location_from_locus.
6467         (construct_exit_block): Remove old location code.
6468         * emit-rtl.c (force_next_line_note): Remove old location code.
6469         * profile.c (branch_prob): Remove old location code.
6470         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
6471         LOC_LINE): Remove old-location variants.
6472         * langhooks.c (lhd_print_error_function): Remove old location
6473         code.
6474         * configure, config.in: Rebuilt.
6475         * configure.ac (--enable-mapped-location): Remove.
6476         * c-decl.c (c_init_decl_processing): Remove old location code.
6477         (finish_function): Likewise.
6478         * recog.c (decode_asm_operands): Remove old location code.
6479         * c-pch.c (c_common_read_pch): Remove old location code.
6480         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
6481         variants.
6482         * gimple-low.c (lower_function_body): Remove old location code.
6483         * toplev.c (unknown_location): Remove.
6484         (push_srcloc): Remove old-location variant.
6485         (process_options): Remove old location code.
6486         (lang_dependent_init): Likewise.
6487         * input.h (UNKNOWN_LOCATION): Move definition.
6488         (location_t): Undeprecate.
6489         (source_locus): Remove.
6490         (location_from_locus): Remove.
6491         (struct location_s): Remove.
6492         Remove all old-location code.
6493         (input_line, input_filename): Remove.
6494         * final.c (final_scan_insn): Remove old location code.
6495         * diagnostic.c (diagnostic_build_prefix): Remove
6496         USE_MAPPED_LOCATION test.
6497         * tree.h (gimple_stmt) <locus>: Now a location_t.
6498         (tree_exp) <locus>: Likewise.
6499         (DECL_IS_BUILTIN): Remove old-location variant.
6500         (annotate_with_file_line, annotate_with_locus): Likewise.
6501         (expr_locus, set_expr_locus): Update.
6502         * tree.c (build1_stat): Remove old location code.
6503         (last_annotated_node): Remove.
6504         (annotate_with_file_line): Remove old-location variant.
6505         (annotate_with_locus): Likewise.
6506         (expr_location): Remove old location code.
6507         (set_expr_location): Likewise.
6508         (expr_has_location): Likewise.
6509         (expr_locus): Likewise.
6510         (set_expr_locus): Likewise.
6511         (expr_filename): Don't use location_from_locus.
6512         (expr_lineno): Likewise.
6513         * rtl-error.c (location_for_asm): Remove old location code.
6514         * c-lex.c (cb_line_change): Remove old location code.
6515         (fe_file_change): Likewise.
6516         (cb_def_pragma): Likewise.
6517         (c_lex_with_flags): Likewise.
6518         * gengtype.c (do_typedef): Don't special-case location types.
6519         (define_location_structures): Remove.
6520         (main): Don't call define_location_structures.
6521         * tree-pretty-print.c (dump_implicit_edges): Remove old location
6522         code.
6523
6524 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6525
6526         PR 26264
6527         * builtins.def (BUILT_IN_STDARG_START): Remove.
6528         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
6529         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6530         * tree-inline.c (inline_forbidden_p_1): Likewise.
6531         
6532 2008-02-26  Richard Guenther  <rguenther@suse.de>
6533
6534         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6535         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6536         (lookup_decl_from_uid): Declare.
6537         (remove_decl_from_map): Likewise.
6538         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6539         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6540         (decl_for_uid_map): New global hashtable mapping DECL_UID
6541         to the decl tree.
6542         (init_ttree): Allocate it.
6543         (insert_decl_to_uid_decl_map): New helper function.
6544         (make_node_stat): Insert new decls into the map.
6545         (copy_node_stat): Likewise.
6546         (lookup_decl_from_uid): New function.
6547         (remove_decl_from_map): Likewise.
6548         (print_decl_for_uid_map_statistics): New helper.
6549         (dump_tree_statistics): Call it.
6550
6551         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6552         (referenced_var_iterator): Adjust.
6553         (FOR_EACH_REFERENCED_VAR): Adjust.
6554         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6555         (num_referenced_vars): Adjust.
6556         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6557         (first_referenced_var): Remove.
6558         (end_referenced_vars_p): Likewise.
6559         (next_referenced_var): Likewise.
6560         (referenced_var_iterator_set): New helper function.
6561         * tree-dfa.c (referenced_var_lookup): Adjust.
6562         (referenced_var_check_and_insert): Likewise.
6563         (remove_referenced_var): Likewise.
6564         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6565         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6566         (verify_call_clobbering): Likewise.
6567         (verify_memory_partitions): Likewise.
6568         (init_tree_ssa): Allocate bitmap instead of hashtable for
6569         referenced_vars.
6570         (delete_tree_ssa): Adjust.
6571         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6572         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6573         (compute_tag_properties): Likewise.
6574         (set_initial_properties): Likewise.
6575         (find_partition_for): Likewise.
6576         (update_reference_counts): Likewise.
6577         (dump_may_aliases_for): Likewise.
6578         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6579         (add_call_clobber_ops): Likewise.
6580         (add_call_read_ops): Likewise.
6581         (get_asm_expr_operands): Likewise.
6582         * tree-into-ssa.c (dump_decl_set): Likewise.
6583         (update_ssa): Likewise.
6584         * tree-sra.c (scan_function): Likewise.
6585         (decide_instantiations): Likewise.
6586         (scalarize_parms): Likewise.
6587         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6588         (dsa_named_for): Likewise.
6589         * tree-ssa-structalias.c (update_alias_info): Likewise.
6590         (merge_smts_into): Likewise.
6591
6592 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6593
6594         PR 34351
6595         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
6596         * c-opts.c (c_common_handle_option): Wall enables
6597         Wvolatile-register-var.
6598         * common.opt: Move Wvolatile-register-var to...
6599         * c.opt: ...here.
6600         
6601 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6602
6603         * common.opt (Wlarger-than=): New.
6604         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
6605         -Wlarger-than=.
6606         * opts.c (common_handle_option): Handle -Wlarger-than=.
6607         * optc-gen.awk: Likewise.
6608         * opth-gen.awk: Likewise.
6609         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
6610         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6611         
6612 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6613
6614         * c-common.c (match_case_to_enum_1): Add appropriate
6615         OPT_W* parameter to warning.
6616         (c_do_switch_warnings): Likewise.
6617         * c-typeck.c (warning_init): Add one more parameter following
6618         'warning' function.
6619         (push_init_level): Update call to warning_init.
6620         (pop_init_level): Likewise.
6621         (add_pending_init): Likewise.
6622         (output_init_element: Likewise.
6623
6624 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6625
6626         PR 28322
6627         * toplev.c (toplev_main): If there are warnings or error, print
6628         errors for ignored options.
6629         * opts.c (ignored_options): New static variable.
6630         (postpone_unknown_option_error): New.
6631         (print_ignored_options): New.
6632         (handle_option): Postpone errors for unknown -Wno-* options.
6633         * opts.h (print_ignored_options): Declare.
6634         
6635 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6636
6637         * config/mips/mips.md (loadgp_blockage, blockage): Change type
6638         to "ghost".
6639
6640 2008-02-25  Richard Guenther  <rguenther@suse.de>
6641
6642         Revert:
6643         2008-02-25  Richard Guenther  <rguenther@suse.de>
6644
6645         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6646         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6647         (lookup_decl_from_uid): Declare.
6648         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6649         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6650         (decl_for_uid_map): New global hashtable mapping DECL_UID
6651         to the decl tree.
6652         (init_ttree): Allocate it.
6653         (insert_decl_to_uid_decl_map): New helper function.
6654         (make_node_stat): Insert new decls into the map.
6655         (copy_node_stat): Likewise.
6656         (lookup_decl_from_uid): New function.
6657         (print_decl_for_uid_map_statistics): New helper.
6658         (dump_tree_statistics): Call it.
6659
6660         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6661         (referenced_var_iterator): Adjust.
6662         (FOR_EACH_REFERENCED_VAR): Adjust.
6663         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6664         (num_referenced_vars): Adjust.
6665         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6666         (first_referenced_var): Remove.
6667         (end_referenced_vars_p): Likewise.
6668         (next_referenced_var): Likewise.
6669         (referenced_var_iterator_set): New helper function.
6670         * tree-dfa.c (referenced_var_lookup): Adjust.
6671         (referenced_var_check_and_insert): Likewise.
6672         (remove_referenced_var): Likewise.
6673         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6674         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6675         (verify_call_clobbering): Likewise.
6676         (verify_memory_partitions): Likewise.
6677         (init_tree_ssa): Allocate bitmap instead of hashtable for
6678         referenced_vars.
6679         (delete_tree_ssa): Adjust.
6680         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6681         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6682         (compute_tag_properties): Likewise.
6683         (set_initial_properties): Likewise.
6684         (find_partition_for): Likewise.
6685         (update_reference_counts): Likewise.
6686         (dump_may_aliases_for): Likewise.
6687         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6688         (add_call_clobber_ops): Likewise.
6689         (add_call_read_ops): Likewise.
6690         (get_asm_expr_operands): Likewise.
6691         * tree-into-ssa.c (dump_decl_set): Likewise.
6692         (update_ssa): Likewise.
6693         * tree-sra.c (scan_function): Likewise.
6694         (decide_instantiations): Likewise.
6695         (scalarize_parms): Likewise.
6696         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6697         (dsa_named_for): Likewise.
6698         * tree-ssa-structalias.c (update_alias_info): Likewise.
6699         (merge_smts_into): Likewise.
6700
6701 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
6702
6703         PR fortran/29549
6704         * doc/invoke.texi (-fcx-limited-range): Document new option.
6705         * toplev.c (process_options): Handle -fcx-fortran-rules.
6706         * common.opt: Add documentation for -fcx-fortran-rules.
6707
6708 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
6709
6710         PR c/35162
6711         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
6712         actual behaviour and C99.
6713         
6714 2008-02-26  Ben Elliston  <bje@au.ibm.com>
6715
6716         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
6717         (ASM_CPU_POWER6_SPEC): Likewise.
6718         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
6719         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
6720         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
6721
6722 2008-02-25  Richard Guenther  <rguenther@suse.de>
6723
6724         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6725         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6726         (lookup_decl_from_uid): Declare.
6727         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6728         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6729         (decl_for_uid_map): New global hashtable mapping DECL_UID
6730         to the decl tree.
6731         (init_ttree): Allocate it.
6732         (insert_decl_to_uid_decl_map): New helper function.
6733         (make_node_stat): Insert new decls into the map.
6734         (copy_node_stat): Likewise.
6735         (lookup_decl_from_uid): New function.
6736         (print_decl_for_uid_map_statistics): New helper.
6737         (dump_tree_statistics): Call it.
6738
6739         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6740         (referenced_var_iterator): Adjust.
6741         (FOR_EACH_REFERENCED_VAR): Adjust.
6742         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6743         (num_referenced_vars): Adjust.
6744         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6745         (first_referenced_var): Remove.
6746         (end_referenced_vars_p): Likewise.
6747         (next_referenced_var): Likewise.
6748         (referenced_var_iterator_set): New helper function.
6749         * tree-dfa.c (referenced_var_lookup): Adjust.
6750         (referenced_var_check_and_insert): Likewise.
6751         (remove_referenced_var): Likewise.
6752         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6753         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6754         (verify_call_clobbering): Likewise.
6755         (verify_memory_partitions): Likewise.
6756         (init_tree_ssa): Allocate bitmap instead of hashtable for
6757         referenced_vars.
6758         (delete_tree_ssa): Adjust.
6759         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6760         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6761         (compute_tag_properties): Likewise.
6762         (set_initial_properties): Likewise.
6763         (find_partition_for): Likewise.
6764         (update_reference_counts): Likewise.
6765         (dump_may_aliases_for): Likewise.
6766         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6767         (add_call_clobber_ops): Likewise.
6768         (add_call_read_ops): Likewise.
6769         (get_asm_expr_operands): Likewise.
6770         * tree-into-ssa.c (dump_decl_set): Likewise.
6771         (update_ssa): Likewise.
6772         * tree-sra.c (scan_function): Likewise.
6773         (decide_instantiations): Likewise.
6774         (scalarize_parms): Likewise.
6775         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6776         (dsa_named_for): Likewise.
6777         * tree-ssa-structalias.c (update_alias_info): Likewise.
6778         (merge_smts_into): Likewise.
6779
6780 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
6781
6782         PR target/35258
6783         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
6784         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
6785         * alias.h (nonoverlapping_memrefs_p): Likewise.
6786
6787 2008-02-25  Jan Beulich  <jbeulich@novell.com>
6788
6789         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
6790         * config/i386/netware-libgcc.exp: Add __bswap?i2,
6791         __emultls_get_address, __emultls_register_common,
6792         __floatundi?f, and _Unwind_GetIPInfo.
6793         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
6794         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
6795         (gen_regparm_prefix): Likewise.
6796         (i386_nlm_encode_section_info): Sync with
6797         config/i386/winnt.c:i386_pe_encode_section_info().
6798         (i386_nlm_maybe_mangle_decl_assembler_name): New.
6799         i386_nlm_mangle_decl_assembler_name): New.
6800         (netware_override_options): New.
6801         * config/i386/netware.h (netware_override_options): Declare.
6802         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
6803         (i386_nlm_mangle_decl_assembler_name): Declare.
6804         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
6805
6806 2008-02-25  Ben Elliston  <bje@au.ibm.com>
6807
6808         PR other/32948
6809         * c-decl.c (grokdeclarator): Remove unused local variables
6810         `typedef_type' and `type_as_written'.
6811         * bb-reorder.c
6812         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
6813         unused local variable `has_hot_blocks'.
6814         (fix_crossing_conditional_branches): Remove unused local variable
6815         `prev_bb'.
6816         
6817 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
6818
6819         PR middle-end/19984
6820         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
6821         using DEF_C99_BUILTIN.
6822         (BUILT_IN_NANF): Ditto.
6823         (BUILT_IN_NANL): Ditto.
6824
6825 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
6826             Revital Eres  <eres@il.ibm.com>
6827
6828         * modulo-sched.c (calculate_must_precede_follow): Address TODO
6829         regarding the order of two dependent insns in the same row.
6830
6831 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6832
6833         * stor-layout.c (layout_decl): Do not bump the alignment of a
6834         bit-field to more than byte alignment if it is packed.
6835
6836 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
6837
6838         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
6839         e300c2 and e300c3.
6840
6841 2008-02-24  Diego Novillo  <dnovillo@google.com>
6842
6843         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
6844
6845         PR 33738
6846         * tree-vrp.c (vrp_evaluate_conditional): With
6847         -Wtype-limits, emit a warning when comparing against a
6848         constant outside the natural range of OP0's type.
6849         * c.opt (Wtype-limits): Move ...
6850         * common.opt (Wtype-limits): ... here.
6851
6852 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
6853
6854         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
6855         * config/rs6000/e300c2c3.md: New file.
6856         * config/rs6000/rs6000.c (processor_costs): Add new costs for
6857         e300c2 and e300c3.
6858         (rs6000_override_options): Add e300c2 and e300c3 cases to
6859         processor_target_table. Do not allow usage of Altivec or Spe
6860         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
6861         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
6862         * config/rs6000/rs6000.h (processor_type): Add
6863         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
6864         (ASM_CPU_SPEC): Add e300c2 and e300c3.
6865         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
6866         and ppce300c3. Include e300c2c3.md.
6867
6868 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
6869
6870         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
6871         instead of TARGET_STRICT_ALIGN.
6872
6873 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * explow.c (memory_address): Assert that the generated address is
6876         valid.
6877
6878 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
6879
6880         PR target/25477
6881         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
6882         * config/darwin-ppc-ldouble-patch.def: New file.
6883         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
6884         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
6885         SUBTARGET_INIT_BUILTINS if defined.
6886         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
6887         New functions.
6888
6889 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6890
6891         PR rtl-opt/33512
6892         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
6893         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
6894
6895 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6896
6897         PR pch/35027
6898         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
6899         file" warning condtional on -Winvalid-PCH.
6900
6901 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
6902
6903         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
6904
6905 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
6906
6907         PR target/22076
6908         PR target/34256 
6909         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
6910         prevent reload from using MMX registers.
6911         (*mov<mode>_internal): Ditto.
6912         (*movv2sf_internal_rex64): Ditto.
6913         (*movv2sf_internal): Ditto.
6914
6915 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6916
6917         PR documentation/31569
6918         * doc/install.texi2html: Use makeinfo --no-number-sections.
6919
6920 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
6921
6922         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
6923         ensure that we can address an entire entity > 8 bytes.  Don't
6924         generate reg+reg addressing for such data.
6925
6926 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
6927
6928         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
6929         strings when optimizing for size, unless the target cares about
6930         alignment.
6931
6932 2008-02-22  Tom Tromey  <tromey@redhat.com>
6933
6934         * regclass.c (current_pass): Remove declaration.
6935
6936 2008-02-22  Anatoly Sokolov <aesok@post.ru>
6937
6938         * config/avr/libgcc.S (__RAMPZ__): Define.
6939         (__do_copy_data): Add for devices with 128KB code memory.
6940
6941 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
6942
6943         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6944         Use spe_abi.
6945         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6946
6947 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
6948
6949         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
6950         GENNONACR_REGS.
6951
6952 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6953
6954         PR c/19999
6955         * c-typeck.c (build_binary_op): Warn about floating point
6956         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
6957
6958 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
6959
6960         PR target/34526
6961         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
6962         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
6963         add vrsave.
6964         (rs6000_override_options): Set altivec_abi as default, not override,
6965         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
6966         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
6967         is used; use new member spe_abi.
6968         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
6969         spe_abi and altivec_abi.
6970
6971 2008-02-22  Tomas Bily  <tbily@suse.cz>
6972
6973         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
6974
6975 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6976
6977         PR bootstrap/35273
6978         * config.build (build_file_translate): Set to `CMD //c' only if
6979         it works.
6980         * Makefile.in (build_file_translate): Improve comment.
6981
6982 2008-02-21  Jan Hubicka  <jh@suse.cz>
6983
6984         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
6985         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
6986         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
6987
6988 2008-02-21  Michael Matz  <matz@suse.de>
6989
6990         PR target/35264
6991         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
6992
6993 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
6994
6995         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
6996         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
6997         as insn constraint.
6998         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
6999         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7000         SSE_VEC_FLOAT_MODE_P as insn constraint.
7001         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7002         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7003         sse4a_movntdf using MODEF mode iterator.
7004         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7005         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7006         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7007         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7008         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7009         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7010         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7011
7012 2008-02-21  Richard Guenther  <rguenther@suse.de>
7013
7014         * tree.def (PAREN_EXPR): New tree code.
7015         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7016         and PAREN_EXPR.
7017         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7018         * expr.c (expand_expr_real_1): Likewise.
7019         * tree-inline.c (estimate_num_insns_1): Likewise.
7020         * tree-complex.c (expand_complex_move): Likewise.
7021         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7022         as plain x.
7023
7024 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7025
7026         PR target/35225
7027         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7028
7029 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7030
7031         PR target/35190
7032         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7033
7034         * config/sh/sh.c (find_barrier): Don't go past
7035         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7036
7037 2008-02-20  DJ Delorie  <dj@redhat.com>
7038
7039         * config/h8300/h8300.md (insv): Force source operand to be a register.
7040
7041         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7042         as a jump, not as a plain insn.
7043         
7044 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
7045
7046         * doc/invoke.texi (Warning Options): Add new option
7047         -Wframe-larger-than=.
7048         (-Wframe-larger-than): Document.
7049
7050         * flags.h (warn_frame_larger_than, frame_larger_than_size):
7051         Add declarations for new option variables.
7052
7053         * final.c (final_start_function): Check the frame size
7054         before emission and issue a Wframe-larger-than warning.
7055
7056         * opts.c (warn_frame_larger_than, frame_larger_than_size):
7057         Add definitions for new option variables.
7058         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7059
7060         * common.opt (Wframe-larger-than=): New option.
7061
7062 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7063
7064         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7065         (<sse>_div<mode>3): Ditto.
7066         (<sse>_vmdiv<mode>3): Ditto.
7067         (<sse>_vmsqrt<mode>2): Ditto.
7068         (*smax<mode>3): Ditto.
7069         (sse5_frcz<mode>2): Ditto.
7070         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
7071         as insn constraint.
7072
7073 2008-02-20  Richard Guenther  <rguenther@suse.de>
7074
7075         PR middle-end/35265
7076         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7077         be happy with INTEGRAL_TYPE_P.
7078
7079 2008-02-20  Richard Guenther  <rguenther@suse.de>
7080
7081         * fold-const.c (split_tree): Associate floatig-point expressions
7082         if flag_associative_math is set.
7083
7084 2008-02-20  Richard Guenther  <rguenther@suse.de>
7085
7086         * tree.h (fold_real_zero_addition_p): Declare.
7087         * fold-const.c (fold_real_zero_addition_p): Export.
7088         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7089         floating-point operations with zero and one.
7090
7091 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
7092
7093         * doc/install.texi: Correct references to CFLAGS, replacing them
7094         with BOOT_CFLAGS.  Document flags used during bootstrap for
7095         target libraries.
7096                                 
7097 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7098
7099         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7100         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7101         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7102         insn constraint.
7103         (smin<mode>3): Ditto from similar patterns.
7104         (smax<mode>3): Ditto.
7105         (*ieee_smin<mode>3): Ditto.
7106         (*ieee_smax<mode>3): Ditto.
7107         * config/i386/sse.md (sse): New mode attribute.
7108         (mov<mode>): Macroize expander from movv4sf and movv2df using
7109         SSEMODEF2P mode iterator.
7110         (<sse>_movnt<mode>): Ditto from similar patterns. Use
7111         SSE_VEC_FLOAT_MODE_P as insn constraint.
7112         (storent<mode>): Ditto.
7113         (storent<mode>): Macroize expander from storentsf and storentdf using
7114         MODEF mode iterator.
7115         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7116         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7117         (abs<mode>2): Ditto from similar patterns.
7118         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7119         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7120         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7121         (<sse>_vmsqrt<mode>2): Ditto.
7122         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7123         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7124         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7125         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7126         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7127         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7128         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7129         insn constraint.
7130         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7131         iterator and SSE_FLOAT_MODE_P as insn constraint.
7132         (<sse>_ucomi): Ditto from similar patterns.
7133         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7134         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7135         SSE_VEC_FLOAT_MODE_P as insn constraint.
7136         (vcond<mode>): Ditto from similar patterns.
7137         (and<mode>3, *and<mode>3): Ditto.
7138         (<sse>_nand<mode>3): Ditto.
7139         (ior<mode>3, *ior<mode>3): Ditto.
7140         (xor<mode>3, *xor<mode>3): Ditto.
7141         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7142         iterator and SSE_FLOAT_MODE_P as insn constraint.
7143         (*nand<mode>3): Ditto from similar patterns.
7144         (*ior<mode>3): Ditto.
7145         (*xor<mode>3): Ditto.
7146
7147 2008-02-20  Ira Rosen  <irar@il.ibm.com>
7148
7149         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7150         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7151         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7152
7153 2008-02-19  Jan Hubicka  <jh@suse.cz>
7154
7155         * predict.c (tree_bb_level_predictions): Remove variable next
7156         mistakely introduced by previous commit.
7157
7158 2008-02-19  Jan Hubicka  <jh@suse.cz>
7159
7160         * predict.c (predict_paths_leading_to): Rewrite.
7161         (predict_paths_for_bb): New.
7162         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7163
7164 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7165
7166         PR bootstrap/35218
7167         * Makefile.in (build_file_translate): New.
7168         (gcc-vers.texi): Use it for translating $(abs_srcdir).
7169         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7170         * configure.ac (build_file_translate): Substitute it.
7171         * configure: Regenerate.
7172
7173 2008-02-19  Jan Hubicka  <jh@suse.cz>
7174
7175         PR rtl-optimization/34408
7176         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7177         invalid sharing.
7178
7179 2008-02-19  Jan Hubicka  <jh@suse.cz>
7180
7181         PR middle-end/28779
7182         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7183         call_expr.
7184
7185 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
7186
7187         PR Ada/35186
7188         * config/i386/i386-modes.def: Revert the last DI alignment
7189         change until Ada people can look into it.
7190
7191 2008-02-19  Nick Clifton  <nickc@redhat.com>
7192
7193         * opts.c (print_specific_help): Fix typo in --help text.
7194
7195 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
7196
7197         PR target/35239
7198         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7199         32-bit inline asm without asm alternatives for host GCC < 3.0.
7200
7201 2008-02-19  Richard Guenther  <rguenther@suse.de>
7202
7203         PR tree-optimization/34989
7204         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7205         Allow propagation to INDIRECT_REF if we can simplify only.
7206
7207 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7208
7209         * c-common.c (warn_for_collisions_1): Use appropriate option when
7210         warning.
7211
7212 2008-02-19  Nick Clifton  <nickc@redhat.com>
7213
7214         PR other/31349
7215         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7216         (handle_options): Fix indentation.
7217         (print_filtered_help): If no language-specific options were
7218         displayed tell the user how to list all the options supported by
7219         the language's front-end.
7220         (print_specific_help): Fix indentation and remove duplicate line.
7221         (common_handle_option): Handle the -v option.
7222         For --help enable the display of undocumented options if the -v
7223         switch has been included on the command line.
7224         For --help= check for overlaps in the arguments between the option
7225         classes and the language names and issue a warning when they
7226         cannot be disambiguated.
7227         * c.opt (v): Pass on to the common option handler.
7228
7229 2008-02-19  Revital Eres  <eres@il.ibm.com> 
7230
7231         * modulo-sched.c (sms_schedule): Change dump message when
7232         create_ddg function fails.
7233         (try_scheduling_node_in_cycle): Rename row to cycle.
7234         (print_partial_schedule): Rename CYCLE to ROW.
7235
7236 2008-02-19  Christian Bruel  <christian.bruel@st.com>
7237             Zdenek Dvorak  <ook@ucw.cz>
7238
7239         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7240
7241 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7242
7243         PR target/33555
7244         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7245         (*x86_movdicc_0_m1_se): Ditto.
7246
7247 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7248
7249         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7250         (CMPtype): Define as __gcc_CMPtype.
7251         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7252         (CMPtype): Define as __gcc_CMPtype.
7253
7254 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
7255
7256         Support valgrind 3.3 for --enable-checking=valgrind.
7257         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7258         here.
7259         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7260         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7261         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7262         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7263         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7264         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7265         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7266         respectively.
7267         * ggc-zone.c: Similar.
7268         * ggc-page.c: Similar.
7269
7270 2008-02-19  Paul Brook  <paul@codesourcery.com>
7271
7272         PR target/35071
7273         * config/arm/ieee754-df.S: Fix do_it typo.
7274         * config/arm/ieee754-sf.S: Fix do_it typo.
7275
7276 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7277
7278         PR target/35189
7279         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7280         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7281         (OPTION_MASK_ISA_SSE_SET): Likewise.
7282         (OPTION_MASK_ISA_SSE2_SET): Likewise.
7283         (OPTION_MASK_ISA_SSE3_SET): Likewise.
7284         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7285         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7286         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7287         (OPTION_MASK_ISA_SSE4_SET): Likewise.
7288         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7289         (OPTION_MASK_ISA_SSE5_SET): Likewise.
7290         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7291         (OPTION_MASK_ISA_MMX_UNSET): Updated.
7292         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7293         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7294         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7295         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7296         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7297         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7298         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7299         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
7300         (OPTION_MASK_ISA_SSE4): Removed.
7301         (ix86_handle_option): Turn on bits in ix86_isa_flags and
7302         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
7303         (override_options): Don't turn on implied SSE/MMX bits in
7304         ix86_isa_flags.
7305
7306 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7307
7308         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7309         32bit host.
7310
7311 2008-02-18  Joey Ye  <joey.ye@intel.com>
7312
7313         PR middle-end/34921
7314         * tree-nested.c (insert_field_into_struct): Set type alignment
7315         to field alignment if the former is less than the latter.
7316
7317 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
7318
7319         * BASE-VER: Set to 4.4.0.
7320
7321 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7322
7323         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
7324         * doc/cfg.texi: Likewise.
7325         * doc/extend.texi: Likewise.
7326         * doc/gty.texi: Likewise.
7327         * doc/invoke.texi: Likewise.
7328         * doc/loop.texi: Likewise.
7329         * doc/md.texi: Likewise.
7330         * doc/passes.texi: Likewise.
7331         * doc/rtl.texi: Likewise.
7332         * doc/sourcebuild.texi: Likewise.
7333         * doc/tm.texi: Likewise.
7334         * doc/tree-ssa.texi: Likewise.
7335
7336 2008-02-17  Richard Guenther  <rguenther@suse.de>
7337
7338         PR middle-end/35227
7339         * tree-complex.c (init_parameter_lattice_values): Handle parameters
7340         without default definition.
7341
7342 2008-02-17  Richard Guenther  <rguenther@suse.de>
7343
7344         PR tree-optimization/35231
7345         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
7346         if A | B != 1.
7347
7348 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
7349
7350         Revert:
7351         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
7352         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7353         libgcc_cmp_return mode.
7354
7355 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7356
7357         PR c/28368
7358         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
7359
7360 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
7361
7362         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
7363         multilibs.
7364
7365 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7366
7367         * doc/c-tree.texi: Use `@.' where appropriate.
7368         * doc/extend.texi: Likewise.
7369         * doc/install.texi: Likewise.
7370         * doc/invoke.texi: Likewise.
7371         * doc/loop.texi: Likewise.
7372         * doc/makefile.texi: Likewise.
7373         * doc/md.texi: Likewise.
7374         * doc/passes.texi: Likewise.
7375         * doc/standards.texi: Likewise.
7376         * doc/tm.texi: Likewise.
7377
7378 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7379
7380         PR middle-end/35196
7381         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
7382         in entry_bb.
7383         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
7384         rather than in entry_bb.
7385
7386 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7387
7388         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7389         libgcc_cmp_return mode.
7390
7391 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7392
7393         PR middle-end/35130
7394         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
7395         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
7396
7397 2008-02-15  Richard Guenther  <rguenther@suse.de>
7398             Zdenek Dvorak  <ook@ucw.cz>
7399
7400         PR tree-optimization/35164
7401         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
7402         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
7403         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7404         Only propagate addresses which do not have abnormal SSA_NAMEs
7405         in their operands.
7406
7407 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
7408
7409         PR target/35088
7410         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
7411
7412 2008-02-15  Jan Hubicka  <jh@suse.cz>
7413
7414         PR middle-end/35149
7415         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
7416
7417 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7418
7419         PR middle-end/34621
7420         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
7421         when calculating alignment_pad.
7422
7423 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7424
7425         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
7426         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
7427         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
7428         and STACK_BOUNDARY define.
7429
7430 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
7431
7432         PR preprocessor/35061
7433         * c-pragma.c (handle_pragma_pop_macro): Check that
7434         pushed_macro_table has been allocated.
7435
7436 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7437
7438         PR middle-end/35136
7439         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
7440         (force_gimple_operand): Likewise.
7441         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
7442         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
7443         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
7444         (find_interesting_uses_address): Check addressability and alignment
7445         of the base expression only after substituting bases of IVs into it.
7446
7447 2008-02-14  Michael Matz  <matz@suse.de>
7448
7449         PR target/34930
7450         * function.c (instantiate_virtual_regs_in_insn): Reload address
7451         before falling back to reloading the whole operand.
7452
7453 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7454
7455         * config/s390/s390.c (s390_mainpool_start): Emit the pool
7456         before the first section switch note.
7457
7458 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7459
7460         * doc/bugreport.texi: Update copyright years.
7461         * doc/c-tree.texi: Likewise.
7462         * doc/cfg.texi: Likewise.
7463         * doc/cpp.texi: Likewise.
7464         * doc/cppinternals.texi: Likewise.
7465         * doc/fragments.texi: Likewise.
7466         * doc/frontends.texi: Likewise.
7467         * doc/gcc.texi: Likewise.
7468         * doc/gty.texi: Likewise.
7469         * doc/hostconfig.texi: Likewise.
7470         * doc/implement-c.texi: Likewise.
7471         * doc/libgcc.texi: Likewise.
7472         * doc/loop.texi: Likewise.
7473         * doc/makefile.texi: Likewise.
7474         * doc/options.texi: Likewise.
7475         * doc/passes.texi: Likewise.
7476         * doc/rtl.texi: Likewise.
7477         * doc/sourcebuild.texi: Likewise.
7478         * doc/standards.texi: Likewise.
7479         * doc/tree-ssa.texi: Likewise.
7480         * doc/trouble.texi: Likewise.
7481
7482         * doc/extend.texi: Use @: or add comma where appropriate.
7483         * doc/invoke.texi: Likewise.
7484         * doc/tm.texi: Likewise.
7485
7486 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
7487
7488         PR target/34393
7489         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
7490         to a reg.
7491
7492 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
7493
7494         * doc/md.texi (clz, ctz): Add reference.
7495         * doc/rtl.texi (clz, ctz): Likewise.
7496
7497 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7498
7499         PR other/35148
7500         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
7501         srcdir.
7502
7503 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
7504
7505         * config/s390/s390.c (struct constant_pool): New field
7506         emit_pool_after added.
7507         (s390_mainpool_start): Set the emit_pool_after flag according
7508         to the section switch notes.
7509         (s390_mainpool_finish): Consider emit_pool_after when emitting
7510         the literal pool at the end of the function.
7511         (s390_chunkify_start): Force literal pool splits at section
7512         switch notes.
7513
7514 2008-02-13  Michael Matz  <matz@suse.de>
7515
7516         PR debug/35065
7517         * var-tracking.c (clobber_variable_part): Correctly traverse the
7518         list.
7519
7520 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7521
7522         PR 29673
7523         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
7524         Add -fdump-ipa-inline.
7525         * tree-dump.c (dump_files): Remove tree-inlined dump.
7526         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
7527         
7528 2008-02-12  Richard Guenther  <rguenther@suse.de>
7529
7530         PR tree-optimization/35171
7531         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
7532         default defs.
7533
7534 2008-02-12  Richard Guenther  <rguenther@suse.de>
7535
7536         PR middle-end/35163
7537         * fold-const.c (fold_widened_comparison): Use get_unwidened in
7538         value-preserving mode.  Disallow final truncation.
7539
7540 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
7541
7542         PR middle-end/35136
7543         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
7544         code from here to...
7545         (force_gimple_operand): ...here.
7546
7547 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
7548
7549         PR c++/35144
7550         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
7551         non-compatible pointers.
7552         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
7553         different FIELD_DECLs, try harder by comparing field offsets, sizes
7554         and types.
7555
7556         PR inline-asm/35160
7557         * function.c (match_asm_constraints_1): Don't replace the same input
7558         multiple times.
7559
7560 2008-02-12  Anatoly Sokolov <aesok@post.ru>
7561
7562         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
7563         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
7564         (expand_epilogue): Restore RAMPZ register.
7565         * config/avr/avr.md (RAMPZ_ADDR): New constant.
7566
7567 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
7568
7569         * config/i386/cygwin.asm: (__alloca): Correct calling
7570         convention and alignment.
7571         (__chkstk): Force 8 byte stack alignment.
7572
7573 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
7574             Richard Guenther  <rguenther@suse.de>
7575
7576         PR tree-optimization/33992
7577         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
7578         the zero we compare against.
7579
7580 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
7581
7582         PR libfortran/35063
7583         * gthr-win32.h (__gthread_mutex_destroy_function): New function
7584         to CloseHandle after unlocking to prevent accumulation of handle
7585         count.
7586
7587 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7588
7589         PR middle_end/34150
7590         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
7591         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
7592         and update LABEL_NUSES during and after reload.
7593
7594 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
7595
7596         PR middle-end/34627
7597         * combine.c (simplify_if_then_else): Make sure the comparison is
7598         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
7599
7600 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7601
7602         PR bootstrap/35051
7603         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
7604         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
7605         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
7606         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
7607         * tree.h (get_type_static_bounds): Likewise.
7608
7609 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7610
7611         * doc/invoke.texi (Option Summary, C++ Dialect Options)
7612         (Objective-C and Objective-C++ Dialect Options, Warning Options):
7613         Make -Wfoo language annotations match what the compiler outputs.
7614
7615 2008-02-08  Sa Liu  <saliu@de.ibm.com>
7616
7617         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
7618         intrinsics spu_convts, spu_convtu, spu_convtf.
7619
7620 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
7621
7622         * doc/extend.texi (Function Attributes) <noinline>: Mention
7623         asm ("") as method to keep calls.
7624
7625 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7626
7627         PR other/32754
7628         * doc/options.texi (Options): Replace references to opts.sh with
7629         optc-gen.awk.
7630         * opts-common.c: Likewise.
7631         * optc-gen.awk: Likewise.
7632         
7633 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7634
7635         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
7636
7637 2008-02-07  Richard Henderson  <rth@redhat.com>
7638
7639         PR rtl-opt/33410
7640         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
7641         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
7642         funny mode.
7643
7644 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
7645
7646         PR tree-optimization/35085
7647         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
7648         for operand entry oe2 in addition to operand entry oe3 in order to
7649         expose more opportunities for vectorizer sum reduction.
7650
7651 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7652
7653         PR other/35107
7654         * Makefile.in (LIBS): Remove $(GMPLIBS).
7655         (cc1-dummy, cc1): Add $(GMPLIBS).
7656
7657 2008-02-06  Jan Hubicka  <jh@suse.cz>
7658
7659         PR target/23322
7660         * i386.md (moddf_integer): Do not produce partial memory stalls for
7661         targets where it hurts.
7662
7663 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
7664
7665         PR target/35083
7666         * optabs.c (expand_float): Do not check for decimal modes when
7667         expanding unsigned integer through signed conversion.
7668
7669 2008-02-06  Nick Clifton  <nickc@redhat.com>
7670
7671         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
7672         inside the clobber with a match_operand and duplicated operand
7673         number in the constraint.
7674         (ineqbranchsi): Delete redundant comment.
7675
7676 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
7677
7678         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
7679         builtin_define ("__USE_INIT_FINI__").
7680         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
7681         -msx multilibs.
7682         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
7683
7684 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7685
7686         PR documentation/30330
7687         * doc/invoke.texi (C++ Dialect Options)
7688         (Objective-C and Objective-C++ Dialect Options, Warning Options):
7689         For each warning option -Wfoo that allows -Wno-foo, ensure both
7690         -Wfoo and -Wno-foo are listed in the option index.  Fix index
7691         entry of -Wswitch-default, index -Wnormalized= including the
7692         `=', and -Wlarger-than-@var{len} including @var{len}.
7693
7694 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
7695
7696         * config/i386/i386.md (floatunssisf2): Use
7697         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
7698         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
7699         Macroize expander using MODEF mode iterator.
7700
7701 2008-02-05  Diego Novillo  <dnovillo@google.com>
7702
7703         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
7704
7705         PR 33738
7706         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
7707
7708 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7709
7710         PR other/35070
7711         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
7712
7713 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
7714
7715         PR target/35084
7716         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
7717         to indicate if a message should be generated.
7718         (init_cumulative_args): Updated.
7719         (function_value_32): Likewise.
7720
7721 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
7722
7723         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
7724
7725 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
7726
7727         PR target/35083
7728         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
7729         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
7730
7731 2008-02-04  Diego Novillo  <dnovillo@google.com>
7732
7733         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
7734
7735         PR 33738
7736         * tree-vrp.c (vrp_evaluate_conditional): With
7737         -Wtype-limits, emit a warning when comparing against a
7738         constant outside the natural range of OP0's type.
7739
7740 2008-02-04  Richard Guenther  <rguenther@suse.de>
7741
7742         PR middle-end/33631
7743         * expr.c (count_type_elements): Give for unions instead of
7744         guessing.
7745
7746 2008-02-04  Richard Guenther  <rguenther@suse.de>
7747
7748         PR middle-end/35043
7749         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
7750         to TYPE_DOMAINs base type instead of using bitsizetype here.
7751
7752 2008-02-03  Jason Merrill  <jason@redhat.com>
7753
7754         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
7755
7756 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7757
7758         PR other/29972
7759         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
7760         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
7761         (RS/6000 and PowerPC Options): Fix typos and markup.
7762         * doc/passes.texi (Tree-SSA passes): Likewise.
7763
7764 2008-02-02  Michael Matz  <matz@suse.de>
7765
7766         PR target/35045
7767         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
7768         from record_last_reg_set_info.
7769         (record_last_reg_set_info): Take an RTX argument, iterate over all
7770         constituent hardregs.
7771         (record_last_set_info, record_opr_changes): Change calls to
7772         new signature or to record_last_reg_set_info_regno.
7773
7774 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
7775
7776         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
7777
7778 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
7779
7780         PR rtl-optimization/34773
7781         * reg-notes.def (EQUAL): Mention significance of combination of
7782         REG_EQUAL and REG_RETVAL.
7783         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
7784         insn that has a REG_RETVAL.
7785
7786 2008-02-01  Roger Sayle  <roger@eyesopen.com>
7787
7788         PR bootstrap/33781
7789         * configure.ac (--enable-fixed-point): Disable unless explicitly
7790         requested on IRIX.
7791         * configure: Regenerate.
7792
7793 2008-02-01  Richard Guenther  <rguenther@suse.de>
7794
7795         PR other/35042
7796         * invoke.texi (-finline-limit): Remove no longer true parts
7797         of the documentation.  Note that there is no default value.
7798
7799 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
7800             Mark Mitchell  <mark@codesourcery.com>
7801             Ben Elliston  <bje@au.ibm.com>
7802
7803         PR c/29326
7804         * doc/extend.texi (Other Builtins): Document.
7805
7806 2008-01-31  Tom Browder <tom.browder@gmail.com>
7807
7808         * doc/c-tree.texi (Types): Fix grammar.
7809         (Expression trees): Ditto.
7810         * doc/passes.texi (Tree-SSA passes): Ditto.
7811         
7812         * doc/configterms.texi (Configure Terms): Fix typo.
7813         * doc/cpp.texi (Common Predefined Macros): Ditto.
7814         * doc/md.texi (Machine Constraints): Ditto.
7815         
7816         * doc/makefile.texi (Makefile): Add comma.
7817
7818 2008-01-31  Tom Browder  <tom.browder@gmail.com>
7819             Gerald Pfeifer  <gerald@pfeifer.com>
7820         
7821         * doc/sourcebuild.texi (Front End): Remove references to CVS
7822         and CVSROOT/modules.
7823         (Texinfo Manuals): Replace reference to CVS by one to SVN.
7824         (Back End): Remove reference to CVS.
7825
7826 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
7827
7828         PR target/34900
7829         * config/mips/mips.c (gen_load_const_gp): New function, taking a
7830         comment from...
7831         (mips16_gp_pseudo_reg): ...here.
7832         * config/mips/mips.md (load_const_gp): Replace with...
7833         (load_const_gp_<mode>): ...this :P-based insn.
7834
7835 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7836
7837         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
7838         options. Minor fixes.
7839         (-std): Move reference to standards closer to where language
7840         standards are first mentioned.
7841         
7842 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
7843
7844         PR rtl-optimization/34995
7845         * reload.c (alternative_allows_const_pool_ref): Take an rtx
7846         parameter and return a bool.  If the rtx parameter is nonnull,
7847         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
7848         (find_reloads): Update call accordingly.  Pass the new operand
7849         if it needed no address reloads, otherwise pass null.
7850
7851 2008-01-30  Richard Henderson  <rth@redhat.com>
7852
7853         PR c/34993
7854         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
7855         for unbounded arrays.
7856
7857 2008-01-30  Silvius Rus  <rus@google.com>
7858
7859         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
7860
7861 2008-01-30  Jan Hubicka  <jh@suse.cz>
7862
7863         PR target/34982
7864         * i386.c (init_cumulative_args): Use real function declaration when
7865         calling locally.
7866
7867 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7868
7869         PR rtl-optimization/34998
7870         * global.c (build_insn_chain): Treat non-subreg_lowpart
7871         SUBREGs of pseudos as clobbering all the words covered by the
7872         SUBREG, not just all the bytes.
7873         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
7874         original df_ref rather than an extract parameter.
7875         (global_conflicts): Update call accordingly.
7876
7877 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
7878
7879         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
7880         the overflow check to make it easier to read.
7881         (__fixtfdi): Change the type of the ll member in union
7882         long_double to UDItype_x.
7883
7884 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
7885
7886         PR middle-end/34969
7887         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
7888         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
7889         * tree-inline.c (fold_marked_statements): Call
7890         cgraph_update_edges_for_call_stmt if folding a call statement.
7891         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
7892         debug_generic_stmt calls, reset it back afterwards.
7893
7894         PR c/35017
7895         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
7896         static decls.
7897         * c-typeck.c (build_external_ref): Don't pedwarn about
7898         static vars in current function's scope.
7899
7900 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
7901
7902         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
7903
7904 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
7905
7906         PR c/35002
7907         * ipa-struct-reorg.c: Fix spelling.
7908         * params.def: Ditto.
7909
7910 2008-01-29  Richard Guenther  <rguenther@suse.de>
7911
7912         PR middle-end/35006
7913         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
7914         field.
7915         * tree-inline.c (remap_type): Increment remapping_type_depth
7916         around remapping types.
7917         (copy_body_r): Only add referenced variables if they are referenced
7918         from code, not types.
7919
7920 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
7921
7922         PR c++/34055
7923         PR c++/34103
7924         PR c++/34219
7925         PR c++/34606
7926         PR c++/34753
7927         PR c++/34754
7928         PR c++/34755
7929         PR c++/34919
7930         PR c++/34961
7931         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
7932         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
7933
7934 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
7935
7936         PR target/34412
7937         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
7938         pointer for tiny stack.
7939
7940 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
7941
7942         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
7943
7944 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
7945
7946         * config/vx-common.h: Fix typo in comment.
7947
7948 2008-01-28  Ian Lance Taylor  <iant@google.com>
7949
7950         PR c++/34862
7951         PR c++/33407
7952         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7953         coalesce pointers if they have different DECL_NO_TBAA_P values.
7954         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
7955         between variables with different DECL_NO_TBAA_P values.
7956
7957 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
7958
7959         PR 31535
7960         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
7961         are not legitimate small data references on SPE targets.
7962
7963 2008-01-28  David Daney  <ddaney@avtrex.com>
7964
7965         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
7966
7967 2008-01-28  David Daney  <ddaney@avtrex.com>
7968
7969         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
7970
7971 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
7972
7973         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
7974         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
7975         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
7976         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
7977         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7978         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
7979         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
7980         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
7981
7982 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
7983
7984         * basic-block.h (condjump_equiv_p): Fix comment.
7985
7986 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
7987
7988         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
7989         print_generic_stmt_indented): Fix comment.
7990
7991 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
7992
7993         * configure.ac (__stack_chk_fail): Add detecion for availability
7994         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
7995         * configure: Regenerate.
7996
7997 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
7998
7999         PR middle-end/34688
8000         * final.c (output_addr_const): Handle TRUNCATE.
8001
8002 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
8003
8004         PR target/34711
8005         * tree-ssa-loop-ivopts.c (comp_cost): New type.
8006         (zero_cost, infinite_cost): New constants.
8007         (struct cost_pair): Change type of cost to comp_cost.
8008         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
8009         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
8010         New functions.
8011         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
8012         split_address_cost, ptr_difference_cost, difference_cost,
8013         get_computation_cost_at, get_computation_cost,
8014         determine_use_iv_cost_generic, determine_use_iv_cost_address,
8015         determine_use_iv_cost_condition, determine_use_iv_costs,
8016         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
8017         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
8018         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
8019         Change type of cost to comp_cost.
8020         (determine_iv_cost): Increase cost of non-original ivs, instead
8021         of decreasing the cost of original ones.
8022         (get_address_cost): Indicate the complexity of the addressing mode 
8023         in comp_cost.
8024         (try_add_cand_for): Prefer using ivs not specific to some object.
8025         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
8026
8027 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
8028             Janis Johnson  <janis187@us.ibm.com>
8029
8030         PR target/34814
8031         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
8032         (TARGET_INSTANTIATE_DECLS): Likewise.
8033         * target.h (expand_to_rtl_hook): New target hook.
8034         (instantiate_decls): Likewise.
8035         * function.c (instantiate_decl): Make non-static.  Rename to...
8036         (instantiate_decl_rtl): ... this.
8037         (instantiate_expr): Use instantiate_decl_rtl.
8038         (instantiate_decls_1): Likewise.
8039         (instantiate_decls): Likewise.
8040         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8041         * function.h (instantiate_decl_rtl): Add prototype.
8042         * cfgexpand.c (target.h): New include.
8043         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8044         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8045         (TARGET_INSTANTIATE_DECLS): Likewise.
8046         (TARGET_INITIALIZER): New target hooks added.
8047         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8048         New prototype.
8049         * config/rs6000/rs6000.c (tree-flow.h): New include.
8050         (machine_function): Add sdmode_stack_slot field.
8051         (rs6000_alloc_sdmode_stack_slot): New function.
8052         (rs6000_instantiate_decls): Likewise.
8053         (rs6000_secondary_memory_needed_rtx): Likewise.
8054         (rs6000_check_sdmode): Likewise.
8055         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8056         (TARGET_INSTANTIATE_DECLS): Likewise.
8057         (rs6000_hard_regno_mode_ok): Allow SDmode.
8058         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
8059         (rs6000_emit_move): Handle SDmode.
8060         (function_arg_advance): Likewise.
8061         (function_arg): Likewise.
8062         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
8063         SDmode var args for 32-bit compiles.
8064         (rs6000_secondary_reload_class): Handle SDmode.
8065         (rs6000_output_function_epilogue): Likewise.
8066         (rs6000_function_value): Simplify if statement.
8067         (rs6000_libcall_value): Likewise.
8068         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8069         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8070         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8071         (movsd_hardfloat): New define_insn.
8072         (movsd_softfloat): Likewise.
8073         (movsd_store): Likewise.
8074         (movsd_load): Likewise.
8075         (extendsddd2): Likewise.
8076         (extendsdtd2): Likewise.
8077         (truncddsd2): Likewise.
8078         (movdd_hardfloat64): Fixup comment.
8079         (UNSPEC_MOVSD_LOAD): New constant.
8080         (UNSPEC_MOVSD_STORE): Likewise.
8081
8082 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
8083
8084         PR c++/34965
8085         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8086         TRUTH_XOR_EXPR.
8087         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8088         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8089         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8090         and TRUTH_XOR_EXPR.
8091
8092 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
8093
8094         PR target/34794
8095         * config.gcc: Separate AIX 5.3 from AIX 6.1.
8096         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8097         __LONGDOUBLE128 too.
8098         * config/rs6000/aix61.h: New file.
8099
8100 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8101
8102         PR rtl-optimization/34959
8103         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8104         popcount and parity rtxes the same mode as their operand.
8105         Truncate or extend the result to the return value's mode
8106         if necessary.
8107
8108 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8109
8110         PR target/34981
8111         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8112         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8113         to GOT_VERSION_REGNUM.
8114         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8115         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8116         * config/mips/mips.c (mips_emit_call_insn): New function.
8117         (mips_call_tls_get_addr): Call mips_expand_call directly.
8118         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8119         emit_call_insn.
8120         (mips16_build_call_stub): Likewise.  Return the call insn or null.
8121         (mips_expand_call): Update the call to mips16_build_call_stub
8122         accordingly and a remove redundant condition.  Assert that MIPS16
8123         stubs do not use lazy binding.  Use mips_emit_call_insn and return
8124         the call insn.
8125         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8126         TARGET_USE_GOT.
8127         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8128         (mips_avoid_hazard): Remove hazard_set handling.
8129         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8130         (UNSPEC_RESTORE_GP): ...this.
8131         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8132         (FAKE_CALL_REGNO): Rename to...
8133         (GOT_VERSION_REGNUM): ...this.
8134         (type): Add "ghost" value.  Add an associated insn reservation.
8135         (hazard_set): Remove.
8136         (exception_receiver): Rename to...
8137         (restore_gp): ...this and update the unspec identifier accordingly.
8138         (exception_receiver, nonlocal_got_receiver): New expanders.
8139         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
8140         FAKE_CALL_REGNO.  Remove hazard_set attribute.
8141         (set_got_version, update_got_version): New patterns.
8142
8143 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
8144
8145         PR target/34970
8146         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8147
8148 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8149
8150         PR other/31955
8151         * doc/install.texi2html: Generate gcc-vers.texi.
8152
8153 2008-01-25  DJ Delorie  <dj@redhat.com>
8154
8155         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8156
8157 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8158
8159         * config/c4x: Remove directory.
8160         * config.gcc (crx-*, mt-*): Mark obsolete.
8161         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8162         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8163         sh-*-rtemscoff*): Remove cases.
8164         * defaults.h (C4X_FLOAT_FORMAT): Remove.
8165         * real.c (encode_c4x_single, decode_c4x_single,
8166         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8167         c4x_extended_format): Remove.
8168         * real.h (c4x_single_format, c4x_extended_format): Remove.
8169         * doc/extend.texi (interrupt, naked): Remove mention of attributes
8170         on C4x.
8171         (Pragmas): Remove comment about c4x pragmas.
8172         * doc/install.texi (c4x): Remove target-specific instructions.
8173         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8174         * doc/md.texi (Machine Constraints): Remove C4x documentation.
8175         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8176         refer to C4x source files as examples.
8177         (C4X_FLOAT_FORMAT): Remove documentation.
8178
8179 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
8180
8181         * config/bfin/bfin.c (override_options): Reorder tests so that
8182         flag_pic gets enabled for -msep-data.
8183
8184 2008-01-25  Richard Guenther  <rguenther@suse.de>
8185
8186         PR middle-end/32244
8187         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8188         to its bitfield precision if required.
8189
8190 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8191
8192         PR middle-end/33880
8193         * tree-nested.c (walk_omp_for): New function.
8194         (convert_nonlocal_reference, convert_local_reference): Call
8195         walk_omp_for on OMP_FOR.
8196         (convert_call_expr): Call walk_body on OMP_FOR's
8197         OMP_FOR_PRE_INIT_BODY.
8198
8199 2008-01-25  Richard Guenther  <rguenther@suse.de>
8200
8201         PR tree-optimization/34966
8202         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8203         default defs and PHI_NODEs we have to insert after the
8204         defining statement.
8205
8206 2008-01-24  Nick Clifton  <nickc@redhat.com>
8207
8208         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8209         Provide a default definition.
8210         (LIBGCC2_UNITS_PER_WORD): Likewise.
8211
8212         * config/stormy16/stormy16.c: Include df.h for the prototype
8213         for df_regs_ever_live_p.
8214         (xstormy16_expand_builtin_va_start): Convert the stack offset
8215         into a component_ref and then use POINTER_PLUS_EXPR to add it
8216         to the incoming_virtual_args_rtx.
8217         (xstormy16_gimplify_va_arg_expr): Rename to
8218         xstormy16_gimplify_va_arg_expr.
8219         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8220         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8221         xstormy16_gimplify_va_arg_expr.
8222         Fix up some formatting issues.
8223
8224         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8225         Move to predicates.md.
8226         (xs_hi_general_operand): Likewise.
8227         (xs_hi_nonmemory_operand): Likewise.
8228         * config/stormy16/predicates.md:
8229         (xstormy16_carry_plus_operand): New predicate.
8230         (xs_hi_general_operand): New predicate.
8231         (xs_hi_nonmemory_operand): New predicate.
8232         * config/stormy16/stormy16-protos.h:
8233         (xstormy16_carry_plus_operand): Delete prototype.
8234         (xs_hi_general_operand): Likewise.
8235         (xs_hi_nonmemory_operand): Likewise.
8236
8237         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8238         modifiers as they are no longer needed and they can trigger
8239         reload spill failures.
8240
8241         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8242         with a match_operand in order to help reload.
8243
8244         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8245         constraint with 'e' for the 8th alternative as this version of
8246         the mov.w instruction only accepts the lower 8 registers.
8247
8248 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
8249
8250         PR target/34856
8251         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8252         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8253         vector elements.
8254
8255 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8256
8257         PR middle-end/33333
8258         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8259
8260 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8261
8262         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8263         New functions.
8264         (remove_structure): Update allocations list before removing structure.
8265         
8266 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8267
8268         * ipa-struct-reorg.c (is_safe_cond_expr, 
8269         create_new_stmts_for_cond_expr): Use integer_zerop function,
8270         that recognize not only zero-pointer, but zero-integer too.
8271
8272 2008-01-25  Ben Elliston  <bje@au.ibm.com>
8273
8274         PR other/22232
8275         * fixproto: Escape "." in sed expression that strips leading "./".
8276
8277 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8278
8279         PR driver/34904
8280         * gcc.c (SWITCH_OK): Removed.
8281         (SWITCH_LIVE): Changed to bit.
8282         (SWITCH_FALSE): Likewise.
8283         (SWITCH_IGNORE): Likewise.
8284         (switchstr): Change live_cond to unsigned int.
8285         (process_command): Replace SWITCH_OK with 0.
8286         (do_self_spec): Likewise.
8287         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8288         (give_switch): Likewise.
8289         (used_arg): Likewise.
8290         (do_spec_1): Set the SWITCH_IGNORE bit.
8291         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8292         bits.  Set the SWITCH_LIVE bit.
8293
8294 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8295
8296         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8297
8298 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
8299
8300         PR tree-optimization/34472
8301         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
8302         parameter to a "bool *" and set *DATA to false if there is
8303         an unsafe access.  Do not delete the structure here.
8304         (check_cond_exprs): Delete it here instead.
8305         (check_cond_exprs, exclude_cold_structs): Do not increase
8306         I when removing a structure.
8307
8308 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
8309
8310         PR target/34856
8311         * config/i386/i386.c (ix86_expand_vector_init): Consider only
8312         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
8313
8314 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
8315
8316         PR middle-end/34934
8317         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
8318         a fixed vector for stack.
8319
8320 2008-01-24  Ben Elliston  <bje@au.ibm.com>
8321
8322         PR c++/25701
8323         * doc/gcc.texi (Software development): Add a direntry for g++.
8324         
8325 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
8326
8327         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
8328         stale and straggling -fforce-addr comments above.
8329
8330         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
8331         define.
8332         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
8333         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
8334
8335 2008-01-23  Michael Matz  <matz@suse.de>
8336
8337         PR debug/34895
8338         * dwarf2out.c (force_type_die): Use modified_type_die instead of
8339         gen_type_die.
8340
8341 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
8342
8343         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
8344         malloc result type.
8345
8346 2008-01-23 Anatoly Sokolov <aesok@post.ru>
8347
8348         * config/avr/avr.c (avr_current_arch): New variable.
8349         (avr_arch_types): Add 'avr31' and 'avr51' entries.
8350         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
8351         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
8352         (avr_override_options): Init 'avr_current_arch'. 
8353         (base_arch_s): Move from here...
8354         * config/avr/avr.h (base_arch_s): ... here. Add new members 
8355         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
8356         'mega' to 'have_jmp_call'.
8357         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
8358         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
8359         macros.
8360         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
8361         architectures.
8362         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
8363         MULTILIB_MATCHES): (Ditto.).
8364
8365 2008-01-23  Richard Guenther  <rguenther@suse.de>
8366
8367         PR middle-end/31529
8368         * cgraphunit.c (cgraph_reset_node): Always mark the node
8369         not reachable if it is not queued already.
8370
8371 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
8372
8373         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
8374         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
8375         (cputype_selected): New static variable.
8376         (bfin_handle_option): Set it if -mcpu is used.
8377         (override_option): Select default set of workarounds if no cpu type
8378         selected on the command line.
8379         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
8380
8381         From  Michael Frysinger  <michael.frysinger@analog.com>
8382         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
8383         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
8384
8385         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
8386         for bf547, bf523, bf524, and bf526.
8387         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
8388         bf526.
8389         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8390         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
8391         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
8392         __ADSPBF547__ and __ADSPBF54x__ for bf547.
8393         * doc/invoke.texi (Blackfin Options): Document that
8394         -mcpu now accept bf547, bf523, bf524, and bf526.
8395
8396 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
8397
8398         PR rtl-optimization/34628
8399         * combine.c (try_combine): Stop and undo after the first combination
8400         if an autoincrement side-effect on the first insn has effectively
8401         been lost.
8402
8403 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
8404
8405         PR target/34529
8406         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
8407         Offset addresses are not valid for Altivec or paired float modes.
8408
8409 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
8410
8411         PR c++/34607
8412         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
8413         if DECL_INITIAL (decl) is error_mark_node.
8414
8415         PR c++/34914
8416         * c-common.c (handle_vector_size_attribute): Only allow
8417         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
8418         the same way as pointer, array etc. types.
8419         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
8420
8421         PR c++/34917
8422         * tree.c (build_type_attribute_qual_variant): Call
8423         build_qualified_type if attributes are equal, but quals are not.
8424
8425 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8426
8427         PR 32102
8428         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
8429         * flags.h (warn_strict_aliasing): Remove.
8430         (warn_strict_overflow): Remove.
8431         * opts.c (warn_strict_aliasing): Remove.
8432         (warn_strict_overflow): Remove.
8433         * c-opts.c (c_common_handle_option): -Wall only sets
8434         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
8435         (c_common_post_options): Give default values to -Wstrict-aliasing
8436         and -Wstrict-overflow if they are uninitialized.
8437         * common.opt (Wstrict-aliasing): Specify Var and Init.
8438         (Wstrict-overflow): Likewise.
8439
8440 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8441
8442         PR rtl-optimization/26854
8443         PR rtl-optimization/34400
8444         PR rtl-optimization/34884
8445         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
8446         DF_RD->gen.
8447         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
8448         (df_rd_bb_info.expanded_lr_out): Deleted
8449         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
8450         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
8451         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8452         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8453         Removed code to allocate, initialize or free expanded_lr_out.
8454         (df_rd_bb_local_compute_process_def): Restructured to make more
8455         understandable.
8456         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
8457         sets if the sets are being trimmed.
8458
8459 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
8460
8461         PR bootstrap/32287
8462         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
8463         (as_vers): Likewise.
8464         * configure: Regenerated.
8465
8466 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8467
8468         PR middle-end/33092
8469         * tree-pass.h (pass_build_alias): New pass.
8470         * tree-ssa-alias.c (gate_build_alias): New.
8471         (pass_build_alias): New.
8472         * passes.c (init_optimization_passes): Add pass_build_alias after
8473         pass_create_structure_vars.
8474
8475 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
8476
8477         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
8478         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
8479         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
8480         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
8481         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
8482         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
8483         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
8484         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
8485         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
8486         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
8487         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
8488         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
8489         * config/s390/s390.md (FP_ALL): New mode iterator.
8490         (_d): New mode attribute.
8491         ("*signbit<mode>2>"): Changed mode of first operand.
8492         ("isinf<mode>2"): Changed mode of first operand.
8493         ("*TDC_insn"): Adaptation for DFP modes.
8494
8495 2008-01-22  Ben Elliston  <bje@au.ibm.com>
8496
8497         * tree.c (check_qualified_type): Improve function description.
8498
8499 2008-01-21  Jason Merrill  <jason@redhat.com>
8500
8501         PR c++/34196
8502         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
8503         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
8504         if it is set.
8505
8506 2008-01-21  DJ Delorie  <dj@redhat.com>
8507
8508         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
8509         return zero.
8510
8511 2008-01-21  Richard Guenther  <rguenther@suse.de>
8512
8513         PR middle-end/34856
8514         * tree-cfg.c (verify_expr): Allow all invariant expressions
8515         instead of just constant class ones as reference argument.
8516         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
8517         like any other constant.
8518         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8519
8520 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
8521
8522         * regmove.c (fixup_match_1): Update call crossed frequencies.
8523
8524 2008-01-21  Richard Guenther  <rguenther@suse.de>
8525
8526         PR c/34885
8527         * tree-inline.c (setup_one_parameter): Deal with mismatched
8528         types using a VIEW_CONVERT_EXPR.
8529
8530 2008-01-21  Alon Dayan  <alond@il.ibm.com>
8531             Olga Golovanevsky  <olga@il.ibm.com>
8532         
8533         PR tree-optimization/34701
8534         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
8535         when the structure size is not a power of 2.
8536
8537 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8538
8539         * doc/install.texi: Add doc for --enable-checking=df.
8540         
8541 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8542
8543         PR rtl-optimization/34808
8544         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
8545
8546 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
8547
8548         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
8549         input.
8550
8551 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
8552
8553         PR rtl-optimization/26854
8554         PR rtl-optimization/34400
8555         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
8556         DF_RD->gen.
8557         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
8558         (df_rd_bb_info.expanded_lr_out): New.
8559         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
8560         * loop_iv.c (iv_analysis_loop_init): Ditto.
8561         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8562         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8563         Added code to allocate, initialize or free expanded_lr_out.
8564         (df_rd_bb_local_compute_process_def): Restructured to make
8565         more understandable.
8566         (df_rd_confluence_n): Add code to do nothing with fake edges and
8567         code to no apply invalidate_by_call sets if the sets are being trimmed.
8568         (df_lr_local_finalize): Renamed to df_lr_finalize.
8569         (df_live_local_finalize): Renamed to df_live_finalize.
8570
8571 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
8572
8573         PR target/34831
8574         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
8575         deciding whether to use reciprocal instructions.
8576
8577 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
8578
8579         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
8580         dwarf2out_note_section_used if cold_text_section is NULL.
8581
8582 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
8583
8584         PR gcov-profile/34610
8585         * tree-cfg.c (make_edges): Mark both outgoing edges from
8586         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
8587         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
8588         from OMP_FOR and OMP_CONTINUE outgoing edges.
8589
8590         * tree-profile.c (tree_profiling): Return early if
8591         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
8592         at the end.
8593         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
8594         from cfun to child_cfun.
8595         * function.h (struct function): Add after_tree_profile bit.
8596
8597 2008-01-19 Anatoly Sokolov <aesok@post.ru>
8598
8599         * config/avr/avr.S (_exit): Disable interrupt.
8600
8601 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
8602             Steven Bosscher  <stevenb.gcc@gmail.com>
8603
8604         PR rtl-optimization/26854
8605         PR rtl-optimization/34400
8606         * df-problems.c (df_live_scratch): New scratch bitmap.
8607         (df_live_alloc): Allocate df_live_scratch when doing df_live.
8608         (df_live_reset): Clear the proper bitmaps.
8609         (df_live_bb_local_compute): Only process the artificial defs once
8610         since the order is not important.
8611         (df_live_init): Init the df_live sets only with the variables
8612         found live by df_lr.
8613         (df_live_transfer_function): Use the df_lr sets to prune the
8614         df_live sets as they are being computed.  
8615         (df_live_free): Free df_live_scratch.
8616
8617 2008-01-18  Ian Lance Taylor  <iant@google.com>
8618
8619         * common.opt: Add fmerge-debug-strings.
8620         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
8621         flag_merge_debug_strings rather than flag_merge_constants.
8622         * doc/invoke.texi (Option Summary): Mention
8623         -fmerge-debug-strings.
8624         (Debugging Options): Document -fmerge-debug-strings.
8625
8626 2008-01-18  Ian Lance Taylor  <iant@google.com>
8627
8628         PR c++/33407
8629         * tree.h (DECL_IS_OPERATOR_NEW): Define.
8630         (struct tree_function_decl): Add new field operator_new_flag.
8631         * tree-inline.c (expand_call_inline): When inlining a call to
8632         operator new, force the return value to go into a variable, and
8633         set DECL_NO_TBAA_P on that variable.
8634         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
8635
8636 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
8637
8638         PR debug/34484
8639         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
8640         DWARF2_DEBUGGING_INFO.
8641         (dwarf2out_note_section_used): Ditto.  Add prototype.
8642         (have_multiple_function_sections, text_section_used,
8643         cold_text_section_used, *cold_text_sections): Move declarations
8644         before their uses.
8645
8646 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
8647
8648         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
8649         field and add signal_ra.
8650         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
8651         assignments to frame state pc.  Move end of stack check after
8652         MD_FALLBACK_FRAME_STATE_FOR.
8653         (uw_update_context_1): Use frame state signal_regs if set, instead
8654         of checking signal_frame flag.
8655         (uw_update_context): Use frame state signal_ra if set.
8656         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
8657         * config/xtensa/linux-unwind.h: New file.
8658
8659 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
8660
8661         * modulo-sched.c (get_sched_window): Fix comment typo.
8662
8663 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
8664
8665         PR tree-optimization/34648
8666         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
8667
8668 2008-01-17  Anatoly Sokolov <aesok@post.ru>
8669
8670         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
8671         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
8672
8673 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
8674
8675         PR rtl-optimization/34400
8676         * df-core.c (df_worklist_dataflow_overeager,
8677         df_worklist_dataflow_doublequeue): New functions.
8678         (df_worklist_dataflow): Two different worklist solvers.
8679         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
8680         New param.
8681
8682 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8683
8684         PR testsuite/34821
8685         * doc/invoke.texi: Document the dependence on pthread for fopenmp
8686         and ftree-parallelize-loops.
8687
8688 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
8689
8690         PR rtl-optimization/34826
8691         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
8692
8693 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8694
8695         * global.c (find_reg): Mark the eh regs as used if necessary.
8696         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
8697         * ra.h (struct allocno): no_eh_reg field added.  Changed
8698         no_stack_reg type to bitfield.
8699
8700 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
8701
8702         * tree.c (substitute_in_expr): Add missing 'break'.
8703
8704 2008-01-17  Richard Guenther  <rguenther@suse.de>
8705
8706         PR tree-optimization/34825
8707         * tree-ssa-math-opts.c (is_division_by): Do not recognize
8708         x / x as division to handle.
8709
8710 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8711
8712         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
8713         "-pthread" is specified.
8714         * pa-hpux11.h (LIB_SPEC): Likewise.
8715
8716 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
8717             Peter Bergner  <bergner@vnet.ibm.com>
8718
8719         PR rtl-optimization/33796
8720         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
8721
8722 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8723
8724         PR libgfortran/34699
8725         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
8726         static links.
8727         * pa-hpux10.h (LINK_SPEC): Likewise.
8728         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
8729
8730 2008-01-16  Richard Guenther  <rguenther@suse.de>
8731
8732         PR middle-end/32628
8733         * fold-const.c (fold_convert_const_int_from_int): Do not
8734         set overflow if that occured only because of a sign extension
8735         change when converting from/to a sizetype with the same
8736         precision and signedness.
8737
8738 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
8739
8740         PR debug/34249
8741         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
8742         location address to the correct place.  Update copyright year.
8743
8744 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8745
8746         * lambda-code.c (lambda_transform_legal_p): Handle the case of
8747         no dependences in the dependence_relations vector.
8748
8749 2008-01-16  Jan Hubicka  <jh@suse.cz>
8750
8751         PR rtl-optimization/31396
8752         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
8753         * cfg.c (dump_reg_info): Print it.
8754         * regs.h (struct reg_info_t): add freq_calls_crossed.
8755         (REG_FREQ_CALLS_CROSSED): New macro.
8756         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
8757         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
8758         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
8759         regmove_optimize): Update call crossed frequencies.
8760         * local-alloc.c (struct qty): Add freq_calls_crossed.
8761         (alloc_qty): Copute freq_calls_crossed.
8762         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
8763         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
8764         * ra.h (struct allocno): Add freq_calls_crossed.
8765
8766 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8767
8768         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
8769         libgomp when compiling with ftree-parallelize-loops.
8770         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
8771
8772 2008-01-16  Richard Guenther  <rguenther@suse.de>
8773
8774         PR tree-optimization/34769
8775         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
8776         * tree.c (int_cst_value): Instead make this function more
8777         permissive in what it accepts as valid input.  Document this
8778         function always sign-extends the value.
8779
8780 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
8781             Richard Guenther  <rguenther@suse.de>
8782
8783         PR c/34668
8784         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
8785         (gimple_fold_indirect_ref_rhs): ... this.
8786         (gimple_fold_indirect_ref): New function with foldings
8787         that preserve lvalueness.
8788         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
8789         * tree-flow.h (gimple_fold_indirect_ref): Declare.
8790         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
8791         to fold an INDIRECT_REF, fall back to the old use of
8792         fold_indirect_ref_1.
8793
8794 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
8795
8796         * tree-data-ref.c (subscript_dependence_tester_1): Call 
8797         free_conflict_function.
8798         (compute_self_dependence): Same.
8799
8800 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
8801
8802         PR debug/34249
8803         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
8804         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
8805         function global.
8806         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
8807         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
8808         for DWARF2_UNWIND_INFO targets.
8809
8810 2008-01-16  Richard Guenther  <rguenther@suse.de>
8811
8812         PR c/34768
8813         * c-typeck.c (common_pointer_type): Do not merge inconsistent
8814         type qualifiers for function types.
8815
8816 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
8817
8818         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
8819         loop_iterator li from previous commit.
8820
8821 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
8822
8823         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
8824
8825 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
8826
8827         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
8828         (parallelize_loops): Don't parallelize irreducible components.
8829
8830 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8831
8832         PR c++/24924
8833         * c-opts (c_common_post_options): Do not enable CPP
8834         flag_pedantic_errors by default.
8835         
8836 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
8837
8838         PR rtl-optimization/31944
8839         * cse.c (remove_pseudo_from_table): New function.
8840         (merge_equiv_classes): Use above function to remove pseudo-registers.
8841         (invalidate): Likewise.
8842
8843 2008-01-13  Richard Guenther  <rguenther@suse.de>
8844
8845         PR middle-end/34601
8846         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
8847         instead of TYPE_MODE to deal with calls from expand_one_error_var.
8848
8849 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
8850
8851         * gcse.c (cprop_jump): Call validate_unshare_change instead of
8852         validate_change to unshare the source of the PC set.
8853
8854 2008-01-12  Jan Hubicka  <jh@suse.cz>
8855
8856         PR middle-end/32135
8857         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
8858         references above array bounds.  This might trigger bounds checks for
8859         pointers to arrays.
8860
8861 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
8862
8863         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
8864         new_replaceable_dependencies.
8865
8866 2008-01-12  Doug Kwan  <dougkwan@google.com>
8867
8868         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
8869         instead of OPT_Wreturn_type in warning due to ignored return type
8870         qualifiers.
8871         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
8872         options included in -Wextra.
8873         * c.opt: New option -Wignored_qualifiers.
8874         * doc/invoke.texi (Warning Options, -Wextra): Add new option
8875         -Wignore_qualifiers.
8876         (-Wignored-qualifiers): Document.
8877         (-Wreturn-type): Remove description of functionality now handled
8878         by -Wignored-qualifiers.
8879
8880 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
8881
8882         PR ada/33788
8883         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
8884         NOP_EXPR if it is between integral types with the same precision.
8885
8886 2008-01-12  Jan Hubicka  <jh@suse.cz>
8887
8888         PR other/28023
8889         * invoke.texi (max-inline-recursive-depth): Fix default value.
8890
8891 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
8892
8893         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
8894         correct type.
8895
8896 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
8897         
8898         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
8899         
8900 2008-01-11  James E. Wilson  <wilson@specifix.com>
8901
8902         PR target/26015
8903         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
8904
8905 2008-01-11  Anatoly Sokolov <aesok@post.ru>
8906
8907         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
8908         save/restore frame pointer register and don't use 'call-prologues' 
8909         optimization in function with "OS_task" attribute.
8910
8911 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
8912
8913         PR middle-end/31309
8914         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
8915         when copying to memory.
8916
8917 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
8918
8919         PR rtl-optimization/30905
8920         * cfgcleanup.c: Include dce.h
8921         (crossjumps_occured): New global variable.
8922         (try_crossjump_bb): Exit loop after finding a fallthru edge.
8923         If something changed, set crossjumps_occured to true.
8924         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
8925         Don't add/remove fake edges to exit here...
8926         (cleanup_cfg): ...but do it here, when crossjumping.
8927         Run a fast DCE when successful crossjumps occured in the latest
8928         iteration of try_optimize_cfg.
8929
8930 2008-01-11  Richard Guenther  <rguenther@suse.de>
8931
8932         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
8933         (struct vn_unary_op_s): Likewise.
8934         (vn_reference_insert): Free old reference on hash collision.
8935
8936 2008-01-10  Raksit Ashok  <raksit@google.com>
8937
8938         PR rtl-optimization/27971
8939         * combine.c (find_split_point): Split PLUS expressions which are
8940         inside a MEM rtx, and whose first operand is complex.
8941
8942 2008-01-10  DJ Delorie  <dj@redhat.com>
8943
8944         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
8945         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
8946         (m32c_hard_regno_ok): Call the underlying function.
8947
8948 2008-01-10  Richard Guenther  <rguenther@suse.de>
8949
8950         PR middle-end/34683
8951         * tree-cfg.c (tree_merge_blocks): Do not go through the
8952         full-blown folding and stmt updating path if we just deal
8953         with virtual operands.
8954         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
8955         test for abnormal SSA_NAMEs.
8956
8957 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8958
8959         PR middle-end/34641
8960         * reload.c (push_reload): Add assertions.  All constants from
8961         reg_equiv_constant should have been used for replacing the respective
8962         pseudo earlier.
8963         (find_reloads_address): Invoke find_reloads_address_part for
8964         constant taken from the reg_equiv_constant array.
8965
8966 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
8967
8968         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
8969         field (valnum) the first in the struct.  Replace bools with
8970         unit bit fields.
8971
8972 2008-01-10  Richard Guenther  <rguenther@suse.de>
8973
8974         PR tree-optimization/34651
8975         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
8976         types and ordering for masking and converting.
8977
8978 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
8979
8980         PR tree-optimization/34017
8981         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
8982         also for PHI_NODE expressions.
8983
8984 2008-01-09  Jan Hubicka  <jh@suse.cz>
8985
8986         PR tree-optimization/34708
8987         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
8988         based on number of case labels.
8989         (init_inline_once): Remove switch_cost.
8990         * tree-inline.h (eni_weights_d): Remove switch_cost.
8991
8992 2008-01-09  Richard Guenther  <rguenther@suse.de>
8993         Andrew Pinski  <andrew_pinski@playstation.sony.com>
8994
8995         PR middle-end/30132
8996         * gimplify.c (gimplify_cond_expr): Do not create an addressable
8997         temporary if an rvalue is ok or an lvalue is not required.
8998
8999 2008-01-09  Richard Guenther  <rguenther@suse.de>
9000
9001         PR middle-end/34458
9002         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
9003         adjust return type.
9004
9005 2008-01-09  Richard Guenther  <rguenther@suse.de>
9006
9007         PR middle-end/34679
9008         * tree.c (host_integerp): Check for sizetype only if the
9009         type is an integer type.
9010
9011 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
9012
9013         PR debug/26364
9014         * opts.c (decode_options): Disable inlining of functions called
9015         once if not in unit-at-a-time mode.
9016
9017 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
9018
9019         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
9020
9021 2008-01-08  Richard Guenther  <rguenther@suse.de>
9022
9023         PR middle-end/31863
9024         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
9025         out early if the result will be unused.
9026
9027 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9028
9029         PR target/34709
9030         Revert:
9031
9032         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9033         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9034         for TARGET_RECIP.       
9035         
9036 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
9037         
9038         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9039         for vectorization tuned.
9040         
9041 2008-01-08  Richard Guenther  <rguenther@suse.de>
9042
9043         PR tree-optimization/34683
9044         * tree-ssa-operands.c (operand_build_cmp): Export.
9045         * tree-ssa-operands.h (operand_build_cmp): Declare.
9046         * tree-vn.c (vuses_compare): Remove.
9047         (sort_vuses): Use operand_build_cmp.
9048         (sort_vuses_heap): Likewise.
9049         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9050         to re-use old VEC if available.  Do not sort already sorted VUSEs.
9051         (vdefs_to_vec): Do not sort already sorted VDEFs.
9052
9053 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
9054
9055         PR middle-end/34694
9056         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9057
9058 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9059
9060         PR target/34702
9061         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9062         limitations of reciprocal sequences on x86 targets.
9063
9064 2008-01-08  Richard Guenther  <rguenther@suse.de>
9065
9066         PR tree-optimization/34683
9067         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9068
9069 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
9070
9071         PR target/34622
9072         * config/darwin.c (darwin_mergeable_string_section): Don't use
9073         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9074
9075 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
9076
9077         PR target/34682
9078         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9079         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
9080         predicates of op0 and op1 to register_operand.
9081         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
9082         expander using X87MODEF mode iterator.  Change predicates of
9083         op0 and op1 to register_operand.
9084         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9085         corresponding patterns and macroize using MODEF macro.  Change
9086         predicates of op0 and op1 to register_operand and remove
9087         "m" constraint. Disparage "r" alternative with "!".
9088         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9089         macroize using X87MODEF macro.  Change predicates of op0 and op1
9090         to register_operand and remove "m" constraint.  Disparage "r"
9091         alternative with "!".
9092         (absneg splitter with memory operands): Remove.
9093         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9094         patterns and macroize using X87MODEF mode iterator.
9095         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9096         Change predicate of op1 to register_operand.
9097         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9098         for memory operands.
9099
9100 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
9101
9102         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9103
9104 2008-01-07  Richard Guenther  <rguenther@suse.de>
9105
9106         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9107         fields.
9108
9109 2008-01-07  Richard Guenther  <rguenther@suse.de>
9110
9111         PR tree-optimization/34683
9112         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9113         VOPs of the needed size to save memory.  Use VEC_quick_push
9114         to save compile-time.
9115         (vdefs_to_vec): Likewise.
9116
9117 2008-01-07  Sa Liu  <saliu@de.ibm.com>
9118
9119         * config/spu/spu.md (divdf3): Genetate inline code for double
9120         division.  The implementation doesn't handle INF or NAN, therefore it
9121         only applies when -ffinite-math-only is given.
9122
9123 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
9124
9125         PR libstdc++/34680
9126         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9127         * doc/cpp.texi ([Common Predefined Macros]): Document.
9128
9129 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
9130
9131         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9132         order to use commutative addition instead of subtraction.
9133
9134 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9135             Mircea Namolaru  <namolaru@il.ibm.com>
9136             Vladimir Yanovsky  <yanov@il.ibm.com>
9137             Revital Eres  <eres@il.ibm.com>
9138
9139         PR tree-optimization/34263
9140         * tree-outof-ssa.c (process_single_block_loop_latch,
9141         contains_tree_r): New functions.
9142         (analyze_edges_for_bb): Call process_single_block_loop_latch
9143         function to empty single-basic-block latch block if possible.
9144
9145 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9146
9147         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9148         for TARGET_RECIP.
9149         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9150
9151 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9152
9153         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9154
9155 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9156
9157         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9158
9159 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
9160
9161         PR tree-optimization/34618
9162         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9163         flag from T.
9164
9165 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9166
9167         PR target/34673
9168         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9169         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
9170         Update copyright year.
9171
9172         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9173         Update copyright year.
9174         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9175         using NR fixup.
9176
9177 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
9178
9179         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9180         edge does not point to current bb before changing need_assert.
9181
9182 2008-01-04  Richard Guenther  <rguenther@suse.de>
9183
9184         PR middle-end/34029
9185         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9186         for verifying purposes if they are is_gimple_min_invariant.
9187
9188 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
9189
9190         PR tree-optimization/34448
9191         PR tree-optimization/34465
9192         * gimplify.c (gimplify_init_constructor): Add new parameter
9193         notify_temp_creation.  Use it.
9194         (gimplify_modify_expr_rhs): Take volatiles into account when
9195         optimizing constructors.
9196         Do not optimize constructors if gimplify_init_constructor will dump to
9197         memory.
9198         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9199         * gcc.c-torture/compile/pr34448.c: New.
9200
9201 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
9202
9203         PR gcov-profile/34609
9204         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9205         return_slot if result is TREE_ADDRESSABLE.
9206
9207 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
9208
9209         * config/mips/mips.md (sqrt_condition): Tweak comment.
9210         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
9211
9212 2008-01-03  Tom Tromey  <tromey@redhat.com>
9213
9214         PR c/34457
9215         * c-common.c (c_type_hash): Handle VLAs.
9216
9217 2008-01-03  Jan Hubicka  <jh@suse.cz>
9218
9219         PR tree-optimization/31081
9220         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9221         0 when inlining and not inlining to first basic block.
9222         (remap_decl): When var is initialized to 0, don't set default_def.
9223         (expand_call_inline): Set entry_bb.
9224         * tree-inline.h (copy_body_data): Add entry_bb.
9225
9226 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9227
9228         PR c++/34619
9229         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9230         before returning.
9231
9232         PR tree-optimization/29484
9233         * tree-inline.c (inline_forbidden_p_2): New function.
9234         (inline_forbidden_p): Disallow inlining if some static var
9235         has an address of a local LABEL_DECL in its initializer.
9236         * doc/extend.texi (Labels as Values): Document &&foo behaviour
9237         vs. inlining.
9238
9239 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9240
9241         PR tree-optimization/34635
9242         * tree-data-ref.c (add_other_self_distances): Make sure that the
9243         evolution step is constant.
9244
9245 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9246
9247         PR middle-end/34608
9248         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9249
9250 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
9251
9252         * tree-sra.c (scalarize_init): Insert the generate_element_init
9253         statements after the generate_element_zero statements.
9254
9255 2008-01-02  Richard Guenther  <rguenther@suse.de>
9256
9257         PR middle-end/34093
9258         PR middle-end/31976
9259         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9260         for very large number of operands instead of ICEing.
9261
9262 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
9263
9264         PR target/34013
9265         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9266         while stack probing.
9267
9268 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
9269
9270         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9271         in C++0x mode.
9272
9273 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
9274
9275         PR libmudflap/26442
9276         * tree-mudflap.c (mx_register_decls): Guard warning by
9277         !DECL_ARTIFICIAL check.
9278
9279 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
9280
9281         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9282         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9283         sse5_perm<mode>): Fix constraints.