OSDN Git Service

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