OSDN Git Service

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