OSDN Git Service

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