OSDN Git Service

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