OSDN Git Service

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