OSDN Git Service

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