OSDN Git Service

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