OSDN Git Service

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