OSDN Git Service

2cb1a41401a5135cdf910a9ea7785240038d09b3
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2
3         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
4         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
5         (ipcp_method_set_orig_node): Removed.
6         (ipcp_cval_get_cvalue_type): Removed.
7         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
9         (ipcp_cval_set_cvalue_type): Removed.
10         (ipcp_cval_get_cvalue): Removed.
11         (ipcp_cval_set_cvalue): Removed.
12         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
13         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
15         (ipcp_cval_meet): Renamed to ipa_lattice_meet
16         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
17         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
18         (ipcp_get_ith_lattice): Changed parameters.
19         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
20         (ipcp_lattice_from_jfunc): Changed parameters.
21         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
22         (ipcp_method_cval_print): Added temporary variable info.
23         (ipcp_redirect): Removed already unused local variable caller.
24         (ipcp_redirect): New temporary variable orig_callee_info
25         (ipcp_redirect): Removed newly unused local variable callee.
26         (ipcp_redirect): Removed (a bit confusing) local variable type.
27         (ipcp_insert_stage): Added local variable info.
28         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
29         renamed too
30         (ipcp_formal_create): Removed.
31         (ipcp_method_cval_set): Removed.
32         (ipcp_propagate_stage): Renamed lattice variables.
33         (ipcp_method_cval_set_cvalue_type): Removed.
34         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
35         (ipcp_print_all_lattices): Changed printed strings to refer to 
36         lattices rather than cvals.
37         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
38         (ipcp_propagate_const): Changed formal parameters.
39         (build_const_val): Changed formal parameters.
40         (ipcp_insert_stage): Removed useless variable cvalue
41         (build_const_val): Changed formal parameters.
42         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
43         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
44         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
45         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
46         (ipcp_print_func_profile_counts): Changed string from "method" to 
47         "function"
48         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
49         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
50         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
51         (ipcp_structures_print): Renamed to ipcp_print_all_structures
52         (ipcp_profile_print): Renamed to ipcp_print_profile_data
53         (ipcp_lat_is_const): Changed parameters and made inline.
54         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
55         (ipcp_redirect): Renamed to ipcp_need_redirect_p
56         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
57         the predicate condition directly
58         (ipcp_propagate_stage): Added local variable args. Removed local
59         variable callee.  (Both are mere code simplifications.)
60         (ipcp_method_dont_insert_const): Renamed to
61         ipcp_node_not_modifiable_p.
62         (ipcp_node_not_modifiable_p): Made inline.
63         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
64         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
65         (ipcp_print_all_lattices): Removed variable cvalue
66         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
67         Updated comments.
68
69 2008-05-06  Olivier Hainque  <hainque@adacore.com>
70
71         * tree-sra.c (try_instantiate_multiple_fields): Early return
72         if field has POINTER_TYPE.
73
74 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
75
76         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
77         by using 'q' specifier for instruction.
78         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
79
80 2008-05-06  Anatoly Sokolov <aesok@post.ru>
81
82         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
83         Change mode of zero_extract from QImode to HImode.
84         (sign bit tests peepholes): (Ditto.).
85
86 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
87
88         * config/i386/mmx.md: Remove double backslashes from asm templates.
89         (*addv2sf3): Rename from mmx_addv2sf3 insn pattern.
90         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
91         to handle nonimmediate operands.
92         (*mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
93         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
94         to handle nonimmediate operands.
95         (*<code>v2sf3_finite): New insn pattern.
96         (*<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
97         (mmx_<code>v2sf3): New expander.  Use
98         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
99         (mmx_<plusminus_insn><mode>3): New expander.  Use
100         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
101         (*<plusminus_insn><mode>3): New insn pattern.
102         (mmx_add<mode>3): Removed.
103         (mmx_ssadd<mode>3): Ditto.
104         (mmx_usadd<mode>3): Ditto.
105         (mmx_sub<mode>3): Ditto.
106         (mmx_sssub<mode>3): Ditto.
107         (mmx_ussub<mode>3): Ditto.
108         (*mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
109         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
110         to handle nonimmediate operands.
111         (*smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
112         insn pattern.
113         (mmx_smulv4hi3_highpart): New expander.  Use
114         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
115         (*umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
116         insn pattern.
117         (mmx_umulv4hi3_highpart): New expander.  Use
118         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
119         (*<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
120         (mmx_<code>v4hi3): New expander.  Use
121         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
122         (*<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
123         (mmx_<code>v8qi3): New expander.  Use
124         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
125         (*<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
126         (mmx_<code><mode>3): New expander.  Use
127         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
128
129 2008-05-05  Jan Hubicka  <jh@suse.cz>
130
131         PR tree-optimization/36118
132         * passes.c (pass_init_dump_file): Fix dump header.
133
134 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
135
136         PR middle-end/36141
137         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
138         VCE for function decls.
139
140 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
141
142         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
143
144 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
145
146         * config/i386/i386.md (sat_plusminus): New.
147         (plusminus_insn): Likewise.
148         (plusminus_mnemonic): Likewise.
149         (addsub): Removed.
150         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
151         (*<addsub><mode>3_cc_overflow): Renamed to ...
152         (*<plusminus_insn><mode>3_cc_overflow): This.
153         (*<addsub>si3_zext_cc_overflow): Renamed to ...
154         (*<plusminus_insn>si3_zext_cc_overflow): This.
155
156         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
157         (<plusminus_insn><mode>3): This.
158         (*<addsub><mode>3): Renamed to ...
159         (*<plusminus_insn><mode>3): This.
160         (<sse>_vm<addsub><mode>3): Renamed to ...
161         (<sse>_vm<plusminus_insn><mode>3): This.
162         (sse3_h<addsub>v4sf3): Renamed to ...
163         (sse3_h<plusminus_insn>v4sf3): This.
164         (sse3_h<addsub>v2df3): Renamed to ...
165         (sse3_h<plusminus_insn>v2df3): This.
166         (<plusminus_insn><mode>3): New.
167         (*<plusminus_insn><mode>3): Likewise.
168         (sse2_<plusminus_insn><mode>3): Likewise.
169         (add<mode>): Removed.
170         (*add<mode>3): Likewise.
171         (sse2_ssadd<mode>3): Likewise.
172         (sse2_usadd<mode>3): Likewise.
173         (sub<mode>3): Likewise.
174         (*sub<mode>3): Likewise.
175         (sse2_sssub<mode>3): Likewise.
176         (sse2_ussub<mode>3): Likewise.
177
178 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
179
180         * gthr-single.h: Add in required interface elements as per gthr.h.
181         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
182         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
183         Generalize UNUSED macro. 
184         (__gthread_once): Add.
185         (__gthread_key_create): Add.
186         (__gthread_key_delete): Add.
187         (__gthread_getspecific): Add.
188         (__gthread_setspecific): Add.
189         
190 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
191
192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
193         the same size types for the indirect reference on the rhs, then
194         create a VCE.
195
196 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
197
198         * config/i386/i386.md
199         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
200         one insn template instead of template series.
201         (*xordi_1_rex64): Ditto.
202         (*xordi_2_rex64): Ditto.
203
204 2008-05-05  Ira Rosen  <irar@il.ibm.com>
205
206         PR tree-optimization/36119
207         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
208         in case of SLP.
209
210 2008-06-04  Jan Hubicka  <jh@suse.cz>
211
212         tree-optimization/36100
213         * tree-pass.h (pass_O0_always_inline): Declare.
214         * ipa-inline.c (inline_transform): Remove dead code.
215         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
216         pass_O0_always_inline): New.
217         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
218
219 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
220
221         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
222         mnemonic in this_param move for TARGET_64BIT.
223
224 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
225
226         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
227         (*strmovsi_rex_1): Ditto.
228         (*strsetsi_1): Ditto.
229         (*strsetsi_rex_1): Ditto.
230
231         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
232         adddicc expanders using SWI mode iterator.
233
234 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
235
236         PR target/36121
237         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
238         argument handling.
239
240 2008-05-04  David S. Miller  <davem@davemloft.net>
241
242         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
243         (sparc*-*-linux*): Use linux.h in tm_file.
244         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
245         compiler defaulting to 32-bit.
246         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
247         no longer needed.
248         * config/sparc/linux.h: Remove definitions now obtained
249         properly from linux.h
250         * config/sparc/linux64.h: Likewise.
251         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
252         don't want this setting for 32-bit builds in a biarch compiler.
253         * doc/install.texi: Add sparc-linux to list of targets
254         supporting --enable-targets=all.
255
256 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
257
258         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
259
260 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
261
262         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
263         after V4SI_FTYPE_V8HI.
264         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
265         case V4SI_FTYPE_V2DF.
266
267 2008-05-03  Kenneth Zadeck <zadeck@naturalbridge.com>
268
269         * doc/invoke.texi (max-flow-memory-locations): Removed.
270         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
271         
272 2008-05-03  Richard Guenther  <rguenther@suse.de>
273
274         PR middle-end/34973
275         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
276
277 2008-05-02  David S. Miller  <davem@davemloft.net>
278
279         * config.gcc (need_64bit_hwint): Document libcpp dependency.
280
281 2008-05-02  Simon Baldwin <simonb@google.com>
282
283         PR bootstrap/36108
284         * c-common.h (warn_array_subscript_range): Removed.
285         * c-common.c (warn_array_subscript_range): Ditto.
286         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
287         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
288
289 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
290
291         * config/i386/i386.c (ix86_special_builtin_type): New.
292         (bdesc_special_args): Likewise.
293         (ix86_expand_special_args_builtin): Likewise.
294         (ix86_init_mmx_sse_builtins): Updated.
295         (ix86_expand_builtin): Updated.
296         (ix86_expand_store_builtin): Removed.
297         (ix86_expand_unop_builtin): Likewise.
298
299         * config/i386/mm3dnow.h (__v2sf): Moved to ...
300         * config/i386/mmintrin.h (__v2sf): Here.
301
302         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
303         const __v2sf.
304         (_mm_loadl_pi): Likewise.
305         (_mm_storeh_pi): Replace __v2si with __v2sf.
306         (_mm_storel_pi): Likewise.
307
308         * doc/extend.texi: Correct __builtin_ia32_loadhps,
309         __builtin_ia32_loadlps, __builtin_ia32_storehps,
310         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
311         __builtin_ia32_loadlpd.
312
313 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
314
315         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
316         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
317         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
318         (ix86_init_mmx_sse_builtins): Updated.
319         (ix86_expand_args_builtin): Likewise.
320         (ix86_expand_builtin): Likewise.
321         (ix86_expand_unop1_builtin): Renamed to ...
322         (ix86_expand_unop_vec_merge_builtin): This.
323
324 2008-05-01  Jan Hubicka  <jh@suse.cz>
325
326         PR bootstrap/36100
327         * ipa-inline.c (inline_generate_summary): Make static.
328         (inline_transform): Do not call inlining at -O0; make static.
329         * passes.c (execute_todo): Add sanity check.
330         (execute_one_ipa_transform_pass): Execute proper flags.
331
332 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
333
334         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
335         (DECL_NONADDRESSABLE_P): Likewise.
336         * alias.c (record_component_aliases): Fix comment.
337
338 2008-05-01  Simon Baldwin <simonb@google.com>
339
340         * c-common.h (warn_array_subscript_range): New function.
341         * c-common.c (warn_array_subscript_range): Ditto.
342         * tree-vrp.c (check_array_ref): Corrected code to agree with
343         comment, ignoring only arrays of size 0 or size 1.
344         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
345
346 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
347
348         * config/i386/i386.c (ix86_builtin_type): Replace
349         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
350         (bdesc_args): Updated.
351         (ix86_init_mmx_sse_builtins): Likewise.
352         (ix86_expand_args_builtin): Likewise.
353
354         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
355         with __v1di.
356
357         * doc/extend.texi: Correct __builtin_ia32_palignr.
358
359 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
360
361         PR target/36095
362         * config/i386/i386.c (bdesc_crc32): Removed.
363         (ix86_expand_crc32): Likewise.
364         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
365         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
366         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
367         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
368         UINT_FTYPE_UINT_UCHAR.
369         (bdesc_args): Updated. Add crc32 builtins.
370         (ix86_init_mmx_sse_builtins): Updated.
371         (ix86_expand_args_builtin): Updated to support subreg.
372
373         * doc/extend.texi: Correct __builtin_ia32_crc32di.
374
375 2008-05-01  Jan Hubicka  <jh@suse.cz>
376
377         * tree-pass.h (opt_pass): Add IPA_PASS.
378         (varpool_node, cgraph_node): Forward declare.
379         (ipa_opt_pass): Define.
380         (pass_ipa_inline): Turn into ipa_opt_pass.
381         (pass_apply_inline): Remove.
382         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
383         (apply_inline): Turn into ....
384         (inline_transform): ... this one.
385         (inline_generate_summary): New function.
386         (pass_apply_inline): Remove.
387         * function.h (ipa_opt_pass): Forward declare structure; typedef;
388         vector.
389         (struct function): Add ipa_transforms_to_apply.
390         * passes.c (register_one_dump_file): Work on IPA_PASS.
391         (init_optimization_passes): Remove pass_inline_parameters and
392         pass_apply_inline.
393         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
394         (execute_one_pass) ... here; apply transforms when possible.
395         (add_ipa_transform_pass, execute_ipa_summary_asses,
396         execute_one_ipa_transform_pass): New.
397         (execute_ipa_pass_list): Update for IPA_PASS type.
398
399 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
400
401         * config/i386/i386.c (ix86_builtin_type): Add
402         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
403         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
404         (bdesc_args): Add SSE4a builtins.
405         (ix86_init_mmx_sse_builtins): Updated.
406         (ix86_expand_args_builtin): Likewise.
407         (ix86_expand_builtin): Likewise.
408
409 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
410
411         * config/i386/i386.c (ix86_builtin_type): Add
412         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
413         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
414         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
415         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
416         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
417         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
418         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
419         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
420         and DI_FTYPE_DI_DI_INT.
421         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
422         (ix86_init_mmx_sse_builtins): Updated.
423         (ix86_expand_args_builtin): Likewise.
424         (ix86_expand_builtin): Likewise.
425         (ix86_expand_binop_imm_builtin): Removed.
426
427         * doc/extend.texi: Correct __builtin_ia32_palignr128.
428
429 2008-04-30  Richard Guenther  <rguenther@suse.de>
430
431         PR tree-optimization/32921
432         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
433
434 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
435
436         * config/arm/arm.c (arm_unwind_emit): Use
437         crtl->all_throwers_are_sibcalls instead of
438         cfun->all_throwers_are_sibcalls.
439         (arm_output_fn_unwind): Likewise.
440         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
441         instead of cfun->uses_pic_offset_table.
442         (frv_expand_prologue): Likewise.
443         (frv_frame_pointer_required): Likewise.
444         (frv_expand_fdpic_call): Likewise.
445         (frv_emit_movsi): Likewise.
446         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
447         cfun->returns_pcc_struct instead of
448         current_function_returns_pcc_struct.
449         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
450         instead of cfun->calls_eh_return.
451         (m32c_pushm_popm): Likewise.
452         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
453         "extern" declaration.
454
455 2008-04-30  Richard Guenther  <rguenther@suse.de>
456
457         PR tree-optimization/21636
458         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
459         constant address.
460         (evaluate_stmt): Print the likely value.
461         (ccp_visit_stmt): Avoid excessive vertical spacing.
462
463 2008-04-30  Rafael Espindola  <espindola@google.com>
464
465         * builtins.c (fold_call_expr): Return realret.
466         * tree-ssa-threadedge.c
467         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
468         __builtin_object_size.
469
470 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
471
472         * gcc.c (wrapper_string): New variable.
473         (insert_wrapper): New function.
474         (execute): New option -wrapper.
475         * doc/invoke.texi (Overall Options): New driver option -wrapper.
476
477 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
478
479         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
480         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
481         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
482         from...
483         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
484         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
485         config/rs6000/e500crtres64gprctr.asm,
486         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
487         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
488         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
489         config/rs6000/e500crtsav64gprctr.asm,
490         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
491         config/rs6000/e500crtsavg64gprctr.asm: New files.
492         * config/rs6000/t-ppccomm: Add build rules for new files.
493         (LIB2FUNCS_STATIC_EXTRA): Add new files.
494         * config/rs6000/t-netbsd: Add build rules for new files.
495         (LIB2FUNCS_STATIC_EXTRA): New variable.
496         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
497         (CRTSAVRES_DEFAULT_SPEC): Likewise.
498         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
499
500 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
501
502         * config/i386/i386.c (ix86_builtin_type): Add
503         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
504         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
505         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
506         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
507         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
508         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
509         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
510         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
511         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
512         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
513         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
514         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
515         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
516         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
517         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
518         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
519         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
520         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
521         V1DI_FTYPE_V2SI_V2SI.
522         (bdesc_2arg): Moved to ...
523         (bdesc_args): Here.
524         (ix86_init_mmx_sse_builtins): Updated.
525         (ix86_expand_args_builtin): Updated.  Take a pointer
526         to const struct builtin_description.  Handle comparison
527         builtin functions.
528         (ix86_expand_sse_compare): Take a new argument for swapping operands.
529         (ix86_expand_builtin): Updated.
530
531         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
532         (ssse3_pmaddubsw128): This.
533         (ssse3_pmaddubswv4hi3): Renamed to ...
534         (ssse3_pmaddubsw): This.
535
536         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
537         (__builtin_ia32_packssdw128): Likewise.
538         (__builtin_ia32_packuswb128): Likewise.
539         (__builtin_ia32_pmaddubsw): Likewise.
540         (__builtin_ia32_pmaddubsw128): Likewise.
541
542 2008-04-30  Richard Guenther  <rguenther@suse.de>
543
544         PR tree-optimization/14847
545         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
546         (recognize_bits_test): Use it.
547         (recognize_single_bit_test): Likewise.
548
549 2008-04-30  Martin Jambor  <mjambor@suse.cz>
550
551         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
552         instead of setting number of formal parameters to zero.
553         (ipcp_init_stage): Do not set the number of actual parameters to zero 
554         either.
555         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
556         which are called with variable number of arguments.
557         (ipcp_insert_stage): Explicitely skipping all nodes which are
558         called with variable number of arguments.
559         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
560         number of parameters.
561
562         * ipa-prop.h (struct ipa_node_params): Added flag
563         called_with_var_arguments
564         (ipa_set_param_count): Added.  Changed sole setter to use it.
565         (ipa_get_param_count): Added.  All readers of param_count
566         converted to use it instead.
567         (ipa_set_called_with_variable_arg): Added.
568         (ipa_is_called_with_var_arguments): Added.
569         (ipa_get_ith_param): Added.  All readers of param_decls converted
570         to use it instead.
571         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
572         changed to use it. 
573         (ipa_get_cs_argument_count): Added, all readers of argument_count
574         changed to cal it.
575         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
576         to use it.
577         
578         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
579         (struct ipcp_lattice): Renamed cval_type to type
580         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
581
582         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
583         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
584         (ipcp_insert_stage): Changed the type of variable cvalue to tree
585         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
586         (build_const_val): Changed the type of parameter cvalue to tree
587         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
588         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
589         
590         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
591         constant 
592
593         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
594         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
595         (ipa_add_method): Renamed to ipa_push_func_to_list
596         (ipa_remove_method): Renamed to ipa_pop_func_from_list
597         (ipa_callsite_param_count): Removed.
598         (ipa_callsite_param_count_set): Removed.
599         (ipa_callsite_param): Removed.
600         (ipa_callsite_callee): Removed.
601         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
602         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
603         (ipa_method_formal_count): Removed.
604         (ipa_method_formal_count_set): Removed.
605         (ipa_method_get_tree): Removed.
606         (ipa_method_tree_map_create): Removed.
607         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
608         (ipa_create_param_decls_array): Creates the array itself
609         (ipa_create_param_decls_array): Temporary variable info instead of 
610         a few dereferences.
611         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
612         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
613         (get_type): Removed.
614         (ipa_jf_get_info_type): Removed.
615         (ipa_node_create): Renamed to ipa_create_node_params
616         (ipa_free): Renamed to ipa_free_all_node_params
617         (ipa_nodes_create): Renamed to ipa_create_all_node_params
618         (ipa_edges_create): Renamed to ipa_create_all_edge_args
619         (ipa_edges_free): Renamed to ipa_free_all_edge_args
620         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
621         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
622         ipa_free_all_edge_args
623         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
624         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
625         (ipa_create_methodlist_node): Removed.
626         (ipa_methodlist_method): Removed.
627         (ipa_methodlist_method_set): Removed.
628         (ipa_methodlist_next_method): Removed.
629         (ipa_methodlist_next_method_set): Removed.
630         (ipa_method_is_modified): Removed.
631         (ipa_method_modify_create): Removed.
632         (ipa_method_modify_init): Temporary variable info instead of a few 
633         dereferences.
634         (ipa_detect_param_modifications): Temporary variable info instead of 
635         a few dereferences.
636         (ipa_compute_jump_functions): Temporary variable info instead of 
637         a few dereferences.
638         (ipa_method_modify_set): Removed.
639         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
640         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
641         than craph_node as the first parameter.
642         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
643         (ipa_method_modify_init): Removed.
644         (ipa_compute_jump_functions): Added a temp variable instead of 
645         repeatadly dereferencing the cgraph_edge.aux pointer
646         (ipa_callsite_param_set_type): Removed.
647         (ipa_compute_jump_functions): i renamed to index and moved to 
648         an inner block
649         (ipa_callsite_param_set_info_type_formal): Removed.
650         (ipa_callsite_param_set_info_type): Removed.
651         (ipa_callsite_param_map_create): Removed.
652         (ipa_callsite_tree): Removed.
653         (ipa_callsite_caller): Removed.
654         (ipa_pop_func_from_list): return_method removed to return_func
655
656         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
657         prefixed all values with IPA_. Changed all users.
658         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
659         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
660         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
661         (union parameter_info): Renamed to jump_func_value.
662         (union jump_func_value): Renamed value to constant
663         (struct ipa_jump_func): Renamed info_type to value
664         (struct ipa_node): Renamed to ipa_node_params
665         (struct ipa_node_params): Renamed ipa_arg_num to param_count
666         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
667         (struct ipa_node_params): Renamed ipa_mod to modified_flags
668         (struct ipa_edge): Renamed to ipa_edge_args
669         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
670         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
671         (struct ipa_methodlist): Renamed to ipa_func_list
672         (struct ipa_func_list): method_p renamed to node, next_method
673         renamed to next
674         (ipa_methodlist_p): Removed, switched all users to struct pointer
675         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
676
677 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
678
679         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
680         (rs6000_emit_epilogue): Use backchain to restore only when we
681         have a large frame.  Make use of frame pointer to restore if we
682         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
683
684 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
685
686         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
687         Add mode to zero_extract.
688         (sign bit tests peepholes): (Ditto.).
689
690 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
691
692         * config/i386/i386.c (ix86_builtins): Replace Prescott New
693         Instructions in comments with SSE3.
694         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
695         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
696         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
697         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
698         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
699         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
700         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
701         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
702         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
703         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
704         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
705         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
706         (bdesc_sse_args): Renamed to ...
707         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
708         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
709         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
710         IX86_BUILTIN_FABSQ.
711         (bdesc_1arg): Moved to ...
712         (bdesc_args): Here.
713         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
714         Instructions in comments with SSE3.
715         (ix86_expand_sse_operands_builtin): Renamed to ...
716         (ix86_expand_args_builtin): This.  Updated.
717         (ix86_expand_unop1_builtin): Update comments.
718         (ix86_expand_builtin): Updated.
719
720 2008-04-29  Richard Guenther  <rguenther@suse.de>
721
722         PR tree-optimization/36078
723         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
724         Update virtual SSA form after cleaning up the CFG.
725
726 2008-04-29  Richard Guenther  <rguenther@suse.de>
727
728         PR middle-end/15255
729         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
730
731 2008-04-29  Richard Guenther  <rguenther@suse.de>
732
733         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
734         (compute_may_aliases): Do not call finalize_ref_all_pointers.
735         (compute_flow_insensitive_aliasing): Do not treat
736         PTR_IS_REF_ALL pointers special.
737         (get_smt_for): Likewise.
738         (may_alias_p): Re-structure.
739         (is_escape_site): A ref-all pointer conversion is not an escape site.
740         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
741         PTR_IS_REF_ALL pointers special.
742         * tree-ssa-structalias.h (struct alias_info): Remove
743         ref_all_symbol_mem_tag field.
744         (PTR_IS_REF_ALL): Remove.
745
746 2008-04-29  Richard Guenther  <rguenther@suse.de>
747
748         PR middle-end/36077
749         * fold-const.c (extract_muldiv_1): In combining division constants
750         make sure to never overflow.
751
752 2008-04-29  Nick Clifton  <nickc@redhat.com>
753
754         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
755
756 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
757
758         PR bootstrap/35169
759         * optc-gen.awk: Work around HP-UX/IA awk bug.
760
761 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
762
763         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
764         2008-04-25 commit.
765
766 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
767
768         PR target/36073
769         * config/i386/i386.md
770         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
771         Change operand 1 predicate to nonimmediate_operand.
772
773 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
774
775         PR debug/36060
776         * dwarf2out.c (struct die_struct): Mark as chain_circular through
777         die_sub field.
778         * gengtype.c (walk_type, write_func_for_structure): Handle
779         chain_circular.
780         * doc/gty.texi: Document chain_circular.
781
782 2008-04-28  Richard Guenther  <rguenther@suse.de>
783
784         PR tree-optimization/36066
785         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
786         SCEV and loop.
787
788 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
789
790         PR target/36064
791         * config/i386/i386.md
792         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
793         Use match_scratch instead of match_operand for operands 3 and 4.
794
795 2008-04-27  Richard Guenther  <rguenther@suse.de>
796
797         PR tree-optimization/18754
798         PR tree-optimization/34223
799         * tree-pass.h (pass_complete_unrolli): Declare.
800         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
801         loop size before and after unconditionally of UL_NO_GROWTH in effect.
802         Rewrite loop into loop closed SSA form if it is not already.
803         (tree_unroll_loops_completely): Re-structure to iterate over
804         innermost loops with intermediate CFG cleanups.
805         Unroll outermost loops only if requested or the code does not grow
806         doing so.
807         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
808         loops are available.
809         (tree_vectorize): Instead do so here.
810         (tree_complete_unroll): Also unroll outermost loops.
811         (tree_complete_unroll_inner): New function.
812         (gate_tree_complete_unroll_inner): Likewise.
813         (pass_complete_unrolli): New pass.
814         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
815         uses outside of the loop.
816         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
817         form if it is available.  
818         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
819         * passes.c (init_optimization_passes): Schedule complete inner
820         loop unrolling pass before the first CCP pass after final inlining.
821
822 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
823
824         * targhooks.h (default_emutls_var_fields,
825         default_emutls_var_init): Declare.
826         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
827         * target.h (struct gcc_target): Add struct emutls member.
828         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
829         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
830         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
831         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
832         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
833         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
834         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
835         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
836         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
837         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
838         emit debug information.
839         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
840         * varasm.c: Include targhooks.h.
841         (emutls_object_section, emutls_tmpl_section): New.
842         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
843         (EMUTLS_SEPARATOR): New.
844         (prefix_name): New.
845         (get_emutls_object_name): New.
846         (default_emutls_var_fields): New, broken out of ...
847         (get_emutls_object_type): ... here.  Adjust to use target hooks.
848         (get_emutls_init_templ_addr): Adjust to use target hooks.
849         (emutls_decl): Adjust to use target hooks.
850         (emutls_finish): Likewise.
851         (default_emutls_var_init): New, broken out of ...
852         (assemble_variable): ... here.  Adjust to use target hooks.
853         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
854         SECCAT_EMUTLS_TMPL.
855         * c-common.c (handle_section_attribute): Prevent overriding
856         sections for emulated tls with special sections.
857         * config/i386/i386.c (x86_64_elf_select_section): Add
858         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
859         (x86_64_elf_unique_section): Likewise.
860         * config/vxworks.c: Include tree.h.
861         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
862         (vxworks_override_options): Set TLS scheme.
863         * doc/tm.texi (Emulated TLS): New node.
864
865 2008-04-26  Simon Baldwin <simonb@google.com>
866
867         PR c/35652
868         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
869         with propagated string constants.
870
871 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
872
873         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
874         constraint for operand 2 when operand 0 is memory operand.
875         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
876         operand 0 is memory operand.
877         (fix_trunc<mode>_i387_with_temp): Ditto.
878         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
879         operand 2 when operand 1 is memory operand.
880         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
881         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
882         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
883         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
884         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
885         operands 2,3 and 4 when operand 1 is memory operand.
886         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
887         is memory operand.
888         (fistdi2_floor_with_temp): Ditto.
889         (fist<mode>2_floor_with_temp): Ditto.
890         (fistdi2_ceil_with_temp): Ditto.
891         (fist<mode>2_ceil_with_temp): Ditto.
892         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
893
894 2008-04-26  David Daney  <ddaney@avtrex.com>
895
896         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
897         unspec_volitile.
898         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
899         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
900         UNSPEC_UPDATE_GOT_VERSION): Renumber.
901         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
902         (compare_and_swap_12): New insn.
903         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
904         * config/mips/mips.c (mips_force_binary): New function.
905         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
906         (mips_expand_compare_and_swap_12): New function.
907         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
908
909 2008-04-25  Jan Hubicka  <jh@suse.cz>
910
911         PR testsuite/35843
912         * cfgexpand.c (pass_expand): Turn into RTL pass.
913         * passes.c (execute_one_pass): Do pass typechecking after execution.
914         * tree-pass.h (pass_expand): Turn into RTL pass.
915
916         * function.h (struct rtl_data): Move here fields
917         accesses_prior_frames, calls_eh_return, saves_all_registers,
918         has_nonlocal_goto, has_asm_statement, is_thunk,
919         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
920         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
921         arg_pointer_save_area_init from struct function; turn into bool.
922         (struct function): Move
923         calls_eh_return, saves_all_registers, has_nonlocal_goto,
924         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
925         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
926         tail_call_emit, arg_pointer_save_area_init
927         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
928         (current_function_returns_struct, current_function_returns_pcc_struct,
929         current_function_calls_setjmp, current_function_calls_alloca,
930         current_function_accesses_prior_frames,
931         current_function_calls_eh_return, current_function_is_thunk,
932         current_function_stdarg, current_function_profile,
933         current_function_limit_stack, current_function_uses_pic_offset_table,
934         current_function_uses_const_pool, current_function_has_nonlocal_label,
935         current_function_saves_all_registers,
936         current_function_has_nonlocal_goto,
937         current_function_has_asm_statement): Remove accesor macros.
938         * ra-conflict.c (global_conflicts): Update.
939         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
940         (suitable_for_tail_call_opt_p): Update.
941         * builtins.c (expand_builtin_return_addr): Update.
942         (expand_builtin_setjmp_setup): Update.
943         (expand_builtin_nonlocal_goto): Update.
944         * final.c (final_start_function): Update.
945         (profile_function): Update.
946         (leaf_function_p): Update.
947         (only_leaf_regs_used): Update.
948         * df-scan.c (df_get_exit_block_use_set): Update.
949         * dojump.c (clear_pending_stack_adjust): Update.
950         * tree-stdarg.c (gate_optimize_stdarg): Update.
951         * gimple-low.c (lower_function_body): Update.
952         * global.c (compute_regsets): Update.
953         (global_alloc): Update.
954         * dwarf2out.c (dwarf2out_begin_prologue): Update.
955         * expr.c (expand_assignment): Update.
956         * dse.c (dse_step0): Update.
957         (dse_step1): Update.
958         * c-decl.c (store_parm_decls): Update.
959         * local-alloc.c (combine_regs): Update.
960         (find_free_reg): Update.
961         * function.c (assign_parms_augmented_arg_list): Update.
962         (assign_parm_find_data_types): Update.
963         (assign_parms): Update.
964         (allocate_struct_function): Update.
965         (expand_function_start): Update.
966         (expand_function_end): Update.
967         (get_arg_pointer_save_area): Update.
968         (thread_prologue_and_epilogue_insns): Update.
969         (rest_of_match_asm_constraints): Update.
970         * stor-layout.c (variable_size): Update.
971         * gcse.c (gcse_main): Update.
972         (bypass_jumps): Update.
973         * gimplify.c (gimplify_function_tree): Update.
974         * calls.c (emit_call_1): Update.
975         (expand_call): Update.
976         * bt-load.c (compute_defs_uses_and_gen): Update.
977         * except.c (sjlj_assign_call_site_values): Update.
978         (sjlj_emit_function_enter): Update.
979         (can_throw_external): Update.
980         (set_nothrow_function_flags): Update.
981         (expand_builtin_unwind_init): Update.
982         (expand_eh_return): Update.
983         (convert_to_eh_region_ranges): Update.
984         (output_function_exception_table): Update.
985         * emit-rtl.c (gen_tmp_stack_mem): Update.
986         * cfgexpand.c (expand_used_vars): Update.
987         (tree_expand_cfg): Update.
988         * cfgcleanup.c (rest_of_handle_jump): Update.
989         * explow.c (allocate_dynamic_stack_space): Update.
990         * varasm.c (assemble_start_function): Update.
991         (force_const_mem): Update.
992         (mark_constant_pool): Update.
993         * tree-optimize.c (tree_rest_of_compilation): Update.
994         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
995         * tree-cfg.c (notice_special_calls): Update.
996         (is_ctrl_altering_stmt): Update.
997         (tree_can_make_abnormal_goto): Update.
998         (tree_purge_dead_abnormal_call_edges): Update.
999         * config/alpha/predicates.md: Update.
1000         * config/alpha/alpha.c (alpha_sa_mask): Update.
1001         (alpha_sa_size): Update.
1002         (alpha_does_function_need_gp): Update.
1003         (alpha_expand_prologue): Update.
1004         (alpha_start_function): Update.
1005         (alpha_output_function_end_prologue): Update.
1006         (alpha_expand_epilogue): Update.
1007         * config/frv/frv.c (frv_stack_info): Update.
1008         (frv_expand_epilogue): Update.
1009         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
1010         (s390_register_info): Update.
1011         (s390_frame_info): Update.
1012         (s390_init_frame_layout): Update.
1013         (s390_can_eliminate): Update.
1014         (save_gprs): Update.
1015         * config/spu/spu.c (spu_split_immediate): Update.
1016         (need_to_save_reg): Update.
1017         (spu_expand_prologue): Update.
1018         (spu_expand_epilogue): Update.
1019         * config/sparc/sparc.md: Update.
1020         * config/sparc/sparc.c (eligible_for_return_delay): Update.
1021         (sparc_tls_got): Update.
1022         (legitimize_pic_address): Update.
1023         (sparc_emit_call_insn): Update.
1024         (sparc_expand_prologue): Update.
1025         (output_return): Update.
1026         (print_operand): Update.
1027         (sparc_function_ok_for_sibcall): Update.
1028         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
1029         * config/m32r/m32r.md: Update.
1030         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
1031         (m32r_compute_frame_size): Update.
1032         (m32r_expand_prologue): Update.
1033         (m32r_expand_epilogue): Update.
1034         (m32r_legitimize_pic_address): Update.
1035         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
1036         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1037         * config/i386/i386.c (ix86_frame_pointer_required): Update.
1038         (gen_push): Update.
1039         (ix86_save_reg): Update.
1040         (ix86_compute_frame_layout): Update.
1041         (ix86_expand_prologue): Update.
1042         (ix86_expand_epilogue): Update.
1043         * config/sh/sh.c (output_stack_adjust): Update.
1044         (calc_live_regs): Update.
1045         (sh5_schedule_saves): Update.
1046         (sh_expand_prologue): Update.
1047         (sh_expand_epilogue): Update.
1048         (sh_setup_incoming_varargs): Update.
1049         (sh_allocate_initial_value): Update.
1050         (sh_get_pr_initial_val): Update.
1051         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
1052         * config/sh/sh.md (label:): Update.
1053         * config/avr/avr.c (out_movhi_mr_r): Update.
1054         * config/crx/crx.h (enum): Update.
1055         * config/xtensa/xtensa.h (along): Update.
1056         * config/stormy16/stormy16.c Update.
1057         (xstormy16_compute_stack_layout): Update.
1058         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
1059         (fr30_expand_prologue): Update.
1060         * config/cris/cris.c (cris_conditional_register_usage): Update.
1061         (cris_reg_saved_in_regsave_area): Update.
1062         (cris_initial_frame_pointer_offset): Update.
1063         (cris_simple_epilogue): Update.
1064         (cris_expand_prologue): Update.
1065         (cris_expand_epilogue): Update.
1066         (cris_expand_pic_call_address): Update.
1067         (cris_asm_output_symbol_ref): Update.
1068         (cris_asm_output_label_ref): Update.
1069         * config/cris/cris.md Update.
1070         * config/iq2000/iq2000.c (compute_frame_size): Update.
1071         (iq2000_expand_epilogue): Update.
1072         * config/mt/mt.h (save_direction): Update.
1073         * config/mn10300/mn10300.c (mn10300_function_value): Update.
1074         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1075         (ia64_secondary_reload_class): Update.
1076         * config/m68k/m68k.c (m68k_save_reg): Update.
1077         (m68k_expand_prologue): Update.
1078         (m68k_expand_epilogue): Update.
1079         (legitimize_pic_address): Update.
1080         * config/rs6000/rs6000.c (rs6000_got_register): Update.
1081         (first_reg_to_save): Update.
1082         (first_altivec_reg_to_save): Update.
1083         (compute_vrsave_mask): Update.
1084         (compute_save_world_info): Update.
1085         (rs6000_stack_info): Update.
1086         (spe_func_has_64bit_regs_p): Update.
1087         (rs6000_ra_ever_killed): Update.
1088         (rs6000_emit_eh_reg_restore): Update.
1089         (rs6000_emit_allocate_stack): Update.
1090         (rs6000_emit_prologue): Update.
1091         (rs6000_emit_epilogue): Update.
1092         (rs6000_output_function_epilogue): Update.
1093         (output_profile_hook): Update.
1094         (rs6000_elf_declare_function_name): Update.
1095         * config/rs6000/rs6000.h (rs6000_args): Update.
1096         * config/rs6000/rs6000.md: Update.
1097         * config/mcore/mcore.c (mcore_expand_prolog): Update.
1098         * config/arc/arc.c (arc_output_function_epilogue): Update.
1099         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
1100         * config/darwin.c (machopic_function_base_name): Update.
1101         * config/score/score3.c (score3_compute_frame_size): Update.
1102         (rpush): Update.
1103         (rpop): Update.
1104         (score3_epilogue): Update.
1105         * config/score/score7.c (score7_compute_frame_size): Update.
1106         (score7_prologue): Update.
1107         (score7_epilogue): Update.
1108         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
1109         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
1110         * config/arm/arm.c (use_return_insn): Update.
1111         (require_pic_register): Update.
1112         (arm_load_pic_register): Update.
1113         (arm_compute_save_reg0_reg12_mask): Update.
1114         (arm_compute_save_reg_mask): Update.
1115         (thumb1_compute_save_reg_mask): Update.
1116         (output_return_instruction): Update.
1117         (arm_output_function_prologue): Update.
1118         (arm_output_epilogue): Update.
1119         (arm_get_frame_offsets): Update.
1120         (arm_expand_prologue): Update.
1121         (thumb_pushpop): Update.
1122         (thumb_exit): Update.
1123         (thumb1_expand_prologue): Update.
1124         (thumb1_expand_epilogue): Update.
1125         (arm_unwind_emit): Update.
1126         (arm_output_fn_unwind): Update.
1127         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1128         * config/arm/arm.md: Update.
1129         * config/pa/pa.md: Update.
1130         * config/pa/pa.c (legitimize_pic_address): Update.
1131         (compute_frame_size): Update.
1132         (hppa_expand_prologue): Update.
1133         (hppa_expand_epilogue): Update.
1134         (borx_reg_operand): Update.
1135         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1136         (HARD_REGNO_RENAME_OK): Update.
1137         * config/mips/mips.c (mips_global_pointer): Update.
1138         (mips_save_reg_p): Update.
1139         (mips_compute_frame_info): Update.
1140         (mips_frame_pointer_required): Update.
1141         (mips_expand_prologue): Update.
1142         (mips_expand_epilogue): Update.
1143         (mips_can_use_return_insn): Update.
1144         (mips_reorg_process_insns): Update.
1145         * config/v850/v850.c (compute_register_save_size): Update.
1146         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1147         * config/mmix/mmix.c (along): Update.
1148         (mmix_expand_epilogue): Update.
1149         * config/bfin/bfin.c (legitimize_pic_address): Update.
1150         (must_save_p): Update.
1151         (stack_frame_needed_p): Update.
1152         (add_to_reg): Update.
1153         (bfin_expand_prologue): Update.
1154         * stmt.c (expand_asm_operands): Update.
1155         * reload1.c (reload): Update.
1156         (init_elim_table): Update.
1157
1158 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
1159         
1160         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
1161         
1162 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1163
1164         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
1165         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
1166         (mov<mode>): Removed.
1167         (*movv4sf_internal): Likewise.
1168         (*movv2df_internal): Likewise.
1169
1170 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
1171
1172         * config.gcc (crx-*-elf): Remove deprecation.
1173
1174 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
1175
1176         * config/i386/cygming-crtend.c (register_frame_ctor): Register
1177         __gcc_deregister_frame with atexit.
1178         (deregister_frame_dtor): Remove.
1179
1180 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
1181             Nathan Sidwell  <nathan@codesourcery.com>
1182
1183         * config/rs6000/rs6000.opt (mspe): Remove Var property.
1184         (misel): Likewise.
1185         * config/rs6000/rs6000.h (rs6000_spe): Declare.
1186         (rs6000_isel): Likewise.
1187         * config/rs6000/rs6000.c (rs6000_spe): New variable.
1188         (rs6000_isel): New variable.
1189         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
1190
1191 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
1192
1193         PR c++/35758
1194         * c-common.c (handle_vector_size_attribute): Call
1195         lang_hooks.types.reconstruct_complex_type instead of
1196         reconstruct_complex_type.
1197         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
1198         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
1199         * langhooks.h (struct lang_hooks_for_types): Add
1200         reconstruct_complex_type hook.
1201         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
1202         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
1203
1204 2008-04-24  Richard Guenther  <rguenther@suse.de>
1205
1206         * c-common.h (check_builtin_function_arguments): Declare.
1207         * c-common.c (validate_nargs): New function.
1208         (check_builtin_function_arguments): Likewise.
1209         * c-typeck.c (build_function_call): Call
1210         check_builtin_function_arguments.
1211         * builtins.c (fold_builtin_classify): Remove error reporting code.
1212         (fold_builtin_unordered_cmp): Likewise.
1213         (fold_builtin_1): Likewise.
1214         (fold_builtin_n): Likewise.
1215
1216 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
1217
1218         PR tree-optimization/36008
1219         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
1220         the original op1, rather than delta by step.
1221
1222 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
1223             Sebastian Pop  <sebastian.pop@amd.com>
1224
1225         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
1226         eliminate_local_variables_stmt, eliminate_local_variables,
1227         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
1228         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
1229         of code delimited by two edges in the CFG.
1230         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
1231         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
1232         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
1233         the case of parallelisation of reductions.
1234         (expr_invariant_in_region_p): New.
1235
1236         * tree-flow.h (gather_blocks_in_sese_region): Declared.
1237         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
1238
1239 2008-04-24  Ira Rosen  <irar@il.ibm.com>
1240             Richard Guenther  <rguenther@suse.de>
1241
1242         PR tree-optimization/36034
1243         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
1244         incapable of dealing with loads with gaps.
1245
1246 2008-04-24  Rafael Espindola  <espindola@google.com>
1247
1248         * tree-flow.h (vrp_evaluate_conditional): Change signature.
1249         * tree-ssa-propagate.c (fold_predicate_in): Update call to
1250         vrp_evaluate_conditional.
1251         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
1252         (vrp_evaluate_conditional): Split the cond argument.
1253         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
1254         (simplify_stmt_for_jump_threading): Update call to
1255         vrp_evaluate_conditional.
1256
1257 2008-04-24  Ira Rosen  <irar@il.ibm.com>
1258
1259         PR tree-optimization/35982
1260         * tree-vect-analyze.c (vect_check_interleaving): Check that the
1261         interleaved data-refs are of the same type.
1262
1263 2008-04-24  Danny Smith  <dannysmith@users.net>
1264
1265         * c-format.c (check_format_info_main): Use strncmp rather than a
1266         magic prefix to handle multichar length specs.
1267         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
1268         Don't prefix "I64" and "I32" with '\0'.
1269
1270 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
1271
1272         PR target/36015
1273         * config/i386/i386.c (init_cumulative_args): Don't pass anything
1274         in registers for -m32 only if stdarg_p (fntype).
1275
1276 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         PR rtl-optimization/36006
1279         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
1280         temp to op0 in order to avoid invalid rtx sharing.
1281
1282 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
1283
1284         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
1285         check TREE_INVARIANT.
1286         * tree-gimple.c (is_gimple_address): New.
1287         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
1288         * tree-gimple.h (is_gimple_address): New.
1289         * tree.h (decl_address_invariant_p): New.
1290         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
1291         (build_string): Likewise.
1292         (decl_address_invariant_p): New, from is_gimple_invariant_address.
1293         (tree_invariant_p_1): Likewise.
1294         (save_expr): Use it.
1295         (tree_invariant_p): New.
1296         (skip_simple_arithmetic): Use it.
1297         (stabilize_reference_1): Use it.
1298         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
1299         simplify.
1300         (build1_stat): Drop code to compute TREE_INVARIANT.
1301         (build2_stat): Drop code to compute TREE_INVARIANT.
1302         (build3_stat): Drop code to compute TREE_INVARIANT.
1303         (build4_stat): Drop code to compute TREE_INVARIANT.
1304         (build5_stat): Drop code to compute TREE_INVARIANT.
1305         (build7_stat): Drop code to compute TREE_INVARIANT.
1306         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
1307         * tree.h (struct tree_base): Remove invariant_flag.
1308         (TREE_INVARIANT): Remove.
1309         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
1310         (fold_builtin_expect): Check TREE_CONSTANT.
1311         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
1312         * c-tree.h (c_expr_to_decl): Drop third parameter.
1313         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
1314         (build_c_cast): Don't set TREE_INVARIANT.
1315         (pop_init_level): Don't set TREE_INVARIANT.
1316         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
1317         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
1318         TREE_CONSTANT.
1319         (gimplify_init_constructor): Don't set TREE_INVARIANT.
1320         (gimplify_addr_expr): Adjust comment.
1321         * tree-mudflap.c (mf_build_string):
1322         * print-tree.c (print_node): Don't print TREE_INVARIANT.
1323         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
1324         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
1325         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
1326         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
1327         * langhooks.h (struct lang_hooks): Drop third parameter from
1328         expr_to_decl.
1329
1330 2008-04-23  Richard Guenther  <rguenther@suse.de>
1331
1332         PR tree-optimization/27799
1333         PR tree-optimization/32921
1334         PR tree-optimization/32624
1335         * tree-ssa-structalias.c (merge_smts_into): Only merge the
1336         SMTs aliases and the tag itself into the solution.
1337         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
1338         merge the points-to solution back into the SMT aliases.
1339         (may_alias_p): Use alias_set_subset_of instead of
1340         aliases_conflict_p.  A pointer which points to
1341         memory with alias set zero may access any variable.
1342
1343 2008-04-23  Richard Guenther  <rguenther@suse.de>
1344
1345         * alias.c (alias_set_subset_of): Correctly handle asking
1346         if zero is a subset of an alias set with zero child.
1347         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
1348         (compute_flow_insensitive_aliasing): Correctly walk all
1349         pointers.  Do not unnecessarily union sets.
1350
1351 2008-04-23  Richard Guenther  <rguenther@suse.de>
1352
1353         PR middle-end/36021
1354         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
1355
1356 2008-04-22  Tomas Bily  <tbily@suse.cz>
1357
1358         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
1359         unreachable case.
1360         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
1361         NON_LVALUE_EXPR.
1362         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1363         * tree-ssa-structalias.c (get_constraint_for): Likewise.
1364         * tree-inline.c (estimate_num_insns_1): Likewise.
1365         * varasm.c (const_hash_1, compare_constant, copy_constant)
1366         (compute_reloc_for_constant, output_addressed_constants): Likewise.
1367         * emit-rtl.c (component_ref_for_mem_expr)
1368         (set_mem_attributes_minus_bitpos): Likewise.
1369         * expr.c (highest_pow2_factor, expand_expr_real_1, )
1370         (is_aligning_offset): Likewise.
1371         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
1372         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1373         * dojump.c (do_jump): Likewise.
1374         * builtins.c (get_pointer_alignment, get_memory_rtx)
1375         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
1376         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
1377
1378 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
1379
1380         PR rtl-optimization/36017
1381         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
1382         expanding the library call.
1383
1384 2008-04-22  Ian Lance Taylor  <iant@google.com>
1385
1386         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
1387         than size_in_bytes.
1388
1389 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
1390
1391         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
1392         of LR/CTR moves for Power6.
1393
1394 2008-04-22  Kenneth Zadeck <zadeck@naturalbridge.com>
1395
1396         PR middle-end/36003
1397         * passes.c (init_optimization_passes): Remove
1398         pass_fast_rtl_byte_dce.
1399         
1400 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
1401
1402         PR target/29096
1403         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
1404         builtin functions to generate faster code.
1405         (_mm_cvtpu16_ps): Ditto.
1406         (_mm_cvtpi32x2_ps): Ditto.
1407
1408 2008-04-22  Nick Clifton  <nickc@redhat.com>
1409
1410         * common.opt (ftree-loop-distribution): Add Optimization
1411         attribute.
1412
1413         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
1414         (frv_expand_builtin_va_start): Likewise.
1415
1416         * config/arm/arm.c (thumb_find_work_register): Fix location of
1417         argument register count.
1418
1419 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1420
1421         Support scheduling for ColdFire V1 and V3 microarchitecture.
1422         Improve scheduling of multiplication instructions.
1423
1424         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
1425         (mac): New instruction attribute.
1426         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
1427         (m68k_sched_mac): New variable.
1428         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
1429         Handle cfv1 and cfv3.
1430         (max_insn_size): New static variable.
1431         (struct _sched_ib): New type.
1432         (sched_ib): New static variable.
1433         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
1434         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
1435         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
1436         Update.
1437         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
1438         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
1439         new variables.  Update.
1440         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1441         Add modeling of cfv3 instruction buffer.  Update.
1442         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
1443         * config/m68k/m68k.h (TUNE_CFV3): New macro.
1444         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
1445         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
1446         a particular reservation applies to.
1447         (type2): Reorganize attribute values.  Rename alu to alu_reg,
1448         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
1449         to mul_l and mul_w.
1450         (cf_ib_*): Simplify description of instruction buffer.
1451         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
1452         (cf_mem): Split into cf_mem1 and cf_mem2.
1453         (cf_v2_move_??): Rename to cfv12_alu_??.
1454         (cf_v2_move_l_??): Rename to cfv12_omove_??.
1455         (cf_v2_mul_??): Remove reservations.
1456         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
1457         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
1458         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
1459         appropriate place.
1460         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
1461         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
1462         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
1463         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
1464         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
1465         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
1466         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
1467         expansions of the above reservations for instructions of sizes
1468         1, 2 and 3 words.
1469
1470 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1471
1472         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
1473
1474 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
1475
1476         * coverage.c: Include tree-pass.h.
1477         (coverage_counter_alloc): Print da_file_name to the dump file.
1478
1479 2008-04-21  Kenneth Zadeck <zadeck@naturalbridge.com>
1480
1481         * sbitmap.c (sbitmap_range_empty_p): New function.
1482         * sbitmap.h (sbitmap_range_empty_p): New function.
1483         * bitmap.h: Now includes obstack.h.
1484
1485 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
1486             Kenneth Zadeck <zadeck@naturalbridge.com>
1487
1488         * dbgcnt.def (ra_byte_scan): Added.
1489         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
1490         when the last hit happens for a counter.  
1491         * timevar.def (TV_DF_BYTE_LR): New variable.
1492         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
1493         * passes.c (pass_fast_rtl_byte_dce): New pass.
1494         * fwprop.c (update_df): Added mode to call df_ref_create.
1495         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
1496         DF_REF_EXTRACT_OFFSET.
1497         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
1498         DF_BYTE_LR_OUT, df_byte_lr): New macro.
1499         (df_mm): New enum.
1500         (df_ref_extract): Added mode field.
1501         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
1502         DF_REF_EXTRACT_OFFSET.
1503         (DF_REF_EXTRACT_MODE): New macro.
1504         (df_byte_lr_bb_info): New structure.
1505         (df_print_byte_regset, df_compute_accessed_bytes, 
1506         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
1507         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
1508         df_byte_lr_simulate_uses,
1509         df_byte_lr_simulate_artificial_refs_at_top,
1510         df_byte_lr_simulate_artificial_refs_at_end,
1511         df_compute_accessed_bytes): New function.
1512         (df_ref_create): Add parameter.
1513         (df_byte_lr_get_bb_info): New inline function.
1514         * df-scan.c (df_ref_record, df_uses_record,
1515         df_ref_create_structure): Added mode parameter.
1516         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
1517         df_defs_record, df_uses_record, df_get_conditional_uses,
1518         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
1519         df_entry_block_defs_collect, df_exit_block_uses_collect):
1520         Added mode parameter to calls to df_ref_record, df_uses_record,
1521         df_ref_create_structure.
1522         (df_ref_equal_p, df_ref_compare): Added test for modes.
1523         (df_ref_create_structure): Added code to set mode.  Renamed
1524         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
1525         DF_REF_EXTRACT_OFFSET.
1526         * df-core.c (df_print_byte_regset): New function.
1527         * df-byte-scan.c: New file.
1528         * df-problems.c (df_rd_transfer_function): Removed unnecessary
1529         calls to BITMAP_FREE.  
1530         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
1531         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
1532         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
1533         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
1534         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
1535         df_byte_lr_local_compute, df_byte_lr_init,
1536         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
1537         df_byte_lr_transfer_function, df_byte_lr_free, 
1538         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
1539         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
1540         df_byte_lr_simulate_uses,
1541         df_byte_lr_simulate_artificial_refs_at_top,
1542         df_byte_lr_simulate_artificial_refs_at_end): New function.
1543         * dce.c (byte_dce_process_block): New function.
1544         (dce_process_block): au is now passed in rather than computed
1545         locally.  Changed loops that look at artificial defs to not look
1546         for conditional or partial ones, because there never are any.  
1547         (fast_dce): Now is able to drive byte_dce_process_block or 
1548         dce_process_block depending on the kind of dce being done.
1549         (rest_of_handle_fast_dce): Add parameter to fast_dce.
1550         (rest_of_handle_fast_byte_dce): New function.
1551         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
1552         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
1553
1554 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
1555
1556         PR fortran/35019
1557         * gcc.h: Added fortran options that take arguments to
1558         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
1559         macros.
1560
1561 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1562
1563         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
1564         scalarization if on the LHS and not a full access.
1565
1566 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1567
1568         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
1569
1570 2008-04-18  Rafael Espindola  <espindola@google.com>
1571
1572         * tree-vrp.c (find_case_label_index): Fix the binary search.
1573         (find_case_label_range): New.
1574         (vrp_visit_switch_stmt): Use find_case_label_range.
1575         (simplify_switch_using_ranges): Use find_case_label_range.
1576
1577 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1578
1579         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
1580         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
1581
1582 2008-04-18  Tom Tromey  <tromey@redhat.com>
1583
1584         PR libcpp/15500:
1585         * doc/cpp.texi (Implementation-defined behavior): Mention
1586         -finput-charset.
1587
1588 2008-04-18  Ian Lance Taylor  <iant@google.com>
1589
1590         * fold-const.c (pointer_may_wrap_p): New static function.
1591         (fold_comparison): Add another test for pointer overflow.  Use
1592         pointer_may_wrap_p to disable some false positives.
1593
1594 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
1595           
1596         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
1597         (fname_as_string): Match updated cpp_interpret_string prototype.
1598         (fix_string_type): Support char16_t* and char32_t*.
1599         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
1600         derivative) nodes.  Register as builtin if C++0x.
1601         (c_parse_error): Support CPP_CHAR{16,32}.
1602         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
1603         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
1604         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
1605         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
1606         CTI_CHAR32_ARRAY_TYPE>: New elements.
1607         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
1608         char32_type_node, signed_char32_type_node, char16_array_type_node,
1609         char32_array_type_node): New defines.
1610         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
1611         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
1612         (lex_string): Support CPP_STRING{16,32}, match updated
1613         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
1614         (lex_charconst): Support CPP_CHAR{16,32}.
1615         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
1616         and CPP_STRING{16,32}.
1617
1618 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1619
1620         PR bootstrap/35457
1621         * aclocal.m4: Regenerate.
1622         * configure: Regenerate.
1623
1624 2008-04-18  Jan Hubicka  <jh@suse.cz>
1625
1626         * except.c (dw2_size_of_call_site_table,
1627         sjlj_size_of_call_site_table): Use vector API for call_site_record.
1628
1629         * cgraphbuild.c (build_cgraph_edges): Update.
1630         * tree-pass.h: Update comment.
1631         * final.c (leaf_function_p): Update.
1632         (leaf_renumber_regs): Update.
1633         (rest_of_clean_state): Update.
1634         * omp-low.c (expand_omp_parallel): Update.
1635         * ipa-reference.c (analyze_function): Update.
1636         * reorg.c (find_end_label): Update.
1637         (optimize_skip): Update.
1638         (fill_simple_delay_slots): Update.
1639         (fill_simple_delay_slots): Update.
1640         (make_return_insns): Update.
1641         (dbr_schedule): Update.
1642         * gimple-low.c (record_vars_into): Update.
1643         * cfgbuild.c (make_edges): Update.
1644         * function.c (assign_stack_local): Update.
1645         (assign_parm_adjust_stack_rtl): Update.
1646         (locate_and_pad_parm): Update.
1647         (allocate_struct_function): Do not initialize stack_alignment_needed
1648         and preferred_stack_boundary here.
1649         (stack_protect_prologue): Update.
1650         (stack_protect_epilogue): Update.
1651         (expand_function_start): Initialize stack_alignment_needed,
1652         preferred_stack_boundary and max_jumptable_ents.
1653         (expand_function_end): Update.
1654         (free_after_compilation): Do not NULLify epilogue_delay_list.
1655         * function.h (struct rtl_data): Add stack_protect_guard,
1656         stack_alignment_needed,
1657         preferred_stack_boundary, epilogue_delay_list.
1658         (struct function): Remove value_histograms, stack_alignment_needed,
1659         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
1660         last_label_uid,
1661         unexpanded_var_list, stack_protect_guard.
1662         (current_function_epilogue_delay_list): Remove.
1663         * ipa-type-escape.c (analyze_function): Update.
1664         * gimplify.c (pop_gimplify_context): Update comment.
1665         * calls.c (expand_call): Update.
1666         (emit_library_call_value_1): Update.
1667         * except.c (set_nothrow_function_flags): Update.
1668         * cfgexpand.c (get_decl_align_unit): Update.
1669         (create_stack_guard): Update.
1670         (estimated_stack_frame_size): Update.
1671         (expand_used_vars): Update.
1672         (tree_expand_cfg): Free histogram earliers, init expansion variables.
1673         * explow.c (allocate_dynamic_stack_space): Update.
1674         * tree-ssa-live.c (remove_unused_locals): Update.
1675         * varasm.c (mark_constant_pool): Update.
1676         * tree-inline.c (remap_decls): Update.
1677         (initialize_cfun): Update.
1678         (declare_return_variable): Update.
1679         (inline_forbidden_p): Update.
1680         (expand_call_inline): Update.
1681         (declare_inline_vars): Update.
1682         (tree_function_versioning): Update.
1683         * tree-flow.h (value_histograms): New.
1684         (VALUE_HISTOGRAMS): New macro.
1685         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
1686         last_label_uid.
1687         * tree-cfg.c (set_bb_for_stmt): Update.
1688         (replace_by_duplicate_decl): Update.
1689         (move_block_to_fn): Update.
1690         (new_label_mapper): Update.
1691         (dump_function_to_file): Update.
1692         * ipa-struct-reorg.c (build_data_structure): Update.
1693         * cfgrtl.c (print_rtl_with_bb): Update.
1694         * reload1.c (reload): Update.
1695         (reload): Update.
1696         * config/i386/i386.c (setup_incoming_varargs_64,
1697         ix86_compute_frame_layout): Update.
1698         * config/arc/arc.c (arc_output_function_epilogue): Update.
1699
1700 2008-04-18  Marius Strobl <marius@FreeBSD.org>
1701
1702         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
1703         for FreeBSD as well.
1704         * gthr-posix95.h: Likewise.
1705
1706 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
1707
1708         PR rtl-optimization/35838
1709         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
1710         out the byte offset of the first subreg.
1711
1712 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
1713
1714         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
1715         to split_ti instead of three separate calls with single member arrays.
1716         (subti3 splitter): Ditto.
1717         (adddi3 splitter): Ditto with split_di.
1718         (subdi3 splitter): Ditto.
1719         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
1720         two separate calls with single member arrays.  Swap match_dup
1721         operands 1 and 2 to better fit into the array.
1722         (negdi2 splitter): Ditto with split_di.
1723         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
1724         two separate calls with single member arrays.  Swap match_dup operands
1725         6 and 7 to better fit into the array.
1726
1727 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1728
1729         * config/i386/i386.c (sse_builtin_type): New.
1730         (bdesc_sse_args): Likewise.
1731         (bdesc_sse_3arg): Removed.
1732         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
1733         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
1734         IX86_BUILTIN_ROUNDPS.
1735         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
1736         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
1737         IX86_BUILTIN_ROUNDPS.
1738         (ix86_expand_sse_4_operands_builtin): Removed.
1739         (ix86_expand_sse_operands_builtin): New.
1740         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
1741         and CODE_FOR_sse4_1_roundps.
1742         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
1743         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
1744
1745 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
1746
1747         PR target/35907
1748         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
1749         regs before frame pop when needed.  If use_backchain_to_restore_sp
1750         then load backchain into a temp reg to restore vr and vrsave.  Add
1751         code to restore vr after frame pop if possible.
1752
1753 2008-04-17  Richard Guenther  <rguenther@suse.de>
1754
1755         * tree-vn.c (expressions_equal_p): Do not check type
1756         equality or compatibility before calling operand_equal_p.
1757         * fold-const.c (operand_equal_p): Check equivalence of
1758         integer constants before bailing out due to signedness or
1759         precision differences.
1760         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
1761         spurious differences in type qualification.  Ignore types
1762         for COMPONENT_REFs at all.
1763
1764 2008-04-17  Christian Bruel  <christian.bruel@st.com>
1765
1766         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
1767         msw_skip comparison.
1768         
1769 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
1770
1771         PR c/35739
1772         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
1773         reg type.
1774
1775         PR tree-optimization/35899
1776         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
1777         rather than TREE_OPERAND.
1778
1779 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
1780
1781         PR target/35944
1782         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
1783         temporary registers.  Change operand predicate to general_operand.
1784         (remainderxf3): Ditto.
1785
1786 2008-04-16  Richard Guenther  <rguenther@suse.de>
1787
1788         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
1789         * tree-affine.c (aff_combination_expand): Look through some
1790         conversions.
1791
1792 2008-04-15  Doug Kwan  <dougkwan@google.com>
1793
1794         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
1795         for hex printing.
1796         * tree-pretty-print.c (dump_generic_node): Ditto.
1797         * final.c (output_addr_const): Ditto.
1798         * dwarf2out.c (output_cfi): Ditto.
1799         * c-pretty-print.c (pp_c_integer_constant): Ditto.
1800         * print-rtl.c (print_rtx): Ditto.
1801         * print-tree.c (print_node_brief, print_node): Ditto.
1802         * c-common.c (match_case_to_enum_1): Ditto.
1803         * sched-vis.c (print_value): Ditto.
1804         * config/i386/i386.c (print_operand): Cast to long unsigned int
1805         for hex printing.
1806
1807 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
1808         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
1809         MS Windows VirtualProtect function.
1810
1811 2008-04-15  Jan Hubicka  <jh@suse.cz>
1812
1813         * gengtype.c (write_root): Param_is argument is OK.
1814         * expr.c (expand_expr_real_1): Update call of get_exception_*.
1815         * function.h: Include varray.h
1816         (rtl_eh): New stucture based on except.c one.
1817         (call_site_record): New forward declaration and vector type.
1818         * calls.c (emit_call_1): Do not call
1819         note_current_region_may_contain_throw.
1820         * except.c (eh_status): Remove cur_region, try_region since they are
1821         unused.
1822         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
1823         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
1824         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
1825         Remove call_site_data_used, call_site_data_size.
1826         Turn call_site_record into vector in function.h.
1827         (note_current_region_may_contain_throw): Remove.
1828         (get_exception_pointer, get_exception_filter): Do not take struct
1829         function argument; update.
1830         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
1831         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
1832         build_post_landing_pads, dw2_build_landing_pads,
1833         sjlj_assign_call_site_values, sjlj_mark_call_sites,
1834         sjlj_emit_function_enter, sjlj_emit_function_enter, 
1835         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1836         sjlj_build_landing_pads, finish_eh_generation,
1837         remove_exception_handler_label, remove_eh_handler,
1838         maybe_remove_eh_handler, add_reachable_handler,
1839         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
1840         add_action_record, collect_one_action_chain, add_call_site,
1841         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
1842         sjlj_output_call_site_table, output_function_exception_table,
1843         * except.h (note_current_region_may_contain_throw): Remove
1844         (get_exception_pointer, get_exception_filter): Do not take struct
1845         function argument.
1846         * Makefile.in (GTFILES): Put varargs before struct function.
1847
1848 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1849
1850         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
1851         punt for STRING_CST.
1852         (get_constraint_for): Deal with STRING_CST here instead.
1853
1854 2008-04-15  Richard Guenther  <rguenther@suse.de>
1855
1856         * tree-ssa-propagate.c (substitute_and_fold): Substitute
1857         statements in a basic-block with a backward walk.  Do not
1858         substitute into dead statements but instead remove those.
1859
1860 2008-04-15  Richard Guenther  <rguenther@suse.de>
1861
1862         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
1863         to zero, thus disable creation of SFTs.
1864
1865 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1866
1867         * tree-predcom.c (suitable_reference_p): Return false if the
1868         reference can throw.
1869
1870 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
1871
1872         PR c/35751
1873         * c-decl.c (finish_decl): If extern or static var has variable
1874         size, set TREE_TYPE (decl) to error_mark_node.
1875
1876 2008-04-15  Rafael Espindola  <espindola@google.com>
1877
1878         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
1879         variable arg1.
1880
1881 2008-04-15  Richard Guenther  <rguenther@suse.de>
1882
1883         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1884         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
1885         (visit_reference_op_load): Do walk vuse-vdef chains on
1886         vn_reference_lookup.
1887         (visit_reference_op_store): But do not here.
1888         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
1889         vn_reference_lookup.
1890         (vn_lookup_with_vuses): But do so here.
1891
1892 2008-04-14  Ian Lance Taylor  <iant@google.com>
1893
1894         * fold-const.c (fold_overflow_warning): Remove assertion.
1895
1896 2008-04-15  Ben Elliston  <bje@au.ibm.com>
1897
1898         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
1899         temp1 local variables.
1900
1901 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
1902
1903         PR target/35661
1904         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
1905         ".text.unlikely" section as executable.
1906
1907 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
1908
1909         * config/ia64/ia64.c (rtx_needs_barrier): Handle
1910         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
1911         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
1912         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
1913         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
1914         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
1915         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
1916
1917 2008-04-14  Ian Lance Taylor  <iant@google.com>
1918
1919         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
1920         * fold-const.c (fold_comparison): If appropriate, test
1921         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
1922         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
1923         reassociating a pointer type.
1924         * doc/invoke.texi (Optimize Options): Document that
1925         -fstrict-overflow applies to pointer wraparound.
1926
1927 2008-04-13  Jan Hubicka  <jh@suse.cz>
1928
1929         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
1930
1931 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
1932
1933         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
1934         we are going to "save the world".
1935
1936 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
1937
1938         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
1939         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
1940         operand 0 constraint, not "=".
1941
1942 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
1943
1944         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
1945
1946 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1947
1948         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
1949         of size of positions_needed * CHAR_BIT.
1950
1951 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1952
1953         PR middle-end/35897
1954         * dse.c (store_info): Change positions_needed to unsigned
1955         HOST_WIDE_INT.
1956         (lowpart_bitmask): New.
1957         (record_store): Cast to unsigned HOST_WIDE_INT for
1958         positions_needed.  Assert width <= size of positions_needed *
1959         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
1960         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
1961         lowpart_bitmask to set mask.
1962
1963 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
1964
1965         * config/bfin/constraints.md: New file.
1966         * config/bfin/bfin.md: Include it.
1967         (adddi3): Use satisfies_constraint functions instead of the old macros.
1968         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1969         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
1970         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
1971         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
1972         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
1973         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
1974         EXTRA_CONSTRAINT): Delete.
1975         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
1976         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
1977         of the old macros.
1978         * config/bfin/bfin.c: Include "tm-constrs.h".
1979         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
1980         Use satisfies_constraint functions instead of the old macros.
1981         * doc/md.texi (Blackfin Constraints): Update file name reference.
1982
1983 2008-04-11  Richard Guenther  <rguenther@suse.de>
1984
1985         PR tree-optimization/35869
1986         * tree-vrp.c (execute_vrp): Move switch statement update after
1987         jump threading.  Schedule another cfg cleanup run.
1988
1989 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
1990
1991         PR c/35744
1992         * attribs.c (decl_attributes): Return early on errorneous node.
1993
1994 2008-04-10  Oleg Ryjkov  <olegr@google.com>
1995
1996         * tree.h (struct tree_base): Added a new flag default_def_flag.
1997         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
1998
1999 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2000
2001         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
2002
2003 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2004
2005         PR target/35768
2006         * pa.md: Define mode iterator P.  Define mode attribute dwc.
2007         (dcacheflush): Update pattern to use iterator P and attribute dwc.
2008         (icacheflush): Likewise.
2009         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
2010         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
2011
2012 2008-04-11  Ben Elliston  <bje@au.ibm.com>
2013
2014         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2015
2016 2008-04-10  Rafael Espindola  <espindola@google.com>
2017
2018         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
2019         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
2020         (extract_range_from_expr): The same.
2021
2022 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2023
2024         * config/mips/mips.md (GPR2): New mode iterator.
2025         (seq): Add comment.
2026         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
2027         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
2028         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
2029         Rewrite these to take two modes, the mode of comparison and the
2030         mode of the destination.
2031         * config/mips/mips.c (mips_expand_scc): Instead of having
2032         paradoxical subreg as destination, expand "narrowing" scc if mode
2033         of comparison is SI and target is requested in DI mode.
2034         (mips_emit_int_order_test): Update comment.  Make mode of
2035         comparison match CMP0 rather than TARGET.  When creating inverse
2036         target use mode of TARGET.
2037
2038 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2039
2040         * gcov-dump.c (tag_summary): Only print summaries for the first
2041         GCOV_COUNTERS_SUMMABLE counters.
2042
2043 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
2044
2045         * config/i386/i386.md (absneg): New code iterator.
2046         (absnegprefix): New code attribute.
2047         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
2048         patterns using absneg code iterator.
2049         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
2050         using absneg code iterator.
2051         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
2052         *neg<mode>2 patterns using absneg code iterator.
2053         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2054         *negextendsfdf2 patterns using absneg code iterator.
2055         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
2056         *negextendsfxf2 patterns using absneg code iterator.
2057         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
2058         *negextendsfdf2 patterns using absneg code iterator.
2059         * config/i386/sse.md (<code><mode>2): Macroize expander from
2060         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
2061
2062 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2063
2064         * config/s390/s390.h: Remove the remains of the recent search
2065         & replace action of current_function_outgoing_args_size.
2066
2067 2008-04-10  Ira Rosen  <irar@il.ibm.com>
2068
2069         PR tree-optimization/35821
2070         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
2071         NEW_STMT_LIST is not NULL.
2072
2073 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
2074
2075         PR libstdc++/35597
2076         * toplev.c (process_options): Remove -ffunction-sections debugging
2077         warning.
2078
2079 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
2080
2081         PR middle-end/PR28690
2082         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
2083         than gen_rtx_fmt_ee to perform more canonicalizations.
2084
2085 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2086
2087         PR driver/35665
2088         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
2089
2090 2008-04-09  Richard Guenther  <rguenther@suse.de>
2091
2092         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
2093         (dump_function_to_file): Dump function arguments with types.
2094
2095 2008-04-08  Richard Guenther  <rguenther@suse.de>
2096
2097         * fold-const.c (fold_widened_comparison): Do not allow
2098         sign-changes that change the result.
2099
2100 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
2101
2102         PR target/35839
2103         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
2104         kinds of indirect references.
2105
2106 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
2107
2108         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
2109         GNU Fortran language string.
2110
2111 2008-04-08  Rafael Espindola  <espindola@google.com>
2112
2113         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
2114         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
2115         * tree.h (tree_call_nonnegative_warnv_p): New.
2116
2117 2008-04-08  Jan Hubicka  <jh@suse.cz>
2118
2119         * function.c (free_after_compilation): Clear out regno_reg_rtx
2120         pointer.
2121
2122 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
2123
2124         Revert
2125         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
2126
2127         PR middle-end/PR28690
2128         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2129         same precedence as REG_POINTER and MEM_POINTER operands.
2130
2131 2008-04-08  Richard Guenther  <rguenther@suse.de>
2132
2133         PR middle-end/35834
2134         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2135         for adding index to base.
2136
2137 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
2138
2139         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2140         (MINGW_ENABLE_EXECUTE_STACK): New.
2141         (IN_LIBGCC2): For libgcc include windows.h file for
2142         function declarations.
2143
2144 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
2145
2146         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2147         and tem2 if tem1 is not a REG or MULT.
2148
2149 2008-04-08  Jan Hubicka  <jh@suse.cz>
2150
2151         * function.h (incomming_args): Break out of struct function.
2152         (function_subsections): Break out of struct function.
2153         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2154         return_rtx and hard_reg_initial_vals from struct function.
2155         Kill inl_max_label_num.
2156         (current_function_pops_args, current_function_args_info,
2157         current_function_args_size, current_function_args_size,
2158         current_function_pretend_args_size,
2159         current_function_outgoing_args_size,
2160         current_function_internal_arg_pointer, current_function_return_rtx):
2161         Kill compatibility accestor macros.
2162         * builtins.c (expand_builtin_apply_args_1): Update.
2163         (expand_builtin_next_arg): Update.
2164         * df-scan.c (df_get_call_refs): Update.
2165         * dbxout.c (dbxout_function_end): Update.
2166         * dwarf2out.c (dwarf2out_switch_text_section): Update.
2167         (output_line_info): Update.
2168         (secname_for_decl): Update.
2169         (dwarf2out_var_location): Update.
2170         * function.c (free_after_compilation): Update.
2171         (assign_parm_find_stack_rtl): Update.
2172         (assign_parms): Update.
2173         (expand_dummy_function_end): Update.
2174         (expand_function_end): Update.
2175         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
2176         (expand_call): Update.
2177         (emit_library_call_value_1): Update.
2178         (store_one_arg): Update.
2179         * varasm.c (initialize_cold_section_name): Update.
2180         (unlikely_text_section): Update.
2181         (unlikely_text_section_p): Update.
2182         (assemble_start_function): Update.
2183         (assemble_end_function): Update.
2184         (default_section_type_flags): Update.
2185         (switch_to_section): Update.
2186         * integrate.c (set_decl_abstract_flags): Update.
2187         (get_hard_reg_initial_val): Update.
2188         (has_hard_reg_initial_val): Update.
2189         (allocate_initial_values): Update.
2190         * resource.c (init_resource_info): Update.
2191         * config/alpha/alpha.c (NUM_ARGS): Update.
2192         (direct_return): Update.
2193         (alpha_va_start): Update.
2194         (alpha_sa_size): Update.
2195         (alpha_initial_elimination_offset): Update.
2196         (alpha_expand_prologue): Update.
2197         (alpha_start_function): Update.
2198         (alpha_expand_epilogue): Update.
2199         (unicosmk_initial_elimination_offset):
2200         * config/alpha/alpha.md (call expander): Update.
2201         * config/s390/s390.c (s390_register_info): Update.
2202         (s390_register_info): Update.
2203         (s390_frame_info): Update.
2204         (s390_initial_elimination_offset): Update.
2205         (s390_build_builtin_va_list): Update.
2206         (s390_va_start): Update.
2207         * config/spu/spu.c (direct_return): Update.
2208         (spu_expand_prologue): Update.
2209         (spu_initial_elimination_offset): Update.
2210         (spu_build_builtin_va_list): Update.
2211         (spu_va_start): Update.
2212         * config/sparc/sparc.c (sparc_init_modes): Update.
2213         (sparc_compute_frame_size): Update.
2214         (function_value): Update.
2215         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
2216         * config/i386/i386.md (return expander): Update.
2217         * config/i386/i386.c (ix86_va_start): Update.
2218         (ix86_can_use_return_insn_p): Update.
2219         (ix86_compute_frame_layout): Update.
2220         (ix86_expand_epilogue): Update.
2221         * config/sh/sh.c (output_stack_adjust): Update.
2222         (calc_live_regs): Update.
2223         (sh_expand_prologue): Update.
2224         (sh_builtin_saveregs): Update.
2225         (sh_va_start): Update.
2226         (initial_elimination_offset): Update.
2227         (sh_allocate_initial_value): Update.
2228         (sh_function_ok_for_sibcall): Update.
2229         (sh_get_pr_initial_val): Update.
2230         * config/sh/sh.md (return expander): Update.
2231         * config/avr/avr.c (frame_pointer_required_p): UPdate.
2232         * config/crx/crx.c (crx_compute_frame): UPdate.
2233         (crx_initial_elimination_offset): UPdate.
2234         * config/xtensa/xtensa.c (compute_frame_size): Update
2235         (xtensa_builtin_saveregs): Update.
2236         (xtensa_va_start): Update.
2237         (order_regs_for_local_alloc): Update.
2238         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
2239         (xstormy16_expand_builtin_va_start): Update.
2240         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
2241         * config/m68hc11/m68hc11.md (return expanders): Update.
2242         * config/m68hc11/m68hc11.c (expand_prologue): Update.
2243         (expand_epilogue): Update.
2244         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
2245         (cris_simple_epilogue): Update.
2246         (cris_expand_prologue): Update.
2247         (cris_expand_epilogue): Update.
2248         * config/iq2000/iq2000.c (iq2000_va_start): Update.
2249         (compute_frame_size): Update.
2250         * config/mt/mt.c (mt_compute_frame_size): Update.
2251         * config/mn10300/mn10300.c (expand_prologue): Update.
2252         (expand_epilogue): Update.
2253         (initial_offset): Update.
2254         (mn10300_builtin_saveregs):
2255         * config/mn10300/mn10300.md (return expander): Update.
2256         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2257         (ia64_initial_elimination_offset): Update.
2258         (ia64_initial_elimination_offset): Update.
2259         (ia64_expand_prologue): Update.
2260         * config/m68k/m68k.md (return expander): Update.
2261         * config/rs6000/rs6000.c (rs6000_va_start): Update.
2262         (rs6000_stack_info): Update.
2263         * config/mcore/mcore.c (layout_mcore_frame): Update.
2264         (mcore_expand_prolog): Update.
2265         * config/arc/arc.c (arc_compute_frame_size): Update.
2266         * config/score/score3.c (score3_compute_frame_size): Update.
2267         * config/score/score7.c (score7_compute_frame_size): Update.
2268         * config/arm/arm.c (use_return_insn): Update.
2269         (thumb_find_work_register): Update.
2270         (arm_compute_save_reg_mask): Update.
2271         (arm_output_function_prologue): Update.
2272         (arm_output_epilogue): Update.
2273         (arm_size_return_regs): Update.
2274         (arm_get_frame_offsets): Update.
2275         (arm_expand_prologue): Update.
2276         (thumb_exit): Update.
2277         (thumb_unexpanded_epilogue): Update.
2278         (thumb1_output_function_prologue): Update.
2279         * config/pa/pa.md (return expander): Update.
2280         * config/pa/pa.c (compute_frame_size): Update.
2281         (hppa_builtin_saveregs): Update.
2282         * config/mips/mips.c (mips_va_start): Update.
2283         (mips16_build_function_stub): Update.
2284         (mips_compute_frame_info): Update.
2285         (mips_restore_gp): Update.
2286         (mips_output_function_prologue): Update.
2287         (mips_expand_prologue): Update.
2288         * config/v850/v850.c (compute_frame_size): Update.
2289         (expand_prologue): * config/mmix/mmix.c (along): update.
2290         (mmix_initial_elimination_offset): update.
2291         (mmix_reorg): update.
2292         (mmix_use_simple_return): update.
2293         (mmix_expand_prologue): update.
2294         (mmix_expand_epilogue): Update.
2295         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
2296         (emit_link_insn): Update.
2297
2298 2008-04-08  Anatoly Sokolov <aesok@post.ru>
2299
2300         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
2301         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
2302         instructions.
2303         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
2304         atmega103 device.
2305
2306 2008-04-07  Jan Hubicka  <jh@suse.cz>
2307
2308         * function.h (rtl): Rename to x_rtl.
2309         (crtl): New define.
2310         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
2311         frame_offset, stack_check_probe_note, arg_pointer_save_area,
2312         used_temp_slots avail_temp_slots, temp_slot_level,
2313         nonlocal_goto_handler_labels): Update accesstors.
2314         (rtl): New global variable.
2315         (struct function): Move some fileds to rtl_data.
2316         (get_arg_pointer_save_area): Update prototype.
2317         * builtins.c (expand_builtin_setjmp_receiver): Update call of
2318         get_arg_pointer_save_area.
2319         * expr.c (init_expr): Update
2320         * function.c (get_frame_size): Update
2321         (assign_stack_local): Update
2322         (expand_function_end): Update.
2323         (get_art_pointer_save_area): Update
2324         * function.h 
2325         * emit-rtl.c (rtl): Declare.
2326         (regno_reg_rtx): Declare.
2327         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
2328         Update.
2329         (gen_reg_rtx): Update.
2330         * varasm.c (n_deferred_constatns): Update accestor.
2331         (init_varasm_status): Do not allocate varasm_status.
2332         (force_const_mem, get_pool_size, output_constant_pool): Update.
2333         * stmt.c (force_label_rtx): Do not use x_ prefixes.
2334         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2335         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
2336         * sparc/sparc.h (INIT_EXPANDERS): Update.
2337         * ia64/ia64.h (INIT_EXPANDERS): Update.
2338
2339 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
2340
2341         * reload.c (push_secondary_reload): Add missing break to for loop.
2342
2343 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
2344
2345         PR middle-end/PR28690
2346         * rtlanal.c: Update copyright years.
2347         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
2348         as REG_POINTER and MEM_POINTER operands.
2349         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
2350         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
2351         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
2352         * gcse.c: Update copyright years.
2353         (pre_delete): Call gen_reg_rtx_and_attrs.
2354         (hoist_code): Likewise.
2355         (build_store_vectors): Likewise.
2356         (delete_store): Likewise.
2357         * loop-invariant.c (move_invariant_reg): Likewise.
2358         Update copyright years.
2359
2360 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
2361
2362         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
2363         control string instead of quoted.
2364
2365 2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
2366
2367         * doc/rtl.texi: Rewrite of subreg section.
2368
2369 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
2370
2371         PR/35842
2372         * config/i386/i386.c (legitimize_pic_address): Add treating
2373         of dllimport SYM_REF's.
2374         (legitimize_dllimport_symbol): Add prototype.
2375
2376 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2377
2378         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
2379         reference in constructor with non self-referential type.
2380
2381 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2382
2383         Removal of Return with Depressed Stack Pointer support
2384         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
2385         (ECF_SP_DEPRESSED): Likewise.
2386         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
2387         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
2388         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2389         (expand_call): Do not test ECF_SP_DEPRESSED.
2390         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2391         * function.c (keep_stack_depressed): Delete.
2392         (handle_epilogue_set): Likewise.
2393         (update_epilogue_consts): Likewise.
2394         (emit_equiv_load): Likewise.
2395         (thread_prologue_and_epilogue_insns): Remove support for Return with
2396         Depressed Stack Pointer.
2397         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2398
2399 2008-04-06  Richard Guenther  <rguenther@suse.de>
2400
2401         PR tree-optimization/35400
2402         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
2403         information from SSA_NAMEs.
2404
2405 2008-04-06  Anatoly Sokolov <aesok@post.ru>
2406
2407         * config/avr/avr.h (avr_mega_p): Remove declaration.
2408         (AVR_MEGA): Remove macro.
2409         * config/avr/avr.c (avr_mega_p): Remove variable.
2410         (avr_override_options): Remove inicializion of avr_mega_p.
2411         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
2412         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
2413         (avr_jump_mode): (Ditto.).
2414         (avr_output_progmem_section_asm_op): (Ditto.).
2415         (avr_asm_init_sections): (Ditto.).
2416         (avr_asm_init_sections): (Ditto.).
2417         (avr_rtx_costs): (Ditto.).
2418         * config/avr/avr.md: (Ditto.).
2419         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
2420         '__AVR_MEGA__'.
2421
2422 2008-04-06  Richard Guenther  <rguenther@suse.de>
2423
2424         PR tree-optimization/35842
2425         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
2426         is_gimple_invariant_address.
2427
2428 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2429
2430         * gcc.c (default_compilers): Sync Fortran extensions list with
2431         that in fortran/lang-specs.h.
2432         * doc/invoke.texi: Likewise.
2433         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
2434         * dwarf2out.c (gen_compile_unit_die): Likewise.
2435
2436 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
2437
2438         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
2439
2440 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
2441
2442         PR target/12329
2443         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
2444         attribute is used for nested functions.
2445
2446 2008-04-05  Jan Hubicka  <jh@suse.cz>
2447
2448         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
2449
2450         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
2451         letter argument.
2452         (dump_files): Update.
2453         (enable_rtl_dump_file): Do not accept letter argument.
2454         * tree-pass.h (dump_file_info): Remove letter argument.
2455         * toplev.c (decode_d_option): Update -da handling.
2456         * toplev.h (enable_rtl_dump_file): Update prototype.
2457         * passes.c (register_one_dump_file): Do not accept IPA argument; work
2458         it out based on pass type.
2459         (register_dump_files_1): Likewise.
2460         (init_optimization_passes): Update register_one_dump_file calls.
2461         (execute_one_pass): Sanity check that IPA passes are called at IPA
2462         level and RTL passes at RTL level.
2463         (execute_pass_list): IPA pass can not be after or subpass of
2464         GIMPLE/RTL pass.
2465         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
2466         disallov RTL subpasses of IPA subpasses.
2467
2468 2008-04-05  Ben Elliston  <bje@au.ibm.com>
2469
2470         * tree-cfg.c (need_fake_edge_p): Return false for calls to
2471         builtins that return exactly once and do not throw. Cache call to
2472         call_expr_flags.
2473
2474 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
2475
2476         PR rtl-optimization/34916
2477         PR middle-end/35519
2478         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
2479         between instruction pairs.
2480
2481 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
2482
2483         * doc/invoke.texi: Document -mbitops for SH.
2484         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
2485         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
2486         * config/sh/sh.c (print_operand): Add %t operand code.
2487         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
2488         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
2489         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
2490         (extendqihi2): Likewise.
2491         (movqi_i): Likewise.
2492         (insv): Use bset, bclr and bst instructions for SH2A if possible.
2493         (extv): Use bld instruction for SH2A if possible.
2494         (extzv): Likewise.
2495         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
2496         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
2497         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
2498         (bset.b, bclr.b): Define peepholes.
2499         * config/sh/sh.opt (mbitops): New option.
2500
2501 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
2502
2503         PR target/35620
2504         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
2505         and view convert expression.
2506
2507 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
2508
2509         PR target/35364
2510         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
2511
2512 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
2513
2514         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
2515
2516         * config/i386/cpuid.h (bit_AES): New.
2517         (bit_PCLMUL): Likewise.
2518
2519         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
2520         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
2521         SSE2 if AES or PCLMUL is enabled.
2522         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
2523         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
2524         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
2525         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
2526         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
2527         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
2528         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
2529         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
2530         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
2531         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
2532         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
2533         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
2534         __builtin_ia32_aeskeygenassist128 and
2535         __builtin_ia32_pclmulqdq128.
2536         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
2537         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
2538         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
2539
2540         * config/i386/i386.h (TARGET_AES): New.
2541         (TARGET_PCLMUL): Likewise.
2542         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
2543
2544         * config/i386/i386.md (UNSPEC_AESENC): New.
2545         (UNSPEC_AESENCLAST): Likewise.
2546         (UNSPEC_AESDEC): Likewise.
2547         (UNSPEC_AESDECLAST): Likewise.
2548         (UNSPEC_AESIMC): Likewise.
2549         (UNSPEC_AESKEYGENASSIST): Likewise.
2550         (UNSPEC_PCLMUL): Likewise.
2551
2552         * config/i386/i386.opt (maes): New.
2553         (mpclmul): Likewise.
2554
2555         * config/i386/sse.md (aesenc): New pattern.
2556         (aesenclast): Likewise.
2557         (aesdec): Likewise.
2558         (aesdeclast): Likewise.
2559         (aesimc): Likewise.
2560         (aeskeygenassist): Likewise.
2561         (pclmulqdq): Likewise.
2562
2563         * config/i386/wmmintrin.h: New.
2564
2565         * doc/extend.texi: Document AES and PCLMUL built-in function.
2566
2567         * doc/invoke.texi: Document -maes and -mpclmul.
2568
2569 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
2570
2571         * function.c (free_after_parsing): Replace with
2572         cxx_push_function_context from C++ front-end.
2573         (allocate_struct_function): Don't call langhook.
2574         * langhooks.h (struct lang_hooks_for_functions): Delete.
2575         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
2576         member "function".
2577         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
2578         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
2579         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2580         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
2581         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
2582         remove LANG_HOOKS_FUNCTION_INITIALIZER.
2583         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
2584
2585         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
2586         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
2587         
2588 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
2589
2590         PR c/35440
2591         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
2592         for all types.
2593
2594 2008-04-04  Richard Guenther  <rguenther@suse.de>
2595
2596         PR middle-end/35823
2597         * fold-const.c (optimize_minmax_comparison): Use the correct
2598         type for the constant in the simplified comparison.
2599
2600 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
2601
2602         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
2603         Pass L2 size as "--param l2-cache-size" to the compiler.
2604         (decode_l2_cache): New function to decode L2 cache parameters using
2605         0x8000006 extended cpuid function.
2606         (detect_caches_amd): Determine parameters of L2 cache using
2607         decode_l2_caches function.
2608         (decode_caches_intel): Decode L2 cache parameters.
2609         (detect_caches_intel): Determine L2 cache parameters using
2610         decode_caches_intel and decode_l2_caches functions.
2611
2612 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
2613
2614         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
2615         secondary input reload for subword loads from the constant pool.
2616
2617 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
2618
2619         PR target/35713
2620         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
2621           constants of the appropriate size for runtime calculations.
2622
2623         PR c/35712
2624         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
2625           decimal-float literal constant zero.
2626
2627 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
2628
2629         PR c/35738
2630         * c-parser.c (c_parser_omp_atomic): Call
2631         default_function_array_conversion on the RHS.
2632
2633         PR middle-end/35818
2634         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
2635         call is_variable_sized if decl has incomplete type.
2636
2637 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
2638
2639         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
2640
2641 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
2642
2643         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
2644         iterators.
2645         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
2646         (sgt<u>): Merge sgt and sgtu into new expander.
2647         (sgt, sgtu): Remove expanders.
2648         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
2649         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
2650         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
2651         *sgtu_<mode>_mips16 into new pattern.
2652         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
2653         (sge<u>): Merge sge and sgeu into new expander.
2654         (sge, sgeu): Remove expanders.
2655         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
2656         new pattern.
2657         (*sge_<mode>, second *sge_<mode>): Remove patterns.
2658         (slt<u>): Merge slt and sltu into new expander.
2659         (slt, sltu): Remove expanders.
2660         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
2661         (*slt_<mode>, *sltu_<mode>): Remove patterns.
2662         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
2663         *sltu_<mode>_mips16 into new pattern.
2664         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
2665         (sle<u>): Merge sle and sleu into new expander.
2666         (sle, sleu): Remove expanders.
2667         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
2668         (*sle_<mode>, *sleu_<mode>): Remove patterns.
2669         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
2670         *sleu_<mode>_mips16 into new pattern.
2671         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
2672
2673 2008-04-03  Jan Hubicka  <jh@suse.cz>
2674
2675         PR tree-optimization/35795
2676         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
2677         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2678         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2679         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2680         * score/score3.c (score3_output_mi_thunk): Likewise.
2681         * score/score7.c (score7_output_mi_thunk): Likewise.
2682         * mips/mips.c (mips_output_mi_thunk): Likewise.
2683
2684 2008-04-03  Richard Guenther  <rguenther@suse.de>
2685
2686         * tree-vrp.c (extract_range_from_unary_expr): Handle all
2687         conversions.  Simplify code.
2688
2689 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2690
2691         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
2692
2693 2008-04-03  Tom Tromey  <tromey@redhat.com>
2694             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2695
2696         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2697         * config/bfin/t-bfin-linux (generated_files): Add
2698         linux-sysroot-suffix.h.
2699         * doc/install.texi (Prerequisites): Require make 3.80.
2700         * doc/sourcebuild.texi (Front End Directory): Document new
2701         variable.
2702         * Makefile.in (generated_files): New variable.
2703         (ALL_HOST_OBJS): New variable.
2704         ($(ALL_HOST_OBJS)): New target.
2705
2706 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
2707
2708         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
2709         (remap_block): Call id->transform_lang_insert_block instead
2710         of langhook.
2711         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
2712         Set id.transform_lang_insert_block to NULL.
2713         (clone_body): Move to cp/optimize.c
2714         * tree-inline.h (struct copy_body_data): Change
2715         transform_lang_insert_block to function pointer.
2716         (copy_generic_body, copy_decl_no_change): Export.
2717         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
2718         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
2719         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
2720
2721         * c-tree.h (insert_block): Kill.
2722         * c-decl.c (insert_block): Kill.
2723
2724 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
2725
2726         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2727         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
2728         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
2729         argument.
2730         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
2731         argument, call {push,pop}_function_context from here.
2732         * c-parser.c: Use c_{push,pop}_function_context.
2733
2734         * function.c (push_function_context_to): Move meat ...
2735         (push_function_context): ... here.  Simplify.
2736         * function.c (pop_function_context_from): Move meat ...
2737         (pop_function_context): ... here.  Simplify.
2738         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
2739         leave_nested).
2740         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2741         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
2742         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
2743         * tree.h (push_function_context_to, pop_function_context_from): Remove.
2744
2745 2008-04-03  Ben Elliston  <bje@au.ibm.com>
2746
2747         * expmed.c (extract_force_align_mem_bit_field): Remove.
2748
2749 2008-04-03  Richard Guenther  <rguenther@suse.de>
2750
2751         PR middle-end/35800
2752         * expr.h (try_casesi): Adjust prototype.
2753         * expr.c (try_casesi): Take fallback label as extra parameter.
2754         Use that for gen_casesi if default_label is NULL.
2755         * stmt.c (expand_case): Pass fallback label to try_casesi,
2756         make sure to fill gaps with a fallback label if default_label
2757         is not present.
2758
2759 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
2760
2761         PR target/35801
2762         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
2763
2764 2008-04-03  Ben Elliston  <bje@au.ibm.com>
2765
2766         * expmed.c (extract_split_bit_field): Remove if (0) code.
2767         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
2768         (do_ds_constraint): Likewise.
2769
2770 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
2771
2772         * doc/cppopts.texi (-dU): Document.
2773         * c-common.h (flag_dump_macros): Update comment.
2774         * c-opts.c (handle_OPT_d): Handle -dU.
2775         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
2776         dump_queued_macros, cb_used_define, cb_used_undef): New.
2777         (init_pp_output): Handle -dU.
2778         (cb_line_change): Call dump_queued_macros.
2779         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
2780
2781 2008-04-02  Anatoly Sokolov <aesok@post.ru>
2782
2783         * config/avr/predicates.md (io_address_operand): New predicate. 
2784         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
2785         * config/avr/avr.c (avr_io_address_p): Remove function.
2786         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
2787         'avr_io_address_p' function.
2788         (out_movhi_r_mr): (Ditto.).
2789         (out_movqi_mr_r): (Ditto.).
2790         (out_movhi_mr_r): (Ditto.).
2791         (avr_address_cost): (Ditto.).
2792
2793 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
2794
2795         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
2796         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
2797         in 32bit mode when XMM registers are available to avoid store
2798         forwarding stalls.
2799         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
2800         corresponding post-reload splitters.
2801
2802 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2803
2804         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
2805         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
2806         __builtin_ia32_roundss.
2807         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
2808         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
2809         __builtin_ia32_roundss.
2810         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
2811         IX86_BUILTIN_SHUFPD here.
2812
2813 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2814
2815         * config/i386/i386.md (plogic): New.
2816         (plogicprefix): Likewise.
2817
2818         * config/i386/mmx.md (mmx_<code><mode>3): New.
2819         (mmx_and<mode>3): Removed.
2820         (mmx_ior<mode>3): Likewise.
2821         (mmx_xor<mode>3): Likewise.
2822
2823         * config/i386/sse.md (<code><mode>3): New.
2824         (*<code><mode>3): Likewise.
2825         (*<code><mode>3): Likewise.
2826         (<code><mode>3): Likewise.
2827         (*sse_<code><mode>3): Likewise.
2828         (*sse2_<code><mode>3): Likewise.
2829         (<code>tf3): Likewise.
2830         (*<code>tf3): Likewise.
2831         (and<mode>3): Likewise.
2832         (*and<mode>3): Likewise.
2833         (ior<mode>3): Removed.
2834         (*ior<mode>3): Likewise.
2835         (xor<mode>3): Likewise.
2836         (*xor<mode>3): Likewise.
2837         (*and<mode>3): Likewise.
2838         (*ior<mode>3): Likewise.
2839         (*xor<mode>3): Likewise.
2840         (and<mode>3): Likewise.
2841         (*sse_and<mode>3): Likewise.
2842         (*sse2_and<mode>3): Likewise.
2843         (andtf3): Likewise.
2844         (*andtf3): Likewise.
2845         (ior<mode>3): Likewise.
2846         (*sse_ior<mode>3): Likewise.
2847         (*sse2_ior<mode>3): Likewise.
2848         (iortf3): Likewise.
2849         (*iortf3): Likewise.
2850         (xor<mode>3): Likewise.
2851         (*sse_xor<mode>3): Likewise.
2852         (*sse2_xor<mode>3): Likewise.
2853         (xortf3): Likewise.
2854         (*xortf3): Likewise.
2855
2856 2008-04-02  Richard Guenther  <rguenther@suse.de>
2857
2858         PR tree-optimization/14495
2859         PR tree-optimization/34793
2860         * tree-vrp.c (struct switch_update): New structure.
2861         (to_remove_edges, to_update_switch_stmts): New VECs.
2862         (simplify_switch_using_ranges): New function.  Remove not taken
2863         case labels and edges.
2864         (simplify_stmt_using_ranges): Call it.
2865         (identify_jump_threads): Mark edges we have queued for removal
2866         so we don't thread them.
2867         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
2868         case label vector.
2869         * tree-cfg.c (group_case_labels): Deal with missing default label.
2870         (tree_verify_flow_info): Allow missing default label.
2871         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
2872         (emit_case_nodes): Likewise.
2873         (expand_case): Do not rely on the default label to be present.
2874         * expr.c (try_casesi): Deal with NULL default_label.
2875         (do_tablejump): Likewise.
2876
2877 2008-04-02  Richard Guenther  <rguenther@suse.de>
2878
2879         PR tree-optimization/14495
2880         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
2881         SWITCH_EXPR here ...
2882         (vrp_visit_switch_stmt): ... but here (new function).
2883         (find_case_label_index): New helper function.
2884         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
2885
2886 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2887
2888         * fwprop.c: Fix ISO-C99ism.
2889
2890 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2891
2892         PR bootstrap/35752
2893         * Makefile.in (objdir): Set it here.
2894         * configure.ac: Not here.  Find dynamic linker characteristics.
2895         * exec-tool.in: Use them.
2896         * aclocal.m4: Regenerate.
2897         * configure: Regenerate.
2898
2899 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2900
2901         * expr.c (expand_var): Delete it.
2902         * expr.h (expand_var): Delete prototype.
2903         * function.c (expand_function_start): Use expand_decl instead.
2904         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
2905         langhook.
2906
2907 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
2908
2909         PR rtl-optimization/35542
2910         * fwprop.c (forward_propagate_and_simplify): Replace
2911         loc_reg_mentioned_in_p with reg_mentioned_p.
2912
2913 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2914
2915         PR rtl-optimization/35281
2916         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
2917         (propagate_rtx_1): Handle PR_HANDLE_MEM.
2918         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
2919         (varying_mem_p): Move above propagate_rtx.
2920         (all_uses_available_at): Do not check MEMs.
2921
2922 2008-04-02  Rafael Espindola  <espindola@google.com>
2923
2924         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
2925         (register_edge_assert_for_2): Split the cond argument.
2926         (register_edge_assert_for_1): Adjust for the change in
2927         register_edge_assert_for_2.
2928         (register_edge_assert_for): Split the cond argument.
2929         (find_switch_asserts): Adjust for the change in
2930         register_edge_assert_for.
2931
2932 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
2933
2934         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
2935         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
2936         offsets for 64-bit mingw.
2937         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
2938         abi for x86_64-pc-mingw.
2939
2940 2008-04-02  Richard Guenther  <rguenther@suse.de>
2941
2942         * tree-vrp.c (extract_range_from_assert): Make sure to not
2943         produce range min/max with TREE_OVERFOW set.
2944         If merging a anti-range and a range keep the anti-range if
2945         the range covers all values of the type.
2946         (register_edge_assert_for_2): Only allow sign-changing
2947         conversions in detecting canonical range checks.  Also
2948         register an assert for the unsigned name if useful.
2949
2950         PR tree-optimization/35787
2951         * tree-vrp.c (vrp_val_max): New function.
2952         (vrp_val_min): Likewise.
2953         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
2954         (vrp_val_is_min): Likewise.
2955         (supports_overflow_infinity): Use vrp_val_{min,max}.
2956         (negative_overflow_infinity): Likewise.
2957         (positive_overflow_infinity): Likewise.
2958         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
2959         (is_positive_overflow_infinity): Likewise.
2960         (is_overflow_infinity): Likewise.
2961         (avoid_overflow_infinity): Use vrp_val_{min,max} and
2962         vrp_val_is_{min,max}.
2963         (set_and_canonicalize_value_range): Canonicalize anti-ranges
2964         to ranges if possible.  Avoid empty ranges.
2965
2966 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2967
2968         PR middle-end/35705
2969         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
2970         the expression is a function address.
2971
2972 2008-04-01  George Helffrich  <george@gcc.gnu.org>
2973
2974         PR fortran/35154, fortran/23057
2975         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
2976         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
2977         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
2978         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
2979         in common.
2980         (dbxout_syms): Check for COMMON-based symbol and wrap in
2981         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
2982         in bracket for efficiency.
2983
2984         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
2985         using DW_TAG_common_block + member offset.
2986         (add_pubname_string): New function.
2987         (dw_expand_expr): New function to find block name and offset for
2988         COMMON var.
2989         (common_check): New function to check whether symbol in Fortran COMMON.
2990         (gen_variable_die): If COMMON, use DW_TAG_common_block.
2991
2992 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
2993
2994         PR c/35436
2995         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
2996
2997 2008-04-02  Ben Elliston  <bje@au.ibm.com>
2998
2999         * config/v850/v850.md (casesi): Remove if (0) code.
3000         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3001         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
3002
3003 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
3004
3005         * config/i386/i386.md (rex64suffix): New mode attribute.
3006         (floathi<mode>2): Disable expander for SSE math.
3007         (*floathi<mode>2_1): New insn insn_and_split pattern.
3008         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
3009         corresponding post-reload splitters.
3010         (*floathi<mode>2_i387): New macroized insn pattern.
3011         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
3012         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
3013         insn_and_split pattern.
3014         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
3015         New macroized instruction patterns and corresponding post-reload
3016         splitters.
3017         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
3018         and corresponding post-reload splitters.
3019         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
3020         New macroized instruction patterns.
3021         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
3022         macroized instruction patterns and corresponding post-reload splitters.
3023         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
3024         corresponding post-reload splitters.
3025         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
3026         New macroized instruction patterns.
3027         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
3028         corresponding post-reload splitters.
3029         (*floatsi<mode>2_i387): New macroized instruction patterns.
3030
3031 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
3032
3033         * config/i386/i386.md (smaxmin): New.
3034         (umaxmin): Likewise.
3035         (maxminiprefix): Likewise.
3036         (maxminfprefix): Likewise.
3037         (<code><mode>3): Likewise.
3038         (smin<mode>3): Removed.
3039         (smax<mode>3): Likewise.
3040
3041         * config/i386/mmx.md (mmx_<code>v2sf3): New.
3042         (mmx_<code>v4hi3): Likewise.
3043         (mmx_<code>v8qi3): Likewise.
3044         (mmx_smaxv2sf3): Removed.
3045         (mmx_sminv2sf3): Likewise.
3046         (mmx_umaxv8qi3): Likewise.
3047         (mmx_smaxv4hi3): Likewise.
3048         (mmx_uminv8qi3): Likewise.
3049         (mmx_sminv4hi3): Likewise.
3050
3051         * config/i386/sse.md (<addsub><mode>3): New.
3052         (*<addsub><mode>3): Likewise.
3053         (<sse>_vm<addsub><mode>3): Likewise.
3054         (<maxmin><mode>3): Likewise.
3055         (*<maxmin><mode>3_finite): Likewise.
3056         (*<maxmin><mode>3): Likewise.
3057         (<sse>_vm<maxmin><mode>3): Likewise.
3058         (sse3_h<addsub>v4sf3): Likewise.
3059         (sse3_h<addsub>v2df3): Likewise.
3060         (<maxmin>v16qi3): Likewise.
3061         (*<maxmin>v16qi3): Likewise.
3062         (<maxmin>v8hi3): Likewise.
3063         (*<maxmin>v8hi3): Likewise.
3064         (*sse4_1_<maxmin><mode>3): Likewise.
3065         (*sse4_1_<maxmin><mode>3): Likewise.
3066         (add<mode>3): Removed.
3067         (*add<mode>3): Likewise.
3068         (<sse>_vmadd<mode>3): Likewise.
3069         (sub<mode>3): Likewise.
3070         (*sub<mode>3): Likewise.
3071         (<sse>_vmsub<mode>3): Likewise.
3072         (smin<mode>3): Likewise.
3073         (*smin<mode>3_finite): Likewise.
3074         (*smin<mode>3): Likewise.
3075         (<sse>_vmsmin<mode>3): Likewise.
3076         (smax<mode>3): Likewise.
3077         (*smax<mode>3_finite): Likewise.
3078         (*smax<mode>3): Likewise.
3079         (<sse>_vmsmax<mode>3): Likewise.
3080         (sse3_haddv4sf3): Likewise.
3081         (sse3_haddv2df3): Likewise.
3082         (sse3_hsubv4sf3): Likewise.
3083         (sse3_hsubv2df3): Likewise.
3084         (umaxv16qi3): Likewise.
3085         (*umaxv16qi3): Likewise.
3086         (smaxv8hi3): Likewise.
3087         (*smaxv8hi3): Likewise.
3088         (*sse4_1_smax<mode>3): Likewise.
3089         (*sse4_1_umax<mode>3): Likewise.
3090         (uminv16qi3): Likewise.
3091         (*uminv16qi3): Likewise.
3092         (sminv8hi3): Likewise.
3093         (*sminv8hi3): Likewise.
3094         (*sse4_1_smin<mode>3): Likewise.
3095         (*sse4_1_umin<mode>3): Likewise.
3096
3097 2008-04-01  Rafael Espindola  <espindola@google.com>
3098
3099         * tree-cfg.c (verify_expr): remove in_phi.
3100         (verify_stmt): Don't call walk_tree with verify_expr. Use
3101         is_gimple_min_invariant instead of is_gimple_val.
3102
3103 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
3104
3105         * doc/include/gpl_v3.texi: Update for manpage generation.
3106         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
3107         gpl.texi.
3108         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
3109         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
3110         gpl_v3.texi instead of gpl.texi.
3111         (gpl.pod): New.
3112
3113 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
3114
3115         PR pch/13675
3116         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
3117
3118 2008-04-01  Rafael Espindola  <espindola@google.com>
3119
3120         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
3121         (extract_code_and_val_from_cond): Use
3122         extract_code_and_val_from_cond_with_ops.
3123
3124 2008-04-01  Jan Hubicka  <jh@suse.cz>
3125
3126         * function.c (free_after_compilation): Free epilogue_delay_list.
3127         (prepare_function_start): Assert that previous compilation was freed.
3128
3129 2008-04-01  Jan Hubicka  <jh@suse.cz>
3130             Jim Wilson  <wilson@tuliptree.org>
3131             Andreas Tobler <andreast@gcc.gnu.org>
3132
3133         PR middle-end/35781
3134         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
3135         rtl.emit instead cfun->emit.
3136         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
3137         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
3138
3139 2008-04-01  Ben Elliston  <bje@au.ibm.com>
3140
3141         * doc/c-tree.texi (Function Basics): Fix grammatical error.
3142
3143 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
3144
3145         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
3146         New options
3147         (fprofile-use): Add var flag_profile_use
3148         * coverage.c (coverage_begin_output): Do not open a gcno file for
3149         output only if -ftest-coverage is set.
3150         Do not add getpwd() to gcda file path.
3151         (build_gcov_info): Check the new flag
3152         flag_profile_datafile_relative_path.
3153         (coverage_init): Use profile_data_prefix.
3154         Read profile counter only if flag_profile_use is set.
3155         * opts.c (common_handle_option): New option fprofile-use=,
3156         fprofile-dir=, fprofile-generate=.
3157         * toplev.c (profile_data_prefix): New variable definition.
3158         * toplev.h (profile_data_prefix): New declaration.
3159         * doc/invoke.tex (Option Summary, Optimization Options):
3160         Add new options.
3161
3162 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
3163
3164         * varasm.c (output_constant_pool_1): In LABEL_REF check,
3165         use tmp consistently.
3166
3167         PR target/35695
3168         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
3169         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3170         UNSPEC_FR_RECIP_APPROX_RES.
3171         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
3172
3173 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
3174
3175         PR c/35750
3176         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
3177
3178 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3179
3180         PR middle-end/30186
3181         * fold-const.c (fold_indirect_ref_1): Support accessing non first
3182         element of the vector via a pointer.
3183
3184 2008-03-31  Ian Lance Taylor  <iant@google.com>
3185
3186         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
3187
3188 2008-03-31  Jan Hubicka  <jh@suse.cz>
3189
3190         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3191         get_arg_pointer_save_area.
3192         * expr.c (init_expr): Just clear out rtl.expr.
3193         * function.c (free_after_compilation): Clear out whole RTL structure.
3194         (get_func_frame_size): Merge into ...
3195         (get_frame_size): ... this one.
3196         (assign_stack_local_1): Merge into ...
3197         (assign_stack_local): ... this one.
3198         (expand_function_end): Update call of get_arg_pointer_save_area.
3199         (get_art_pointer_save_area): Remove cfun argument.
3200         * function.h (emit_status): regno_pointer_align does not need length
3201         attribute. Move x_regno_reg_rtx to ...
3202         (regno_reg_rtx): ... new global array.
3203         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
3204         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
3205         apply_args_value, forced_labels, stack_pointer_delta):
3206         Update accestors.
3207         (struct varasm_status): Move here from varasm.c
3208         (struct rtl_data): New. Move here some fields from struct function.
3209         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3210         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3211         used_temp_slots avail_temp_slots, temp_slot_level,
3212         nonlocal_goto_handler_labels): Update accesstors.
3213         (rtl): New global variable.
3214         (struct function): Move some fileds to rtl_data.
3215         (get_arg_pointer_save_area): Update prototype.
3216         * emit-rtl.c (rtl): Declare.
3217         (regno_reg_rtx): Declare.
3218         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3219         Update.
3220         (gen_reg_rtx): Update.
3221         (init_virtual_regs): Do not tate emit_status argument.
3222         (init_emit): Do not allocate emit.
3223         * varasm.c (varasm_statuc): Move to function.h.
3224         (n_deferred_constatns): Update accestor.
3225         (init_varasm_status): Do not allocate varasm_status.
3226         (force_const_mem, get_pool_size, output_constant_pool): Update.
3227         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3228         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3229
3230 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
3231
3232         PR rtl-optimization/35729
3233         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
3234         references.
3235
3236 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3237
3238         PR target/32000
3239         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
3240         load/store if memory is unaligned.
3241         (*movti_rex64): Likewise.
3242
3243         * config/i386/predicates.md (misaligned_operand): New.
3244
3245 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
3246
3247         PR tree-opt/35431
3248         * tree-ssa-phiopt.c (conditional_replacement): Return early for
3249         complex types.
3250
3251 2008-03-31  Jan Beulich  <jbeulich@novell.com>
3252
3253         * config/ia64/constraints.md: Add 'j' constraint.
3254         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
3255         (movdi_internal): Likewise.
3256
3257 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
3258
3259         PR c/35748
3260         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
3261
3262 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3263
3264         PR target/35757
3265         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
3266         proper error message for the third argument on blendpd and
3267         blendps.
3268
3269         * config/i386/sse.md (blendbits): New.
3270         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
3271
3272 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3273
3274         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
3275
3276 2008-03-30  Richard Guenther  <rguenther@suse.de>
3277
3278         PR middle-end/31023
3279         * fold-const.c (fold_sign_changed_comparison): Do leave
3280         conversions to base-types alone.
3281
3282 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3283
3284         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
3285         the link register if one altivec register is be saved.
3286
3287 2008-03-30  Ben Elliston  <bje@au.ibm.com>
3288
3289         * final.c (final_scan_insn): Remove if (0) code.
3290
3291 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
3292
3293         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
3294
3295 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3296
3297         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
3298         of V4SFmode to ix86_binary_operator_ok.
3299
3300 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
3301
3302         * config/i386/i386.c (override_options): Initialize
3303         ix86_veclib_handler to ix86_veclibabi_svml when
3304         -mveclibabi=svml is used.
3305         (ix86_veclibabi_svml): New function for SVML ABI style
3306         vectorization support.
3307         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
3308
3309 2008-03-28  Rafael Espindola  <espindola@google.com>
3310
3311         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
3312         (tree_binary_nonnegative_warnv_p): Make it public.
3313         (tree_single_nonnegative_warnv_p): Make it public.
3314         (tree_invalid_nonnegative_warnv_p): Make it public.
3315         (tree_unary_nonzero_warnv_p): Make it public.
3316         (tree_binary_nonzero_warnv_p): Make it public
3317         (tree_single_nonzero_warnv_p): Make it public.
3318         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
3319         (extract_range_from_binary_expr): Split the expr argument.
3320         (extract_range_from_unary_expr): Split the expr argument.
3321         (extract_range_from_comparison): Split the expr argument.
3322         (extract_range_from_expr): Use the new aux functions.
3323         (vrp_evaluate_conditional_warnv): Use
3324         vrp_evaluate_conditional_warnv_with_ops.
3325         * tree.h (tree_unary_nonzero_warnv_p): Declare.
3326         (tree_binary_nonzero_warnv_p): Declare.
3327         (tree_single_nonzero_warnv_p): Declare.
3328         (tree_expr_nonzero_warnv_p): Declare.
3329         (tree_unary_nonnegative_warnv_p): Declare.
3330         (tree_binary_nonnegative_warnv_p): Declare.
3331         (tree_single_nonnegative_warnv_p): Declare.
3332         (tree_invalid_nonnegative_warnv_p): Declare.
3333
3334 2008-03-28  Richard Guenther  <rguenther@suse.de>
3335
3336         PR tree-optimization/30317
3337         PR tree-optimization/30911
3338         PR tree-optimization/34793
3339         * tree-vrp.c (set_and_canonicalize_value_range): New function.
3340         (struct assert_locus_d): New member EXPR.
3341         (register_new_assert_for): Add EXPR parameter to support
3342         ASSERT_EXPR <name, expr OP limit>.
3343         (register_edge_assert_for_1): Adjust callers.
3344         (find_assert_locations): Likewise.
3345         (process_assert_insertions_for): Build condition from expression.
3346         (extract_range_from_assert): Handle ASSERT_EXPRs
3347         of the form ASSERT_EXPR <name, expr OP limit>.
3348         (register_edge_assert_for_2): New helper registering
3349         asserts for comparisons.  Recognize range tests of the form
3350         (unsigned)i - CST1 OP CST2.
3351         (register_edge_assert_for_1): Use it.
3352         (register_edge_assert_for): Likewise.
3353         (needs_overflow_infinity): Integer sub-types
3354         do not need overflow infinities.
3355         (vrp_val_is_max): The extreme values of integer sub-types
3356         are those of the base type.
3357         (vrp_val_is_min): Likewise.
3358         * tree.def (ASSERT_EXPR): Document extra allowed conditional
3359         expressions.
3360
3361 2008-03-28  Nick Clifton  <nickc@redhat.com>
3362
3363         PR target/31110
3364         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
3365         Return GENERAL_REGS for stack adjustment reloads.
3366
3367 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3368
3369         PR target/31334
3370         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
3371         const_vector when all the vectors are constant.
3372
3373 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
3374
3375         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
3376         comparisons.
3377         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
3378         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
3379         (scc_sf): New.
3380         (s<code>_sf): Use new scc_sf attribute for opcode names.
3381
3382 2008-03-27  Tom Tromey  <tromey@redhat.com>
3383
3384         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
3385         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
3386         config/spu/t-spu-elf, config/i386/t-interix,
3387         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
3388         config/i386/x-darwin, config/i386/x-mingw32,
3389         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
3390         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
3391         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
3392         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
3393         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
3394         config/rs6000/x-darwin, config/rs6000/t-rs6000,
3395         config/score/t-score-elf, config/arm/t-strongarm-pe,
3396         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
3397         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
3398         Revert automatic dependency patch.
3399
3400 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3401
3402         PR target/35657
3403         * config/i386/i386.c (ix86_function_arg_boundary): Align
3404         decimal floating point to its natural boundary.
3405
3406 2008-03-27  Richard Guenther  <rguenther@suse.de>
3407
3408         PR middle-end/35716
3409         * fold-const.c (fold_comparison): Restrict distinct decl