OSDN Git Service

* tree.c (decl_address_ip_invariant_p): New function.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-23  Jan Hubicka  <jh@suse.cz>
2
3         * tree.c (decl_address_ip_invariant_p): New function.
4         * tree.h (decl_address_ip_invariant_p): Declare.
5         * gimple.c (strip_invariant_refs): Break out from ...
6         (is_gimple_invariant_address): ... here
7         (is_gimple_ip_invariant_address): New function.
8         (is_gimple_ip_invariant): New function.
9         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
10         Declare.
11
12         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
13         (ipcp_lat_is_insertable): All constants are insertable.
14         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
15         IPA_CONST_VALUE_REF.
16         (ipcp_initialize_node_lattices): Propagate all types of operands.
17         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
18         (ipcp_create_replace_map): Reformat.
19         (ipcp_need_redirect_p): Simplify.
20         (ipcp_insert_stage): Check that argument is used before clonning.
21         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
22         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
23         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
24         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
25         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
26         (jump_func_type): Remove IPA_CONST_VALUE_REF.
27         * tree-inline.c (tree_function_versioning): Add variables referenced by
28         replacing trees.
29
30 2008-08-23  Jan Hubicka  <jh@suse.cz>
31
32         PR target/37094
33         * i386.c (standard_80387_constant_p): Use optimize_size.
34
35 2008-08-23  Ira Rosen  <irar@il.ibm.com>
36
37         PR tree-optimization/37161
38         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
39         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
40         (vect_determine_vectorization_factor): Move the scalar type
41         retrieval to vect_get_smallest_scalar_type.
42         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
43         scalar type. Remove redundant computation.
44         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
45         (vect_get_slp_defs): Take the type of RHS into account if
46         necessary by calling vect_get_smallest_scalar_type. Call
47         vect_get_constant_vectors with additional argument.
48
49 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
50
51         PR 35648
52         * doc/invoke.texi (Wwrite-strings): Clarify description.
53         
54 2008-08-23  Ira Rosen  <irar@il.ibm.com>
55
56         PR tree-optimization/37174
57         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
58         def stmt is a part of the loop before accessing its stmt_vec_info.
59
60 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
61
62         PR target/11259
63         * config/avr/avr.md (UNSPEC_SWAP): New constants.
64         (*swap): New insn pattern.
65         (*ashlqi3): Rename from ashlqi3 insn pattern.
66         (ashlqi3): New expanders.
67         (*lshrqi3): Rename from lshrqi3 insn pattern.
68         (lshrqi3): New expanders.       
69         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
70         lshrqi3_const5, lshrqi3_const6): New splitters.
71         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
72         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
73         peephole2 patterns.
74
75 2008-08-22  Richard Guenther  <rguenther@suse.de>
76
77         PR tree-optimization/37078
78         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
79         [+INF, +INF] ranges.
80
81 2008-08-22  Richard Guenther  <rguenther@suse.de>
82
83         PR tree-optimization/37143
84         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
85         a conversion statement instead of a copy.
86
87 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
88
89         PR target/37184
90         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
91         CCCmode, CCOmode and CCSmode destination modes.
92
93         PR target/37191
94         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
95         from different units in a single alternative.
96         (*vec_extractv2sf_1): Ditto.
97         (*vec_extractv2si_0): Ditto.
98         (*vec_extractv2si_1): Ditto.
99         * config/i386/sse.md (sse2_storehpd): Ditto.
100         (sse2_storelpd): Ditto.
101         (sse2_loadhpd): Ditto.
102         (sse2_loadlpd): Ditto.
103
104         PR target/37197
105         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
106         (popcountsi2): Ditto.
107         (clzdi2_abm): Ditto.
108         (popcountdi2): Ditto.
109         (clzhi2_abm): Ditto.
110         (popcounthi2): Ditto.
111
112 2008-08-22  Richard Guenther  <rguenther@suse.de>
113
114         PR middle-end/36548
115         PR middle-end/37125
116         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
117         if the multiplication does not overflow.
118
119 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
120
121         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
122
123 2008-08-21  Richard Henderson  <rth@redhat.com>
124
125         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
126         spurrious comma from test.
127         * configure: Rebuild.
128
129 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
130
131         PR 30457
132         * builtins.c (fold_builtin_next_arg): Add warning about undefined
133         behaviour.
134         
135 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
136
137         * c-tree.h (grokfield): New argument.
138         * c-decl.c (grokfield): Handle new location argument.
139         * c-parser.c (c_parser_struct_declaration): Pass location to
140         grokfield.
141
142 2008-08-21  Richard Guenther  <rguenther@suse.de>
143
144         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
145
146 2008-08-21  Jan Hubicka  <jh@suse.cz>
147
148         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
149         (cgraph_add_function_insertion_hook,
150         cgraph_remove_function_insertion_hook,
151         cgraph_call_function_insertion_hooks): New functions.
152         * cgraph.h (cgraph_add_function_insertion_hook,
153         cgraph_remove_function_insertion_hook,
154         cgraph_call_function_insertion_hooks): Declare.
155         * ipa-reference.c (function_insertion_hook_holder): New variable.
156         (check_operand, look_for_address_of): When checking late, do not care
157         about module bitmaps.
158         (add_new_function): New function.
159         (generate_summary): Register hooks; zero module bitmaps.
160         (propagate): Unregister hooks.
161         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
162         (add_new_function): New function.
163         (generate_summary): Register hook.
164         (propagate): Remove hook.
165
166         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
167
168         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
169         * ipa-cp.c (ipcp_update_cloned_node): New function.
170         (build_const_val): Handle functions correctly; bring type logic
171         into sync with tree-inline.c
172         (ipcp_init_stage):  Take care of computing stuff needed by
173         indirect inlining; update clones.
174         (ipcp_generate_summary): Break out of ipcp_driver.
175         (ipcp_driver): Do only execution and transformation.
176         (pass_ipa_cp): Make IPA_PASS.
177         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
178         offset to address.
179         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
180         ipcp, some info is already available.
181         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
182         * tree-inline.c (remap_ssa_name): Unshare expression.
183
184 2008-08-21  Richard Guenther  <rguenther@suse.de>
185
186         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
187         a PHI ask VN if it is already available.
188         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
189         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
190
191 2008-08-21  Richard Guenther  <rguenther@suse.de>
192
193         PR middle-end/36817
194         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
195         makes sure to produce a result of the correct type.
196
197 2008-08-21  Jan Hubicka  <jh@suse.cz>
198         Backport from LTO branch:
199
200         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
201                     Jan Hubicka  <jh@suse.cz>
202         
203         * ipa-pure-const.c
204         (init_state, finish_state, set_function_state, generate_summary):
205         New functions.
206         (scan_stmt): Renamed from scan_function.  Changed to keep state in
207         local static vars rather than cgraph aux field.
208         (propagate): Renamed from static_execute. Changed to keep state in
209         local static vars rather than cgraph aux field.
210         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
211         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
212
213         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
214
215         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
216         * ipa-reference.c (init_function_info, generate_summary, 
217         propagate): New functions.
218         (analyze_function):  Call init_function_info.
219         (static_execute): Stripped into generate_summary and propagate.
220         (pass_ipa_reference): Made into ipa_opt_pass.
221
222 2008-08-21  Richard Guenther  <rguenther@suse.de>
223
224         PR tree-optimization/37181
225         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
226         folding result.
227         (extract_range_from_unary_expr): Likewise.
228
229 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
230
231         * diagnostic.c (pedwarn_at): Rename as pedwarn.
232         (pedwarn): Delete.
233         * toplev.h (pedwarn_at): Likewise.
234         * builtins.c: Update all calls to pedwarn.
235         * c-lex.c: Likewise.
236         * toplev.c: Likewise.
237         * c-tree.h: Likewise.
238         * c-decl.c: Likewise.
239         * c-errors.c: Likewise.
240         * c-typeck.c: Likewise.
241         * c-common.c: Likewise.
242         * c-parser.c: Likewise.
243
244 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
245
246         PR target/31070
247         * config/sparc/sparc.c (function_arg_slotno): Handle structure
248         with MODE_VECTOR_INT mode.
249
250 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
251
252         PR middle-end/179
253         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
254         initialized outside the current module.
255         (warn_uninitialized_var): Ignore left-hand side when walking the
256         trees. Ignore address expressions. Examine VUSE operands in gimple
257         statements with a variable declaration on the right-hand side.
258
259 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
260
261         PR bootstrap/37155
262         * rtlanal.c (subreg_offset_representable_p): Revert last change.
263
264 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
265
266         PR 35701
267         * c-common.c (conversion_warning): Do not warn if applying bit-and
268         operator to unsigned constant that fits in the target type.
269
270 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
271
272         PR c++/35602
273         * c-common.c (conversion_warning): Do not warn for artificial
274         expressions.
275
276 2008-08-20  Richard Guenther  <rguenther@suse.de>
277
278         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
279         (extract_range_from_binary_expr): Fall back to constant propagation.
280         (extract_range_from_unary_expr): Likewise.
281
282 2008-08-20  Richard Guenther  <rguenther@suse.de>
283
284         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
285         with TREE_THIS_VOLATILE on shared nodes.
286         (fold_stmt_r): Likewise.
287
288 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
289
290         PR c/37171
291         * c-parser.c (c_parser_attributes): For keywords use canonical
292         spelling for attr_name.
293
294 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
295
296         * value-prof.c (check_counter): Revert wrong call to error.
297         
298 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
299
300         * profile.c: Update calls to inform.
301         * value-prof.c: Update calls to inform.
302         
303 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
304
305         * diagnostic.c (inform): Add an explicit location_t parameter.
306         * toplev.h (inform): Update declaration.
307         * builtins.c: Update all calls to inform.
308         * c-common.c: Likewise.
309         * c-decl.c: Likewise.
310         * c-opts.c: Likewise.
311         * c-pch.c: Likewise.
312         * c-pragma.c: Likewise.
313         * c-typeck.c: Likewise.
314         * coverage.c: Likewise.
315         * opts.c: Likewise.
316         * toplev.c: Likewise.
317         * tree-cfg.c: Likewise.
318         * tree-ssa.c: Likewise.
319
320 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
321
322         PR target/37169
323         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
324         V2DI mode, for SSE4.1, use movq instead of vector set if the
325         second element is zero and inter-unit moves are OK.
326
327 2008-08-20  Richard Guenther  <rguenther@suse.de>
328
329         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
330         properly handle conversion/copy chains after tuplification.
331
332 2008-08-20  Richard Guenther  <rguenther@suse.de>
333
334         * passes.c (init_optimization_passes): Move the second
335         forwprop pass before alias computation.  Remove the second
336         DCE pass.  Remove the first dominator and phi copy/const
337         prop passes.
338
339 2008-08-20  Nick Clifton  <nickc@redhat.com>
340
341         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
342         support of this feature.  Do not assume that a sufficiently new
343         assembler will support the feature regardless of the target type.
344         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
345         * configure: Regenerate.
346
347 2008-08-20  Richard Guenther  <rguenther@suse.de>
348
349         * tree-vrp.c (found_in_subgraph): Remove.
350         (live): New global static.
351         (live_on_edge): New function.
352         (blocks_visited): Remove.
353         (register_edge_assert_for_2): Use live_on_edge.
354         (find_conditional_asserts): Remove code dealing with
355         found_in_subgraph.  Do not walk the CFG.
356         (find_switch_asserts): Likewise.
357         (find_assert_locations_1): Renamed from find_assert_locations.
358         Move finding assert locations for conditional and switch
359         statements first.  Update live bitmap.  Do not walk the CFG.
360         (find_assert_locations): New function.
361         (insert_range_assertions): Remove entry of CFG walk.
362         Adjust call to find_assert_locations.
363         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
364         that only can appear because of fake exit edges but assert we
365         never try to insert on those.
366         (fini_pre): Do not remove fake exit edges here...
367         (execute_pre): ...but here, before committing edge inserts.
368
369 2008-08-19  Richard Guenther  <rguenther@suse.de>
370
371         * passes.c (init_optimization_passes): Exchange store-ccp
372         with a ccp pass.
373
374 2008-08-19  Rafael Espindola  <espindola@google.com>
375
376         * varasm.c (weak_decls): Move earlier in the file.
377         (assemble_external): Add weak decls to the weak_decls list.
378         (declare_weak): Don't add decls to the weak_decls list.
379
380 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
381
382         PR target/37157
383         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
384         before (sse2_shufpd_<mode>).
385
386 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
387
388         PR debug/37156
389         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
390         * tree.c (block_nonartificial_location): Likewise.
391
392 2008-08-19  Richard Guenther  <rguenther@suse.de>
393
394         PR tree-optimization/35972
395         PR tree-optimization/23094
396         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
397         parameter.
398         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
399         handle MISALIGNED_INDIRECT_REF.
400         (get_ref_from_reference_ops): New helper.
401         (vn_reference_lookup_pieces): Walk the use-def chain using the
402         alias-oracle if requested.
403         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
404         walking the use-def chain.
405         (compute_avail): But not here.
406         (create_component_ref_by_pieces_1): Properly handle
407         MISALIGNED_INDIRECT_REF.
408         (do_regular_insertion): Handle fully redundant
409         expressions after PHI-translation also for SSA_NAME values, not
410         only constants.  Correctly use edoubleprime for that.
411
412 2008-08-19  Ira Rosen  <irar@il.ibm.com>
413
414         * tree-vectorizer.c (supportable_widening_operation): Support
415         multi-step conversion, return the number of steps in such conversion
416         and the required intermediate types.
417         (supportable_narrowing_operation): Likewise.
418         * tree-vectorizer.h (vect_pow2): New function.
419         (supportable_widening_operation): Change argument types.
420         (supportable_narrowing_operation): Likewise.
421         (vectorizable_type_promotion): Add an argument.
422         (vectorizable_type_demotion): Likewise.
423         * tree-vect-analyze.c (vect_analyze_operations): Call 
424         vectorizable_type_promotion and vectorizable_type_demotion with
425         additional argument.
426         (vect_get_and_check_slp_defs): Detect patterns.
427         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
428         types. 
429         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
430         vect_build_slp_tree with correct arguments. Calculate unrolling factor
431         according to the smallest type in the loop.
432         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
433         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call 
434         supportable_widening_operation with correct arguments. 
435         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector 
436         operands lists according to the number of vector statements in left
437         or right node, if exists.
438         (vect_gen_widened_results_half): Remove unused argument.
439         (vectorizable_conversion): Call supportable_widening_operation, 
440         supportable_narrowing_operation, and vect_gen_widened_results_half
441         with correct arguments. 
442         (vectorizable_assignment): Change documentation, support multiple
443         types in SLP. 
444         (vectorizable_operation): Likewise.
445         (vect_get_loop_based_defs): New function.
446         (vect_create_vectorized_demotion_stmts): Likewise.
447         (vectorizable_type_demotion): Support loop-aware SLP and general
448         multi-step conversion. Call vect_get_loop_based_defs and
449         vect_create_vectorized_demotion_stmts for transformation.
450         (vect_create_vectorized_promotion_stmts): New function.
451         (vectorizable_type_promotion): Support loop-aware SLP and general
452         multi-step conversion. Call vect_create_vectorized_promotion_stmts
453         for transformation.     
454         (vectorizable_store): Change documentation, support multiple
455         types in SLP. 
456         (vectorizable_load): Likewise.
457         (vect_transform_stmt): Pass SLP_NODE to 
458         vectorizable_type_promotion and vectorizable_type_demotion.
459         (vect_schedule_slp_instance): Move here the calculation of number
460         of vectorized statements for each node from...
461         (vect_schedule_slp): ... here.
462         (vect_transform_loop): Call vect_schedule_slp without the last
463         argument.
464
465 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
466
467         PR bootstrap/37152
468         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change = 
469         to == in assert statement.
470         (vectorizable_reduction): Fix typo.
471
472 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
473
474         PR bootstrap/37153
475         * value-prof.c (check_counter): Dereference pointer to overall
476         count when printing it.
477
478 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
479
480         * profile.h: Really add it.
481
482 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
483
484         * mcf.c: Really add it.
485
486 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
487             Vinodha Ramasamy  <vinodha@google.com>
488
489         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
490         count_scale.
491         * value-prof.c (check_counter): Fix the counter if
492         flag_profile_correction is true.
493         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
494         tree_mod_subtract_transform):
495         Follow check_counter parameter change.
496         * common.opt (fprofile-correction): New option.
497         * mcf.c: New file.
498         * profile.h: Likewise.
499         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
500         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
501         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
502         functions.
503         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
504         flag_profile_correction is set.
505
506 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
507
508         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
509
510 2008-08-18  Tomas Bily  <tbily@suse.cz>
511
512         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
513         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
514         CONVERT_EXPR_P.
515         * tree-data-ref.c (split_constant_offset_1): Likewise.
516         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
517         * tree-sra.c (sra_walk_expr): Likewise.
518         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
519         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
520         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
521         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
522         Likewise.
523         * gimple.c (gimple_assign_unary_nop_p): Likewise.
524         * tree-vect-transform.c (vectorizable_type_demotion)
525         (vectorizable_type_promotion): Likewise.
526         * tree-inline.c (expand_call_inline): 
527         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
528         (forward_propagate_addr_expr_1, forward_propagate_comparison)
529         (tree_ssa_forward_propagate_single_use_vars): Likewise.
530         * expr.c (expand_expr_real_1): Likewise.
531         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
532         (gimple_assign_unary_useless_conversion_p): Likewise.
533         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
534         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
535         * fold-const.c (fold_unary): Likewise.
536         * tree.h (CONVERT_EXPR_P): Likewise.
537         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
538         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
539         * tree-vrp.c: 
540         (register_edge_assert_for_2, extract_range_from_unary_expr)
541         (register_edge_assert_for_1): Likewise.
542         
543 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
544
545         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
546         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
547         (enum real_value_const): Delete.
548         (get_real_const): Delete.
549         * real.c (get_real_const): Delete.
550         (dconst_e_ptr): Define.
551         (dconst_third_ptr): Define.
552         (dconst_sqrt2_ptr): Define.
553         * builtins.c: Update all callers.
554
555 2008-08-18  Richard Guenther  <rguenther@suse.de>
556
557         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
558         statement iterator after statement removal.
559
560 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
561
562         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
563         (detect_processor_freebsd): Likewise.
564         (host_detect_local_cpu): Call newly added functions for FreeBSD.
565
566 2008-08-18  Richard Guenther  <rguenther@suse.de>
567
568         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
569         and loads have the correct types.
570
571 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
572
573         PR cpp/7263
574         * c-opts.c (cpp_opts): Remove static.
575         * c-parser.c (cpp_opts): Declare it extern.
576         (disable_extension_diagnostics): Handle cpp options.
577         (enable_extension_diagnostics): Likewise.
578
579 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
580
581         * diagnostics.c (permerror_at): Rename as permerror.
582         (permerror): Delete.
583         * toplev.h: Likewise.
584
585 2008-08-18  Richard Guenther  <rguenther@suse.de>
586
587         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
588         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
589         Move call_cdce before build_alias.  Move copyrename2,
590         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
591         right after final inlining.
592         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
593         (pass_build_cfg): But instead via TODO_dump_func.
594
595 2008-08-18  Richard Guenther  <rguenther@suse.de>
596
597         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
598         element index.
599         (scalarize_init): If we failed to generate some initializers
600         do not generate zeros for not instantiated members.  Instead
601         rely on the copy out.
602         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
603         about missing flow-sensitive alias info only if we have
604         aliases computed.
605
606 2008-08-17  Nick Clifton  <nickc@redhat.com>
607
608         * doc/extend.texi (Function Attributes): Fix typo in description
609         if hot function attribute.
610
611 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
612             Richard Sandiford  <rdsandiford@googlemail.com>
613
614         * doc/install.texi (--with-mips-plt): Document.
615         * doc/invoke.texi (-mplt, -mno-plt): Document.
616         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
617         and handle ${with_mips_plt}.
618         * config/mips/mips.opt (mplt): New option.
619         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
620         (TARGET_ABICALLS_PIC2): Likewise.
621         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
622         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
623         (ASM_SPEC): Use !mabi=* instead of !mabi*.
624         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
625         to decide whether to output ".option picX" directives.
626         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
627         Pass -call_nonpic rather than -KPIC for -mplt.
628         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
629         on the command line.  Also remove it when -mabi=64 is used without
630         -msym32.
631         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
632         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
633         TARGET_ABICALLS_PIC0.
634         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
635         TARGET_ABICALLS.
636         (mips16_build_function_stub): Only output ".option pic" directives
637         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
638         (mips16_build_call_stub): Fix comment and remove redundant
639         ".set at"/"set .noat" directives.
640         (mips_function_rodata_section): Use the default behaviour for
641         TARGET_ABSOLUTE_ABICALLS.
642         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
643         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
644         (mips_restore_gp): Do nothing if the current function doesn't use
645         a global pointer.
646         (mips_expand_prologue): Only save $gp if the current function uses it.
647         Use a normal move for TARGET_ABICALLS_PIC0.
648         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
649
650 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
651
652         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
653         of function when handling GLOBAL_POINTER_REGNUM.
654
655 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
656
657         PR ada/20548
658         * common.opt (-fstack-check): Do not declare the variable here.
659         (-fstack-check=): New option variant.
660         * doc/invoke.texi (Code Gen Options): Document it.
661         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
662         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
663         (STACK_CHECK_STATIC_BUILTIN): New macro.
664         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
665         * opts.c: Include expr.h.
666         (common_handle_option) <OPT_fold_stack_check_>: New case.
667         <OPT_fstack_check>: Likewise.
668         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
669         consistently in the test for variable-sized types.  Adjust for
670         new behaviour of flag_stack_check.
671         * explow.c: Include except.h.
672         (allocate_dynamic_stack_space): Do not take into account
673         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
674         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
675         for variable-sized parameters.  Treat all parameters whose size is
676         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
677         stack checking is enabled.
678         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
679         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
680         if generic stack checking is enabled.
681         (expand_function_end): Adjust for new behaviour of flag_stack_check.
682         * reload1.c (reload): Likewise.
683         * stmt.c (expand_decl): Assert that all automatic variables have
684         fixed size at this point and remove dead code.
685         * flags.h (stack_check_type): New enumeration type.
686         (flag_stack_check): Declare.
687         * toplev.c (flag_stack_check): New global variable.
688         * Makefile.in (opts.o): Add dependency on EXPR_H.
689         (explow.o): Add dependency on except.h.
690
691 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
692
693         * config/avr/avr.c (avr_override_options): Reduce value of 
694         PARAM_INLINE_CALL_COST.
695
696 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
697
698         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
699         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
700         lieu of TYPE_MODE (type) throughout.
701
702 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
703
704         * config/arm/arm.c (add_minipool_backward_ref): Check for
705         8-byte-aligned entries in second case of forcing insertion after a
706         particular entry.  Change third case to avoid inserting
707         non-8-byte-aligned entries before 8-byte-aligned ones.
708
709 2008-08-15  Richard Guenther  <rguenther@suse.de>
710
711         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
712         strip components for unknown size accesses.
713
714 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
715
716         * config/s390/2097.md New file.
717         * config/s390/s390.md ("z10prop" attribute): Define none,
718         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
719         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
720         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
721         possible values and apply them to insns as appropriate.
722         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
723         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
724         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
725         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
726         values.
727         ("bfp" mode attribute): Removed.  Every occurence replaced
728         with <mode>.
729         * config/s390/s390.c (struct "z10_cost"): Updated entries.
730         * config/s390/2084.md (insn_reservation "x_itof"): Updated
731           type attribute.
732
733 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
734
735         PR c/28152
736         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
737         for keywords.
738         
739 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
740
741         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
742         additional argument. Support reduction when duplication is needed due
743         to data-types of different sizes in the loop.
744         (get_initial_def_for_induction): Fix printout.
745         (vect_get_vec_def_for_stmt_copy): Support case where the
746         vec_stmt_for_operand is a phi node.
747         (vectorizable_reduction): Support reduction when duplication is needed 
748         due to data-types of different sizes in the loop.
749         (vectorizable_call): Remove restriction to not vectorize in case we 
750         have data-types of different sizes in the loop.
751         (vectorizable_conversion): Likewise.
752         (vectorizable_operation): Likewise.
753         (vectorizable_type_demotion): Likewise.
754         (vectorizable_type_promotion): Likewise.
755         (vectorizable_induction): Add restriction to not vectorize in case 
756         we have data-types of different sizes in the loop.
757
758 2008-08-14  Christophe Saout  <christophe@saout.de>
759             Uros Bizjak  <ubizjak@gmail.com>
760
761         PR target/37101
762         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
763         (*vec_concatv2di_rex64_sse4_1): Ditto.
764         (*vec_concatv2di_rex64_sse): Ditto.
765
766 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
767
768         PR middle-end/37103
769         * fold-const.c (fold_widened_comparison): Do not allow
770         sign changes that change the result even if shorter type
771         is wider than arg1_unw's type.
772
773 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
774
775         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
776         Skip if the multilib testing specifies -march that does not
777         agree with the one specified in the testcase.
778
779 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
780
781         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
782         zero extend SImode values being converted to TFmode before passing
783         to libcalls.
784
785 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
786
787         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
788         __PPU__ when targeting the Cell/B.E. PPU processor.
789
790 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
791
792         * gimple.h (gimple_call_set_chain): Accept SSA variables.
793         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
794         Rematerialize the static chain, if any.
795         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
796         static chain.
797
798 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
799
800         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
801         (new_loc_descr): Likewise.
802         (add_loc_descr): Likewise.
803         (size_of_loc_descr): Likewise.
804         (size_of_locs): Likewise.
805         (output_loc_operands): Likewise.
806         (output_loc_sequence): Likewise.
807         (new_reg_loc_descr): New.
808         (build_cfa_loc): Use it.
809         (build_cfa_aligned_loc): Likewise.
810         (one_reg_loc_descriptor): Likewise.
811         (based_loc_descr): Likewise.
812
813 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
814
815         PR 30551
816         * doc/invoke.texi (Wmain): Update.
817         * c-decl.c (start_decl): warn_main is only 0 or 1.
818         (start_function): Likewise. Fix formatting.
819         (finish_function): Delete redundant warning.
820         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
821         * c-opts (c_common_handle_option): -Wall only has effect if
822         warn_main is uninitialized. OPT_Wmain is automatically
823         handled. -pedantic also enables Wmain.
824         (c_common_post_options): Handle all logic for Wmain here.
825         * c-common.c (warn_main): Delete.
826         (check_main_parameter_types): Make pedwarns conditional on
827         OPT_Wmain.
828         * c-common.h (warn_main): Delete.
829
830 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
831
832         PR middle-end/36701
833         * expr.c (emit_group_store): Allocate stack temp with the
834         largest alignment when copying from register to stack.
835
836 2008-08-13  Richard Guenther  <rguenther@suse.de>
837
838         * tree.h (maybe_fold_offset_to_address): Declare.
839         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
840         (ccp_fold): Handle pointer conversions the same as fold_stmt.
841         Likewise for POINTER_PLUS_EXPR.
842         (maybe_fold_offset_to_reference): Enable disabled code.
843         (maybe_fold_offset_to_address): New function.
844         (fold_stmt_r): Use it.
845         (fold_gimple_assign): Likewise.
846         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
847         (gimplify_expr): Likewise.
848
849 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
850
851         * toplev.h (pedwarn_at): Fix declaration.
852         
853 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
854
855         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
856         LINK_SPEC): Use %R in -Y P argument.
857
858 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
859
860         PR c/15236
861         * diagnostic.c (pedwarn_at): New.
862         * toplev.h (pedwarn_at): Declare.
863         * c-tree.h (build_enumerator): Update declaration.
864         * c-decl.c (finish_enum): Update comment.
865         (build_enumerator): Take a location parameter. Give a pedwarn but do
866         not perform any conversion.
867         * c-parser.c (c_parser_enum_specifier): Set correct location for
868         enumerator.
869
870 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
871
872         PR 35635
873         * c-common.c (conversion_warning): Use a switch. Ignore boolean
874         expressions except for conversions to signed:1 bitfields. Handle
875         COND_EXPR with constant operands.
876         
877 2008-08-13  Richard Guenther  <rguenther@suse.de>
878
879         PR tree-optimization/15255
880         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
881         (struct oecount_s): New struct and VEC types.
882         (cvec): New global.
883         (oecount_hash): New function.
884         (oecount_eq): Likewise.
885         (oecount_cmp): Likewise.
886         (zero_one_operation): New function.
887         (build_and_add_sum): Likewise.
888         (undistribute_ops_list): Perform un-distribution of multiplication
889         and division on the chain of summands.
890         (should_break_up_subtract): Also break up subtracts for factors.
891         (reassociate_bb): Delete dead visited statements.
892         Call undistribute_ops_list.  Re-sort and optimize if it did something.
893         * passes.c (init_optimization_passes): Move DSE before
894         reassociation.
895         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
896         PHI nodes.
897
898 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
899
900         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
901
902         * doc/invoke.texi: Revert unintended checkin.
903
904 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
905
906         PR libgomp/26165
907         * gcc.c (include_spec_function): Tweak call to find_a_file.
908
909 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
910
911         PR middle-end/37014
912         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
913         and TRUTH_ORIF_EXPR.
914         * dojump.c (do_jump): Likewise.
915
916         PR tree-optimization/37084
917         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
918         if id->regimplify, don't assume stmt is a cast assignment.
919
920 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
921
922         * final.c (final_scan_insn): Use app_enable/app_disable functions.
923
924 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
925
926         PR bootstrap/37097
927         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
928         by last change.
929
930 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
931
932         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
933         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
934
935         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
936         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
937         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
938         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
939         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
940
941         * doc/tm.texi (Storage Layout): Remove documentation for
942         TARGET_FLOAT_FORMAT.
943
944         * simplify-rtx.c (simplify_binary_operation_1): Replace
945         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
946
947 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
948
949         * real.h (struct real_format): New member has_sign_dependent_rounding.
950         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
951         spu_single_format, ieee_double_format, mips_double_format,
952         motorola_double_format, ieee_extended_motorola_format,
953         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
954         ieee_extended_intel_96_round_53_format, ibm_extended_format,
955         mips_extended_format, ieee_quad_format, mips_quad_format,
956         vax_f_format, vax_d_format, vax_g_format): Initialize it.
957         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
958
959         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
960         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
961         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
962         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
963         (ROUND_TOWARDS_ZERO): Likewise.
964
965         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
966         (FLOAT_MODE_FORMAT): New macro.
967         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
968         (MODE_COMPOSITE_P): ... this new macro.
969         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
970         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
971         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
972
973         * flags.h: Include "real.h".
974
975         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
976         REAL_MODE_FORMAT_COMPOSITE_P.
977         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
978
979         * doc/tm.texi (Storage Layout): Remove documentation of
980         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
981         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
982         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
983         they only apply to libgcc2.a.
984
985 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
986
987         * config/spu/float_disf.c: New file.
988         * config/spu/float_unsdisf.c: New file.
989         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
990         (LIB2FUNCS_EXCLUDE): Define.
991
992 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
993             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
994
995         * real.h (struct real_format): New member round_towards_zero.
996         * real.c (round_for_format): Respect fmt->round_towards_zero.
997         (ieee_single_format, mips_single_format, motorola_single_format,
998         spu_single_format, ieee_double_format, mips_double_format,
999         motorola_double_format, ieee_extended_motorola_format,
1000         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1001         ieee_extended_intel_96_round_53_format, ibm_extended_format,
1002         mips_extended_format, ieee_quad_format, mips_quad_format,
1003         vax_f_format, vax_d_format, vax_g_format): Initialize it.
1004         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1005
1006         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
1007         real_format to choose rounding mode when calling MPFR functions.
1008         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
1009         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
1010
1011         * real.h (real_to_decimal_for_mode): Add prototype.
1012         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
1013         Respect target rounding mode when generating decimal representation.
1014         (real_to_decimal): New stub for backwards compatibility.
1015         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
1016         real_to_decimal_for_mode instead of real_to_decimal.
1017
1018         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
1019
1020 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1021             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1022
1023         * real.c (spu_single_format): New variable.
1024         * real.h (spu_single_format): Declare.
1025
1026         * config/spu/spu.c (spu_override_options): Install SFmode format.
1027         (spu_split_immediate): Use integer mode to operate on pieces of
1028         floating-point values in all cases.
1029
1030         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
1031         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
1032         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
1033
1034 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1035
1036         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
1037
1038 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1039
1040         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
1041
1042 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
1043
1044         PR c++/36688
1045         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
1046         on the VAR_DECL instead of TYPE_READONLY on its type.
1047
1048 2008-08-12  Ira Rosen  <irar@il.ibm.com>
1049
1050         * tree-vectorizer.c: Depend on langhooks.h.
1051         (supportable_widening_operation): Add two arguments. Support double
1052         type conversions.
1053         (supportable_narrowing_operation): Likewise.
1054         * tree-vectorizer.h (supportable_widening_operation): Add two 
1055         arguments.
1056         (supportable_narrowing_operation): Likewise.
1057         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
1058         supportable_widening_operation with correct arguments.
1059         * tree-vect-transform.c (vectorizable_conversion): Likewise.
1060         (vectorizable_type_demotion): Support double type conversions.
1061         (vectorizable_type_promotion): Likewise.
1062         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
1063
1064 2008-08-11  Michael Matz  <matz@suse.de>
1065
1066         * i386/i386.c (override_options): Move initialisation from
1067         flag_schedule_insns_after_reload to here from ...
1068         (optimization_options): ... here.
1069
1070 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
1071
1072         PR rtl-optimization/36998
1073         * dwarf2out.c (compute_barrier_args_size_1,
1074         compute_barrier_args_size): Temporarily remove assertions.
1075
1076 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1077
1078         PR middle-end/20644
1079         * tree-ssa.c (struct walk_data): Add new flag
1080         warn_possibly_uninitialized.
1081         (warn_uninitialized_var): Use it.
1082         (warn_uninitialized_vars): New.
1083         (execute_early_warn_uninitialized): Call it.
1084         (execute_late_warn_uninitialized): Likewise.
1085
1086 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1087
1088         PR middle-end/36238
1089         * reload1.c (gen_reload): Guard calls to get_secondary_mem
1090         for memory subregs.
1091
1092 2008-08-09  Jan Hubicka  <jh@suse.cz>
1093
1094         PR target/37055
1095         * optabs.c (maybe_emit_unop_insn): Remove produced code if
1096         expansion failed.
1097         (expand_fix): Be prepared for expansion to fail.
1098         (expand_sfix_optab): Remove instructions if expansion failed.
1099
1100 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
1101
1102         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
1103         avr31 architecture.
1104         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
1105         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1106
1107 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1108
1109         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
1110         mips/t-libgcc-mips16 to tmake_file.
1111         * config/mips/mips-protos.h (mips_call_type): New enum.
1112         (mips_pic_base_register, mips_got_load): Declare.
1113         (mips_restore_gp): Take an rtx argument.
1114         (mips_use_pic_fn_addr_reg_p): Declare.
1115         (mips_expand_call): Replace the sibcall_p argument with
1116         a mips_call_type argument.  Add a lazy_p parameter.
1117         (mips_split_call): Declare.
1118         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
1119         (MIPS16_PIC_TEMP): Likewise.
1120         (reg_class): Delete M16_NA_REGS.
1121         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1122         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
1123         (mips_split_hi_p): Declare.
1124         * config/mips/mips.c (mips_split_hi_p): New array.
1125         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
1126         (mips_got_symbol_type_p): New function.
1127         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
1128         (mips16_stub_function_p): New function.
1129         (mips16_local_function_p): Likewise.
1130         (mips_use_pic_fn_addr_reg_p): Likewise.
1131         (mips_cannot_force_const_mem): Return false for HIGHs.
1132         Extend CONST_INT and symbolic handling to MIPS16, using
1133         mips_symbol_insns to check that the base symbol type is a
1134         legitimate constant.  Reject GOT-based constants if
1135         TARGET_MIPS16_PCREL_LOADS.
1136         (mips_const_insns): Check targetm.cannot_force_const_mem when
1137         decomposing a symbolic base and a large offset.
1138         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
1139         When calling a function that needs $25 from MIPS16 code,
1140         move the target address into $25 separately and add a USE
1141         to the call insn.
1142         (mips16_gp_pseudo_reg): Insert the initializer immediately
1143         before the first real insn.
1144         (mips_pic_base_register, mips_got_load): New functions.
1145         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
1146         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
1147         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
1148         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
1149         (mips_call_tls_get_addr): Update the call to mips_expand_call,
1150         also passing NULL_RTX rather than const0_rtx as the aux argument.
1151         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
1152         instead of TARGET_EXPLICIT_RELOCS.
1153         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
1154         (mips_load_call_address): Replace the sibcall_p argument with
1155         a mips_call_type argument.  Use mips_got_load.
1156         (mips16_local_alias): New structure.
1157         (mips16_local_aliases): New variable.
1158         (mips16_local_aliases_hash): New function.
1159         (mips16_local_aliases_eq): Likewise.
1160         (mips16_local_alias): Likewise.
1161         (mips16_stub_function): Likewise.
1162         (mips16_build_function_stub): Create a local alias for the target
1163         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
1164         .cpload directive and an R_MIPS_NONE relocation for the target
1165         function, then load the alias rather than the function itself.
1166         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
1167         (mips16_copy_fpr_return_value): Use mips16_stub_function and
1168         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
1169         (mips16_build_call_stub): Replace the FN parameter with an
1170         FN_PTR parameter.  Force the address into a register if it
1171         isn't a call_insn_operand; don't rely on the caller to do this.
1172         If a call to a locally-defined and locally-binding MIPS16
1173         function must be made indirectly, redirect the call to the
1174         function's local alias.  Use mips16_stub_function_p,
1175         mips16_stub_function, mips_expand_call and use_reg.
1176         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
1177         Use explicit %hi and %lo accesses where possible.
1178         Use MIPS_CALL to generate the correct code form of a
1179         jal instruction.  Add clobbers of $18 instead of uses.
1180         Update the call to mips_emit_call_insn.
1181         (mips_expand_call): Replace the SIBCALL_P argument with a
1182         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
1183         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
1184         allowing it to modify the call address.  Update the calls to
1185         mips_load_call_address and mips_emit_call_insn.
1186         (mips_split_call): New function.
1187         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
1188         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
1189         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
1190         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
1191         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
1192         if TARGET_MIPS16.
1193         (mips_cprestore_slot): New function.
1194         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
1195         and use mips_cprestore_slot.
1196         (mips_output_function_prologue): Handle TARGET_MIPS16 for
1197         LOADGP_OLDABI.
1198         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
1199         then use a copygp_mips16 instruction to set up $28.
1200         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
1201         (mips16_lay_out_constants): Call split_all_insns_noflow.
1202         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
1203         false if TARGET_MIPS16.
1204         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
1205         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
1206         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
1207         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
1208         MIPS16 code.  Allow MIPS16 o32 PIC.
1209         (mips_override_options): Allow MIPS16 o32 PIC.
1210         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
1211         after reload if TARGET_USE_GOT.
1212         (UNSPEC_COPYGP): New constant.
1213         (length): Use a default length of 8 for MIPS16 GOT loads.
1214         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
1215         (*got_page<mode>): Check mips_split_hi_p.
1216         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
1217         (unspec_got<mode>, unspec_call<mode>): New expanders.
1218         (load_got<mode>, load_call<mode>): Remove the length attributes.
1219         Use a got attribute instead of a type attribute.
1220         (copygp_mips16): New insn.
1221         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
1222         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
1223         (sibcall, sibcall_value, call, call_value): Update the calls
1224         to mips_expand_call.
1225         (call_internal, call_value_internal): Use mips_split_call.
1226         (call_value_multiple_internal): Likewise.
1227         (call_split): Move after call_internal (the insn it is split from).
1228         (call_internal_direct, call_value_internal_direct): Turn into
1229         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
1230         (call_direct_split, call_value_direct_split): New patterns.
1231         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
1232         and use M16_REGS instead of M16_NA_REGS.
1233         * config/mips/predicates.md (const_call_insn_operand): Replace
1234         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
1235         mips_use_pic_fn_addr_reg_p check.
1236         (move_operand): Reject HIGHs if mips_split_hi_p.
1237         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
1238         (__mips16_floatunsisf): Inline __mips16_floatsisf.
1239         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
1240         * config/mips/libgcc-mips16.ver: New file.
1241         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
1242         $(srcdir)/config/mips/libgcc-mips16.ver.
1243
1244 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1245
1246         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
1247         (mips_unspec_address, mips_unspec_offset_high): Likewise.
1248         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
1249         (mips16_cfun_returns_in_fpr_p): Likewise.
1250
1251 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1252
1253         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
1254         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
1255         rather than 4 to PC.
1256
1257 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1258
1259         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
1260         (FUNCTION_PROFILER): Save the static chain pointer into $2
1261         beforehand and restore it aftewards.
1262         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
1263         address directly into $25 and call the function through $25;
1264         do not clobber $3.  Pad the DImode version to cover the space
1265         left by the deleted $25 <- $3 move.
1266         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
1267         the removal of the $25 <- $3 move.
1268         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
1269         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
1270
1271 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1272             Daniel Jacobowitz  <dan@codesourcery.com>
1273
1274         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1275         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1276         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1277         * config/mips/mips.c (mips_start_function_definition): New function.
1278         (mips_end_function_definition): Likewise.
1279         (mips_output_function_prologue): Use mips_start_function_definition.
1280         (mips_output_function_epilogue): Use mips_end_function_definition.
1281         (build_mips16_function_stub): Use mips_start_function_definition
1282         and mips_end_function_definition.
1283         (build_mips16_call_stub): Likewise.
1284
1285 2008-08-09  Richard Guenther  <rguenther@suse.de>
1286
1287         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1288         * gimple.h (gimple_call_fn): Adjust comment.
1289         (gimple_call_set_fndecl): New function.
1290         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1291         longer having bare FUNCTION_DECL operand.
1292         (gimple_call_return_type): Likewise.
1293         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1294
1295         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1296         (gimple_mod_pow2): Likewise.
1297         (gimple_mod_subtract): Likewise.
1298         (gimple_ic): Likewise.
1299         (gimple_stringop_fixed_value): Likewise.
1300         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1301         longer having bare FUNCTION_DECL operand.
1302         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1303         * omp-low.c (optimize_omp_library_calls): Likewise.
1304         * cgraphunit.c (update_call_expr): Likewise.
1305         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1306         (execute_convert_to_rsqrt): Likewise.
1307         * cfgexpand.c (gimple_to_tree): Simplify.
1308         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1309         bare FUNCTION_DECL operand.
1310         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1311         (convert_gimple_call): Use gimple_call_fndecl.
1312         * c-common.c (c_warn_unused_result): Likewise.
1313
1314 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1315
1316         PR c/17880
1317         * c-typeck.c (digest_init): Call verify_sequence_points from here.
1318         (c_finish_return): Likewise.
1319         (c_start_case): Likewise.
1320         * c-common.c (warn_for_collisions_1): Use explicit location in
1321         warning.
1322         * c-parser.c (c_parser_condition): New. Call
1323         verify_sequence_points.
1324         (c_parser_paren_condition): Call c_parser_condition.
1325         (c_parser_for_statement): Call c_parser_condition.
1326
1327 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1328
1329         PR 36901
1330         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
1331         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1332         Moved from diagnostic.h
1333         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1334         DK_PERMERROR.
1335         (emit_diagnostic): New.
1336         (warning0, pedwarn0): Delete.
1337         (warning, warning_at, pedwarn, permerror): Return bool.  
1338         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1339         Moved to diagnostic.c.
1340         (struct diagnostic_context): Use correct type for
1341         classify_diagnostic.
1342         (diagnostic_report_diagnostic): Update declaration.
1343         (emit_diagnostic): Declare.
1344         * errors.c (warning): Return bool.  
1345         * errors.h (warning): Update declaration.
1346         * toplev.h (warning0, pedwarn0): Delete.
1347         (warning, warning_at, pedwarn, permerror): Return bool.
1348         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1349         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1350         inform. Update all calls.
1351         (diagnose_mismatched_decls): Check return value of warning/pedwarn
1352         before giving informative note.
1353         (implicit_decl_warning): Likewise.  
1354         * c-typeck.c (build_function_call): Likewise.  
1355         * tree-sssa.c (warn_uninit): Likewise.  
1356         * builtins.c (gimplify_va_arg_expr): Likewise.
1357
1358 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1359
1360         PR 7651
1361         * doc/invoke.texi (-Wextra): Move warning from here...
1362         (-Wuninitialized): ... to here.
1363         
1364 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1365
1366         PR 28875
1367         * flags.h (set_Wunused): Delete
1368         * toplev.c (process_options): Handle Wunused flags here.
1369         * opts.c (maybe_warn_unused_parameter): Delete.
1370         (common_handle_option): Replace set_Wunused by warn_unused.
1371         (set_Wextra): Do not handle Wunused-parameter here.
1372         (set_Wunused): Delete.
1373         * c-opts.c (c_common_handle_option): Replace set_Wunused by
1374         warn_unused.
1375         * common.opt (Wunused): Add Var and Init.
1376         (Wunused-function): Likewise.
1377         (Wunused-label): Likewise.
1378         (Wunused-parameter): Likewise.
1379         (Wunused-value): Likewise.
1380         (Wunused-variable): Likewise.
1381         
1382 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
1383
1384         * doc/invoke.texi: Add cpu_type power7.
1385         * config.in (HAVE_AS_VSX): New.
1386         * config.gcc: Add cpu_type power7.
1387         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1388         VSX instructions.
1389         * configure: Regenerate.
1390         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1391         power5.
1392         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1393         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1394         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1395
1396 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
1397
1398         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1399         type to vectorize.builtin_conversion.
1400         (vectorizable_conversion): Likewise.
1401         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1402         integral type as input.
1403         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1404         FIX_TRUNC_EXPR.
1405         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1406         and ALTIVEC_BUILTIN_VCTSXS.
1407         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1408         formatting. 
1409
1410 2008-08-08  Richard Guenther  <rguenther@suse.de>
1411
1412         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1413         (surely_varying_stmt_p): Calls are varying only if they are
1414         non-builtin and not indirect or have no result.
1415         (ccp_fold): Re-instantiate code before the tuples merge.
1416
1417 2008-08-08  Richard Guenther  <rguenther@suse.de>
1418
1419         PR tree-optimization/37056
1420         * gimple.h (gimple_assign_rhs_class): New helper function.
1421         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1422         unary operations properly.
1423
1424 2008-08-07  Jan Hubicka  <jh@suse.cz>
1425
1426         * i386.h (ix86_size_cost): Declare.
1427         (ix86_cur_cost): New function macro.
1428         * i386.md (peepholes expanding size and splitters): Predicate by
1429         optimize_insn_for_speed_p.
1430         (peepholes reduce size and splitters): Predicate by
1431         optimize_insn_for_size_p.
1432         * i386.c (ix86_size_cost): Rename from ...
1433         (size_cost): This one.
1434         (override_options): Update.
1435         (decide_alg): Likewise.
1436         (ix86_expand_clear): Use RTL profile.
1437         (ix86_pad_returns): Use RTL profile.
1438
1439 2008-08-07  Jan Hubicka  <jh@suse.cz>
1440
1441         * recog.c (split_all_insns): Set RTL profile
1442         (peephole2_optimize): Likewise.
1443         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1444         * combine.c (combine_instructions): Likewise.
1445
1446 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1447
1448         * c-common.c (c_common_reswords): Also warn about keyword "bool".
1449
1450 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
1451         
1452         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1453         value in a6 after the set_frame_ptr insn.
1454         
1455 2008-08-07  Richard Henderson  <rth@redhat.com>
1456
1457         PR debug/37033
1458         * gcc.c (cpp_options): Pass along -g*.
1459
1460 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1461
1462         * config/arm/arm.c (output_move_neon): Update comment describing
1463         big-endian vector layout.
1464         (arm_assemble_integer): Do not handle big-endian NEON vectors
1465         specially.
1466         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1467         neon_vget_lane<mode>_sext_internal,
1468         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
1469         element indices for big-endian.
1470
1471 2008-08-07  Richard Henderson  <rth@redhat.com>
1472
1473         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
1474         * configure, config.in: Rebuild.
1475         * debug.h (dwarf2out_do_cfi_asm): Declare.
1476         * c-cppbuiltin.c (c_cpp_builtins): Use it.
1477         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
1478         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
1479         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
1480
1481 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1482
1483         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1484         movv2si_internal): Combine into mov<mode>_internal.
1485         (movv2si_internal_2): Remove.
1486
1487 2008-08-07  Jan Hubicka  <jh@suse.cz>
1488
1489         PR target/37048
1490         * i386.md (single stringop patterns): Enable unconditionally. 
1491
1492 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1493
1494         PR target/36992
1495         * config/i386/emmintrin.h (_mm_move_epi64): Use
1496         __builtin_ia32_movq128.
1497
1498         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
1499         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
1500
1501         * config/i386/sse.md (sse2_movq128): New.
1502
1503         * doc/extend.texi: Document __builtin_ia32_movq128.
1504
1505 2008-08-07  Richard Guenther  <rguenther@suse.de>
1506
1507         PR middle-end/37042
1508         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
1509         pointers can access anything.
1510
1511 2008-08-06  Jan Hubicka  <jh@suse.cz>
1512
1513         * optabs.c (emit_unop_insn): Break out to ...
1514         (maybe_emit_unop_insn): ... this one.
1515         (expand_sfix_optab): Use maybe variant.
1516         * optabs.h (maybe_emit_unop_insn): Declare.
1517
1518         * i386.md (mov0 patterns): Enable by default.
1519         (FP conversion expanders): Disable expansion of code expanding
1520         sequences when instruction should be optimized for size.
1521         (single strinop patterns): Enable when optimizing for size.
1522         (string expanders): Disable expanding of code expanding sequences
1523         when optimizning instruction for size.
1524         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
1525         per BB basis.
1526         (ix86_fp_comparison_sahf_cost): Likewise.
1527         (ix86_expand_branch): Likewise.
1528         (ix86_expand_ashl_const): Likewise.
1529         (ix86_split_ashl): Likewise.
1530         (ix86_expand_strlen): Likewise.
1531         (ix86_emit_fp_unordered_jump): Likewie.
1532
1533 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1534
1535         * c-common.c: Fix typo.
1536         (c_common_reswords): Activate more C++ keyword warnings.
1537
1538         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
1539
1540 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1541
1542         PR 26785
1543         * diagnostic.c (permerror_at): New.
1544         * toplev.h (permerror_at): Declare.
1545         
1546 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
1547             Ira Rosen  <irar@il.ibm.com>
1548
1549         * tree-vect-transform.c (vect_model_simple_cost): Return
1550         immediately if stmt is pure SLP.
1551         (vect_model_store_cost): Ditto.
1552         (vect_model_load_cost): Ditto.
1553         (vectorizable_store): Remove PURE_SLP check before call
1554         to vect_model_store_cost.
1555         (vect_model_store_cost): When checking whether stmt describe
1556         strided access, add a check that it is not slp_node.
1557
1558 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1559
1560         PR 8715
1561         * c-common.c (warn_for_sign_compare): New. Handle separately the
1562         case that 'constant' is zero.
1563         * c-typeck.c (build_binary_op): Move code to c-common.c
1564         
1565 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1566
1567         * config/alpha/alpha.c (alpha_preferred_reload_class,
1568         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
1569         alpha_output_mi_thunk_osf): Avoid C++ keywords.
1570         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
1571         * config/arm/arm.md: Likewise.
1572         * config/avr/avr-protos.h (preferred_reload_class,
1573         test_hard_reg_class, avr_simplify_comparison_p,
1574         out_shift_with_cnt, class_max_nregs): Likewise.
1575         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
1576         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
1577         preferred_reload_class, test_hard_reg_class): Likewise.
1578         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
1579         bfin_memory_move_cost, bfin_secondary_reload,
1580         bfin_output_mi_thunk): Likewise.
1581         * config/crx/crx.c (crx_secondary_reload_class,
1582         crx_memory_move_cost): Likewise.
1583         * config/frv/frv-protos.h (frv_secondary_reload_class,
1584         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
1585         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
1586         frv_secondary_reload_class, frv_class_likely_spilled_p,
1587         frv_class_max_nregs): Likewise.
1588         * config/h8300/h8300.c (h8300_classify_operand,
1589         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
1590         Likewise.
1591         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
1592         * config/ia64/ia64.c (ia64_preferred_reload_class,
1593         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
1594         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
1595         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
1596         Likewise.
1597         * config/m68hc11/m68hc11.c (preferred_reload_class,
1598         m68hc11_memory_move_cost): Likewise.
1599         * config/mcore/mcore.c (mcore_secondary_reload_class,
1600         mcore_reload_class): Likewise.
1601         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
1602         mips_class_max_nregs, mips_cannot_change_mode_class,
1603         mips_preferred_reload_class, mips_secondary_reload_class,
1604         mips_output_mi_thunk): Likewise.
1605         * config/mmix/mmix.c (mmix_preferred_reload_class,
1606         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
1607         Likewise.
1608         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1609         Likewise.
1610         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
1611         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
1612         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1613         * config/rs6000/rs6000.c (paired_expand_vector_init,
1614         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
1615         compare_section_name, rs6000_memory_move_cost): Likewise.
1616         * config/s390/s390.c (s390_emit_compare_and_swap,
1617         s390_preferred_reload_class, s390_secondary_reload,
1618         legitimize_pic_address, legitimize_tls_address,
1619         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
1620         s390_class_max_nregs): Likewise.
1621         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1622         * config/s390/s390.md: Likewise.
1623         * config/score/score-protos.h (score_secondary_reload_class,
1624         score_preferred_reload_class): Likewise.
1625         * config/score/score.c (score_preferred_reload_class,
1626         score_secondary_reload_class): Likewise.
1627         * config/score/score3.c (score3_output_mi_thunk,
1628         score3_preferred_reload_class, score3_secondary_reload_class,
1629         score3_hard_regno_mode_ok): Likewise.
1630         * config/score/score3.h (score3_preferred_reload_class,
1631         score3_secondary_reload_class): Likewise.
1632         * config/score/score7.c (score7_output_mi_thunk,
1633         score7_preferred_reload_class, score7_secondary_reload_class,
1634         score7_hard_regno_mode_ok): Likewise.
1635         * config/score/score7.h (score7_preferred_reload_class,
1636         score7_secondary_reload_class): Likewise.
1637         * config/sh/sh.c (prepare_move_operands, output_far_jump,
1638         output_branchy_insn, add_constant, gen_block_redirect,
1639         sh_insn_length_adjustment, sh_cannot_change_mode_class,
1640         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
1641         Likewise.
1642         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1643         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
1644         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
1645         xstormy16_preferred_reload_class): Likewise.
1646         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
1647         xtensa_expand_atomic, override_options,
1648         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
1649         Likewise.
1650         * reorg.c (try_merge_delay_insns): Likewise.
1651         * tree.c (merge_dllimport_decl_attributes): Likewise.
1652
1653         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
1654
1655 2008-08-06  Michael Matz  <matz@suse.de>
1656
1657         * Makefile.in (write_entries_to_file): Quote words.
1658         * gengtype.c: (read_input_line): Skip over leading white-space.
1659
1660 2008-08-06  Marc Gauthier  <marc@tensilica.com>
1661
1662         * config.gcc: Match more processor names for Xtensa.
1663         * configure.ac: Likewise.
1664         * doc/install.texi (Specific): Likewise.
1665         * configure: Regenerate.
1666
1667 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1668
1669         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
1670         * calls.c (avoid_likely_spilled_reg): Likewise.
1671         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1672         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
1673         * config/i386/i386.c (ix86_expand_special_args_builtin,
1674         ix86_secondary_reload): Likewise.
1675         * except.c (struct eh_region, gen_eh_region_catch,
1676         remove_unreachable_regions, duplicate_eh_regions,
1677         assign_filter_values, build_post_landing_pads,
1678         sjlj_find_directly_reachable_regions, remove_eh_handler,
1679         reachable_next_level, foreach_reachable_handler,
1680         can_throw_internal_1, can_throw_external_1,
1681         collect_one_action_chain): Likewise.
1682         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
1683         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
1684         * function.c (update_temp_slot_address, instantiate_new_reg,
1685         instantiate_virtual_regs_in_rtx,
1686         instantiate_virtual_regs_in_insn): Likewise.
1687         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
1688         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
1689         gimplify_cleanup_point_expr): Likewise.
1690         * ipa-cp.c (ipcp_lattice_changed): Likewise.
1691         * passes.c (next_pass_1): Likewise.
1692         * print-tree.c (print_node_brief, print_node): Likewise.
1693         * profile.c (branch_prob): Likewise.
1694         * tree-dump.c (dump_register): Likewise.
1695         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
1696         Likewise.
1697         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
1698         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
1699         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
1700         copy_arguments_for_versioning, copy_static_chain): Likewise.
1701         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
1702         add_new_name_mapping, register_new_name_mapping): Likewise.
1703         * tree-mudflap.c (mf_xform_derefs): Likewise.
1704         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
1705         get_init_expr, combine_chains): Likewise.
1706         * tree-pretty-print.c (dump_generic_node): Likewise.
1707         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
1708         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
1709         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
1710         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
1711
1712 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1713
1714         PR middle-end/37010
1715         * calls.c (expand_call): Use the biggest preferred stack
1716         boundary.
1717
1718 2008-08-06  Michael Matz  <matz@suse.de>
1719
1720         PR target/36613
1721         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
1722         for reused reload, instead of overwriting them.
1723
1724 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1725
1726         PR middle-end/37009
1727         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
1728         for incoming stack boundary.
1729
1730         * function.c (assign_parm_find_entry_rtl): Update
1731         parm_stack_boundary.
1732
1733         * function.h (rtl_data): Add parm_stack_boundary.
1734
1735         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
1736         parm_stack_boundary for incoming stack boundary.
1737
1738 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
1739
1740         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
1741         for unrepresentable subregs or treat them as equal to other regs
1742         or subregs with the same register number.
1743
1744 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
1745
1746         PR middle-end/35432
1747         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
1748         if want_value.
1749
1750 2008-08-06  Jan Hubicka  <jh@suse.cz>
1751
1752         * predict.c (maybe_hot_frequency_p): When profile is absent, all
1753         frequencies might be hot.
1754
1755 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1756
1757         * reload.c (find_reloads): Force constants into literal pool
1758         also if they are wrapped in a SUBREG.
1759
1760 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1761
1762         PR target/35659
1763         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
1764         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
1765         Don't allow predicated instructions for data speculation.
1766         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
1767         declaration.
1768
1769 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1770
1771         * haifa-sched.c (extend_global): Split to extend_global_data and
1772         extend_region_data.  Update all uses.
1773         (extend_all): Rename to extend_block_data.
1774
1775 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1776
1777         * sched-rgn.c (new_ready): Check if instruction can be
1778         speculatively scheduled before attempting speculation.
1779         (debug_rgn_dependencies): Remove wrongful assert.
1780
1781 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1782
1783         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
1784         
1785 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1786         
1787         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
1788         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
1789         va_size, and type_size.
1790         
1791 2008-08-04  Jason Merrill  <jason@redhat.com>
1792
1793         PR c++/37016
1794         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
1795         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
1796
1797 2008-08-05  Richard Henderson  <rth@redhat.com>
1798
1799         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
1800         * configure: Rebuild.
1801
1802 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1803
1804         PR tree-opt/37024
1805         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
1806         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
1807         is a conversion.
1808
1809 2008-08-05  Richard Henderson  <rth@redhat.com>
1810
1811         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
1812         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
1813         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
1814         * common.opt (fdwarf2-cfi-asm): New.
1815         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
1816         * config.in, configure: Rebuild.
1817         * dwarf2asm.c (dw2_asm_output_data_raw): New.
1818         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
1819         (dw2_force_const_mem): Externalize.
1820         * dwarf2asm.h: Update.
1821         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
1822         generate a real label.
1823         (output_cfi_directive): New.
1824         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
1825         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
1826         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
1827         and .cfi_lsda.
1828         (dwarf2out_end_epilogue): Emit .cfi_endproc.
1829         (output_loc_operands_raw, output_loc_sequence_raw): New.
1830         (output_cfa_loc_raw): New.
1831         
1832 2008-08-05  Paul Brook  <paul@codesourcery.com>
1833
1834         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
1835         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
1836         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
1837         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
1838         * config/arm/arm.h (TARGET_VFPD32): Define.
1839         (TARGET_VFP3): Use TARGET_VFPD32.
1840         (fputype): Add FPUTYPE_VFP3D16.
1841         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
1842         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
1843         * config/arm/arm-cores.def: Add cortex-r4f.
1844         * config/arm/arm-tune.md: Regenerate.
1845
1846 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1847
1848         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
1849         Reword some comments throughout the file.
1850
1851         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
1852         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
1853         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
1854         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
1855
1856         (MFC_START_ENABLE): Remove PPU-only define.
1857         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
1858         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
1859
1860         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
1861         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
1862         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
1863         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
1864         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
1865         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
1866         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
1867
1868         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
1869         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
1870         (mfc_sdcrt, mfc_sdcrtst): Likewise.
1871         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
1872
1873         (spu_read_machine_status): Fix typo.
1874
1875 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1876
1877         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
1878         SUBREG of multi-word hard register.
1879         * config/spu/spu.c (valid_subreg): Likewise.
1880         (adjust_operand): Handle SUBREGs of multi-word hard registers.
1881
1882 2008-08-04  Richard Guenther  <rguenther@suse.de>
1883
1884         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
1885         the candidate with the stripped base if that base is different
1886         from the original base even for offset zero.
1887
1888 2008-08-04  Richard Guenther  <rguenther@suse.de>
1889
1890         PR middle-end/36691
1891         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
1892         check for no_overflow.
1893
1894 2008-08-04  Richard Guenther  <rguenther@suse.de>
1895
1896         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
1897
1898 2008-08-04  Paul Brook  <paul@codesourcery.com>
1899
1900         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
1901         (arm_order_regs_for_local_alloc): New function.
1902         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
1903         prototype.
1904         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
1905
1906 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1907
1908         PR target/37012
1909         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
1910         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
1911         (ix86_expand_epilogue): Likewise.
1912
1913 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1914
1915         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
1916         in comments.
1917
1918 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1919
1920         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
1921         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
1922         (*movv2sf_internal_rex64): Ditto.
1923
1924 2008-08-03  Jan Hubicka  <jh@suse.cz>
1925
1926         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
1927         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
1928         * expmed.c (expand_smod_pow2): Likewise.
1929
1930 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1931
1932         PR target/36992
1933         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
1934         alternative 0 of operand 1.
1935         (*vec_concatv2di_rex64_sse): Ditto.
1936         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
1937         of operand 1.
1938         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
1939         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
1940         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
1941         (*movv2sf_internal_rex64): Ditto.
1942
1943 2008-08-02  Richard Guenther  <rguenther@suse.de>
1944
1945         PR target/35252
1946         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
1947         (ssedoublesizemode): New mode attribute.
1948         (sse_shufps): Call gen_sse_shufps_v4sf.
1949         (sse_shufps_1): Macroize.
1950         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
1951         (sse2_shufpd_1): Macroize.
1952         (vec_extract_odd, vec_extract_even): New expanders.
1953         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
1954         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
1955         * i386.c (ix86_expand_vector_init_one_nonzero): Call
1956         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
1957         (ix86_expand_vector_set): Likewise.
1958         (ix86_expand_reduc_v4sf): Likewise.
1959
1960 2008-08-01  Doug Kwan  <dougkwan@google.com>
1961
1962         * matrix-reorg.c: Re-enable all code.
1963         (struct malloc_call_data): Change CALL_STMT to gimple type.
1964         (collect_data_for_malloc_call): Tuplify.
1965         (struct access_site_info): Change STMT to gimple type.
1966         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
1967         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
1968         (struct free_info): Change STMT to gimple type.
1969         (struct matrix_access_phi_node):  Change PHI to gimple type.
1970         (get_inner_of_cast_expr): Remove.
1971         (may_flatten_matrices_1): Tuplify.
1972         (may_flatten_matrices): Ditto.
1973         (mark_min_matrix_escape_level): Ditto.
1974         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
1975         (ssa_accessed_in_call_rhs): New
1976         (ssa_accessed_in_assign_rhs): New
1977         (record_access_alloc_site_info): Tuplify.
1978         (add_allocation_site): Ditto.
1979         (analyze_matrix_allocation_site): Ditto.
1980         (analyze_transpose): Ditto.
1981         (get_index_from_offset): Ditto.
1982         (update_type_size): Ditto.
1983         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
1984         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
1985         (analyze_accesses_for_phi_node): Tuplify.
1986         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
1987         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
1988         (analyze_matrix_accesses): Tuplify.
1989         (check_var_data): New call-back type for check_var_notmodified_p.
1990         (check_var_notmodified_p): Tuplify and use call-back struct to
1991         return statement found.
1992         (can_calculate_expr_before_stmt): Factor out statement related code
1993         into ...
1994         (can_calculate_stmt_before_stmt): New.
1995         (check_allocation_function): Tuplify.
1996         (find_sites_in_func): Ditto.
1997         (record_all_accesses_in_func): Ditto.
1998         (transform_access_sites): Ditto.
1999         (transform_allocation_sites): Ditto.
2000         (matrix_reorg): Re-enable.
2001         (gate_matrix_reorg): Re-enable.
2002
2003 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
2004
2005         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
2006         for labels for which it hasn't been set yet.  If it has been set,
2007         stop walking insns and continue with next worklist item.
2008         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
2009         if the only BARRIER is at the very end of a function.
2010
2011 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2012
2013         * cfgexpand.c (expand_stack_alignment): Assert that
2014         stack_realign_drap and drap_rtx must match.
2015
2016         * function.c (instantiate_new_reg): If DRAP is used to realign
2017         stack, replace virtual_incoming_args_rtx with internal arg
2018         pointer.
2019
2020 2008-08-01  Richard Guenther  <rguenther@suse.de>
2021
2022         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
2023         loop information only if we initialized it.
2024         (execute_pre): Call fini_pre with in_fre.
2025         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
2026         if we do not unroll because we hit max-completely-peeled-insns.
2027         Use our estimation for consistency, do allow shrinking.
2028
2029 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2030
2031         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
2032         with MIN_STACK_BOUNDARY.
2033         (ix86_update_stack_boundary): Likewise.
2034         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
2035         STACK_BOUNDARY.
2036
2037         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
2038         (MIN_STACK_BOUNDARY): This.
2039
2040 2008-08-01  Richard Guenther  <rguenther@suse.de>
2041
2042         PR middle-end/36997
2043         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
2044
2045 2008-08-01  Richard Guenther  <rguenther@suse.de>
2046
2047         PR tree-optimization/36988
2048         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
2049         do not matter if that doesn't change volatile qualification.
2050
2051 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2052
2053         * configure.ac: Do not generate libada-mk.  Do not subst
2054         host_cc_for_libada.
2055         * libada-mk.in: Remove.
2056         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
2057         * configure: Regenerate.
2058
2059 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
2060
2061         * tree-pass.h: Added comment about not dumping passes with name
2062         starting with star in struct opt_pass.
2063         * passes.c (register_dump_files_1): Don't do dump for a pass with
2064         name starting with star.
2065         * doc/passes.texi (Pass manager): Mention pass names and special
2066         meaning of star prefix to avoid dump.
2067
2068 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
2069
2070         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
2071         to MIPS64r2.
2072         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
2073         (ISA_MIPS64R2): New macro.
2074         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
2075         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
2076         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
2077         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
2078         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
2079         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
2080         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
2081         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
2082         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
2083         Move up to keep list alphabetically sorted.
2084         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
2085         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
2086         processor.
2087         * doc/invoke.texi (MIPS Options): Add -mips64r2.
2088         (-march=@var{arch}): Add mips64r2.
2089
2090 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2091
2092         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2093
2094 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
2095
2096         * expr.c (expand_assignment): Check for complete type.
2097
2098 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2099
2100         PR debug/36977
2101         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
2102
2103         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
2104         for stack alignment.
2105
2106         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
2107
2108 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2109
2110         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
2111         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
2112
2113 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2114
2115         PR rtl-optimization/36419
2116         * dwarf2out.c (barrier_args_size): New variable.
2117         (compute_barrier_args_size, compute_barrier_args_size_1): New
2118         functions.
2119         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
2120         if not called yet in the current function, use barrier_args_size
2121         array to find the new args_size value.
2122         (dwarf2out_frame_debug): Free and clear barrier_args_size.
2123
2124 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2125
2126         PR debug/36980
2127         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
2128         rule 19.
2129
2130 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2131
2132         PR debug/36976
2133         * dwarf2out.c (dwarf2out_args_size_adjust): New.
2134         (dwarf2out_stack_adjust): Use it.
2135         (dwarf2out_frame_debug_expr): Likewise.
2136
2137 2008-07-31  Richard Guenther  <rguenther@suse.de>
2138
2139         PR tree-optimization/36978
2140         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
2141         the generated condition.
2142
2143 2008-07-31  Richard Guenther  <rguenther@suse.de>
2144
2145         * passes.c (init_optimization_passes): Always call
2146         pass_early_warn_uninitialized.
2147         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
2148         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
2149         * doc/passes.texi (Warn for uninitialized variables): Adjust.
2150
2151 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2152
2153         PR c/36970
2154         * builtins.c (maybe_emit_free_warning): New function.
2155         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
2156         maybe_emit_free_warning for BUILT_IN_FREE.
2157
2158         PR debug/36278
2159         * dwarf2out.c (get_context_die): New function.
2160         (force_decl_die, force_type_die): Use it.
2161         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
2162         returns NULL, force generation of DW_TAG_typedef and put that into
2163         DW_AT_import.
2164
2165         PR preprocessor/36649
2166         * c-pch.c (c_common_read_pch): Save and restore
2167         line_table->trace_includes across PCH restore.
2168
2169 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2170
2171         PR ada/36554
2172         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
2173
2174 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2175
2176         PR 36974
2177         * final.c (call_from_call_insn): Handle COND_EXEC.
2178
2179 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2180
2181         * builtins.c (std_gimplify_va_arg_expr): Replace
2182         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
2183         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2184
2185 2008-07-30  Joey Ye  <joey.ye@intel.com>
2186             H.J. Lu  <hongjiu.lu@intel.com>
2187
2188         * builtins.c (expand_builtin_setjmp_receiver): Replace
2189         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
2190         (expand_builtin_apply_args_1): Likewise.
2191         (expand_builtin_longjmp): Need DRAP for stack alignment.
2192         (expand_builtin_apply): Likewise.
2193
2194         * caller-save.c (setup_save_areas): Call assign_stack_local_1
2195         instead of assign_stack_local to allow alignment reduction.
2196
2197         * calls.c (emit_call_1): Need DRAP for stack alignment if
2198         return pops.
2199         (expand_call): Replace virtual_incoming_args_rtx with
2200         crtl->args.internal_arg_pointer.
2201         * stmt.c (expand_nl_goto_receiver): Likewise.
2202
2203         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
2204         alignment and store to stack_alignment_estimated and
2205         max_used_stack_slot_alignment.
2206         (expand_one_var): Likewise.
2207         (expand_stack_alignment): New function.
2208         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
2209         and stack_alignment_estimated fields in rtl_data.  Call
2210         expand_stack_alignment at end.
2211
2212         * defaults.h (INCOMING_STACK_BOUNDARY): New.
2213         (MAX_STACK_ALIGNMENT): Likewise.
2214         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
2215         (SUPPORTS_STACK_ALIGNMENT): Likewise.
2216
2217         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
2218         stack alignment when generating virtual registers.
2219
2220         * function.c (assign_stack_local): Renamed to ...
2221         (assign_stack_local_1): This.  Add a parameter to indicate
2222         if it is OK to reduce alignment.
2223         (assign_stack_local): Use it.
2224         (instantiate_new_reg): Instantiate virtual incoming args rtx
2225         to vDRAP if stack realignment and DRAP is needed.
2226         (assign_parms): Collect parameter/return type alignment and
2227         contribute to stack_alignment_estimated.
2228         (locate_and_pad_parm): Likewise.
2229         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
2230         with crtl->args.internal_arg_pointer.
2231
2232         * function.h (rtl_data): Add new field drap_reg,
2233         max_used_stack_slot_alignment, stack_alignment_estimated,
2234         stack_realign_needed, need_drap, stack_realign_processed and
2235         stack_realign_finalized.
2236         (stack_realign_fp): New macro.
2237         (stack_realign_drap): Likewise.
2238
2239         * global.c (compute_regsets): Frame pointer is needed when
2240         stack is realigned.  Can eliminate frame pointer when stack is
2241         realigned and dynamic realigned argument pointer isn't used.
2242
2243         * reload1.c (update_eliminables):  Frame pointer is needed
2244         when stack is realigned.
2245         (init_elim_table): Can eliminate frame pointer when stack is
2246         realigned and dynamic realigned argument pointer isn't used.
2247
2248         * rtl.h (assign_stack_local_1): Declare new funtion.
2249
2250         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
2251         (TARGET_GET_DRAP_RTX): Likewise.
2252         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
2253         TARGET_GET_DRAP_RTX.
2254
2255         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
2256
2257         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2258         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
2259
2260 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
2261             H.J. Lu  <hongjiu.lu@intel.com>
2262
2263         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
2264         vdrap_reg, stack_realign and drap_reg_saved.
2265         (add_cfi): Don't allow redefining CFA when DRAP is used.
2266         (reg_save): Handle stack alignment.
2267         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
2268         alignment.  Don't generate DWARF information for (set fp sp)
2269         when DRAP is used.
2270         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
2271         to INVALID_REGNUM.
2272         (int_loc_descriptor): Move prototype forward.  Also define if
2273         DWARF2_UNWIND_INFO is true.
2274         (output_cfa_loc): Handle DW_CFA_expression.
2275         (build_cfa_aligned_loc): New.
2276         (based_loc_descr): Update assert for stack realign.  For local
2277         variables, use sp+offset when stack is aligned without drap and
2278         fp+offset when stack is aligned with drap.  For arguments, use
2279         cfa+offset when drap is used to align stack.
2280
2281 2008-07-30  Joey Ye  <joey.ye@intel.com>
2282             H.J. Lu  <hongjiu.lu@intel.com>
2283
2284         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2285         Break long line.
2286         (ix86_gen_andsp): New.
2287         (ix86_user_incoming_stack_boundary): Likewise.
2288         (ix86_default_incoming_stack_boundary): Likewise.
2289         (ix86_incoming_stack_boundary): Likewise.
2290         (ix86_can_eliminate): Likewise.
2291         (find_drap_reg): Likewise.
2292         (ix86_update_stack_boundary): Likewise.
2293         (ix86_get_drap_rtx): Likewise.
2294         (ix86_finalize_stack_realign_flags): Likewise.
2295         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2296         (TARGET_GET_DRAP_RTX): Likewise.
2297         (override_options): Overide option value for new options.
2298         (ix86_function_ok_for_sibcall): Remove check for
2299         force_align_arg_pointer.
2300         (ix86_handle_cconv_attribute): Likewise.
2301         (ix86_function_regparm): Likewise.
2302         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2303         (ix86_va_start): Replace virtual_incoming_args_rtx with
2304         crtl->args.internal_arg_pointer.
2305         (ix86_select_alt_pic_regnum): Check DRAP register.
2306         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2307         (ix86_compute_frame_layout): Compute frame layout wrt stack
2308         realignment.
2309         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2310         (ix86_expand_prologue): Decide if stack realignment is needed
2311         and generate prologue code accordingly.
2312         (ix86_expand_epilogue): Generate epilogue code wrt stack
2313         realignment is really needed or not.
2314         
2315         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2316         (ABI_STACK_BOUNDARY): Likewise.
2317         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2318         (STACK_REALIGN_DEFAULT): Likewise.
2319         (INCOMING_STACK_BOUNDARY): Likewise.
2320         (MAX_STACK_ALIGNMENT): Likewise.
2321         (ix86_incoming_stack_boundary): Likewise.
2322         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2323         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2324         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2325         (machine_function): Remove force_align_arg_pointer.
2326
2327         * config/i386/i386.md (BX_REG): New.
2328         (R13_REG): Likewise.
2329
2330         * config/i386/i386.opt (mforce_drap): New.
2331         (mincoming-stack-boundary): Likewise.
2332         (mstackrealign): Add Init(-1).
2333
2334         * config/i386/i386-protos.h (ix86_can_eliminate): New
2335
2336 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2337
2338         * doc/extend.texi: Update force_align_arg_pointer.
2339
2340         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
2341         -mstackrealign.
2342
2343         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2344         (INCOMING_STACK_BOUNDARY): Likewise.
2345         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2346         (TARGET_GET_DRAP_RTX): Likewise.
2347
2348 2008-07-30  Andreas Schwab  <schwab@suse.de>
2349
2350         PR rtl-optimization/36929
2351         * dse.c (replace_inc_dec): Use emit_insn_before instead of
2352         add_insn_before and fix argument order.
2353         (replace_inc_dec_mem): Handle NULL rtx.
2354
2355 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2356
2357         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2358         function.
2359         (arm_compute_initial_elimination_offset): Use it.
2360         (arm_compute_save_reg_mask): Include static chain save slot when
2361         calculating alignment.
2362         (arm_get_frame_offsets): Ditto.
2363         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2364         that we can use to decrement the stack when the stack decrement
2365         could be too big for an immediate value in a single insn.
2366         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2367
2368 2008-07-30  Richard Guenther  <rguenther@suse.de>
2369
2370         PR tree-optimization/36967
2371         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2372         Release defs of statements we remove.
2373
2374 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2375
2376         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2377         instead of NULL_RTVEC.
2378
2379 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2380
2381         PR target/35866
2382
2383         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2384         vector modes.
2385
2386 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2387
2388         * final.c (call_from_call_insn): New.
2389         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2390
2391 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2392
2393         * configure.ac: Substitute ADA_CFLAGS.
2394         * configure: Regenerate.
2395         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2396         * Makefile.in: Remove mention of X_* variables.
2397         * config/pa/x-ada-hpux10: Remove.
2398         * config/pa/x-ada: Remove.
2399
2400         * doc/fragments.texi: Update.
2401
2402 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2403
2404         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2405         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2406         __dso_handle explicitly here.
2407
2408 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2409
2410         PR 34389
2411         * c-typeck.c (build_binary_op): Encapsulate code into...
2412         * c-common.c (shorten_binary_op): ...this new function.
2413         (conversion_warning): Use the new function. Handle non-negative
2414         constant in bitwise-and.
2415         * c-common.h (shorten_binary_op): Declare.
2416
2417 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2418
2419         * scan.c (make_sstring_space): Add explicit conversions of
2420         allocator's return value.
2421         * fix-header.c (recognized_function): Likewise.
2422
2423 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2424
2425         * doc/cpp.texi: Update to GFDL 1.2.
2426         * doc/gcc.texi: Do not list GPL as Invariant Section.
2427         * doc/gccint.texi: Likewise.  Update copyright years.
2428         * doc/install.texi: Update copyright years.
2429
2430 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
2431
2432         PR target/36955
2433         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2434         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2435
2436 2008-07-29  Jan Hubicka  <jh@suse.cz>
2437
2438         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2439         (grokdeclarator): Likewise.
2440         * langhooks.c (lhd_warn_unused_global_decl): Use
2441         DECL_DECLARED_INLINE_P.
2442         * print-tree.c (print_node): Remove DECL_INLINE check.
2443
2444 2008-07-29  Richard Guenther  <rguenther@suse.de>
2445
2446         PR tree-optimization/36945
2447         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2448         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2449         Record invariant addresses un-decomposed.
2450         (copy_reference_ops_from_call): Record reference call
2451         arguments properly.  Simplify.
2452         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2453         helper split out from ...
2454         (create_component_ref_by_pieces): ... here.  Simplify.
2455         Prepare for recursive invocation for call arguments.
2456         (create_expression_by_pieces): Adjust call to
2457         create_component_ref_by_pieces.
2458         (compute_avail): Process operand 2 of reference ops.
2459
2460 2008-07-29  Richard Guenther  <rguenther@suse.de>
2461
2462         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2463
2464 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
2465
2466         * c-format.c (check_format_types): Revert unwanted checkin.
2467
2468 2008-07-29  Jan Hubicka  <jh@suse.cz>
2469
2470         * flags.h (flag_really_no_inline): Remove.
2471         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
2472         * toplev.c (flag_really_no_inline): Remove.
2473         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
2474         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
2475         (cgraph_decide_inlining_incrementally): Likewise.
2476         (compute_inline_parameters): Likewise.
2477         * opts.c (decode_options): Simplify.
2478         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
2479         * common.opt (finline): Initialize to 1.
2480         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
2481
2482 2008-07-29  Jan Hubicka  <jh@suse.cz>
2483
2484         * predict.c (always_optimize_for_size_p): New function.
2485         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2486         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2487         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
2488         functions.
2489         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
2490         * function.c (prepare_function_start): Set default profile.
2491         * function.h (rtl_data): Add maybe_hot_insn_p.
2492         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
2493         (construct_exit_block): Likewise.
2494         (tree_expand_cfg): Likewise.
2495         * basic-block.h
2496         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2497         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2498         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2499         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
2500         Declare.
2501
2502 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2503
2504         PR 34985
2505         * c-decl.c (merge_decls): Merge USED flags.
2506
2507 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2508
2509         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
2510         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
2511         next_stack, lab_false and lab_over trees.
2512
2513 2008-07-28  Richard Guenther  <rguenther@suse.de>
2514
2515         PR tree-optimization/36957
2516         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
2517         (useless_type_conversion_p): Remove.
2518         (types_compatible_p): Remove.
2519         * gimple.h (tree_ssa_useless_type_conversion): Declare.
2520         (useless_type_conversion_p): Declare.
2521         (types_compatible_p): Declare.
2522         (gimple_expr_type): Return the base type only if it is
2523         trivially convertible to the subtype.
2524
2525 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
2526
2527         * configure.ac: Use the m4_do macro to concatenate the warnings into
2528         one string in ACX_PROG_CC_WARNING_OPTS,
2529         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
2530         * configure: Regenerate.
2531
2532 2008-07-28  Richard Guenther  <rguenther@suse.de>
2533
2534         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
2535         (insert_fake_stores): Remove.
2536         (realify_fake_stores): Likewise.
2537         (execute_pre): Remove dead code.
2538         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
2539         (find_func_aliases): Deal with it here instead.
2540         Re-enable gcc_unreachable call.
2541
2542 2008-07-28  Richard Guenther  <rguenther@suse.de>
2543
2544         Merge from gimple-tuples-branch.
2545
2546         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
2547         * gimple.def: New file.
2548         * gsstruct.def: Likewise.
2549         * gimple-iterator.c: Likewise.
2550         * gimple-pretty-print.c: Likewise.
2551         * tree-gimple.c: Removed.  Merged into ...
2552         * gimple.c: ... here.  New file.
2553         * tree-gimple.h: Removed.  Merged into ...
2554         * gimple.h: ... here.  New file.
2555
2556         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
2557         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
2558         --enable-checking=gimple flag.
2559         * config.in: Likewise.
2560         * configure: Regenerated.
2561
2562         * tree-ssa-operands.h: Tuplified.
2563         * tree-vrp.c: Likewise.
2564         * tree-loop-linear.c: Likewise.
2565         * tree-into-ssa.c: Likewise.
2566         * tree-ssa-loop-im.c: Likewise.
2567         * tree-dump.c: Likewise.
2568         * tree-complex.c: Likewise.
2569         * cgraphbuild.c: Likewise.
2570         * tree-ssa-threadupdate.c: Likewise.
2571         * tree-ssa-loop-niter.c: Likewise.
2572         * tree-pretty-print.c: Likewise.
2573         * tracer.c: Likewise.
2574         * gengtype.c: Likewise.
2575         * tree-loop-distribution.c: Likewise.
2576         * tree-ssa-loop-unswitch.c: Likewise.
2577         * cgraph.c: Likewise.
2578         * cgraph.h: Likewise.
2579         * tree-ssa-loop-manip.c: Likewise.
2580         * value-prof.c: Likewise.
2581         * tree-ssa-loop-ch.c: Likewise.
2582         * tree-tailcall.c: Likewise.
2583         * value-prof.h: Likewise.
2584         * tree.c: Likewise.
2585         * tree.h: Likewise.
2586         * tree-pass.h: Likewise.
2587         * ipa-cp.c: Likewise.
2588         * tree-scalar-evolution.c: Likewise.
2589         * tree-scalar-evolution.h: Likewise.
2590         * target.h: Likewise.
2591         * lambda-mat.c: Likewise.
2592         * tree-phinodes.c: Likewise.
2593         * diagnostic.h: Likewise.
2594         * builtins.c: Likewise.
2595         * tree-ssa-alias-warnings.c: Likewise.
2596         * cfghooks.c: Likewise.
2597         * fold-const.c: Likewise.
2598         * cfghooks.h: Likewise.
2599         * omp-low.c: Likewise.
2600         * tree-ssa-dse.c: Likewise.
2601         * ipa-reference.c: Likewise.
2602         * tree-ssa-uncprop.c: Likewise.
2603         * toplev.c: Likewise.
2604         * tree-gimple.c: Likewise.
2605         * tree-gimple.h: Likewise.
2606         * tree-chrec.c: Likewise.
2607         * tree-chrec.h: Likewise.
2608         * tree-ssa-sccvn.c: Likewise.
2609         * tree-ssa-sccvn.h: Likewise.
2610         * cgraphunit.c: Likewise.
2611         * tree-ssa-copyrename.c: Likewise.
2612         * tree-ssa-ccp.c: Likewise.
2613         * tree-ssa-loop-ivopts.c: Likewise.
2614         * tree-nomudflap.c: Likewise.
2615         * tree-call-cdce.c: Likewise.
2616         * ipa-pure-const.c: Likewise.
2617         * c-format.c: Likewise.
2618         * tree-stdarg.c: Likewise.
2619         * tree-ssa-math-opts.c: Likewise.
2620         * tree-ssa-dom.c: Likewise.
2621         * tree-nrv.c: Likewise.
2622         * tree-ssa-propagate.c: Likewise.
2623         * ipa-utils.c: Likewise.
2624         * tree-ssa-propagate.h: Likewise.
2625         * tree-ssa-alias.c: Likewise.
2626         * gimple-low.c: Likewise.
2627         * tree-ssa-sink.c: Likewise.
2628         * ipa-inline.c: Likewise.
2629         * c-semantics.c: Likewise.
2630         * dwarf2out.c: Likewise.
2631         * expr.c: Likewise.
2632         * tree-ssa-loop-ivcanon.c: Likewise.
2633         * predict.c: Likewise.
2634         * tree-ssa-loop.c: Likewise.
2635         * tree-parloops.c: Likewise.
2636         * tree-ssa-address.c: Likewise.
2637         * tree-ssa-ifcombine.c: Likewise.
2638         * matrix-reorg.c: Likewise.
2639         * c-decl.c: Likewise.
2640         * tree-eh.c: Likewise.
2641         * c-pretty-print.c: Likewise.
2642         * lambda-trans.c: Likewise.
2643         * function.c: Likewise.
2644         * langhooks.c: Likewise.
2645         * ebitmap.h: Likewise.
2646         * tree-vectorizer.c: Likewise.
2647         * function.h: Likewise.
2648         * langhooks.h: Likewise.
2649         * tree-vectorizer.h: Likewise.
2650         * ipa-type-escape.c: Likewise.
2651         * ipa-type-escape.h: Likewise.
2652         * domwalk.c: Likewise.
2653         * tree-if-conv.c: Likewise.
2654         * profile.c: Likewise.
2655         * domwalk.h: Likewise.
2656         * tree-data-ref.c: Likewise.
2657         * tree-data-ref.h: Likewise.
2658         * tree-flow-inline.h: Likewise.
2659         * tree-affine.c: Likewise.
2660         * tree-vect-analyze.c: Likewise.
2661         * c-typeck.c: Likewise.
2662         * gimplify.c: Likewise.
2663         * coretypes.h: Likewise.
2664         * tree-ssa-phiopt.c: Likewise.
2665         * calls.c: Likewise.
2666         * tree-ssa-coalesce.c: Likewise.
2667         * tree.def: Likewise.
2668         * tree-dfa.c: Likewise.
2669         * except.c: Likewise.
2670         * except.h: Likewise.
2671         * cfgexpand.c: Likewise.
2672         * tree-cfgcleanup.c: Likewise.
2673         * tree-ssa-pre.c: Likewise.
2674         * tree-ssa-live.c: Likewise.
2675         * tree-sra.c: Likewise.
2676         * tree-ssa-live.h: Likewise.
2677         * tree-predcom.c: Likewise.
2678         * lambda.h: Likewise.
2679         * tree-mudflap.c: Likewise.
2680         * ipa-prop.c: Likewise.
2681         * print-tree.c: Likewise.
2682         * tree-ssa-copy.c: Likewise.
2683         * ipa-prop.h: Likewise.
2684         * tree-ssa-forwprop.c: Likewise.
2685         * ggc-page.c: Likewise.
2686         * c-omp.c: Likewise.
2687         * tree-ssa-dce.c: Likewise.
2688         * tree-vect-patterns.c: Likewise.
2689         * tree-ssa-ter.c: Likewise.
2690         * tree-nested.c: Likewise.
2691         * tree-ssa.c: Likewise.
2692         * lambda-code.c: Likewise.
2693         * tree-ssa-loop-prefetch.c: Likewise.
2694         * tree-inline.c: Likewise.
2695         * tree-inline.h: Likewise.
2696         * tree-iterator.c: Likewise.
2697         * tree-optimize.c: Likewise.
2698         * tree-ssa-phiprop.c: Likewise.
2699         * tree-vect-transform.c: Likewise.
2700         * tree-object-size.c: Likewise.
2701         * tree-outof-ssa.c: Likewise.
2702         * cfgloop.c: Likewise.
2703         * system.h: Likewise.
2704         * tree-profile.c: Likewise.
2705         * cfgloop.h: Likewise.
2706         * c-gimplify.c: Likewise.
2707         * c-common.c: Likewise.
2708         * tree-vect-generic.c: Likewise.
2709         * tree-flow.h: Likewise.
2710         * c-common.h: Likewise.
2711         * basic-block.h: Likewise.
2712         * tree-ssa-structalias.c: Likewise.
2713         * tree-switch-conversion.c: Likewise.
2714         * tree-ssa-structalias.h: Likewise.
2715         * tree-cfg.c: Likewise.
2716         * passes.c: Likewise.
2717         * ipa-struct-reorg.c: Likewise.
2718         * ipa-struct-reorg.h: Likewise.
2719         * tree-ssa-reassoc.c: Likewise.
2720         * cfgrtl.c: Likewise.
2721         * varpool.c: Likewise.
2722         * stmt.c: Likewise.
2723         * tree-ssanames.c: Likewise.
2724         * tree-ssa-threadedge.c: Likewise.
2725         * langhooks-def.h: Likewise.
2726         * tree-ssa-operands.c: Likewise.
2727         * config/alpha/alpha.c: Likewise.
2728         * config/frv/frv.c: Likewise.
2729         * config/s390/s390.c: Likewise.
2730         * config/m32c/m32c.c: Likewise.
2731         * config/m32c/m32c-protos.h: Likewise.
2732         * config/spu/spu.c: Likewise.
2733         * config/sparc/sparc.c: Likewise.
2734         * config/i386/i386.c: Likewise.
2735         * config/sh/sh.c: Likewise.
2736         * config/xtensa/xtensa.c: Likewise.
2737         * config/stormy16/stormy16.c: Likewise.
2738         * config/ia64/ia64.c: Likewise.
2739         * config/rs6000/rs6000.c: Likewise.
2740         * config/pa/pa.c: Likewise.
2741         * config/mips/mips.c: Likewise.
2742
2743 2008-07-28  Simon Baldwin  <simonb@google.com>
2744
2745         * c-pragma.c (handle_pragma_message): New function.
2746         (init_pragma): Register handle_pragma_message.
2747         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
2748         documentation.
2749
2750 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
2751
2752         PR tree-optimization/35252
2753         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
2754         REALPART_EXPR to be considered as same load operation.
2755
2756 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
2757
2758         PR tree-optimization/36830
2759         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
2760         (expressions_equal_p): Return false if only one operand is null.
2761
2762 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
2763
2764         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
2765         version requirements.
2766
2767 2008-07-26  Olivier Hainque  <hainque@adacore.com>
2768
2769         * collect2.c (symkind): New enum.  Symbol kinds we care about.
2770         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
2771         code and head comment accordingly.
2772         (scan_prog_file): Use symkind names instead of bare integers.
2773
2774 2008-07-25  Jan Hubicka  <jh@suse.cz>
2775
2776         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
2777         DECL_INLINE.
2778         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
2779         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
2780         * dojump.c (clear_pending_stack_adjust): Likewise.
2781         * print-tree.c (print_node): Ignore DECL_INLINE.
2782         * tree-inline.c (inlinable_function_p): Likewise.
2783
2784 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
2785
2786         * doc/extend.texi (hot attribute): Document that the hot attribute
2787         turns on -O3 for some ports.
2788         (cold attribute): Document that the cold attribute turns on -Os
2789         for some ports
2790
2791         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
2792         reflect function specific option support.
2793
2794         * target.h (struct target_option_hooks): Add fields to say whether
2795         the cold attribute implies -Os and the hot attribute implies -O3.
2796
2797         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
2798         By default, do not turn on -Os for cold functions.
2799         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
2800         not turn on -O3 for hot functions.
2801
2802         * c-common.c (handle_hot_attribute): Use target hook to determine
2803         if hot functions should enable -O3.
2804         (handle_cold_attribute): Use target hook to determine if cold
2805         functions should enable -Os.
2806
2807         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
2808         (override_options): Move disable scheduling to
2809         optimization_options.
2810         (optimization_options): Disable scheduling here, not
2811         override_options.
2812         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2813         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2814
2815         * config/ia64/ia64.c (ia64_override_options): Move setting
2816         scheduling flags to ia64_optimization_options.
2817         (ia64_optimization_options): Disable scheduling options here, and
2818         not in ia64_override_options.
2819         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2820         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2821
2822 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
2823
2824         PR target/36936
2825         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
2826
2827 2008-07-25  Martin Jambor  <mjambor@suse.cz>
2828
2829         PR tree-optimization/36926
2830         * ipa-prop.c (ipa_analyze_call_uses): Call
2831         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
2832
2833 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
2834
2835         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
2836         movv2si_internal): Add mem = reg alternative.
2837
2838 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
2839
2840         PR bootstrap/36918
2841         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
2842         DEFAULT_PCC_STRUCT_RETURN to 127.
2843
2844 2008-07-24  Jan Hubicka  <jh@suse.cz>
2845
2846         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
2847         (build_cgraph_edges): Likewise.
2848         * cgraph.c (cgraph_node): Do not update assembler hash.
2849         (cgraph_remove_node): Drop non-unit-at-a-time code.
2850         * tree-pass.h (pass_O0_always_inline): Remove.
2851         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
2852         * toplev.c (process_options): Flag unit-at-a-time does not imply
2853         no section anchors.
2854         * cgraphunit.c: Update comments.
2855         (decide_is_function_needed): Drop non-unit-at-a-time mode.
2856         (cgraph_assemble_pending_functions): Remove.
2857         (cgraph_reset_node): Drop non-unit-at-a-time code.
2858         (cgraph_finalize_function): Likewise.
2859         (cgraph_analyze_function): Likewise.
2860         (cgraph_finalize_compilation_unit): Likewise.
2861         (cgraph_expand_function): Likewise.
2862         (cgraph_optimize): Likesise.
2863         (save_inline_function_body): Likewise.
2864         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
2865         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
2866         * ipa-inline.c: Update comments.
2867         (enum inlining_mode): remove INLINE_SPEED.
2868         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
2869         (cgraph_mark_inline_edge): Likewise.
2870         (try_inline): Likewise.
2871         (cgraph_decide_inlining_incrementally): Likewise.
2872         (cgraph_gate_inlining): Remove.
2873         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
2874         (cgraph_gate_early_inlining): Likewise.
2875         (gate_inline_passes): Remove.
2876         (pass_inline_parameters, pass_ipa_inline): Remove gates.
2877         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2878         pass_O0_always_inline): Remove.
2879         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
2880         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
2881         * opts.c (no_unit_at_a_time_default): Remove.
2882         (decode_options): Remove flag_unit_at_a_time reset and warning.
2883         * opts.h (no_unit_at_a_time_default): Remove.
2884         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
2885         early in GNU dialect.
2886         (merge_decls): Update comment; drop unit-at-a-time check.
2887         (finish_decl): Likewise.
2888         (grok_declaration): Remove flag_inline_trees code.
2889         (finish_functions): Return on function returning non-void on all
2890         statics.
2891         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
2892         * cfgexpand.c (expand_one_static_var): Remove.
2893         (expand_one_var): Remove expand_one_static_var call.
2894         (expand_used_vars_for_block): Remove flag_unit_a_time check.
2895         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
2896         and flag_unit_at_a-time compatibility checks.
2897         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
2898         * tree-inline.c (flag_inline_trees): Remove.
2899         (inlinable_function_p): Don't check it.
2900         (expand_call_inline): Remove non-unit-at-a-time code.
2901         * tree-inline.h (flag_inline_trees): Remove.
2902         * tree-optimize.c (execute_early_local_optimizations): Remove
2903         unit-at-a-time checks.
2904         (tree_rest_of_compilation): Likewise.
2905         * combine.c (setup_incoming_promotions): Likewise.
2906         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
2907         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
2908         * passes.c (pass_inline_parameters): Update comments; remove
2909         O0_alwaysinline pass.
2910         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
2911         (execute_one_pass): Likewise.
2912         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
2913         (ix86_function_sseregparm): Likewise.
2914         * arm.c (arm_function_in_section_p): Likewise.
2915         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
2916         * varpool.c: Update comments.
2917         (decide_is_variable_needed): Remove unit-at-a-time checks.
2918         (varpool_finalize_decl): Likewise.
2919
2920 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2921
2922         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
2923         to 2 instead of -1.
2924         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
2925
2926 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
2927
2928         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
2929         imp symbol extension.
2930
2931         2008-07-23  Ian Lance Taylor  <iant@google.com>
2932
2933         * tree-vrp.c (infer_value_range): Ignore asm statements when
2934         looking for memory accesses for -fdelete-null-pointer-checks.
2935
2936 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2937
2938         * config/spu/spu-c.c (__vector_keyword): New variable.
2939         (vector_keyword): Likewise.
2940         (spu_categorize_keyword): New function.
2941         (spu_macro_to_expand): Likewise.
2942         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
2943         compiling an ISO C dialect.
2944
2945 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2946
2947         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
2948         conventional usage.
2949
2950 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2951
2952         * configure: Regenerate.
2953         * configure.ac: Require texinfo 4.7.
2954         * doc/install.texi: Document texinfo 4.7 requirement.
2955
2956 2008-07-23  Martin Jambor  <mjambor@suse.cz>
2957
2958         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
2959         rather than for DECL_SAVED_TREE.
2960         * ipa-prop.c: Include diagnostic.h.
2961         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
2962         thoroughly.
2963         (ipa_detect_param_modifications): Function rewritten from scratch.
2964         (ipa_compute_jump_functions): Changed accesses to modification flags.
2965         (ipa_free_node_params_substructures): Update flags destruction.
2966         (ipa_node_duplication_hook): Update flags duplication.
2967         (ipa_print_all_params_modified): Updated flag access.
2968         * ipa-prop.h (struct ipa_param_flags): New structure.
2969         (struct ipa_node_params): New field modification_analysis_done,
2970         modified_flags changed into param_flags.
2971         (ipa_is_ith_param_modified): Changed to use new flags.
2972         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
2973
2974         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
2975         ipa-cp.c and split into two functions.
2976         (ipa_print_node_jump_functions): New function.
2977         (compute_scalar_jump_functions): New function.
2978         (type_like_member_ptr_p): New function.
2979         (compute_pass_through_member_ptrs): New function.
2980         (fill_member_ptr_cst_jump_function): New function.
2981         (determine_cst_member_ptr): New function.
2982         (compute_cst_member_ptr_arguments): New function.
2983         (ipa_compute_jump_functions): Complete rewrite.
2984         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
2985         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
2986         (struct ipa_member_ptr_cst): New structure.
2987         (union jump_func_value): New field member_cst.
2988         * ipa-cp.c (ipcp_lat_is_insertable): New function.
2989         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
2990         jump function types.
2991         (ipcp_print_all_lattices): Slight fprintf rearrangement.
2992         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
2993         instead of ipcp_print_all_jump_functions.
2994         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
2995         only for replacable scalars.
2996
2997         * doc/invoke.texi (Optimize options): Add description of
2998         -findirect-inlining.
2999         * common.opt (flag_indirect_inlining): New flag.
3000         * opts.c (decode_options): Set flag_indirect_inlining when
3001         optimize >= 3.
3002
3003         * ipa-inline.c: Include ipa-prop.h.
3004         (inline_indirect_intraprocedural_analysis): New function.
3005         (inline_generate_summary): Allocate parameter and argument info
3006         structures, call inline_indirect_intraprocedural_analysis on each
3007         node when doing indirect inlining and deallocate indirect inlining
3008         data structures in the end.
3009         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
3010         (free_all_ipa_structures_after_iinln): New function.
3011         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
3012         done.
3013         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
3014
3015         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
3016         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3017         of computing the frequency separately.
3018         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3019         of computing the frequency separately.
3020         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
3021         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
3022         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
3023         (ipa_get_stmt_member_ptr_load_param): New function.
3024         (ipa_is_ssa_with_stmt_def): New function.
3025         (ipa_note_param_call): New function.
3026         (ipa_analyze_call_uses): New function.
3027         (ipa_analyze_stmt_uses): New function.
3028         (ipa_analyze_params_uses): New function.
3029         (ipa_free_node_params_substructures): Also free the param_calls linked
3030         list.
3031         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
3032         (ipa_print_node_param_flags): New function.
3033         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
3034         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
3035         * ipa-prop.h (struct ipa_param_flags): New field called.
3036         (struct ipa_param_call_note): New structure.
3037         (struct ipa_node_params): New fields param_calls and
3038         uses_analysis_done.
3039         (ipa_is_ith_param_called): New function.
3040         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3041         ipa_analyze_params_uses and dump parameter flags.
3042
3043         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
3044         ipa_propagate_indirect_call_infos if performing indirect inlining,
3045         pass a new parameter new_edges to it.
3046         (add_new_edges_to_heap): New fucntion.
3047         (cgraph_decide_inlining_of_small_functions): New vector
3048         new_indirect_edges for newly found indirect edges , call
3049         ipa_propagate_indirect_call_infos after inlining.
3050         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
3051         inlining if performing indirect inlining.  Call
3052         free_all_ipa_structures_after_iinln when doing so too.
3053         (inline_generate_summary): Do not call
3054         free_all_ipa_structures_after_iinln here.
3055         * ipa-prop.c (update_jump_functions_after_inlining): New function.
3056         (print_edge_addition_message): New function.
3057         (update_call_notes_after_inlining): New function.
3058         (propagate_info_to_inlined_callees): New function.
3059         (ipa_propagate_indirect_call_infos): New function.
3060         * ipa-prop.h: Include cgraph.h
3061         (struct ipa_param_call_note): Fields reordered, new field processed.
3062         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
3063         flag indirect_call.
3064         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
3065         rediscovered call statements.
3066         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
3067         (dump_cgraph_node): Dump also the indirect_call flag.
3068         (cgraph_clone_edge): Copy also the indirect_call flag.
3069         * tree-inline.c (copy_bb): Do not check for fndecls from call
3070         expressions, check for edge availability when moving clones.
3071         (get_indirect_callee_fndecl): New function.
3072         (expand_call_inline): If callee declaration is not apprent from
3073         the statement, try calling get_indirect_callee_fndecl.  Do not
3074         issue warnings or call sorry when not inlinings an indirect edge.
3075         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
3076
3077         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
3078         bit more frandly to matching.
3079         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
3080         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
3081         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
3082
3083 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3084
3085         PR 36907
3086         * opth-gen.awk: Suppress function specific features when building
3087         target libraries.
3088         * optc-gen.awk: Ditto.
3089
3090 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3091
3092         PR 35058
3093         * diagnostic.c (pedwarn): Add opt parameter.
3094         (pedwarn0): New.
3095         * c-tree.h (pedwarn_init): Add opt parameter.
3096         (pedwarn_c90): Likewise.
3097         (pedwarn_c99): Likewise.
3098         * c-errors.c (pedwarn_c99): Likewise.
3099         (pedwarn_c90): Likewise.
3100         * toplev.h (pedwarn): Update declaration.
3101         (pedwarn0): Declare.
3102         * c-lex.c: All calls to pedwarn changed.
3103         * builtins.c: All calls to pedwarn changed.
3104         * toplev.c: All calls to pedwarn changed.
3105         * c-decl.c: All calls to pedwarn changed.
3106         * c-typeck.c: All calls to pedwarn changed.
3107         * c-common.c: All calls to pedwarn changed.
3108         * c-parser.c: All calls to pedwarn changed.
3109
3110 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3111             Karthik Kumar  <karthikkumar@gmail.com>
3112
3113         * attribs.c (file scope): Include c-common.h.
3114         (decl_attributes): Add support for #pragma GCC optimize and
3115         #pragma GCC option.
3116
3117         * targhooks.c (default_can_inline_p): New function that is the
3118         default for the TARGET_CAN_INLINE_P target hook.
3119
3120         * targhooks.h (default_can_inline_p): Add declaration.
3121
3122         * tree.c (cl_optimization_node): New static tree for building
3123         OPTIMIZATION_NODE tree.
3124         (cl_target_option_node): New static tree for building
3125         TARGET_OPTION_NODE tree.
3126         (cl_option_hash_table): New hash table for hashing
3127         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3128         (cl_option_hash_hash): New function to provide the hash value for
3129         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3130         (cl_option_hash_eq): New function to provide an equality test for
3131         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3132         (tree_code_size): Add support for OPTIMIZATION_NODE and
3133         TARGET_OPTION_NODE trees.
3134         (tree_code_structure): Add support for OPTIMIZATION_NODE and
3135         TARGET_OPTION_NODE trees.
3136         (build_optimization_node): Build a tree that has all of the
3137         current optimization options.
3138         (build_target_option_node): Build a tree that has the target
3139         options that might be changed on a per function basis.
3140
3141         * tree.h (file scope): Include options.h.
3142         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
3143         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3144         (TREE_OPTIMIZATION): Ditto.
3145         (TREE_TARGET_SPECIFIC): Ditto.
3146         (struct tree_function_decl): Add fields for remembering the
3147         current optimization options and target specific options.
3148         (struct tree_optimization_option): New tree variant that remembers
3149         the optimization options.
3150         (struct tree_target_option): New tree variant that remembers the
3151         target specific flags that might change for compiling a particular
3152         function.
3153         (union tree_node): Include tree_optimization_option and
3154         tree_target_option fields.
3155         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
3156         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
3157         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
3158         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
3159         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
3160         optimization and target options.
3161         (optimization_default_node): New macro to refer to global_trees
3162         field.
3163         (optimization_current_node): Ditto.
3164         (optimization_cold_node): Ditto.
3165         (optimization_hot_node): Ditto.
3166         (target_option_default_node): Ditto.
3167         (target_option_current_node): Ditto.
3168         (current_option_pragma): Ditto.
3169         (current_optimize_pragma): Ditto.
3170
3171         * target.h (struct gcc_target): Add valid_option_attribute_p,
3172         target_option_save, target_option_restore, target_option_print,
3173         target_option_pragma_parse, and can_inline_p hooks.
3174
3175         * toplev.h (parse_optimize_options): Add declaration.
3176         (fast_math_flags_struct_set_p): Ditto.
3177
3178         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
3179         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
3180         optimize is used.
3181
3182         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
3183         tree_can_inline_p hook to see if one function can inline another.
3184         (cgraph_decide_inlining): Ditto.
3185         (cgraph_decide_inlining_incrementally): Ditto.
3186
3187         * opts.c (decode_options): Add support for running multiple times
3188         to allow functions with different target or optimization options
3189         than was specified on the command line.
3190         (fast_math_flags_struct_set_p): New function that is similar to
3191         fast_math_flags_set_p, except it uses the values in the
3192         cl_optimization structure instead of global variables.
3193
3194         * optc-gen.awk: Add support for TargetSave to allow a back end to
3195         declare new fields that need to be saved when using function
3196         specific options.  Include flags.h and target.h in the options.c
3197         source.  Add support for Save to indicate which options can be set
3198         for individual functions.  Generate cl_optimize_save,
3199         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
3200         cl_target_option_restore, cl_target_option_print functions to
3201         allow functions to use different optimization or target options.
3202
3203         * opt-functions.awk (var_type_struct): Return the type used for
3204         storing the field in a structure.
3205
3206         * opth-gen.awk: Add support for TargetSave to allow a back end to
3207         declare new fields that need to be saved when using function
3208         specific options.  Add support for Save to indicate which options
3209         can be set for individual functions.  Only generate one extern for
3210         Mask fields.  Generate cl_optimization and cl_target_option
3211         structures to remember optimization and target options.
3212
3213         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
3214         collecting new tree nodes.
3215         (TS_TARGET_OPTION): Ditto.
3216
3217         * c-decl.c (merge_decls): Merge function specific target and
3218         optimization options.
3219
3220         * function.c (invoke_set_current_function_hook): If the function
3221         uses different optimization options, change the global variables
3222         to reflect this.
3223
3224         * coretypes.h (struct cl_optimization): Add forward reference.
3225         (struct cl_target_option): Ditto.
3226
3227         * c-pragma.c (option_stack): New static vector to remember the
3228         current #pragma GCC option stack.
3229         (handle_pragma_option): New function to support #pragma GCC option
3230         to change target options.
3231         (optimize_stack): New static vector to remember the current
3232         #pragma GCC optimize stack.
3233         (handle_pragma_optimize): New function to support #pragma GCC
3234         optimize to change optimization options.
3235         (init_pragma): Add support for #pragma GCC optimize and #pragma
3236         GCC option.
3237
3238         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
3239         optimization options.
3240         (TARGET_OPTION_NODE): New tree code for remembering certain target
3241         options.
3242
3243         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
3244         TARGET_OPTION_NODE trees.
3245
3246         * common.opt (-O): Add Optimization flag.
3247         (-Os): Ditto.
3248         (-fmath-errno): Ditto.
3249         (-falign-functions): Add UInteger flag to make sure flag gets full
3250         int in cl_optimization structure.
3251         (-falign-jumps): Ditto.
3252         (-falign-labels): Ditto.
3253         (-falign-loops): Ditto.
3254         (-fsched-stalled-insns): Ditto.
3255         (-fsched-stalled-insns-dep): Ditto.
3256
3257         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
3258         definition.
3259         (TARGET_OPTION_SAVE): Ditto.
3260         (TARGET_OPTION_RESTORE): Ditto.
3261         (TARGET_OPTION_PRINT): Ditto.
3262         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3263         (TARGET_CAN_INLINE_P): Ditto.
3264         (TARGET_INITIALIZER): Add new hooks.
3265
3266         * tree-inline.c (tree_can_inline_p): New function to determine
3267         whether one function can inline another.  Check if the functions
3268         use compatible optimization options, and also call the backend
3269         can_inline_p hook.
3270
3271         * tree-inline.h (tree_can_inline_p): Add declaration.
3272
3273         * c-common.c (c_common_attribute): Add support for option and
3274         optimize attributes.
3275         (handle_option_attribute): Add support for the option attribute to
3276         allow the user to specify different target options for compiling a
3277         specific function.
3278         (handle_optimize_attribute): Add support for the optimize
3279         attribute to allow the user to specify different optimization
3280         options for compiling a specific function.
3281         (handle_hot_attribute): Turn on -O3 optimization for this one
3282         function if it isn't the default optimization level.
3283         (handle_cold_attribute): Turn on -Os optimization for this one
3284         function if it insn't the default optimization.
3285         (const_char_p): New const char * typedef.
3286         (optimize_args): New static vector to remember the optimization
3287         arguments.
3288         (parse_optimize_options): New function to set up the optimization
3289         arguments from either the optimize attribute or #pragma GCC optimize.
3290
3291         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3292         (builtin_define_std): Ditto.
3293
3294         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3295         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3296         (x86_64-*-*): Ditto.
3297
3298         * Makefile.in (TREE_H): Add options.h.
3299         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3300
3301         * doc/extend.texi (option attribute): Document new attribute.
3302         (optimize attribute): Ditto.
3303         (hot attribute): Document hot attribute sets -O3.
3304         (cold attribute): Document cold attribute sets -Os.
3305         (#pragma GCC option): Document new pragma.
3306         (#pragma GCC optimize): Ditto.
3307
3308         * doc/options.texi (TargetSave): Document TargetSave syntax.
3309         (UInteger): Document UInteger must be used for certain flags.
3310         (Save): Document Save option to create target specific options
3311         that can be saved/restored on a function specific context.
3312
3313         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3314         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3315
3316         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3317         (TARGET_OPTION_SAVE): Ditto.
3318         (TARGET_OPTION_RESTORE): Ditto.
3319         (TARGET_OPTION_PRINT): Ditto.
3320         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3321         (TARGET_CAN_INLINE_P): Ditto.
3322
3323         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3324         -mfpmath=sse,387.
3325         (-mfpmath=both): Ditto.
3326
3327 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3328             Karthik Kumar  <karthikkumar@gmail.com>
3329
3330         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3331         (TARGET_POPCNT): Ditto.
3332         (TARGET_SAHF): Ditto.
3333         (TARGET_AES): Ditto.
3334         (TARGET_PCLMUL): Ditto.
3335         (TARGET_CMPXCHG16B): Ditto.
3336         (TARGET_RECIP): Move switch into target_flags.
3337         (TARGET_FUSED_MADD): Ditto.
3338         (ix86_arch_features): Make an unsigned char type.
3339         (ix86_tune_features): Ditto.
3340         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3341         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3342         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3343
3344         * config/i386/i386.opt (arch): New TargetSave field to define
3345         fields that need to be saved for function specific option support.
3346         (tune): Ditto.
3347         (fpmath): Ditto.
3348         (branch_cost): Ditto.
3349         (ix86_isa_flags_explicit): Ditto.
3350         (tune_defaulted): Ditto.
3351         (arch_specified): Ditto.
3352         (-m128-long-double): Add Save flag to save option for target
3353         specific option support.
3354         (-m80387): Ditto.
3355         (-maccumulate-outgoing-args): Ditto.
3356         (-malign-double): Ditto.
3357         (-malign-stringops): Ditto.
3358         (-mfancy-math-387): Ditto.
3359         (-mhard-float): Ditto.
3360         (-mieee-fp): Ditto.
3361         (-minline-all-stringops): Ditto.
3362         (-minline-stringops-dynamically): Ditto.
3363         (-mms-bitfields): Ditto.
3364         (-mno-align-stringops): Ditto.
3365         (-mno-fancy-math-387): Ditto.
3366         (-mno-push-args): Ditto.
3367         (-mno-red-zone): Ditto.
3368         (-mpush-args): Ditto.
3369         (-mred-zone): Ditto.
3370         (-mrtd): Ditto.
3371         (-msseregparm): Ditto.
3372         (-mstack-arg-probe): Ditto.
3373         (-m32): Ditto.
3374         (-m64): Ditto.
3375         (-mmmx): Ditto.
3376         (-m3dnow): Ditto.
3377         (-m3dnowa): Ditto.
3378         (-msse): Ditto.
3379         (-msse2): Ditto.
3380         (-msse3): Ditto.
3381         (-msse4.1): Ditto.
3382         (-msse4.2): Ditto.
3383         (-msse4): Ditto.
3384         (-mno-sse4): Ditto.
3385         (-msse4a): Ditto.
3386         (-msse5): Ditto.
3387         (-mrecip): Move flag into target_flags.
3388         (-mcld): Ditto.
3389         (-mno-fused-madd): Ditto.
3390         (-mfused-madd): Ditto.
3391         (-mabm): Move flag into ix86_isa_flags.
3392         (-mcx16): Ditto.
3393         (-mpopcnt): Ditto.
3394         (-msahf): Ditto.
3395         (-maes): Ditto.
3396         (-mpclmul): Ditto.
3397
3398         * config/i386/i386-c.c: New file for #pragma support.
3399         (ix86_target_macros_internal): New function to #define or #undef
3400         target macros based when the user uses the #pragma GCC option to
3401         change target options.
3402         (ix86_pragma_option_parse): New function to add #pragma GCC option
3403         support.
3404         (ix86_target_macros): Move defining the target macros here from
3405         TARGET_CPU_CPP_BUILTINS in i386.h.
3406         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
3407         defined, initialize any subtarget #pragmas.
3408
3409         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3410         REGISTER_TARGET_PRAGMAS.
3411
3412         * config/i386/t-i386: New file for x86 dependencies.
3413         (i386.o): Make dependencies mirror the include files used.
3414         (i386-c.o): New file, add dependencies.
3415
3416         * config/i386/i386-protos.h (override_options): Add bool argument.
3417         (ix86_valid_option_attribute_tree): Add declaration.
3418         (ix86_target_macros): Ditto.
3419         (ix86_register_macros): Ditto.
3420
3421         * config/i386/i386.c (ix86_tune_features): Move initialization of
3422         the target masks to initial_ix86_tune_features to allow functions
3423         to have different target options.  Make type unsigned char,
3424         instead of unsigned int.
3425         (initial_ix86_tune_features): New static vector to hold processor
3426         masks for the tune variables.
3427         (ix86_arch_features): Move initialization of the target masks to
3428         initial_ix86_arch_features to allow functions to have different
3429         target options.  Make type unsigned char, instead of unsigned int.
3430         (initial_ix86_arch_features): New static vector to hold processor
3431         masks for the arch variables.
3432         (enum ix86_function_specific_strings): New enum to describe the
3433         string options used for attribute((option(...))).
3434         (ix86_target_string): New function to return a string that
3435         describes the target options.
3436         (ix86_debug_options): New function to print the current options in
3437         the debugger.
3438         (ix86_function_specific_save): New function hook to save the
3439         function specific global variables in the cl_target_option structure.
3440         (ix86_function_specific_restore): New function hook to restore the
3441         function specific variables from the cl_target_option structure to
3442         the global variables.
3443         (ix86_function_specific_print): New function hook to print the
3444         target specific options in the cl_target_option structure.
3445         (ix86_valid_option_attribute_p): New function hook to validate
3446         attribute((option(...))) arguments.
3447         (ix86_valid_option_attribute_tree): New function that is common
3448         code between attribute((option(...))) and #pragma GCC option
3449         support that parses the options and returns a tree holding the options.
3450         (ix86_valid_option_attribute_inner_p): New helper function for
3451         ix86_valid_option_attribute_tree.
3452         (ix86_can_inline_p): New function hook to decide if one function
3453         can inline another on a target specific basis.
3454         (ix86_set_current_function); New function hook to switch target
3455         options if the user used attribute((option(...))) or #pragma GCC
3456         option.
3457         (ix86_tune_defaulted): Move to static file scope from
3458         override_options.
3459         (ix86_arch_specified): Ditto.
3460         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3461         ix86_isa_flags.
3462         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3463         (OPTION_MASK_ISA_ABM_SET): Ditto.
3464         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3465         (OPTION_MASK_ISA_CX16_SET): Ditto.
3466         (OPTION_MASK_ISA_SAHF_SET): Ditto.
3467         (OPTION_MASK_ISA_AES_UNSET): Ditto.
3468         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
3469         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
3470         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
3471         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
3472         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
3473         (struct ptt): Move to static file scope from override_options.
3474         (processor_target_table): Ditto.
3475         (cpu_names): Ditto.
3476         (ix86_handle_option): Add support for options that are now isa options.
3477         (override_options): Add support for declaring functions that
3478         support different target options than were specified on the
3479         command line.  Move struct ptt, processor_target_table, cpu_names,
3480         ix86_tune_defaulted, ix86_arch_specified to static file scope.
3481         Add bool argument.  Fix up error messages so the appropriate error
3482         is given for either command line or attribute.
3483         (ix86_previous_fndecl): New static to remember previous function
3484         declaration to see if we need to change target options.
3485         (ix86_builtins_isa): New array to record the ISA of each builtin
3486         function.
3487         (def_builtin): Always create the builtin function, even if the
3488         current ISA doesn't support it.
3489         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
3490         tests for those builtins.
3491         (ix86_init_builtins): Remove TARGET_MMX test for calling
3492         ix86_init_mmx_sse_builtins.
3493         (ix86_expand_builtin): If the current ISA doesn't support a given
3494         builtin, signal an error.
3495         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
3496         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3497         (TARGET_OPTION_SAVE): Ditto.
3498         (TARGET_OPTION_RESTORE): Ditto.
3499         (TARGET_OPTION_PRINT): Ditto.
3500         (TARGET_CAN_INLINE_P): Ditto.
3501
3502 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
3503
3504         * c-typeck.c (build_external_ref): Don't call assemble_external.
3505         * final.c (output_operand): Call assemble_external.
3506
3507 2008-07-21  DJ Delorie  <dj@redhat.com>
3508
3509         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
3510         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3511
3512 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3513
3514         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
3515         original insn and splitter contents into ...
3516         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
3517         flag_unsafe_math_optimizations.  Add dummy scratch register.
3518         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
3519         !flag_unsafe_math_optimizations.  Returns number with next
3520         highest magnitude if this is still less or equal to the true
3521         quotient in magnitude.
3522
3523 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
3524
3525         * Makefile.in: Replace toplev.h with TOPLEV_H.
3526         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
3527         * c-lex.c (fe_file_change): Don't set in_system_header.
3528         * c-parser.c (c_token): Remove in_system_header.
3529         (c_lex_one_token): Don't set in_system_header.
3530         (c_parser_set_source_position_from_token): Don't set in_system_header.
3531         * diagnostic.c (diagnostic_report_diagnostic): Use location from
3532         diagnostic_info.
3533         (warning_at): New.
3534         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
3535         * flags.h (in_system_header): Remove.
3536         * function.c (saved_in_system_header): Remove.
3537         (push_cfun): Don't set in_system_header.
3538         (pop_cfun): Don't set in_system_header.
3539         (push_struct_function): Don't set in_system_header.
3540         * input.h (expanded_location): Add sysp.
3541         (in_system_header_at): New.
3542         (in_system_header): New.
3543         * toplev.c (in_system_header): Remove.
3544         * toplev.h: Include input.h
3545         (warning_at): New.
3546         * tree-cfg.c (execute_warn_function_return): Call warning_at.
3547         * tree-ssa.c (warn_uninit): Call warning_at.
3548         (warn_uninitialized_var): Update calls to warn_uninit.
3549         (warn_uninitialized_phi): Update calls to warn_uninit.
3550         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
3551         (expand_location): Initialize xloc.sysp.
3552         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
3553         (tree_decl_with_vis): Remove in_system_header_flag.
3554
3555 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3556
3557         PR target/36822
3558         * recog.c (asm_operand_ok): Change the order of the extra
3559         memory constraint checks.
3560
3561 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3562
3563         PR tree-opt/36879
3564         * tree-switch-conversion.c (build_one_array): Call
3565         varpool_mark_needed_node and varpool_finalize_decl
3566         instead of assemble_variable.
3567
3568 2008-07-19  Jan Hubicka  <jh@suse.cz>
3569
3570         * cgraph.c (cgraph_add_new_function): Do early local passes.
3571         * tree-nrv.c (gate_pass_return_slot): New gate.
3572         (pass_nrv): Add the gate.
3573         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
3574         functions.
3575         (coalesce_ssa_name): Coalesce SSA names.
3576         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
3577         not optimizing so unused user vars remains visible.
3578         * common.opt (flag_tree_ter): Always enable by default.
3579         * tree-ssa-ter.c: Include flags.h
3580         (is_replaceable_p): Check that locations match; when aliasing is missing
3581         be conservative about loads.
3582         * tree-optimize.c (gate_init_datastructures): Remove.
3583         (pass_init_datastructures): New.
3584         * passes.c: Reorder passes so we always go into SSA.
3585
3586 2008-07-19  Jan Hubicka  <jh@suse.cz>
3587
3588         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
3589         * doc/invoke.texi (--combine): Likewise.
3590         (-finline-functions-called-once): Update levels when enabled.
3591         (-funit-at-a-time): Document new behaviour.
3592         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
3593         -fno-section-anchors when disabled explicitly.
3594         (inline params): They are not ignored now.
3595         (precompiled headers): Remove unit-at-a-time as being incompatible.
3596         * opts.c (decode_options): Handle unit-at-a-time as alias;
3597         imply -fno-section-anchors when toplevel reorder is disabled
3598         explicitly.
3599         * common.opt (ftoplevel-reorder): Set default value to 2.
3600         (funit-at-a-time): Set default value to 1.
3601         * config/rs6000/rs6000.c (optimization_options): Set section anchors
3602         to 2.
3603
3604 2008-07-19  Jan Hubicka  <jh@suse.cz>
3605
3606         * builtins.c (expand_builtin_int_roundingfn,
3607         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
3608         it is not useful.
3609
3610 2008-07-19  Richard Guenther  <rguenther@suse.de>
3611
3612         PR bootstrap/36864
3613         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
3614         * tree-ssa-sccvn.c (get_constant_value_id): New function.
3615         * tree-ssa-pre.c (get_expr_value_id): For newly created
3616         constant value-ids make sure to add the expression to its
3617         expression-set.
3618
3619 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
3620
3621         PR middle-end/36877
3622         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
3623         return value of the builtin is ignored.
3624
3625 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3626
3627         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
3628         bits, a C conformant malloc implementation has to provide.
3629         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
3630
3631 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
3632
3633         PR target/36780
3634         PR target/36827
3635         * reload.c (find_reloads_subreg_address): Only reload address if
3636         reloaded == 0, not for reloaded != 1.
3637
3638         Revert:
3639         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3640         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3641         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3642         m32c_legitimize_reload_address.
3643
3644         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3645         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3646         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3647
3648 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3649
3650         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
3651         argument, saying whether nested array are to be collapsed
3652         into a single array type DIE with multiple subscripts.
3653         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
3654         issues, centralize the nested array types collapsing control and
3655         disable the transformation for Ada.
3656
3657 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
3658
3659         PR target/36786
3660         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
3661         x86_64_shift_adj.
3662         (x86_64_shift_adj_2): New expander.
3663         (x86_64_shift_adj_3): Ditto.
3664         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
3665         to split TImode operands.
3666         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
3667         (ix86_split_lshr): Ditto.
3668
3669 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
3670
3671         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
3672         and __CHAR32_TYPE__.
3673         * c-typeck.c (digest_init): Support char16_t and char32_t.
3674         (set_nonincremental_init_from_string): Idem.
3675
3676 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3677
3678         PR middle-end/36859
3679         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
3680         PREFERRED_STACK_BOUNDARY.
3681         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3682
3683 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3684
3685         PR middle-end/36858
3686         * function.c (locate_and_pad_parm): Cap boundary earlier.
3687
3688 2008-07-17  Julian Brown  <julian@codesourcery.com>
3689
3690         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
3691         no-op for targets which don't use DLLs.
3692
3693 2008-07-17  Martin Jambor  <mjambor@suse.cz>
3694
3695         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
3696         that nodes are relevant by examining the node->analyzed flag.
3697         (ipcp_init_stage): Check which nodes are relevant, assert that the
3698         relevant ones are also required.
3699         (ipcp_propagate_stage): Check on the side arrays are properly
3700         allocated.
3701         (ipcp_print_all_jump_functions): Make sure not to touch any node
3702         that is not analyzed or an edge that does not have a corresponding
3703         entry in the on-the-side vectors.
3704         (ipcp_function_scale_print): Likewise.
3705         (ipcp_update_callgraph): Check that the node is relevant.
3706         (ipcp_insert_stage): Check that the node is relevant.  Check there is
3707         an info for every node and edge.
3708         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
3709         (ipa_print_all_tree_maps): Likewise and a new variable info.
3710         (ipa_print_all_params_modified): Likewise.
3711         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
3712
3713 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
3714
3715         PR target/25343
3716         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
3717
3718 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
3719
3720         PR rtl-optimization/36753
3721         * fwprop.c (use_killed_between): Don't shortcut
3722         single-definition global registers.
3723
3724 2008-07-16  Jan Hubicka  <jh@suse.cz>
3725
3726         * cgraph.h (varpool_empty_needed_queue): Declare.
3727         * cgraphunit.c (output_in_order): Mark all variables as needed;
3728         empty the queue.
3729         * varpool.c (varpool_assemble_node): Update debug queue.
3730         (varpool_assemble_pending_decls): Don't do it here.
3731         (varpool_empty_needed_queue):  New function.
3732
3733 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3734
3735         * recog.c (peephole2_optimize): Fix formatting.
3736
3737 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3738
3739         * c-pch.c (get_ident): Avoid C++ keywords.
3740         * combine-stack-adj.c (single_set_for_csa): Likewise.
3741         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
3742         output_asm_insn): Likewise.
3743         * reload.c (push_secondary_reload, find_reusable_reload,
3744         push_reload, combine_reloads, find_reloads,
3745         debug_reload_to_stream): Likewise.
3746         * reload.h (struct reload): Likewise.
3747         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
3748         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
3749         emit_output_reload_insns): Likewise.
3750         * targhooks.c (default_secondary_reload): Likewise.
3751         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
3752
3753 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3754
3755         * recog.c (validate_change_1, validate_change,
3756         validate_unshare_change, validate_replace_rtx_1, struct
3757         funny_match, constrain_operands, peephole2_optimize): Avoid C++
3758         keywords.
3759         * reload.c (push_secondary_reload, secondary_reload_class,
3760         scratch_reload_class, find_valid_class, find_reusable_reload,
3761         push_reload, find_dummy_reload, find_reloads_address_1,
3762         find_reloads_address_part, find_equiv_reg): Likewise.
3763         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
3764         choose_reload_regs): Likewise.
3765         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
3766         Likewise.
3767         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3768         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3769         * sched-rgn.c (concat_INSN_LIST): Likewise.
3770         * stor-layout.c (mode_for_size, mode_for_size_tree,
3771         smallest_mode_for_size): Likewise.
3772
3773 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3774
3775         * cfg.c (dump_reg_info): Avoid C++ keywords.
3776         * dwarf2asm.c (dw2_force_const_mem,
3777         dw2_asm_output_encoded_addr_rtx): Likewise.
3778         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
3779         * expmed.c (expand_shift): Likewise.
3780         * global.c (find_reg): Likewise.
3781         * graph.c (draw_edge): Likewise.
3782         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
3783         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
3784         widen_clz, widen_bswap, expand_parity, expand_unop,
3785         emit_cmp_and_jump_insn_1): Likewise.
3786         * postreload.c (reload_cse_simplify_operands): Likewise.
3787         * ra.h (add_neighbor): Likewise.
3788         * reg-stack.c (remove_regno_note, change_stack): Likewise.
3789         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
3790         record_reg_classes, copy_cost, record_address_regs,
3791         invalid_mode_change_p): Likewise.
3792         * regrename.c (regrename_optimize, scan_rtx_reg,
3793         dump_def_use_chain, find_oldest_value_reg,
3794         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
3795
3796 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3797
3798         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
3799         MASK_POWERPC64 for power4 in previous commit.
3800
3801 2008-07-16  Olivier Hainque  <hainque@adacore.com>
3802
3803         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
3804         instead of bare conversion to cast const-ness away.
3805
3806 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
3807
3808         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
3809         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
3810         * config/xtensa/xtensa.c (xtensa_function_value): New function.
3811         (TARGET_FUNCTION_VALUE): Define.
3812
3813 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3814
3815         * config/rs6000/rs6000.c (processor_target_table): Add
3816         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
3817
3818 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3819
3820         PR target/36827
3821         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3822         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3823         m32c_legitimize_reload_address.
3824
3825 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
3826
3827         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
3828         DECL_IN_SYSTEM_HEADER in sync.
3829
3830 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
3831
3832         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
3833         * tree-ssa-pre.c (pre_expr_eq): Ditto
3834         (get_constant_for_value_id): Take a type as an argument.
3835         (fully_constant_expression): Pass in type.
3836         (find_or_generate_expression): Short circuit constant case.
3837         (create_expression_by_pieces): Remove special casing of
3838         pointer_plus.
3839         (do_regular_insertion): Short circuit constant case.
3840         (do_partial_partial_insertion): Ditto.
3841
3842 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3843
3844         PR target/36782
3845         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
3846
3847 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
3848
3849         * config/xtensa/libgcc-xtensa.ver: New file.
3850         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
3851
3852 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3853
3854         * df-problems.c (df_set_note): Avoid C++ keywords.
3855         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
3856         * dse.c (record_store, remove_useless_values): Likewise.
3857         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
3858         gen_reg_rtx_offset, operand_subword, change_address_1,
3859         change_address, adjust_address_1, offset_address,
3860         widen_memory_access, emit_copy_of_insn_after): Likewise.
3861         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
3862         * fwprop.c (should_replace_address, propagate_rtx_1,
3863         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
3864         Likewise.
3865         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
3866         gcse_emit_move_after, update_ld_motion_stores): Likewise.
3867         * lcm.c (compute_insert_delete, pre_edge_lcm,
3868         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
3869         * lower-subreg.c (resolve_reg_notes): Likewise.
3870         * mode-switching.c (optimize_mode_switching): Likewise.
3871
3872 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3873
3874         * bt-load.c (add_btr_def, migrate_btr_def,
3875         branch_target_load_optimize): Avoid C++ keywords.
3876         * caller-save.c (insert_restore, insert_save, insert_one_insn):
3877         Likewise.
3878         * combine.c (subst, simplify_set, make_extraction,
3879         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
3880         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
3881         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
3882
3883 2008-07-15  Richard Guenther  <rguenther@suse.de>
3884
3885         PR middle-end/36369
3886         * c-common.c (strict_aliasing_warning): Do not warn for
3887         TYPE_REF_CAN_ALIAS_ALL pointers.
3888         (c_common_get_alias_set): may_alias types are not special.
3889         * tree.c (build_pointer_type_for_mode): Look up the may_alias
3890         attribute and set can_ref_all accordingly.
3891         (build_reference_type_for_mode): Likewise.
3892         * doc/extend.texi (may_alias): Clarify.
3893
3894 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3895
3896         PR target/36780
3897         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3898         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3899
3900 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3901
3902         PR target/31568
3903         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
3904         gcc_assert, instead call output_operand_lossage.
3905
3906 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
3907
3908         * builtins.c (std_canonical_va_list): Treat structure based
3909         va_list types.
3910
3911 2008-07-15  Ben Elliston  <bje@au.ibm.com>
3912
3913         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
3914
3915 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
3916
3917         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
3918         is set.
3919
3920 2008-07-14  Jan Hubicka  <jh@suse.cz>
3921
3922         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
3923         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
3924         fix predicates and constraints.
3925         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
3926         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
3927
3928 2008-07-14  Doug Kwan  <dougkwan@google.com>
3929
3930         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
3931         additional option file arm/eabi.opt.
3932         * config/arm/eabi.h (File): New configuration file for EABI targets.
3933         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
3934         SUBSUBTARGET_EXTRA_SPECS.
3935         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
3936         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
3937         from STARTFILE_SPEC so that it can be referenced in an override.
3938         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
3939         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
3940         can be referenced in an override.
3941         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
3942         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
3943         so that it can be referenced in an override.
3944         (LINK_SPEC): Use BPABI_LINK_SPEC.
3945         * config/arm/eabi.opt (File): New.
3946
3947 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3948
3949         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
3950         (FIXED_VALUE_H): New variable.
3951         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
3952         input.h, fixed-value.h.
3953         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
3954         (BASIC_BLOCK_H): Use $(BITMAP_H).
3955         (FUNCTION_H): Add varray.h.
3956         (IPA_REFERENCE_H): Use $(BITMAP_H).
3957         (CGRAPH_H): Add $(BASIC_BLOCK_H).
3958         (DF_H): Use $(BITMAP_H).
3959         (GGC_H): Add statistics.h.
3960         (INSN_ADDR_H): New.
3961         (INSN_ATTR_H): Use it.
3962         (SYSTEM_H): Add safe-ctype.h, filenames.h.
3963         (INPUT_H): New.
3964         (SYMTAB_H): Add $(OBSTACK_H).
3965         (CPP_INTERNAL_H): New.
3966         (TREE_DUMP_H): Add tree-pass.h.
3967         (TREE_FLOW_H): Use $(BITMAP_H)
3968         (PRETTY_PRINT_H): Use $(INPUT_H).
3969         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
3970         (GSTAB_H): New.
3971         (BITMAP_H): New.
3972         (many object files): Fix lots of header dependencies throughout.
3973
3974 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3975
3976         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
3977         New macros.
3978         (s-gtyp-input): Use them to write tmp-gi.list.
3979         (echo_to_gi.list): Remove.
3980
3981 2008-07-14  Richard Guenther  <rguenther@suse.de>
3982
3983         * tree-ssa-sccvn.c (pre_info): Remove.
3984         (switch_to_PRE_table): Likewise.
3985         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
3986         (set_hashtable_value_ids): Do not create value-ids for the
3987         optimistic tables.
3988         (run_scc_vn): Remove double test.  Remove bogus special-case
3989         in value-number printing.
3990         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
3991         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
3992         SSA_NAME_VALUE.
3993         * tree-flow-inline.h (get_value_handle): Remove.
3994         * tree-flow.h (get_value_handle): Remove.
3995
3996 2008-07-14  Martin Jambor  <mjambor@suse.cz>
3997
3998         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
3999         in which we generate arithmetics is not a subrange.
4000
4001 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4002
4003         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
4004
4005 2008-07-14  Richard Guenther  <rguenther@suse.de>
4006
4007         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
4008
4009 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4010
4011         PR target/36745
4012         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
4013         reload for symbol refs moved to r0 with -fPIC.
4014         (legitimize_pic_address): Use the target register as temporary
4015         reg if possible.
4016         (emit_symbolic_move): Adjust comment.
4017         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
4018         New expanders.
4019
4020 2008-07-14  Ben Elliston  <bje@au.ibm.com>
4021
4022         * c-common.h (C_CPP_HASHNODE): New macro.
4023         * coretypes.h (struct cpp_token): Forward declare.
4024         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4025         the context-sensitive keyword method.
4026         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
4027         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
4028         expand_bool_pixel): New.
4029         (altivec_categorize_keyword): New function.
4030         (init_vector_keywords): New function.
4031         (rs6000_macro_to_expand): Likewise.
4032         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
4033         compiling an ISO C dialect.
4034
4035 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
4036
4037         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
4038         (create_expression_by_pieces): Fix typo.
4039         (do_regular_insertion): Use debug counter here too.
4040
4041 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
4042
4043         PR target/35492.
4044         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
4045         CONST_OK_FOR_LETTER_P.  All port-local users changed.
4046         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
4047         implement Kp matching power-of-two.
4048         (CONSTRAINT_LEN): Define to match.
4049         * config/cris/cris.md: Replace all use of constraint K with Kc.
4050         ("*btst*): Use Kp for operand 0 of last alternative.
4051
4052 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4053
4054         PR testsuite/36440
4055         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
4056         and quad formats.
4057
4058 2008-07-13  Jan Hubicka  <jh@suse.cz>
4059
4060         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
4061         to be mangled too.
4062
4063 2008-07-13  Richard Guenther  <rguenther@suse.de>
4064
4065         PR middle-end/36811
4066         * langhooks.c (lhd_print_error_function): Deal with recursive
4067         BLOCK trees.
4068
4069 2008-07-12  Jan Hubicka  <jh@suse.cz>
4070
4071         * cgraph.c (assembler_name_hash): New static var.
4072         (hash_node_by_assembler_name, eq_assembler_name): New.
4073         (cgraph_node_for_asm): Use hashtable.
4074         (cgraph_remove_node): Maintain hashtable.
4075         (change_decl_assembler_name): Sanity check that names are not changing
4076         after aliasing was processed.
4077         * cgraph.h (varpoon_node): Add next GGC marker.
4078         * tree.c (decl_assembler_name_equal): Constify.
4079         (decl_assembler_name_hash): New.
4080         * tree.h (decl_assembler_name_equal): Constify.
4081         (decl_assembler_name_hash): Update.
4082
4083 2008-07-12  David Daney  <ddaney@avtrex.com>
4084
4085         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4086         sb1 and r5000 cpus.
4087
4088 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4089
4090         * doc/md.texi: Document the MIPS "v" constraint.
4091         * config/mips/mips.h (reg_class): Revert last change.
4092         (REG_CLASS_NAMES): Likewise.
4093         (REG_CLASS_CONTENTS): Likewise.
4094         * config/mips/mips.c (mips_regno_to_class): Likewise.
4095         * config/mips/constraints.md (v): Likewise, but add documentation.
4096         Add a comment to say that this constraint should not be used in
4097         gcc code.
4098
4099 2008-07-11  DJ Delorie  <dj@redhat.com>
4100
4101         * config/h8300/h8300.md (length): Fix branch offset limit.
4102
4103 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
4104
4105         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
4106         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
4107         (avr_hard_regno_scratch_ok): New function.
4108         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4109         * config/avr/avr.md (all peepholes that request a scratch register):
4110         Remove avr_peep2_scratch_safe use.
4111
4112 2008-07-11  Tom Tromey  <tromey@redhat.com>
4113             Ian Lance Taylor  <iant@google.com>
4114
4115         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
4116         (struct c_common_resword): Define.
4117         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
4118         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
4119         (c_common_reswords, num_c_common_reswords): Declare.
4120         * c-common.c (c_common_reswords): New global const array.
4121         (num_c_common_reswords): New const int.
4122         * c-parser.c (struct resword, reswords): Don't define.
4123         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
4124         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
4125         than reswords.  If warning about C++ keywords, give them a special
4126         RID code.
4127         (c_lex_one_token): Warn about C++ keywords.  Call
4128         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
4129         (c_parser_external_declaration): Look for RID_xxx rather than
4130         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
4131         (c_parser_statement_after_labels): Likewise.
4132         (c_parser_objc_class_instance_variables): Likewise.
4133         (c_parser_objc_class_declaration): Likewise.
4134         (c_parser_objc_try_catch_statement): Likewise.
4135         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
4136         (declspecs_add_type): Likewise.
4137
4138 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
4139
4140         * ggc-page.c (alloc_page):
4141         Substituting xmalloc, xcalloc with
4142         XNEWVEC and XCNEWVAR macros which add the
4143         needed casts.
4144
4145 2008-07-11  Richard Guenther  <rguenther@suse.de>
4146
4147         PR tree-optimization/36765
4148         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
4149         aliases from HEAP vars to SMTs.
4150
4151 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4152
4153         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
4154         * configure.ac (loose_warn): Move -Wc++-compat from here...
4155         (strict_warn): ...to here.
4156         * configure: Regenerate.
4157
4158 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
4159
4160         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
4161         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
4162         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
4163         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
4164         excluding more specific h8300-*-* and sh-*-* targets.
4165
4166 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
4167
4168         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
4169         (eliminate): Ditto.
4170         (execute_pre): Call loop_optimizer_finalize in early exit.
4171
4172 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
4173
4174         PR middle-end/36790
4175         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
4176         uids in the bitmap, not just VAR_DECL uids.
4177
4178         PR rtl-optimization/36419
4179         * combine-stack-adj.c (adjust_frame_related_expr): New function.
4180         (combine_stack_adjustments_for_block): Call it if needed.  Delete
4181         correct insn.
4182         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
4183         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
4184         prologue sp adjustment.
4185
4186 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
4187
4188         PR other/28322
4189         * opts.c (print_ignored_options): Report postponed diagnostics for
4190         unknown -Wno-* options as warnings, not errors.
4191         (postpone_unknown_option_error): Renamed to...
4192         (postpone_unknown_option_warning): ... this.
4193
4194 2008-07-09  Doug Kwan  <dougkwan@google.com>
4195
4196         Revert:
4197         2008-07-08  Doug Kwan  <dougkwan@google.com>
4198
4199         * config/arm/arm.opt (mandroid): New option.
4200         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4201         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4202         (CC1_SPEC): Same.
4203         (CC1PLUS_SPEC): Same.
4204         (LIB_SPEC): Same.
4205         (STARTFILE_SPEC): Same.
4206         (ENDFILE_SPEC): Same.
4207         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4208         used.
4209
4210 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
4211
4212         PR target/35802
4213         * config/mips/mips.h (reg_class): Remove V1_REG.
4214         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4215         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
4216         instead of V1_REGS.
4217         (mips_get_tp): New function.
4218         (mips_legitimize_tls_address): Use it.
4219         * config/mips/constraints.md (v): Delete.
4220         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
4221         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
4222         After reload, split into a move and ...
4223         (*tls_get_tp_<mode>_split): ...this new instruction.
4224
4225 2008-07-09  David Daney  <ddaney@avtrex.com>
4226
4227         * config/mips/driver-native.c: Include coretypes.h and tm.h.
4228
4229 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
4232         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
4233         Add c argument.
4234         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
4235         htab_delete should be called.  Don't free c.
4236         (lookup_tmp_var): Create temp_htab lazily.
4237         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4238         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
4239         callers.
4240         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4241         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4242         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
4243         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
4244         * tree-sra.c (generate_element_init): Likewise.
4245         * tree-mudflap.c (execute_mudflap_function_ops,
4246         execute_mudflap_function_decls): Likewise.
4247         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
4248         * tree-gimple.h (struct gimplify_ctx): New type.
4249         (push_gimplify_context): Adjust prototype.
4250
4251 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
4252
4253         * tree-ssa-pre.c (phi_translate_1): Update placement of
4254         add_to_value calls.
4255
4256 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
4257
4258         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
4259         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
4260         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
4261         * targhooks.c (default_hard_regno_scratch_ok): New function.
4262         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
4263         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
4264         * recog.c:  Include "target.h".
4265         (peep2_find_free_register): Add check for global regs. Add target
4266         specific check.
4267         * Makefile.in (recog.o): Depend on target.h.
4268
4269 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4270
4271         * config/sh/sh.c (sh_canonical_va_list_type): New.
4272         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
4273
4274 2008-07-09  Raksit Ashok <raksit@google.com>
4275
4276         * doc/invoke.texi (Option Summary): Mention new option
4277         -Wdisallowed-function-list=...
4278         (Warning Options): Document -Wdisallowed-function-list=...
4279         * common.opt (Wdisallowed-function-list=): New flag.
4280         * flags.h (warn_disallowed_functions): External definition of new
4281         boolean warning flag.
4282         (warn_if_disallowed_function_p): Declare new function.
4283         * opts.c (warning_disallowed_functions): New static variable.
4284         (warn_disallowed_functions): New boolean warning flag.
4285         (warn_if_disallowed_function_p): New function.
4286         (add_comma_separated_to_vector): Rename
4287         add_instrument_functions_exclude_list to this.
4288         (common_handle_option): Handle new option. Rename calls to
4289         add_instrument_functions_exclude_list into calls to
4290         add_comma_separated_to_vector.
4291         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4292         based on flag warn_disallowed_functions.
4293
4294 2008-07-09  Christian Bruel  <christian.bruel@st.com>
4295
4296         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4297          instead of get_attr_length.
4298
4299 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4300
4301         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4302         keywords.
4303         * genemit.c (gen_insn): Likewise.
4304         * gengtype.c (note_def_vec): Likewise.
4305         * gengtype.h (note_def_vec): Likewise.
4306         * genoutput.c (struct data, output_insn_data, process_template,
4307         gen_expand, gen_split, note_constraint): Likewise.
4308         * genrecog.c (new_decision, add_to_sequence, factor_tests,
4309         make_insn_sequence): Likewise.
4310         * gensupport.c (record_insn_name): Likewise.
4311
4312 2008-07-08  Doug Kwan  <dougkwan@google.com>
4313
4314         * config/arm/arm.opt (mandroid): New option.
4315         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4316         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4317         (CC1_SPEC): Same.
4318         (CC1PLUS_SPEC): Same.
4319         (LIB_SPEC): Same.
4320         (STARTFILE_SPEC): Same.
4321         (ENDFILE_SPEC): Same.
4322         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4323         used.
4324
4325 2008-07-08  Raksit Ashok  <raksit@google.com>
4326
4327         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4328         (set_storage_via_setmem): Fix expected_align parameter.
4329         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4330         missing from the list.
4331         * doc/md.texi (movmem): Explicitly state that expected alignment is
4332         to be expressed in bytes.
4333         (setmem): Explicitly state that expected alignment is to be expressed
4334         in bytes.
4335
4336 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
4337
4338         * reload.c (find_reloads_subreg_address): Do not require validity
4339         of address in original mode before reloading address.
4340
4341 2008-07-07  Tianwei Sheng  <tianweis@google.com>
4342
4343         * df-core.c (df_remove_problem): Adjust the access to avoid out of
4344         bounds array access.
4345
4346 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
4347
4348         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4349
4350 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
4351
4352         Fix PR tree-optimization/23455
4353         Fix PR tree-optimization/35286
4354         Fix PR tree-optimization/35287
4355         * Makefile.in (OBJS-common): Remove tree-vn.o.
4356         (tree-vn.o): Remove.
4357         * dbgcnt.def: Add treepre_insert debug counter.
4358         * gcc/tree-flow.h (add_to_value): Updated for other changes.
4359         (debug_value_expressions): Ditto.
4360         (print_value_expressions): Ditto.
4361         * tree-pretty-print.c (dump_generic_node): Updated for
4362         VALUE_HANDLE removal.
4363         * tree-ssa-dom.c (record_equality): Ditto.
4364         (cprop_operand): Ditto.
4365         (lookup_avail_expr): Ditto.
4366         * tree-ssa-threadedge.c
4367         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4368         (simplify_control_stmt_condition): Ditto.
4369         * tree.c (tree_code_size): Ditto.
4370         (tree_node_structure): Ditto.
4371         (iterative_hash_expr): Ditto.
4372         * tree.def: Ditto.
4373         * tree.h (VALUE_HANDLE_ID): Ditto.
4374         (VALUE_HANDLE_EXPR_SET): Ditto.
4375         (struct tree_value_handle): Ditto.
4376         (union tree_node): Ditto.
4377         * treestruct.def: Ditto.
4378         * tree-vn.c: Removed.
4379         * tree-ssa-pre.c: Rewritten entirely.
4380         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4381         (constant_value_ids): Ditto.
4382         (vn_nary_op_t): Moved to header.
4383         (vn_phi_t): Ditto.
4384         (vn_reference_op_t): Ditto
4385         (vn_reference_t): Ditto.
4386         (next_value_id): New variable.
4387         (VN_INFO): Add an assert.
4388         (vn_constant_eq): New function.
4389         (vn_constant_hash): Ditto.
4390         (get_or_alloc_constant_value_id): Ditto.
4391         (value_id_constant_p): Ditto.
4392         (vn_reference_compute_hash): De-staticify.
4393         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4394         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
4395         (valueize_refs): Update opcode if it changes from ssa name to constant.
4396         (vn_reference_lookup_1): Add new argument.
4397         (vn_reference_lookup):  Ditto.
4398         (vn_reference_lookup_pieces): New function.
4399         (vn_reference_insert): Add return type. Modify to deal with value ids.
4400         (vn_reference_insert_pieces):  New function.
4401         (vn_nary_op_compute_hash): De-staticify.
4402         (vn_nary_op_eq): Ditto.
4403         (vn_nary_op_lookup_pieces): New function.
4404         (vn_nary_op_lookup): Add new argument.
4405         (vn_nary_op_insert_pieces): New function.
4406         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4407         (vn_phi_insert): Ditto.
4408         (visit_unary_op): Update for callee changes.
4409         (visit_binary_op): Ditto.
4410         (visit_reference_op_load): Ditto.
4411         (visit_reference_op_store): Ditto.
4412         (init_scc_vn): Init next_value_id, constant_to_value_id and
4413         constant_value_ids.
4414         (free_scc_vn): Free them.
4415         (set_hashtable_value_ids): New function.
4416         (run_scc_vn): Use it.
4417         (get_max_value_id): New function.
4418         (get_next_value_id): Ditto.
4419         (expressions_equal_p): Moved from tree-vn.c
4420         (sort_vuses): Ditto.
4421         (sort_vuses_heap): Ditto.
4422         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4423         above).
4424         * tree.c (iterative_hash_hashval_t): Made non-static
4425         * tree.h (iterative_hash_hashval_t): Declare it.
4426
4427 2008-07-08  Martin Jambor  <mjambor@suse.cz>
4428
4429         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4430         instead of ipa_create_node_params.
4431         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4432         ipa_check_create_edge_args, free them with
4433         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4434
4435         * ipa-prop.c: Include flags.h and tree-inline.h.
4436         (ipa_node_params_vector): New variable.
4437         (ipa_edge_args_vector): New variable.
4438         (edge_removal_hook_holder): New variable.
4439         (node_removal_hook_holder): New variable.
4440         (edge_duplication_hook_holder): New variable.
4441         (node_duplication_hook_holder): New variable.
4442         (ipa_detect_param_modifications): Check for presence of modified flags.
4443         (ipa_compute_jump_functions): Check for presence of jump functions.
4444         (ipa_free_edge_args_substructures): New function.
4445         (ipa_create_node_params): Removed.
4446         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4447         (ipa_free_node_params_substructures): New function.
4448         (ipa_free_all_node_params): Changed to deallocate the on-the-side
4449         vector.
4450         (ipa_edge_removal_hook): New function.
4451         (ipa_node_removal_hook): New function.
4452         (duplicate_array): New function.
4453         (ipa_edge_duplication_hook): New function.
4454         (ipa_node_duplication_hook): New function.
4455         (ipa_register_cgraph_hooks): New function.
4456         (ipa_unregister_cgraph_hooks): New function.
4457         (free_all_ipa_structures_after_ipa_cp): New function.
4458
4459         * ipa-prop.h: Include vec.h.
4460         (ipa_node_params_t): New typedef with vector types for it.
4461         (ipa_edge_args_t):  New typedef with vector types for it.
4462         (IPA_NODE_REF): Changed to access an on-the-side vector.
4463         (IPA_EDGE_REF): Changed to access an on-the-side vector.
4464         (ipa_check_create_node_params): New function.
4465         (ipa_check_create_edge_args): New function.
4466
4467         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
4468         all users.
4469
4470 2008-07-07  Tom Tromey  <tromey@redhat.com>
4471
4472         * configure, config.in: Rebuilt.
4473         * configure.ac: Don't check for scandir or alphasort.
4474
4475 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4476
4477         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
4478         types immediately after creating them.
4479
4480 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4481
4482         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
4483
4484 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
4485
4486         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
4487         dump_constraint_graph.
4488         (dump_constraint_edge): New function.
4489         (dump_constraint_graph): New function.
4490         (debug_constraint_graph): New function.
4491         (dump_constraint): Removed useless comparison.
4492         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
4493         (dump_constraint_graph): Declare.
4494         (debug_constraint_graph): Declare.
4495         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
4496
4497 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
4498
4499         * config/i386/i386.c (is_va_list_char_pointer): New.
4500         (ix86_va_start): Replace compare with ms_va_list_type_node
4501         by is_va_list_char_pointer.
4502         (ix86_gimplify_va_arg): Likewise.
4503
4504 2008-07-07  Martin Jambor  <mjambor@suse.cz>
4505
4506         * cgraph.c (cgraph_edge_max_uid): New variable.
4507         (struct cgraph_edge_hook_list): New type.
4508         (struct cgraph_node_hook_list): New type.
4509         (struct cgraph_2edge_hook_list): New type.
4510         (struct cgraph_2node_hook_list): New type.
4511         (first_cgraph_edge_removal_hook): New variable.
4512         (first_cgraph_node_removal_hook): New variable.
4513         (first_cgraph_edge_duplicated_hook): New variable.
4514         (first_cgraph_node_duplicated_hook): New variable.
4515         (cgraph_add_edge_removal_hook): New function.
4516         (cgraph_remove_edge_removal_hook): New function.
4517         (cgraph_call_edge_removal_hooks):  New function.
4518         (cgraph_add_node_removal_hook):  New function.
4519         (cgraph_remove_node_removal_hook):  New function.
4520         (cgraph_call_node_removal_hooks):  New function.
4521         (cgraph_add_edge_duplication_hook):  New function.
4522         (cgraph_remove_edge_duplication_hook):  New function.
4523         (cgraph_call_edge_duplication_hooks):  New function.
4524         (cgraph_add_node_duplication_hook):  New function.
4525         (cgraph_remove_node_duplication_hook):  New function.
4526         (cgraph_call_node_duplication_hooks):  New function.
4527         (cgraph_create_edge): Assign to edge uid.
4528         (cgraph_remove_edge): Call edge removal hooks.
4529         (cgraph_node_remove_callees): Call edge removal hooks.
4530         (cgraph_node_remove_callers): Call edge removal hooks.
4531         (cgraph_remove_node): Call node removal hooks.
4532         (cgraph_clone_edge): Call edge duplication hooks.
4533         (cgraph_clone_node): Call node duplication hooks.
4534
4535         * cgraph.h (cgraph_edge): New field uid.
4536         (cgraph_edge_hook): New type.
4537         (cgraph_node_hook): New type.
4538         (cgraph_2edge_hook): New type.
4539         (cgraph_2node_hook): New type.
4540
4541 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
4542
4543         * config.in: Regenerate.
4544
4545 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
4546
4547         * gcc.c (print_sysroot): New.
4548         (option_map, display_help, process_command): Handle the
4549         -print-sysroot option.
4550         (main): Print the sysroot if requested.
4551         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
4552
4553 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4554
4555         PR target/34780
4556         * unwind-pe.h (size_of_encoded_value): add attribute unused.
4557
4558 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
4559
4560         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
4561         (assign_parm_setup_block_p): Also check mode of entry_parm.
4562
4563 2008-07-07  Richard Guenther  <rguenther@suse.de>
4564
4565         * tree-ssa-structalias.h (set_used_smts): Remove.
4566         * tree-ssa-structalias.c (used_smts): Likewise.
4567         (set_used_smts): Likewise.
4568         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
4569         call to set_used_smts.
4570
4571 2008-07-07  Richard Guenther  <rguenther@suse.de>
4572
4573         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
4574         (new_var_info): Set it to false.
4575         (solution_set_add): Correctly handle pointers outside a var and
4576         inside a field.
4577         (type_safe): Treat variables with is_full_var properly.
4578         (do_sd_constraint): Likewise.
4579         (do_ds_constraint): Likewise.
4580         (process_constraint): Remove zeroing offset for !use_field_sensitive.
4581         (get_constraint_for_ptr_offset): New function.
4582         (get_constraint_for_component_ref): For addresses at least include
4583         the last field of the variable.  Handle is_full_vars properly.
4584         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
4585         (handle_ptr_arith): Remove.
4586         (find_func_aliases): Simplify assignment handling.
4587         (create_function_info_for): For parameter and result varinfos set
4588         is_full_var flag.
4589         (create_variable_info_for): Set is_full_var flag whenever we
4590         just created a single varinfo for a decl.
4591         (init_alias_vars): Initialize use_field_sensitive from
4592         max-fields-for-field-sensitive parameter.
4593
4594 2008-07-07  Richard Guenther  <rguenther@suse.de>
4595
4596         PR tree-optimization/36713
4597         * tree-flow-inline.h (is_call_used): New function.
4598         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
4599         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4600         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
4601
4602 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4603
4604         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
4605
4606 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
4607
4608         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
4609
4610 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4611             Nathan Sidwell  <nathan@codesourcery.com>
4612
4613         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
4614         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
4615         tmake_file.
4616         * config/m68k/t-linux: New.
4617         * doc/install.texi: Document m68k-*-linux is now multilibbed by
4618         default.
4619
4620 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4621
4622         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
4623         * config/m68k/m68k-devices.def: Remove multilibs that only differ
4624         by MAC/EMAC.
4625
4626 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4627
4628         * gcc.c (execute): Fix -Wc++-compat warning.
4629
4630 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4631
4632         PR target/36720
4633         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
4634         constant for little endian.
4635
4636 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
4637
4638         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
4639         mips_base_mips16 instead of TARGET_MIPS16.
4640         (mips_base_mips16): Declare.
4641         * config/mips/mips.c (mips_base_mips16): Make global.
4642         (was_mips16_p): Remove GTY marker.
4643         (was_mips16_pch_p): New variable.
4644         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
4645         (mips_override_options): Force to non-MIPS16 mode initially.
4646         Do not complain about MIPS16 PIC incompatibilities here.
4647         Only allow -mgpopt if -mexplicit-relocs is in force for
4648         non-MIPS16 code.
4649
4650 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
4651
4652         * configure.ac: Check for caddr_t, define to char * if not defined.
4653         * configure: Regenerate.
4654         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
4655         (mmap_gt_pch_use_address): Likewise.
4656         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
4657
4658 2008-07-06  Richard Guenther  <rguenther@suse.de>
4659
4660         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
4661         (new_var_info): Deal with it.
4662         (solution_set_add): Likewise.
4663         (bitpos_of_field): Make signed, fix.
4664         (struct fieldoff): Remove type and decl fields.  Make size field
4665         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
4666         flags.
4667         (fieldoff_compare): Deal with it.
4668         (push_fields_onto_fieldstack): Remove has_union argument, glob
4669         adjacent non-pointer fields together.
4670         (create_function_info_for): Do not set has_union.
4671         (create_variable_info_for): Simplify.
4672
4673 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
4674
4675         * config.gcc (extra_headers): Add cross-stdarg.h for target
4676         x86_64-*-* and i?86-*-*.
4677         * config/i386/cross-stdarg.h: New.
4678         * builtins.c (std_fn_abi_va_list): New.
4679         (std_canonical_va_list_type): New.
4680         (stabilize_va_list): Replace va_list_type_node use by
4681         mtarget.canonical_va_list_type.
4682         (gimplify_va_arg_expr): Likewise.
4683         (expand_builtin_va_copy): Replace va_list_type_node use by
4684         mtarget.fn_abi_va_list.
4685         * tree-sra.c (is_va_list_type): New helper.
4686         (decl_can_be_decomposed_p): Replace
4687         va_list_type_node use by is_va_list_type.
4688         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
4689         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4690         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
4691         * config/i386/i386-protos.h (ix86_get_valist_type): New.
4692         (ix86_enum_va_list): New.
4693         * config/i386/i386.c (sysv_va_list_type_node): New.
4694         (ms_va_list_type_node): New.
4695         (ix86_function_type_abi): Remove sorry.
4696         (ix86_build_builtin_va_list_abi): New.
4697         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
4698         for 64-bit targets.
4699         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
4700         (ix86_init_builtins_va_builtins_abi): New.
4701         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
4702         for 64-bit targets.
4703         (ix86_handle_abi_attribute): New.
4704         (attribute_spec): Add sysv_abi and ms_abi.
4705         (ix86_fn_abi_va_list): New.
4706         (ix86_canonical_va_list_type): New.
4707         (ix86_enum_va_list): New.
4708         (TARGET_FN_ABI_VA_LIST): New.
4709         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4710         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
4711         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
4712         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4713         (TARGET_ENUM_VA_LIST): New.
4714         * expr.h (std_fn_abi_va_list): New.
4715         (std_canonical_va_list_type): New.
4716         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
4717         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4718         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
4719         TARGET_CANONICAL_VA_LIST_TYPE.
4720         * target.h (struct gcc_target): Add fn_abi_va_list hook
4721         and canonical_va_list_type hook.
4722
4723 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4724
4725         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
4726         integral and pointer types.
4727
4728 2008-07-04  Roger Sayle  <roger@eyesopen.com>
4729
4730         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
4731         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
4732
4733 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4734
4735         PR target/36684
4736         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
4737
4738 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
4739
4740         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
4741         build_gimple_modify_stmt.
4742         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
4743         gimple operand.  Use fold_build* instead of build*.
4744
4745 2008-07-04  Richard Guenther  <rguenther@suse.de>
4746
4747         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
4748         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
4749         properly to compute the reachability set if we do field-sensitive PTA.
4750         * invoke.texi (max-fields-for-field-sensitive): Document default.
4751         * opts.c (decode_options): Set max-fields-for-field-sensitive to
4752         100 for optimize >= 2.
4753
4754 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4755
4756         * ggc-zone.c (lookup_page_table_if_allocated,
4757         set_page_table_entry, zone_find_object_size, alloc_small_page,
4758         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
4759         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
4760         -Wc++-compat and/or -Wcast-qual warnings.
4761
4762 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
4763
4764         PR target/36634
4765         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
4766         pic_offset_table_rtx to be marked as used here.
4767         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
4768         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
4769         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
4770         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
4771         !TARGET_SECURE_PLT.
4772
4773 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4774
4775         * alloc-pool.c (hash_descriptor, eq_descriptor,
4776         alloc_pool_descriptor): Fix -Wc++-compat warnings.
4777         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
4778         Likewise.
4779         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
4780         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
4781         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
4782         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
4783         Likewise.
4784
4785 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4786
4787         * tree-flow.h (loop_only_exit_p): Declare.
4788         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
4789         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
4790         the number of iterations if it is constant.  Otherwise, if this is the
4791         only possible exit of the loop, use the conservative estimate on the
4792         number of iterations of the entire loop if available.
4793
4794 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
4795
4796         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
4797         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
4798         Add synchronization functions.
4799         * config/sync.c: New file.
4800         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
4801         (LIBGCC_SYNC_CFLAGS): Likewise.
4802
4803 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
4804
4805         PR target/36710
4806         * config/i386/i386.md (mode): Add TF to "mode" attribute.
4807         (*pushtf_sse): New insn pattern.
4808         (pushtf splitters): New splitters.
4809
4810 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
4811
4812         PR middle-end/35736
4813         * predict.c (build_predict_expr): Use void_type_node for the tree
4814         type, instead of NULL_TREE.
4815
4816 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4817
4818         * config/i386/i386.c (contains_aligned_value_p): Return true
4819         for TCmode.
4820         (ix86_data_alignment): Align TCmode to 128bits.
4821         (ix86_local_alignment): Likewise.
4822
4823 2008-07-03  Andrew Haley  <aph@redhat.com>
4824
4825         PR bootstrap/33304
4826         * vec.h (VEC_TA): New.
4827         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
4828         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
4829         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
4830         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
4831         (C_COMMON_FIXED_TYPES): Remove first arg.
4832         (C_COMMON_FIXED_MODE_TYPES): Likewise.
4833         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
4834         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
4835         not to use empty macro arguments.
4836
4837 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
4838
4839         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
4840         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
4841         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
4842         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
4843         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
4844         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
4845         config/ia64/crtn.asm, config/m68hc11/larith.asm,
4846         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
4847         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
4848         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
4849         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
4850         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
4851         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
4852         config/rs6000/e500crtres64gpr.asm,
4853         config/rs6000/e500crtres64gprctr.asm,
4854         config/rs6000/e500crtrest32gpr.asm,
4855         config/rs6000/e500crtrest64gpr.asm,
4856         config/rs6000/e500crtresx32gpr.asm,
4857         config/rs6000/e500crtresx64gpr.asm,
4858         config/rs6000/e500crtsav32gpr.asm,
4859         config/rs6000/e500crtsav64gpr.asm,
4860         config/rs6000/e500crtsav64gprctr.asm,
4861         config/rs6000/e500crtsavg32gpr.asm,
4862         config/rs6000/e500crtsavg64gpr.asm,
4863         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
4864         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
4865         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
4866         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
4867         config/sparc/sol2-cn.asm: Remove .file directives.
4868
4869 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
4870
4871         * resource.c (mark_referenced_resources): Look inside
4872         UNSPEC_VOLATILEs and ASM_INPUTs.
4873
4874 2008-07-02  Ian Lance Taylor  <iant@google.com>
4875
4876         * rtlanal.c (add_reg_note): New function.
4877         * rtl.h (add_reg_note): Declare.
4878         * auto-inc-dec.c (attempt_change): Use add_reg_note.
4879         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
4880         * builtins.c (expand_builtin_longjmp): Likewise.
4881         (expand_builtin_nonlocal_goto): Likewise.
4882         * calls.c (emit_call_1, expand_call): Likewise.
4883         * cfgexpand.c (add_reg_br_prob_note): Likewise.
4884         * cfglayout.c (fixup_reorder_chain): Likewise.
4885         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4886         (commit_one_edge_insertion): Likewise.
4887         * combine.c (move_deaths, distribute_notes): Likewise.
4888         * df-problems.c (df_set_note): Likewise.
4889         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
4890         (set_unique_reg_note): Likewise.
4891         (emit_copy_of_insn_after): Likewise.
4892         * expr.c (expand_expr_real): Likewise.
4893         * gcse.c (add_label_notes): Likewise.
4894         * haifa-sched.c (create_check_block_twin): Likewise.
4895         * jump.c (mark_jump_label_1): Likewise.
4896         * loop-doloop.c (add_test, doloop_modify): Likewise.
4897         * loop-unswitch.c (compare_and_jump_seq): Likewise.
4898         * lower-subreg.c (move_eh_region_note): Likewise.
4899         * optabs.c (emit_libcall_block): Likewise.
4900         * predict.c (predict_insn): Likewise.
4901         (combine_predictions_for_insn): Likewise.
4902         * recog.c (peephole2_optimize): Likewise.
4903         * regmove.c (try_auto_increment): Likewise.
4904         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
4905         * reload.c (find_reloads): Likewise.
4906         * reload1.c (fixup_eh_region_note): Likewise.
4907         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
4908         * reorg.c (delete_prior_computation): Likewise.
4909         (delete_computation, dbr_schedule): Likewise.
4910         * config/pa/pa.c (legitimize_pic_address): Likewise.
4911         * config/sh/sh.c (sh_reorg): Likewise.
4912
4913 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         PR target/36669
4916         * config/libgcc-glibc.ver: Add %exclude.
4917         * config/m32r/libgcc-glibc.ver: Likwise.
4918         * config/s390/libgcc-glibc.ver: Likwise.
4919         * config/sh/libgcc-glibc.ver: Likwise.
4920         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
4921
4922         * config/i386/libgcc-glibc.ver: New.
4923
4924         * config/i386/libgcc-x86_64-glibc.ver: Removed.
4925
4926 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4927
4928         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
4929         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
4930         i[34567]86-*-linux*, x86_64-*-linux*.  Add
4931         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
4932         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
4933         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
4934         i[34567]86-*-linux*, x86_64-*-linux*.
4935
4936         * libgcc-std.ver: Add empty GCC_4.4.0.
4937
4938         * mkmap-symver.awk: Support multiple versions per symbol.
4939
4940         * config/i386/i386.c (ix86_init_builtins): Always define
4941         __builtin_fabsq and __builtin_copysignq with fallbacks.
4942         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
4943         and __builtin_copysignq if SSE2 isn't available.
4944
4945         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
4946         (LIBGCC2_TF_CEXT): Likwise.
4947         (TF_SIZE): Likwise.
4948
4949         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
4950
4951         * config/i386/sfp-machine.h: Moved to libgcc.
4952
4953         * config/i386/sfp-machine.h: New.
4954         * config/i386/t-linux: Likwise.
4955
4956         * config/i386/t-darwin: Remove softfp_wrap_start and
4957         softfp_wrap_end.
4958         * config/i386/t-darwin64: Likewise.
4959
4960         * config/i386/t-fprules-softfp64: Renamed to ...
4961         * config/i386/t-fprules-softfp: This.
4962
4963         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
4964         and softfp_wrap_end.
4965
4966 2008-07-02  Jason Merrill  <jason@redhat.com>
4967
4968         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
4969
4970         * tree.c (ctor_to_list): New fn.
4971         * tree.h: Declare it.
4972         (CONSTRUCTOR_ELT): New macro.
4973         (CONSTRUCTOR_NELTS): New macro.
4974
4975 2008-07-02  Richard Guenther  <rguenther@suse.de>
4976
4977         * tree-ssa-structalias.c (struct variable_info): Reorder
4978         to fill padding on 64bit hosts.  Make collapsed_to an int.
4979         (get_varinfo_fc): Deal with that.
4980         (new_var_info): Likewise.
4981         (collapse_rest_of_var): Likewise.
4982
4983 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
4984
4985         * doc/install.texi (--enable-java-home): Document.
4986         (--enable-aot-compile-rpm): Likewise.
4987         (--with-arch-directory): Likewise.
4988         (--with-os-directory): Likewise.
4989         (--with-origin-name): Likewise.
4990         (--with-arch-suffix): Likewise.
4991         (--with-jvm-root-dir): Likewise.
4992         (--with-jvm-jar-dir): Likewise.
4993         (--with-python-dir): Likewise.
4994
4995 2008-07-02  Richard Guenther  <rguenther@suse.de>
4996
4997         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
4998         from decls explicitly.  Merge operand checking from tuples.
4999
5000 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5001
5002         * tree-switch-conversion.c: Included timevar.h which I forgot before.
5003
5004 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5005
5006         * tree-switch-conversion.c: Included timevar.h
5007         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
5008
5009         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
5010
5011 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5012
5013         * tree-switch-conversion.c: Corrected various comments and
5014         whitespace issues
5015         (build_constructors): Fixed minor formatting mistakes.
5016
5017         * invoke.texi (Optimize Options): Corrected the
5018         switch-conversion-max-branch-ratio parameter.
5019
5020 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
5021
5022         * final.c (asm_insn_count): Return zero for an empty asm body.
5023
5024 2008-07-02  Richard Guenther  <rguenther@suse.de>
5025
5026         * bitmap.h (bitmap_set_bit): Return bool.
5027         (bitmap_clear_bit): Likewise.
5028         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
5029         write to the bitmap if it would.
5030         (bitmap_clear_bit): Likewise.
5031         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
5032         bitmap_set_bit return value.
5033         (add_pred_graph_edge): Likewise.
5034         (add_graph_edge): Likewise.
5035         (do_sd_constraint): Likewise.
5036         (do_ds_constraint): Likewise.
5037
5038 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5039
5040         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
5041         Fix -Wc++-compat and/or -Wcast-qual warnings.
5042         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
5043         gen_regparm_prefix): Likewise.
5044         * vmsdbgout.c (write_modbeg, lookup_filename,
5045         vmsdbgout_source_line, vmsdbgout_init): Likewise.
5046
5047 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
5048
5049         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
5050         defaults.h definition apply.
5051
5052 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
5053
5054         * function.c (assign_parm_remove_parallels): New.
5055         (assign_parm_setup_block_p): Do not return true for non-BLKmode
5056         PARALLELs.
5057         (assign_parm_setup_block): Do not handle them.
5058         (assign_parm_setup_reg, assign_parm_setup_stack): Call
5059         assign_parm_remove_parallels.
5060
5061 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
5062
5063         * c-typeck.c (convert_for_assignment): Use
5064         vector_targets_convertible_p.
5065         * c-common.c (vector_targets_convertible_p): New.
5066         * c-common.h (vector_targets_convertible_p): New prototype.
5067         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
5068         opaque_p_V2SI_type_node.
5069
5070 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
5071
5072         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
5073         RFmode constants.
5074
5075 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
5076
5077         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
5078         TFmode constants via two element DImode vector for hosts with
5079         HOST_BITS_PER_WIDE_INT < 64.
5080         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
5081         also for HOST_BITS_PER_WIDE_INT < 64.
5082
5083 2008-07-01  Richard Guenther  <rguenther@suse.de>
5084
5085         PR tree-optimization/36666
5086         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
5087         (get_constraint_exp_from_ssa_var): Split into ...
5088         (get_constraint_exp_for_temp): ... this ...
5089         (get_constraint_for_ssa_var): ... and that.
5090         Return constraint expressions for all touched sub-fields
5091         if the results address is not taken.
5092         (process_constraint): Remove assertion that aggregate
5093         assignments do not happen at this place.
5094         (get_constraint_for_component_ref): Add address_p argument.
5095         Return constraint expressions for all touched sub-fields
5096         if the results address is not taken.
5097         (do_deref): Use get_constraint_exp_for_temp.
5098         (get_constraint_for_1): Rename from ...
5099         (get_constraint_for): ... this.  Add the old function as wrapper.
5100         (do_structure_copy): Use get_constraint_for_1.
5101
5102 2008-07-01  Martin Jambor  <mjambor@suse.cz>
5103
5104         * Makefile.in (tree-switch-conversion.o): Add.
5105         (OBJS-common): Add tree-swtch-conversion.o.
5106         * passes.c (init_optimization_passes): Add pass_convert_switch.
5107         * tree-pass.h: (pass_convert_switch): Add.
5108         * tree-switch-conversion.c: New file.
5109         * gcc.dg/tree-ssa/cswtch.c: New testcase.
5110         * common.opt (ftree-cswtch): New option.
5111         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5112         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5113         * opts.c (decode_options): Set flag_tree_switch_conversion when
5114         optimization level is >= 2.
5115         * doc/invoke.texi (Optimize Options): Added description of
5116         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
5117
5118 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5119
5120         * config/darwin-driver.c (darwin_default_min_version): Fix
5121         -Wc++-compat warnings.
5122
5123 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
5124
5125         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
5126         of operand 0.
5127
5128 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
5129
5130         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
5131
5132 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
5133
5134         PR rtl-optimization/34744
5135         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
5136         (df_scan_free_internal): Free data structures not
5137         allocated in storage pools.
5138         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
5139         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
5140         df_scan_free_mws_vec.
5141         * dse.c (dse_step6): Free offset_map_p and offset_map_n
5142         unconditionally.
5143
5144 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5145
5146         * config/i386/i386.c (contains_aligned_value_p): Return true
5147         for __float128.
5148         (ix86_function_arg_boundary): Return its natural boundary
5149         for __float128.
5150         (return_in_memory_32): Don't check TDmode.
5151         (ix86_split_to_parts): Support splitting into 4 parts and
5152         support TFmode for 32bit target.
5153         (ix86_split_long_move): Support splitting into 4 parts.
5154         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
5155         for SSE2.
5156         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
5157         (ix86_init_builtins): Here.
5158         (ix86_scalar_mode_supported_p): Always return true for TFmode.
5159         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
5160         'q' and 'w', respectively.
5161
5162         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
5163         TARGET_64BIT.
5164         (movtf_internal): Likewise.
5165         (<code>tf2): Likewise.
5166         (*absnegtf2_sse): Likewise.
5167         (copysign<mode>3): Likewise.
5168         (copysign<mode>3_const): Likewise.
5169         (copysign<mode>3_var): Likewise.
5170         (define_split UNSPEC_COPYSIGN): Likewise.
5171         * config/i386/sse.md (*nandtf3): Likewise.
5172         (<code>tf3): Likewise.
5173         (*<code>tf3): Likewise.
5174
5175 2008-06-30  Joey Ye  <joey.ye@intel.com>
5176             H.J. Lu  <hongjiu.lu@intel.com>
5177
5178         * global.c (compute_regsets): Set frame_pointer_needed here.
5179         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
5180
5181 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5182
5183         * doc/install.texi (specific): Expand Windows build notes.
5184
5185 2008-06-30  Ira Rosen  <irar@il.ibm.com>
5186
5187         PR tree-optimization/36648
5188         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
5189         number of prolog iterations by step. Fix the comment.
5190
5191 2008-06-30  Richard Guenther  <rguenther@suse.de>
5192
5193         PR middle-end/36671
5194         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
5195         handle calls from ECF_MALLOC functions.
5196         (handle_pure_call): ECF_MALLOC functions do not return
5197         call-used memory.
5198         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
5199
5200 2008-06-29  Andreas Schwab  <schwab@suse.de>
5201
5202         * config/m68k/m68k.c (print_operand): Always print a float
5203         constant in hex.
5204         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
5205         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
5206         Remove macros.
5207
5208         * config/rs6000/x-linux64: Remove never used file.
5209
5210 2008-06-29  Richard Guenther  <rguenther@suse.de>
5211
5212         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
5213         prototype.
5214         (struct alias_info): Move ...
5215         * tree-ssa-alias.c: ... here.
5216         (update_alias_info): Declare.
5217         (compute_may_aliases): Call it.
5218         (update_alias_info): New function.
5219         * tree-ssa-structalias.c (update_alias_info): Move ...
5220         * tree-ssa-alias.c (update_alias_info_1): ... here.
5221         * tree-ssa-structalias.c (process_constraint_1): Remove
5222         unused from_call argument.  Rename to ...
5223         (process_constraint): ... this.  Delete old wrapper.
5224         (make_constraint_to): Adjust callers.
5225         (handle_const_call): Likewise.
5226         (handle_pure_call): Likewise.
5227         (init_base_vars): Likewise.
5228         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
5229         (find_func_aliases): We don't need structure copies for
5230         complex types.
5231         (make_constraint_from_anything): Remove.
5232         (create_variable_info_for): For globals make constraints
5233         from escaped, not from anything.
5234         (compute_points_to_sets): Do not call update_alias_info.
5235         (ipa_pta_execute): Use make_constraint_from.
5236
5237 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5238
5239         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
5240         (bitmap.o-warn, dominance.o-warn): New.
5241         * configure.ac (cxx_compat_warn): Delete.
5242         (loose_warn): Add -Wcast-qual and -Wc++-compat.
5243         * system.h: Remove #pragma diagnostic for -Wcast-qual and
5244         -Wc++-compat.
5245         * configure: Regenerate.
5246
5247         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
5248         warnings.
5249
5250 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5251
5252         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
5253         * df-scan.c (df_notes_rescan): Likewise.
5254         * ggc-page.c (set_page_table_entry): Likewise.
5255         * intl.c (gcc_gettext_width): Likewise.
5256         * varasm.c (get_unnamed_section, get_noswitch_section,
5257         get_section): Likewise.
5258
5259 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
5260
5261         * regrename.c (build_def_use): Don't copy RTX.
5262
5263 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
5264
5265         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
5266         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
5267         punctuation.  Use @ref instead of @xref.
5268         (Function Names): Remove stray @display/@end display.
5269         (C++ Attributes): Use @ref instead of @xref.
5270         (Deprecated Features): Fix punctuation around @xref.
5271         (Backwards Compatibility): Likewise.
5272         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
5273
5274 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
5275
5276         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
5277         constants for E500 double.
5278
5279 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5280
5281         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
5282         element type of const_vector.
5283
5284 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
5285
5286         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
5287         Remove FLAGS_REG clobber from expander pattern.
5288         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
5289         (anddi3, andsi3, andhi3, andqi3): Ditto.
5290         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
5291         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
5292         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
5293         (ashlsi3, ashlhi3, ashlqi3): Ditto.
5294         (ashrsi3, ashrhi3, ashrqi3): Ditto.
5295         (lshrsi3, lshrhi3, lshrqi3): Ditto.
5296         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
5297         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
5298
5299 2008-06-28  Richard Guenther  <rguenther@suse.de>
5300
5301         * tree-ssa-structalias.c (callused_id, var_callused,
5302         callused_tree): Add.
5303         (handle_pure_call): New function.
5304         (find_func_aliases): Call it.
5305         (find_what_p_points_to): Handle the call-used set.
5306         (clobber_what_escaped): Likewise.
5307         (compute_call_used_vars): New function.
5308         (init_base_vars): Init the call-used variable.
5309         (do_sd_constraint): Do not propagate the solution from CALLUSED
5310         but use CALLUSED as a placeholder.
5311         (solve_graph): Likewise.
5312         * tree-flow-inline.h (gimple_call_used_vars): New function.
5313         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
5314         (compute_call_used_vars): Declare.
5315         * tree-ssa-alias.c (set_initial_properties): Call
5316         compute_call_used_vars.
5317         (reset_alias_info): Clear call-used variables.
5318         (add_call_clobber_ops): Assert we are not called for const/pure
5319         functions.  Remove handling of them.
5320         (add_call_read_ops): Handle pure functions by adding the
5321         call-used set of variables as VUSEs.
5322         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
5323         (delete_tree_ssa): Free it.
5324         * tree-dfa.c (remove_referenced_var): Clear the var from the
5325         call-used bitmap.
5326
5327 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
5328
5329         * tree.c (build_varargs_function_type_list): New.
5330         (build_function_type_list_1): New.
5331         (build_function_type_list): Use build_function_type_list_1.
5332         * tree.h (build_varargs_function_type_list): New.
5333
5334 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5335
5336         PR target/34856
5337         * config/spu/spu.c (spu_builtin_splats): Do not generate
5338         invalid CONST_VECTOR expressions.
5339         (spu_expand_vector_init): Likewise.
5340
5341 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
5342
5343         * optabs.c (libfunc_decls): New variable.
5344         (libfunc_decl_hash, libfunc_decl_eq): New functions.
5345         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
5346         for the same function twice.
5347
5348 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
5349
5350         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
5351         ix86_expand_binary_operator directly.
5352         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
5353         for operand 2.
5354         (*ashrti3_1): Ditto.
5355         (*lshrti3_1): Ditto.
5356         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
5357         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
5358         using only one splitter.  Conditionaly execute splitter before or
5359         after peephole2 pass.
5360         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
5361         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
5362         Use only one alternative in asm template.
5363         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
5364         in asm template.
5365         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
5366         "J" operand constraint for operand 2.
5367         (*ashldi3_cconly_rex64): Ditto.
5368         (*ashrdi3_cmp_rex64): Ditto.
5369         (*ashrdi3_cconly_rex64): Ditto.
5370         (*lshrdi3_cmp_rex64): Ditto.
5371         (*lshrdi3_cconly_rex64): Ditto.
5372         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
5373         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
5374         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
5375         gen_x86_shrd_1.
5376
5377 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
5378
5379         * gimplify.c (omp_is_private): Don't return true if decl is not
5380         already private on #pragma omp for or #pragma omp parallel for.
5381
5382         PR debug/36617
5383         * tree-cfg.c (struct move_stmt_d): Replace block field with
5384         orig_block and new_block fields.
5385         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
5386         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
5387         (move_block_to_fn): Replace vars_map and new_label_map arguments
5388         with struct move_stmt_d pointer.
5389         (replace_block_vars_by_duplicates): New function.
5390         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
5391         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
5392         all subblocks of ORIG_BLOCK to the new function.  Call
5393         replace_block_vars_by_duplicates.
5394         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
5395         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
5396         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
5397         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
5398         (expand_omp): Temporarily set input_location to the location of
5399         region's controlling stmt.
5400         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
5401         BIND_EXPR, push ctx->block_vars and gimplification vars into
5402         the BIND_EXPR and its block's BLOCK_VARS instead of directly
5403         into dest function.
5404         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
5405         there are any BLOCK_VARS.
5406         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
5407         OMP_PARALLEL or OMP_TASK stmt.
5408         (lower_omp): Save and restore input_location around the lower_omp_1
5409         call.
5410
5411 2008-06-27  Richard Guenther  <rguenther@suse.de>
5412
5413         PR tree-optimization/36400
5414         PR tree-optimization/36373
5415         PR tree-optimization/36344
5416         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
5417         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
5418         (update_alias_info): Remove call clobbering code.
5419         (make_constraint_to): New helper function.
5420         (make_escape_constraint): Likewise.
5421         (handle_rhs_call): Use it on all pointer containing arguments.
5422         Also mark the static chain escaped.
5423         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
5424         instead of ANYTHING.
5425         (make_constraint_from): New helper split out from ...
5426         (make_constraint_from_anything): ... here.
5427         (find_func_aliases): Add constraints for escape sites.
5428         (intra_create_variable_infos): Make constraints from NONLOCAL
5429         for parameters.
5430         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
5431         as ANYTHING.
5432         (clobber_what_p_points_to): Remove.
5433         (clobber_what_escaped): New function.
5434         (init_base_vars): Init NONLOCAL and ESCAPED.
5435         (do_sd_constraint): Do not propagate the solution from ESCAPED
5436         but use ESCAPED as a placeholder.
5437         (solve_graph): Likewise.
5438         * tree-flow.h (clobber_what_p_points_to): Remove.
5439         (clobber_what_escaped): Declare.
5440         * tree-ssa-alias.c (set_initial_properties): Call it.
5441         Remove code clobbering escaped pointers.
5442
5443 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5444
5445         * function.c (allocate_struct_function): Only allocate a unique
5446         funcdef_no if the decl is nonzero.
5447
5448 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5449
5450         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
5451         * config/mips/mips.c (mips_split_const_insns): New function.
5452         * config/mips/mips.md (move_type): New attribute.
5453         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
5454         (dword_mode): New attribute.
5455         (type): Avoid long line.  Map "move_type"s to "type"s,
5456         choosing "multi" for doubleword moves if appropriate.
5457         Swap MTC/MFC comments to match their declaration order.
5458         (extended_mips16): Default to "yes" if "move_type" is "sll0",
5459         "type" is "branch" or "jal" is "direct".
5460         (length): Handle "extended_mips16" first.  Make the default
5461         "0" for "ghost" instructions.  Set the length from "move_type".
5462         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
5463         of "type", with "sll0" for the register alternative.  Remove the
5464         "extended_mips16" attribute.
5465         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
5466         of "type", with "shift_shift" for the register alternative.
5467         Remove the "length" attribute.
5468         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
5469         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
5470         of "type", with "andi" for the register alternative.
5471         (*zero_extendqihi2): Likewise.
5472         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
5473         of "andi" instead of a "type" of "arith".
5474         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
5475         instead of "type".
5476         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
5477         (mov_<store>r, *mov<mode>_ra): Likewise.
5478         (extendsidi2): Use "move_type" instead of "type", with "move"
5479         for the register alternative.
5480         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
5481         of "type", with "signext" for the register alternative.
5482         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
5483         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
5484         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
5485         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
5486         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
5487         (unnamed branch insn): Likewise.
5488         (*movdi_gp32_fp64): Fold into...
5489         (*movdi_32bit): ...here.
5490         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
5491         (*movdf_hardfloat): ...this new pattern.
5492         (*movdf_softfloat): Remove redundant FPR alternatives.
5493         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
5494         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
5495         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
5496         the "move" attribute.
5497         (*movdi_32bit): Use "move_type" instead of "type" and remove the
5498         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
5499         and "store" for COP loads and stores.
5500         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
5501         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
5502         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
5503         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
5504         (*movtf_mips16, *movv2sf): Likewise.
5505         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
5506         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
5507         (mfhc1<mode>): Use "move_type" instead of "move".
5508         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
5509         (loadgp_blockage): Remove the "length" attribute.
5510         (blockage, set_got_version, update_got_version): Likewise.
5511         (call_internal): Remove the "extended_mips16" attribute.
5512         (call_value_internal, call_value_multiple_internal): Likewise.
5513         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
5514         instead of "move".
5515         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
5516         the "length" attribute.
5517
5518 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5519
5520         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
5521         -Wcast-qual warnings.
5522         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
5523         handle_pragma_pop_macro): Likewise.
5524         * collect2.c (resolve_lib_name): Likewise.
5525         * config/arc/arc.c (arc_init): Likewise.
5526         * config/arm/arm.c (neon_builtin_compare,
5527         locate_neon_builtin_icode): Likewise.
5528         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
5529         * config/bfin/bfin.c (bfin_init_machine_status,
5530         bfin_optimize_loop): Likewise.
5531         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5532         * config/cris/cris.c (cris_init_expanders): Likewise.
5533         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
5534         * config/darwin.c (machopic_indirection_eq,
5535         machopic_indirection_name, machopic_output_indirection): Likewise.
5536         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
5537         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
5538         frv_optimize_membar): Likewise.
5539         * config/i386/cygwin.h (mingw_scan,
5540         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
5541         * config/i386/cygwin1.c (mingw_scan): Likewise.
5542         * config/i386/i386.c (machopic_output_stub): Likewise.
5543         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
5544         i386_pe_unique_section): Likewise.
5545         * config/ia64/ia64.c (ia64_init_machine_status,
5546         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
5547         Likewise.
5548         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
5549         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
5550         * config/m68k/m68k.c (m68k_handle_option,
5551         m68k_sched_md_init_global): Likewise.
5552         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
5553         mcore_unique_section): Likewise.
5554         * config/mips/mips.c (mips_block_move_straight,
5555         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
5556         Likewise.
5557         * config/mmix/mmix.c (mmix_init_machine_status,
5558         mmix_encode_section_info): Likewise.
5559         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
5560         * config/rs6000/rs6000.c (rs6000_init_machine_status,
5561         print_operand_address, output_toc, redefine_groups,
5562         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
5563         * config/s390/s390.c (s390_init_machine_status): Likewise.
5564         * config/score/score.c (score_block_move_straight,
5565         score_block_move_loop_body): Likewise.
5566         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5567         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5568         * emit-rtl.c (find_auto_inc): Likewise.
5569         * gcc.c (translate_options, process_command): Likewise.
5570         * reorg.c (dbr_schedule): Likewise.
5571         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
5572         * xcoffout.c (xcoffout_declare_function): Likewise.
5573
5574 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
5575
5576         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
5577         ipa-pta working again.
5578
5579 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
5580
5581         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
5582         genautomata.
5583
5584 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
5585
5586         * config.gcc (powerpc*-*-*): Add new core e500mc.
5587         * config/rs6000/e500mc.md: New file.
5588         * config/rs6000/rs6000.c (processor_costs): Add new costs for
5589         e500mc.
5590         (rs6000_override_options): Add e500mc case to
5591         processor_target_table. Altivec and Spe options not allowed
5592         with e500mc. Add isel instruction to e500mc by
5593         default. Initialize rs6000_cost for e500mc.
5594         (rs6000_issue_rate): Set issue rate for e500mc.
5595         * config/rs6000/rs6000.h (processor_type): Add
5596         PROCESSOR_PPCE500MC.
5597         (ASM_CPU_SPEC): Add e500mc.
5598         Set TARGET_ISEL to rs6000_isel.
5599         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
5600         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
5601         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
5602         Include e500mc.md.
5603         * doc/invoke.texi: Add e500mc to list of cpus.
5604
5605 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5606
5607         PR c/34867
5608         * c-lex.c (lex_charconst): Initialize unsignedp.
5609
5610 2008-06-27  Olivier Hainque  <hainque@adacore.com>
5611
5612         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
5613         documented assumptions.
5614
5615 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         * dwarf2out.c: Remove trailing white spaces.  Break long line
5618         in comments.
5619
5620 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
5621
5622         * libfuncs.h (LTI_synchronize): New libfunc_index.
5623         (synchronize_libfunc): Declare.
5624         * builtins.c (expand_builtin_synchronize): Consider using
5625         synchronize_libfunc before falling back on an asm blockage.
5626         * config/mips/mips.c: Include libfuncs.h
5627         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
5628
5629 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
5630
5631         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
5632         parameter.  Copy stack_reg to r11 where appropriate.
5633         (no_global_regs_above): Add gpr parameter.
5634         (rs6000_stack_info): Only add padding for SPE save area if we
5635         are saving SPE GPRs and CR.
5636         (saveres_routine_syms): New variable.
5637         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
5638         Define.
5639         (rs6000_savres_routine_sym): New function.
5640         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
5641         split out of...
5642         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
5643         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
5644         Tweak FPR out-of-line saving.
5645         (rs6000_make_savres_rtx): New function.
5646         (rs6000_use_multiple_p): New function.
5647         (rs6000_savres_strategy): New function.
5648         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
5649         out-of-line if appropriate.
5650         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
5651         if we are optimizing for size.
5652         (GP_SAVE_INLINE): Define.
5653         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
5654         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
5655         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
5656         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
5657         (*save_fpregs_<mode>): Add use of r11.
5658         (*restore_gpregs_<mode>): New insn.
5659         (*return_and_restore_gpregs_<mode>): New insn.
5660         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
5661         use r11.
5662         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
5663         (*restore_gpregs_spe): New insn.
5664         (*return_and_restore_gpregs_spe): New insn.
5665         * config/rs6000/predicates.md (save_world_operation): Fix check.
5666
5667 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
5668
5669         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
5670         this point, so assert that.
5671
5672 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
5673
5674         * cfganal.c: Include vec.h and vecprim.h.
5675         (compute_idf): Import from...
5676         * tree-into-ssa (compute_idf): ...here.
5677         * basic-block.h (compute_idf): Export.
5678
5679 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
5680
5681         * c-decl.c (merge_decls): Use !current_function_decl to check for
5682         extern declaration of C99 inline function being at file scope.
5683
5684 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
5685
5686         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
5687
5688 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5689
5690         * alias.c (record_alias_subset, init_alias_analysis): Fix
5691         -Wc++-compat and/or -Wcast-qual warnings.
5692         * attribs.c (lookup_attribute_spec): Likewise.
5693         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
5694         copy_bb, connect_traces,
5695         find_rarely_executed_basic_blocks_and_cr): Likewise.
5696         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
5697         note_btr_set, migrate_btr_defs): Likewise.
5698         * builtins.c (result_vector, expand_builtin_memcpy,
5699         expand_builtin_mempcpy_args, expand_builtin_strncpy,
5700         builtin_memset_read_str, expand_builtin_printf,
5701         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
5702         Likewise.
5703         * caller-save.c (mark_set_regs): Likewise.
5704         * calls.c (expand_call, emit_library_call_value_1): Likewise.
5705         * cgraph.c (cgraph_edge): Likewise.
5706         * combine.c (likely_spilled_retval_1): Likewise.
5707         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
5708         htab_counts_entry_del, get_coverage_counts): Likewise.
5709         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
5710         new_cselib_val): Likewise.
5711         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
5712         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
5713         Likewise.
5714         * df-core.c (df_compact_blocks): Likewise.
5715         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
5716         * df-scan.c (df_grow_reg_info, df_ref_create,
5717         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
5718         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
5719         df_record_entry_block_defs, df_record_exit_block_uses,
5720         df_bb_verify): Likewise.
5721         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
5722         DF_REF_EXTRACT_MODE_CONST): New.
5723         * dominance.c (get_immediate_dominator, get_dominated_by,
5724         nearest_common_dominator, root_of_dom_tree,
5725         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
5726         -Wc++-compat and/or -Wcast-qual warnings.
5727         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
5728         record_store, replace_read, check_mem_read_rtx, scan_insn,
5729         dse_step1, dse_record_singleton_alias_set): Likewise.
5730         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5731
5732 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5733
5734         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
5735         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
5736         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
5737         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
5738         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
5739         add_ranges_num, add_ranges_by_labels, file_info_cmp,
5740         file_name_acquire, output_file_names, add_const_value_attribute,
5741         premark_used_types_helper, file_table_eq, file_table_hash,
5742         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
5743         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
5744         -Wcast-qual warnings.
5745         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
5746         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
5747         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
5748         gen_reg_rtx, start_sequence, init_emit): Likewise.
5749         * et-forest.c (et_new_occ, et_new_tree): Likewise.
5750         * except.c (init_eh_for_function, gen_eh_region,
5751         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
5752         arh_to_landing_pad, arh_to_label, add_action_record,
5753         add_call_site, switch_to_exception_section): Likewise.
5754         * expmed.c (synth_mult): Likewise.
5755         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
5756         store_expr): Likewise.
5757         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
5758         Likewise.
5759         * function.c (assign_stack_temp_for_type,
5760         allocate_struct_function, match_asm_constraints_1): Likewise.
5761         * gcov-io.c (gcov_allocate): Likewise.
5762         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
5763         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
5764         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
5765         record_one_set, insert_expr_in_table, insert_set_in_table,
5766         dump_hash_table, compute_hash_table_work, alloc_hash_table,
5767         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
5768         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
5769         -Wcast-qual warnings.
5770
5771 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5772
5773         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
5774         -Wcast-qual warnings.
5775         * gcc.c (process_command): Likewise.
5776         * genattrtab.c (oballoc): Use XOBNEW.
5777         (oballocvec): Define.
5778         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
5779         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
5780         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
5781         -Wc++-compat and/or -Wcast-qual warnings.
5782         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
5783         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
5784         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
5785         gen_presence_absence_set, gen_automaton, gen_regexp_el,
5786         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
5787         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
5788         add_excls, process_presence_absence_names,
5789         process_presence_absence_patterns, add_presence_absence,
5790         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
5791         get_free_state, add_arc, get_free_automata_list_el,
5792         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
5793         transform_3, cache_presence, create_ainsns, create_automata,
5794         create_state_ainsn_table, dfa_insn_code_enlarge,
5795         output_trans_func, output_min_issue_delay_func,
5796         output_dead_lock_func, output_reset_func,
5797         output_get_cpu_unit_code_func, output_dfa_start_func,
5798         expand_automata): Likewise.
5799         * genextract.c (gen_insn): Likewise.
5800         * gengtype-lex.l: Likewise.
5801         * gengtype.c (read_input_list, adjust_field_type,
5802         process_gc_options): Likewise.
5803         * genoutput.c (note_constraint): Likewise.
5804         * genpreds.c (mangle, add_constraint): Likewise.
5805         * genrecog.c (process_define_predicate, new_decision,
5806         add_to_sequence): Likewise.
5807         * gensupport.c (record_insn_name): Likewise.
5808
5809 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5810
5811         * config/i386/driver-i386.c (detect_caches_amd,
5812         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
5813         and/or -Wcast-qual warnings.
5814         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
5815         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
5816         gt_pch_save): Likewise.
5817         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
5818         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
5819         * global.c (compute_regsets): Likewise.
5820         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
5821         finish_graph_dump_file): Likewise.
5822         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
5823         unlink_bb_notes): Likewise.
5824         * integrate.c (get_hard_reg_initial_val): Likewise.
5825         * ipa-prop.c (ipa_push_func_to_list): Likewise.
5826         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
5827         * local-alloc.c (update_equiv_regs): Likewise.
5828         * loop-invariant.c (check_invariant_table_size,
5829         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
5830         Likewise.
5831         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
5832         altered_reg_used, mark_altered): Likewise.
5833         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
5834         insert_var_expansion_initialization,
5835         combine_var_copies_in_loop_exit, apply_opt_in_copies,
5836         release_var_copies): Likewise.
5837         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
5838         analyze_matrix_decl, add_allocation_site, analyze_transpose,
5839         analyze_accesses_for_phi_node, check_var_notmodified_p,
5840         check_allocation_function, find_sites_in_func,
5841         record_all_accesses_in_func, transform_access_sites,
5842         transform_allocation_sites): Likewise.
5843         * omp-low.c (new_omp_region, create_omp_child_function_name,
5844         check_omp_nesting_restrictions, check_combined_parallel,
5845         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
5846         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
5847         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
5848         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
5849         Likewise.
5850         * opts-common.c (prune_options): Likewise.
5851         * opts.c (add_input_filename, print_filtered_help,
5852         get_option_state): Likewise.
5853         * params.c (add_params): Likewise.
5854         * passes.c (set_pass_for_id, next_pass_1,
5855         do_per_function_toporder, pass_fini_dump_file): Likewise.
5856         * postreload.c (reload_cse_simplify_operands): Likewise.
5857         * predict.c (tree_predicted_by_p, tree_predict_edge,
5858         clear_bb_predictions, combine_predictions_for_bb): Likewise.
5859
5860 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5861
5862         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
5863         warnings.
5864         * recog.c (check_asm_operands, validate_change_1): Likewise.
5865         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
5866         subst_asm_stack_regs): Likewise.
5867         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
5868         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
5869         * regmove.c (reg_is_remote_constant_p): Likewise.
5870         * regrename.c (regrename_optimize, scan_rtx_reg,
5871         kill_clobbered_value, kill_set_value, kill_autoinc_value):
5872         Likewise.
5873         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
5874         regstat_compute_calls_crossed): Likewise.
5875         * reload1.c (init_reload, new_insn_chain,
5876         has_nonexceptional_receiver, reload, copy_reloads,
5877         calculate_needs_all_insns, init_elim_table): Likewise.
5878         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
5879         * rtl.c (shallow_copy_rtx_stat): Likewise.
5880         * rtlanal.c (parms_set): Likewise.
5881         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
5882         sbitmap_resize, sbitmap_vector_alloc): Likewise.
5883         * sched-ebb.c (earliest_block_with_similiar_load,
5884         add_deps_for_risky_insns): Likewise.
5885         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
5886         schedule_region): Likewise.
5887         * see.c (eq_descriptor_pre_extension,
5888         hash_descriptor_pre_extension, hash_del_pre_extension,
5889         eq_descriptor_properties, hash_descriptor_properties,
5890         hash_del_properties, see_seek_pre_extension_expr,
5891         see_initialize_data_structures, see_print_register_properties,
5892         see_print_pre_extension_expr, see_delete_merged_def_extension,
5893         see_delete_unmerged_def_extension, see_emit_use_extension,
5894         see_pre_delete_extension, see_map_extension, see_commit_changes,
5895         see_analyze_merged_def_local_prop,
5896         see_analyze_merged_def_local_prop,
5897         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
5898         see_set_prop_merged_def, see_set_prop_unmerged_def,
5899         see_set_prop_unmerged_use, see_print_one_extension,
5900         see_merge_one_use_extension, see_merge_one_def_extension,
5901         see_store_reference_and_extension, see_update_uses_relevancy,
5902         see_update_defs_relevancy): Likewise.
5903         * statistics.c (hash_statistics_hash, hash_statistics_eq,
5904         hash_statistics_free, curr_statistics_hash): Likewise.
5905         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
5906         expand_asm_operands, expand_return, case_bit_test_cmp,
5907         expand_case): Likewise.
5908         * stor-layout.c (start_record_layout): Likewise.
5909         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
5910         gt_pch_save_stringpool): Likewise.
5911         * tree-data-ref.c (hash_stmt_vertex_info,
5912         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
5913         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
5914
5915 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
5916
5917         PR target/36627
5918         * config/i386/i386.md : Change constraints of HImode and QImode
5919         immediate operands from "i" to "n".  Change SImode "ni" constraint to
5920         "i" and SImode "rmi" constraint to "g".  Remove all constraints
5921         from const0_operand and const1_operand predicated operands.
5922         (i): Change QImode and HImode attribute from "i" to "n".
5923         (*subqi_2): Change HImode operands to QImode.
5924         (*subqi_3): Ditto.
5925
5926 2008-06-25  Olivier Hainque  <hainque@adacore.com>
5927
5928         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
5929         sed substitutions.
5930
5931 2008-06-25  Richard Guenther  <rguenther@suse.de>
5932
5933         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
5934         not overflow the result type.
5935
5936 2008-06-25  Richard Guenther  <rguenther@suse.de>
5937
5938         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
5939         (vn_lookup): Likewise.
5940
5941 2008-06-25  Richard Guenther  <rguenther@suse.de>
5942
5943         PR tree-optimization/35518
5944         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
5945         * tree-sra.c (instantiate_element): Use fold_build3 to build
5946         BIT_FIELD_REFs.
5947         (try_instantiate_multiple_fields): Likewise.
5948
5949 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5950
5951         * config/rs6000/rs6000.md: Change all string instruction's clobber to
5952         be early clobbers.
5953
5954 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5955
5956         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
5957         use_backchain_to_restore_sp to true
5958         if the offset of the link register save area would go over the 32k - 1
5959         offset limit of the load
5960         instructions.
5961
5962 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
5963
5964         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
5965         anchor for the type-punning blurb.  Cross-reference "Structures
5966         unions enumerations and bit-fields implementation".  Provide a
5967         cast-through-pointer example.  Make final sentence self-contained.
5968         * doc/implement-c.texi (Structures unions enumerations and
5969         bit-fields implementation): Cross-reference the type-punning blurb
5970         in the -fstrict-aliasing documentation.
5971
5972 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5973
5974         PR middle-end/36594
5975         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
5976         the memory instead of the memory itself for the save area.
5977
5978 2008-06-24  Olivier Hainque  <hainque@adacore.com>
5979             Nicolas Roche  <roche@adacore.com>
5980
5981         * gengtype.c (srcdir_len): size_t instead of int.
5982         (get_file_realbasename): New function.  For F a filename, the real
5983         basename of F, with all the path components stripped.
5984         (get_file_srcdir_relative_path): New function.  For F a filename, the
5985         relative path to F from $(srcdir).
5986         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
5987         get_file_realbasename.  Adjust the head comment.
5988         (get_prefix_langdir_index): New function. For F a filename, return the
5989         lang_dir_names[] relative index of the language directory that is
5990         a prefix in F.
5991         (get_file_langdir): For F a filename, return the name of the language
5992         directory where F is located.
5993         (get_file_gtfilename): New function. The gt- output file name for an
5994         input filename F.
5995         (get_output_file_with_visibility): Replace in-line computations with
5996         uses of get_file_gtfilename and get_prefix_langdir_index.
5997         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
5998
5999 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
6000
6001         PR tree-optimization/36504
6002         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
6003         references without base address.
6004
6005 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6006
6007         PR middle-end/36584
6008         * calls.c (expand_call): Increase alignment for recursive functions.
6009
6010 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
6011
6012         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
6013         (TARGET_FUNCTION_VALUE): New define.
6014         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
6015         * config/avr/avr.h (FUNCTION_VALUE): Remove.
6016
6017 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6018
6019         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
6020         (fmod<mode>3): Ditto.
6021         (remainderxf3): Ditto.
6022         (remainder<mode>3): Ditto.
6023
6024 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
6025
6026         PR target/36533
6027         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
6028         REG is a hard register.
6029
6030         PR tree-optimization/36508
6031         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
6032         499, don't check it at all in release compilers.
6033
6034 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6035
6036         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
6037         together with SSE_TARGET_MATH to disable insn pattern.
6038         (*fop_<MODEF:mode>_2_i387): Ditto.
6039         (*fop_<MODEF:mode>_3_i387): Ditto.
6040
6041 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
6042
6043         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
6044
6045 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6046
6047         PR middle-end/34906
6048         * gimplify.c (gimplify_asm_expr): Check the return code of
6049         parse_output_constraint call, set function return and is_inout
6050         value if it failed.
6051
6052 2008-06-22  Ian Lance Taylor  <iant@google.com>
6053
6054         * c-lex.c (narrowest_unsigned_type): Change itk to int.
6055         (narrowest_signed_type): Likewise.
6056         * c-typeck.c (c_common_type): Change local variable mclass to enum
6057         mode_class, twice.
6058         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
6059         tcc_comparison, not the tree code itself.
6060         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
6061         (c_expand_expr): Cast modifier to enum expand_modifier.
6062         * c-common.h (C_RID_CODE): Add casts.
6063         (C_SET_RID_CODE): Define.
6064         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
6065         (c_lex_one_token): Add cast to avoid warning.
6066         (c_parser_objc_type_name): Rename local typename to type_name.
6067         (check_no_duplicate_clause): Change code parameter to enum
6068         omp_clause_code.
6069         (c_parser_omp_var_list_parens): Change kind parameter to enum
6070         omp_clause_code.
6071         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
6072         c_parser_omp_list_var_parens.
6073         (c_parser_omp_threadprivate): Likewise.
6074         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
6075         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
6076         * c-format.c (NO_FMT): Define.
6077         (printf_length_specs): Use NO_FMT.
6078         (asm_fprintf_length_specs): Likewise.
6079         (gcc_diag_length_specs): Likewise.
6080         (scanf_length_specs): Likewise.
6081         (strfmon_length_specs): Likewise.
6082         (gcc_gfc_length_specs): Likewise.
6083         (printf_flag_specs): Change 0 to STD_C89.
6084         (asm_fprintf_flag_specs): Likewise.
6085         (gcc_diag_flag_specs): Likewise.
6086         (gcc_cxxdiag_flag_specs): Likewise.
6087         (scanf_flag_specs): Likewise.
6088         (strftime_flag_specs): Likewise.
6089         (strfmon_flag_specs): Likewise.
6090         (print_char_table): Likewise.
6091         (asm_fprintf_char_table): Likewise.
6092         (gcc_diag_char_table): Likewise.
6093         (gcc_tdiag_char_table): Likewise.
6094         (gcc_cdiag_char_table): Likewise.
6095         (gcc_cxxdiag_char_table): Likewise.
6096         (gcc_gfc_char_table): Likewise.
6097         (scan_char_table): Likewise.
6098         (time_char_table): Likewis.
6099         (monetary_char_table): Likewise.
6100         * c-format.h (BADLEN): Likewise.
6101
6102 2008-06-21  Ian Lance Taylor  <iant@google.com>
6103
6104         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
6105         Define END_OF_BASE_TREE_CODES around inclusion.
6106         * tree.c (tree_code_type): New global array.
6107         (tree_code_length, tree_code_name): Likewise.
6108         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
6109         $(lang_tree_files).
6110         (all-tree.def, s-alltree): New targets.
6111         (gencheck.h, s-gencheck): Remove.
6112         (tree.o): Depend upon all-tree.def.
6113         (build/gencheck.o): Remove gencheck.h dependency.
6114         (mostlyclean): Don't remove gencheck.h.
6115         * c-common.h (enum c_tree_code): Remove.
6116         * c-lang.c (tree_code_type): Remove.
6117         (tree_code_length, tree_code_name): Remove.
6118         * gencheck.c (tree_codes): Include all-tree.def, rather than
6119         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
6120         after it is used.
6121         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
6122         than tree.def.
6123         * cp/cp-tree.h (enum cplus_tree_code): Remove.
6124         (operator_name_info): Size to MAX_TREE_CODES.
6125         (assignment_operator_name_info): Likewise.
6126         * cp/cp-lang.c (tree_code_type): Remove.
6127         (tree_code_length, tree_code_name): Remove.
6128         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
6129         (assignment_operator_name_info): Likewise.
6130         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
6131         MAX_TREE_CODES.
6132         * cp/mangle.c (write_expression): Likewise.
6133         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
6134         * fortran/f95-lang.c (tree_code_type): Remove.
6135         (tree_code_length, tree_code_name): Remove.
6136         * java/java-tree.h (enum java_tree_code): Remove.
6137         * java/lang.c (tree_code_type): Remove.
6138         (tree_code_length, tree_code_name): Remove.
6139         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
6140         * objc/objc-act.h (enum objc_tree_code): Remove.
6141         * objc/objc-lang.c (tree_code_type): Remove.
6142         (tree_code_length, tree_code_name): Remove.
6143         * objcp/objcp-lang.c (tree_code_type): Remove.
6144         (tree_code_length, tree_code_name): Remove.
6145         * ada/ada-tree.h (enum gnat_tree_code): Remove.
6146         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
6147         * ada/misc.c (tree_code_type): Remove.
6148         (tree_code_length, tree_code_name): Remove.
6149
6150 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
6151
6152         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
6153         the grand_bitmap_obstack.
6154
6155 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6156
6157         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
6158         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
6159         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
6160         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
6161         move_stmt_r, new_label_mapper): Likewise.
6162         * tree-complex.c (cvc_lookup): Likewise.
6163         * tree-dfa.c (create_function_ann): Likewise.
6164         * tree-dump.c (dump_register): Likewise.
6165         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
6166         find_phi_replacement_condition): Likewise.
6167         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
6168         tree_function_versioning): Likewise.
6169         * tree-into-ssa.c (cmp_dfsnum): Likewise.
6170         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
6171         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
6172         get_nonlocal_debug_decl, convert_nonlocal_reference,
6173         convert_nonlocal_omp_clauses, get_local_debug_decl,
6174         convert_local_reference, convert_local_omp_clauses,
6175         convert_nl_goto_reference, convert_nl_goto_receiver,
6176         convert_tramp_reference, convert_call_expr): Likewise.
6177         * tree-outof-ssa.c (contains_tree_r): Likewise.
6178         * tree-parloops.c (reduction_phi, initialize_reductions,
6179         eliminate_local_variables_1, add_field_for_reduction,
6180         add_field_for_name, create_phi_for_local_result,
6181         create_call_for_reduction_1, create_loads_for_reductions,
6182         create_stores_for_reduction, create_loads_and_stores_for_name):
6183         Likewise.
6184         * tree-phinodes.c (allocate_phi_node): Likewise.
6185         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
6186         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
6187         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
6188         * tree-ssa-coalesce.c (compare_pairs): Likewise.
6189         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
6190         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
6191         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
6192         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
6193         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
6194         vn_nary_op_insert): Likewise.
6195         * tree-ssa.c (redirect_edge_var_map_add,
6196         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
6197         * tree-vectorizer.c (vectorize_loops): Likewise.
6198         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
6199         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
6200         tree_cons_stat, build1_stat, build_variant_type_copy,
6201         decl_init_priority_lookup, decl_fini_priority_lookup,
6202         decl_priority_info, decl_restrict_base_lookup,
6203         decl_restrict_base_insert, decl_debug_expr_lookup,
6204         decl_debug_expr_insert, decl_value_expr_lookup,
6205         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
6206         type_hash_add, get_file_function_name, tree_check_failed,
6207         tree_not_check_failed, tree_range_check_failed,
6208         omp_clause_range_check_failed, build_omp_clause,
6209         build_vl_exp_stat): Likewise.
6210         * value-prof.c (gimple_histogram_value,
6211         gimple_duplicate_stmt_histograms): Likewise.
6212         * var-tracking.c (attrs_list_insert, attrs_list_copy,
6213         unshare_variable, variable_union_info_cmp_pos, variable_union,
6214         dataflow_set_different_1, dataflow_set_different_2,
6215         vt_find_locations, variable_was_changed, set_variable_part,
6216         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
6217         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
6218         section_entry_hash, object_block_entry_eq,
6219         object_block_entry_hash, create_block_symbol,
6220         initialize_cold_section_name, default_function_rodata_section,
6221         strip_reg_name, set_user_assembler_name, const_desc_eq,
6222         build_constant_desc, output_constant_def, lookup_constant_def,
6223         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
6224         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
6225         default_internal_label): Likewise.
6226         * varray.c (varray_init, varray_grow): Likewise.
6227         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
6228
6229 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
6230
6231         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
6232         operators for "test" insn.  Macroize insn using SWI mode macro.
6233         (*jcc_fused_2): Ditto.
6234         (*jcc_fused_3): Macroize insn using SWI mode macro.
6235         (*jcc_fused_4): Ditto.
6236
6237 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
6238
6239         * tree-ssa-pre.c: Fix typo in comment.
6240         (init_antic, fini_antic): Add explicit funtions for
6241         initializing and deinitializing ANTIC and AVAIL sets.
6242         (create_expression_by_pieces): Fix typo in comment.
6243         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
6244         (execute_pre): Eventually dump details about ANTIC_IN.
6245
6246 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6247
6248         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
6249         * gcc.c (translate_options, init_spec, store_arg, read_specs,
6250         add_to_obstack, file_at_path, find_a_file, execute,
6251         add_preprocessor_option, add_assembler_option, add_linker_option,
6252         process_command, insert_wrapper, do_option_spec, do_self_spec,
6253         spec_path, do_spec_1, is_directory, main, used_arg,
6254         getenv_spec_function): Likewise.
6255         * tlink.c (symbol_hash_lookup, file_hash_lookup,
6256         demangled_hash_lookup, symbol_push, file_push, frob_extension):
6257         Likewise.
6258
6259 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6260
6261         * doc/rtl.texi: Updated subreg section.
6262
6263 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
6264
6265         PR c++/36523
6266         * cgraphunit.c (cgraph_process_new_functions): Don't clear
6267         node->needed and node->reachable.
6268         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
6269         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
6270         (expand_task_call): Don't call expand_task_copyfn.
6271         (expand_task_copyfn): Renamed to...
6272         (finalize_task_copyfn): ... this.
6273
6274 2008-06-19  Jan Hubicka  <jh@suse.cz>
6275
6276         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
6277         clobbering framepointer.
6278
6279 2008-06-19  Jan Hubicka  <jh@suse.cz>
6280
6281         * tree-optimize.c (execute_early_local_optimizations): Set
6282         cgraph_state only at first invocation.
6283
6284 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6285
6286         * system.h (-Wc++-compat): Activate as a warning, no an error.
6287
6288 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6289
6290         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
6291         instead of "#" in insn asm template.
6292         (*jcc_fused_2): Ditto.
6293
6294 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6295
6296         * config/i386/i386.h (ix86_tune_indices)
6297         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
6298         (TARGET_FUSE_CMP_AND_BRANCH): New define.
6299         * config/i386/i386.md (*jcc_fused_1): New insn pattern
6300         (*jcc_fused_2): Ditto.
6301         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
6302         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
6303         (print operand): Handle 'E' and 'e' code.
6304
6305 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
6306
6307         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
6308         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6309         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6310
6311 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
6312
6313         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
6314         node->decl.
6315         (cgraph_expand_function): Use local copy of decl.
6316         (cgraph_expand_all_functions): Remove redundant initialization of
6317         order_pos.
6318         (cgraph_optimize): Reword internal_error message.
6319
6320 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
6321
6322         * arm-protos.h (arm_return_in_memory): Remove public
6323         arm_return_in_memory() prototype.
6324         * arm.c (arm_return_in_memory): Add static prototype, add target
6325         hook macro, change definition and comments.
6326         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
6327
6328 2008-06-19  Ben Elliston  <bje@au.ibm.com>
6329
6330         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
6331         real.c: Remove references to IEEE 754R.
6332         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
6333         * doc/libgcc.texi (Decimal float library routines): Likewise.
6334
6335 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6336
6337         * targhooks.h (struct gcc_target): New member unwind_word_mode.
6338         (default_unwind_word_mode): Add prototype.
6339         * targhooks.c (default_unwind_word_mode): New function.
6340         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
6341         instead of word_mode.
6342         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
6343         (TARGET_INITIALIZER): Use it.
6344
6345         * c-common.c (handle_mode_attribute): Support "unwind_word"
6346         mode attribute.
6347         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
6348
6349         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
6350         word_mode to access SjLj_Function_Context member "data".
6351         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
6352         conversion from targetm.eh_return_filter_mode () to
6353         targetm.unwind_word_mode () if they differ.
6354
6355         * builtin-types.def (BT_UNWINDWORD): New primitive type.
6356         (BT_FN_UNWINDWORD_PTR): New function type.
6357         (BT_FN_WORD_PTR): Remove.
6358         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
6359         * except.c (expand_builtin_extend_pointer): Convert pointer to
6360         targetm.unwind_word_mode () instead of word_mode.
6361
6362         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
6363         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
6364         (spu_unwind_word_mode): New function.
6365         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
6366         (TARGET_UNWIND_WORD_MODE): Define.
6367         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
6368
6369 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6370
6371         * config/spu/spu.c (reg_align): Remove.
6372         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
6373         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
6374         (spu_split_store): Likewise.
6375
6376 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
6377
6378         * gcc/tree-vn.c: Fix typo in comment.
6379
6380 2008-06-18  Jan Hubicka  <jh@suse.cz>
6381
6382         * cgraphunit.c (cgraph_optimize): Output debug info when doing
6383         toplevel reorder too.
6384
6385 2008-06-18  Jan Hubicka  <jh@suse.cz>
6386
6387         * c-opts.c (c_common_post_options): PCH is not compatible with
6388         no-unit-at-a-time.
6389         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
6390         -fno-toplevel-reorder by default now.
6391
6392 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6393
6394         PR documentation/30739
6395         * doc/install.texi (Prerequisites): Document dependency on awk.
6396
6397 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
6398             Ian Lance Taylor  <iant@google.com>
6399
6400         PR rtl-optimization/35604
6401         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
6402         only want to change jump destinations, not eventual label comparisons.
6403
6404 2008-06-16  Jan Hubicka  <jh@suse.cz>
6405
6406         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
6407         syntax errors.
6408         (cgraph_analyze_function): Likewise.
6409
6410 2008-06-16  Jan Hubicka  <jh@suse.cz>
6411
6412         * cgraph.h (cgraph_mark_if_needed): New function.
6413         * cgraphunit.c (cgraph_mark_if_needed): New function.
6414         * c-decl.c (duplicate_decl): Use it.
6415
6416 2008-06-16  Jan Hubicka  <jh@suse.cz>
6417
6418         * cgraph.c (cgraph_add_new_function): When in expansion state, do
6419         lowering.
6420
6421 2008-06-16  Jan Hubicka  <jh@suse.cz>
6422
6423         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
6424
6425 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
6426             Kazu Hirata  <kazu@codesourcery.com>
6427             Maxim Kuvyrkov  <maxim@codesourcery.com
6428
6429         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
6430         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
6431         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
6432         EXTRA_SPEC_FUNCTIONS.
6433         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
6434         (DRIVER_SELF_SPECS): Adjust.
6435         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
6436         * config/mips/st.h, config/mips/t-st: New.
6437         * config/mips/driver-native.c, config/mips/x-native: New.
6438         * doc/invoke.texi (MIPS): Document 'native' value for -march and
6439         -mtune options.
6440
6441 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6442
6443         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
6444         from it.
6445         (ISA_HAS_FP_CONDMOVE): New macro.
6446         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
6447         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
6448         (ISA_HAS_NMADD3_NMSUB3): New macro.
6449         * config/mips/mips.c (mips_rtx_costs): Update.
6450         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
6451         compiling for ST Loongson 2E/2F.
6452         (madd<mode>): Rename to madd4<mode>.  Update.
6453         (madd3<mode>): New pattern.
6454         (msub<mode>): Rename to msub4<mode>.  Update.
6455         (msub3<mode>): New pattern.
6456         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
6457         (nmadd3<mode>): New pattern.
6458         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
6459         (nmadd3<mode>_fastmath): New pattern.
6460         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
6461         (nmsub3<mode>): New pattern.
6462         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
6463         (nmsub3<mode>_fastmath): New pattern.
6464         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
6465
6466 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
6467
6468         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
6469         (DF_REF_INSN_INFO): New.
6470         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
6471         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
6472         with a NULL DF_REF_INSN_INFO.
6473         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
6474         DF_INSN_SET.
6475         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
6476         DF_INSN_INFO_EQ_USES): New.
6477         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
6478         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
6479         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
6480         * df-core.c: Update comment for above changes.
6481         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
6482         DF_INSN_UID_* macros.
6483         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
6484         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
6485         insn rtx.  Update all callers.
6486         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
6487         df_ref_create_structure, df_insn_refs_collect): Likewise.
6488         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
6489         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
6490         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
6491         macros to access the insn refs.
6492         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
6493         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
6494         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
6495         for accessing the refs.
6496         (try_fwprop_subst): Likewise.
6497         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
6498         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
6499         for accessing the refs.
6500         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
6501         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
6502         to look at the insn refs.
6503         (record_uses): Likewise.
6504         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
6505         function anymore.
6506         (mark_artificial_uses): Don't mark_insn for artificial refs.
6507         (mark_reg_rependencies): Likewise.
6508
6509         * doc/rtl.texi: Remove documentation of ADDRESSOF.
6510
6511 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6512
6513         * configure: Regenerate.
6514
6515 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6516
6517         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
6518         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6519         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6520
6521 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6522
6523         * config/avr/avr.c (avr_mcu_t): Add attiny167.
6524         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6525         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6526
6527 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6528
6529         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
6530         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6531         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6532
6533 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
6534
6535         * tree-ssa-sccvn.c: Fix format of comments.
6536
6537 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
6538
6539         * cgraph.c: Remove unneeded forward declarations of eq_node()
6540         and hash_node().
6541
6542 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
6543
6544         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
6545         REG_RETVAL notes.
6546         (see_update_relevancy): Likewise.
6547         * fwprop.c (try_fwprop_subst): Likewise.
6548         * rtlanal.c (noop_move_p): Likewise.
6549         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
6550         notes to non-existing libcall blocks.
6551         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
6552         Remove orig_set.
6553         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
6554         (dead_libcall_p): Remove.
6555         (delete_trivially_dead_insns): Don't use it.
6556         * web.c (union_defs): Remove comment about keeping nops.
6557         * gcse.c (hash_scan_insn): Don't take libcall pointers.
6558         (compute_hash_table_work): Don't track libcall notes.
6559         (do_local_cprop): Don't take libcall pointers.  Don't update
6560         libcall notes.
6561         (adjust_libcall_notes): Deleted.
6562         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
6563         ever have existed in the first place).
6564         (replace_store_insn): Don't try to remove libcall notes.
6565         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
6566         (resolve_reg_notes): Don't call them.
6567         (resolve_simple_move): Likewise.
6568         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
6569         Don't remove REG_RETVAL notes.
6570         * emit-rtl.c (try_split): Don't update libcall notes.
6571         (emit_copy_of_insn_after): Dito.
6572         * cselib.c (cselib_current_insn_in_libcall): Remove.
6573         (cselib_process_insn): Don't set/clear it.
6574         (new_elt_loc_list): Don't record it.
6575         (cselib_init): Don't initialize it.
6576         * cselib.c (struct elt_loc_list): Remove in_libcall field.
6577         * loop-invariant.c (find_invariant_insn): Don't look for libcall
6578         notes.
6579         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
6580         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
6581         (init_deps): Don't initialize it.
6582         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
6583         * combine.c (delete_noop_moves): Don't update libcall notes.
6584         (can_combine_p): Remove now pointless #if 0 block.
6585         (try_combine): Remove another obsolete #if 0 block.
6586         (distribute_notes): Don't distribute libcall notes.
6587         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
6588         * dce.c (libcall_dead_p): Remove.
6589         (delete_unmarked_insns): Don't handle libcall blocks.
6590         (preserve_libcall_for_dce): Remove.
6591         (prescan_insns_for_dce): Don't special-case libcall block insns.
6592         * reload1 (reload): Don't handle libcall notes.
6593         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
6594         documentation.
6595
6596 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
6597
6598         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
6599         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6600         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6601
6602 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
6603
6604         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
6605         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6606         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6607
6608 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6609
6610         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
6611
6612 2008-06-16  Ira Rosen  <irar@il.ibm.com>
6613
6614         PR tree-optimization/36493
6615         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
6616         the arguments list. Use VECTYPE to create vector pointer.
6617         (vectorizable_store): Fail if accesses through a pointer to vectype
6618         do not alias the original memory reference operands.
6619         Call vect_create_data_ref_ptr without the removed argument.
6620         (vectorizable_load): Likewise.
6621         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
6622         removed argument.
6623
6624 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
6625
6626         PR target/36336
6627         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
6628         reg_equiv_constant.
6629
6630 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6631
6632         * config/mips/loongson2ef.md: New file.
6633         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6634         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6635         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6636         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
6637         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
6638         and loongson_2f.
6639         (loongson2ef.md): New include.
6640         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
6641         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
6642         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
6643         (loongson_gt_<mode>, loongson_extract_halfword)
6644         (loongson_insert_halfword_0, loongson_insert_halfword_2)
6645         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
6646         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
6647         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
6648         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
6649         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
6650         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
6651         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
6652         (vec_interleave_low<mode>): Define type attribute.
6653         * config/mips/mips.c (mips_ls2): New static variable.
6654         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
6655         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
6656         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
6657         Implement target scheduling hooks.
6658         (mips_multipass_dfa_lookahead): Update to handle tuning for
6659         Loongson 2E/2F.
6660         (mips_sched_init): Initialize data for Loongson scheduling.
6661         (mips_ls2_variable_issue): New static function.
6662         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
6663         Add sanity check.
6664         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
6665         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
6666         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
6667         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
6668         Handle ST Loongson 2E/2F cores.
6669         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
6670
6671 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6672
6673         * omp-low.c (extract_omp_for_data): Fix comment typo.
6674         * c.opt: Fix typo.
6675
6676 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6677
6678         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
6679         FIXME note about gcc/config.guess.
6680         * doc/options.texi (Option file format): Remove non-ASCII bytes.
6681         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
6682         * doc/cppopts.texi: Likewise.
6683         * doc/extend.texi: Likewise.
6684         * doc/gcc.texi: Likewise.
6685         * doc/gccint.texi: Likewise.
6686         * doc/gcov.texi: Likewise.
6687         * doc/gty.texi: Likewise.
6688         * doc/hostconfig.texi: Likewise.
6689         * doc/install.texi: Likewise.
6690         * doc/invoke.texi: Likewise.
6691         * doc/loop.texi: Likewise.
6692         * doc/makefile.texi: Likewise.
6693         * doc/md.texi: Likewise.
6694         * doc/passes.texi: Likewise.
6695         * doc/tm.texi: Likewise.
6696         * doc/tree-ssa.texi: Likewise.
6697         * doc/trouble.texi: Likewise.
6698
6699 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
6700             Nathan Sidwell  <nathan@codesourcery.com>
6701             Maxim Kuvyrkov  <maxim@codesourcery.com>
6702             Richard Sandiford  <rdsandiford@googlemail.com>
6703
6704         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
6705         * config/mips/mips-protos.h (mips_expand_vector_init): New.
6706         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
6707         builtins.
6708         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
6709         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
6710         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
6711         V8QImode cases.
6712         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
6713         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
6714         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
6715         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
6716         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
6717         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
6718         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
6719         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
6720         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
6721         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
6722         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
6723         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
6724         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
6725         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
6726         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
6727         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
6728         (mips_builtins): Add Loongson builtins.
6729         (mips_loongson_2ef_bdesc): New.
6730         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
6731         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
6732         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
6733         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
6734         New.
6735         (mips_expand_vector_init): New.
6736         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
6737         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
6738         if appropriate.
6739         * config/mips/mips.md: Add unspec numbers for Loongson
6740         builtins.  Include loongson.md.
6741         (MOVE64): Include Loongson vector modes.
6742         (SPLITF): Include Loongson vector modes.
6743         (HALFMODE): Handle Loongson vector modes.
6744         * config/mips/loongson.md: New.
6745         * config/mips/loongson.h: New.
6746         * config.gcc: Add loongson.h header for mips*-*-* targets.
6747         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
6748
6749 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
6750
6751         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
6752         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
6753         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
6754         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
6755         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
6756         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
6757         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
6758         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
6759         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
6760         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
6761         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
6762         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
6763         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
6764         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
6765         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
6766         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
6767         Remove use_fixproto=yes.
6768         (ia64*-*-hpux*): Remove comment about using fixproto.
6769         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
6770
6771 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6772
6773         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
6774         library rebuilds.
6775         * configure: Regenerate.
6776
6777 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
6778
6779         PR middle-end/36520
6780         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
6781         before evaluating it.
6782
6783 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
6784
6785         PR c/36507
6786         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
6787         nested inline functions.
6788         (start_decl, start_function): Don't invert DECL_EXTERNAL
6789         for nested inline functions.
6790
6791 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
6792
6793         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
6794         splits that must be made for correctness.
6795
6796 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
6797
6798         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
6799         (AVAIL_NON_MIPS16): Likewise.
6800         (mips_builtin_description): Replace target_flags with a predicate.
6801         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
6802         (dspr2_32): New availability predicates.
6803         (MIPS_BUILTIN): New macro.
6804         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
6805         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
6806         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
6807         Replace the TARGET_FLAGS parameters with AVAIL parameters.
6808         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
6809         (mips_dsp_32only_bdesc): Merge into...
6810         (mips_builtins): ...this new array.
6811         (mips_bdesc_map, mips_bdesc_arrays): Delete.
6812         (mips_init_builtins): Update after above changes.
6813         (mips_expand_builtin_1): Merge into...
6814         (mips_expand_builtin): ...here and update after above changes.
6815
6816 2008-06-12  Paul Brook  <paul@codesourcery.com>
6817
6818         * longlong.h (__arm__): Define count_leading_zeros.
6819         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
6820         (clzsi2, clzdi2): New functions.
6821         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
6822         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
6823         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
6824         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
6825         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
6826         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
6827         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
6828         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
6829         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
6830         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
6831
6832 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
6833
6834         * config/m68k/m68k.c (m68k_tune_flags): New.
6835         (override_options): Compute m68k_tune_flags.
6836         (MULL_COST, MULW_COST): Update for various variants of CFV2.
6837         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
6838
6839 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6840
6841         PR middle-end/36506
6842         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
6843
6844 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
6845
6846         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
6847         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
6848
6849 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
6850
6851         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
6852         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
6853
6854 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6855
6856         PR middle-end/36506
6857         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
6858         reductions.
6859
6860 2008-06-12  Richard Guenther  <rguenther@suse.de>
6861
6862         PR tree-optimization/36345
6863         * tree-flow.h (struct ptr_info_def): Align escape_mask,
6864         add memory_tag_needed flag.
6865         (may_alias_p): Declare.
6866         * tree-ssa-alias.c (may_alias_p): Export.
6867         (set_initial_properties): Use memory_tag_needed flag.
6868         (update_reference_counts): Likewise.
6869         (reset_alias_info): Reset memory_tag_needed flag.
6870         (create_name_tags): Check memory_tag_needed flag.
6871         (dump_points_to_info_for): Dump it.
6872         * tree-ssa-structalias.c (struct variable_info): Remove
6873         directly_dereferenced flag.
6874         (new_var_info): Do not initialize it.
6875         (process_constraint_1): Do not set it.
6876         (update_alias_info): Set is_dereferenced flag.
6877         (set_uids_in_ptset): Use may_alias_p.
6878         (set_used_smts): Check memory_tag_needed flag.
6879         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
6880         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
6881         memory_tag_needed flag.
6882         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
6883         from broken design.
6884
6885 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
6886
6887         * config/i386/i386.c (ix86_compute_frame_layout): Disable
6888         red zone for w64 abi.
6889         (ix86_expand_prologue): Likewise.
6890         (ix86_force_to_memory): Likewise.
6891         (ix86_free_from_memory): Likewise.
6892
6893 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
6894
6895         PR target/36425
6896         * config/rs6000/rs6000.c (rs6000_override_options): Set
6897         rs6000_isel conditionally to the absence of comand line override.
6898         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6899         Remove duplicate rs6000_isel setting.
6900         * config/rs6000/eabispe.h: Ditto.
6901
6902 2008-06-11  Richard Guenther  <rguenther@suse.de>
6903
6904         * alias.c (get_alias_set): Use the element alias-set for arrays.
6905         (record_component_aliases): For arrays and vectors do nothing.
6906         * c-common.c (strict_aliasing_warning): Handle the cases
6907         of alias set zero explicitly.
6908         * Makefile.in (dfp.o-warn): Add -Wno-error.
6909
6910 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
6911
6912         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
6913         tune_32 tune_64.
6914         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
6915         tune_32 tune_64 to supported_defaults.  Allow values not
6916         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
6917         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
6918         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
6919         with_cpu_64 to generic for 64-bit-supporting configurations, not
6920         with_cpu.  Remove FIXMEs.
6921         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
6922         --with-arch-64, --with-tune-32, --with-tune-64): Document.
6923         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
6924         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
6925         arch_32 and arch_64.
6926
6927 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
6928             Olivier Hainque  <hainque@adacore.com>
6929
6930         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
6931         Use DECL_SIZE_UNIT to retrieve the size of the field.
6932
6933 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
6934
6935         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
6936         with function calls after declarations.  Lay out
6937         neon_float_type_node before further use.
6938
6939 2008-06-11  Richard Guenther  <rguenther@suse.de>
6940
6941         * tree-flow.h (may_point_to_global_var): Declare.
6942         * tree-ssa-alias.c (may_point_to_global_var): New function.
6943         * tree-ssa-sink.c (is_hidden_global_store): Use it.
6944
6945 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
6946
6947         * configure.ac: Teach that fido supports .debug_line.
6948         * configure: Regenerate.
6949
6950 2008-06-10  Tom Tromey  <tromey@redhat.com>
6951
6952         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
6953         debug hook.
6954
6955 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
6956
6957         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
6958         (encode_decimal64, decode_decimal64, encode_decimal128,
6959         decode_decimal128): Reverse order of 32-bit parts of value if host
6960         and target endianness differ.
6961
6962 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
6963
6964         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
6965         Avoid division by 0.
6966         (tree_mod_pow2_value_transform): Likewise.
6967         (tree_ic_transform): Likewise.
6968         (tree_stringops_transform): Likewise.
6969         (tree_mod_subtract_transform): Likewise.
6970         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
6971         (copy_edges_for_bb): Likewise.
6972         (initialize_cfun): Likewise.
6973
6974 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
6975
6976         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
6977         nonmemory_operand. Add "N" operand constraint.
6978         (*btsi): Ditto.
6979         (*jcc_btdi_mask_rex64): New instruction and split pattern.
6980         (*jcc_btsi_mask): Ditto.
6981         (*jcc_btsi_mask_1): Ditto.
6982
6983 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
6984
6985         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
6986         TYPE_CANONICAL for copied element type.
6987
6988 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
6989
6990         PR target/36473
6991         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
6992         Add m_CORE2 and m_GENERIC.
6993         * config/i386/predicates.md (bt_comparison_operator): New predicate.
6994         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
6995         (*btsi): Ditto.
6996         (*jcc_btdi_rex64): New instruction and split pattern.
6997         (*jcc_btsi): Ditto.
6998         (*jcc_btsi_1): Ditto.
6999         (*btsq): Fix Intel asm dialect operand order.
7000         (*btrq): Ditto.
7001         (*btcq): Ditto.
7002
7003 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
7004
7005         PR middle-end/36447
7006         * simplify-rtx.c (simplify_subreg): Add check for shift count
7007         greater than size.
7008
7009 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
7010
7011         * doc/md.texi: Synchronize with later constraints.md change.
7012         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
7013         with a C implementation.
7014         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
7015         MFLO handling.
7016         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
7017         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
7018         when moving to and from MD_REGNUM.
7019         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
7020         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
7021         Handle byte and halfword moves.
7022         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
7023         separately.
7024         * config/mips/constraints.md (h): Turn into NO_REGS.
7025         (l, x): Update documentation.
7026         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
7027         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
7028         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
7029         (HILO): New mode iterator.
7030         (MOVE128): Add TI.
7031         (any_div): New code iterator.
7032         (u): Extend code attribute to div and udiv.
7033         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
7034         d_operand in the splitters.  Remove redundant CONST_INT checks.
7035         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
7036         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
7037         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
7038         accordingly, using normal moves instead of unspecs to move LO into
7039         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
7040         (<u>mulsidi3): Handle expansion in C code.
7041         (<u>mulsidi3_32bit_internal): Rename to...
7042         (<u>mulsidi3_32bit): ...this.
7043         (<u>mulsidi3_32bit_r4000): Fix insn separator.
7044         (*<u>mulsidi3_64bit): Rename to...
7045         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
7046         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
7047         to set LO and HI to the multiplication result.  Use a normal move
7048         for MFLO and an unspec for MFHI.
7049         (*<u>mulsidi3_64bit_parts): Replace with...
7050         (<u>mulsidi3_64bit_hilo): ...this new instruction.
7051         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
7052         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
7053         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
7054         instead of HI.  Split the instruction into a separate multiplication
7055         and MFHI if !TARGET_FIX_R4000.
7056         (<su>muldi3_highpart): Likewise.
7057         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
7058         and the "=h" clobber.
7059         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
7060         (<u>mulditi3): New expander.
7061         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
7062         (madsi): Remove "=h" clobber.
7063         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
7064         Force the modulus result to be a GPR and split the instruction into
7065         a division followed by an MFHI after reload.
7066         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
7067         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
7068         the MIPS16 HIGH define_split.
7069         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
7070         of acc<->gpr moves to "multi".
7071         (*movdi_64bit): Replace the single "x" alternative with
7072         alternatives for moving into and out of "a".
7073         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
7074         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
7075         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
7076         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
7077         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
7078         (movti): New expander.
7079         (*movti, *movti_mips16): New insns.
7080         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
7081         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
7082         (mthi<GPR:mode>_<HILO:mode>): Likewise.
7083         * config/mips/predicates.md (fpr_operand): Delete.
7084         (d_operand): New predicate.
7085
7086 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
7087
7088         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
7089         failure on some Bourne shells.
7090         (x86_64-*-*): Ditto.
7091
7092 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
7093
7094         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
7095
7096 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7097
7098         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
7099         (sparc-sun-solaris2*): Likewise.
7100
7101 2008-06-09  Arnaud Charlet  <charlet@adacore.com
7102
7103         * doc/install.texi: Update requirements to build the Ada compiler.
7104
7105 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
7106
7107         * df-scan.c (struct df_scan_problem_data): Remove the
7108         mw_link_pool alloc pool.
7109         (df_scan_free_internal): Don't free it.
7110         (df_scan_alloc): Don't allocate it.
7111         * df.h (struct df_link): Update comment.
7112
7113 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
7114
7115         * except.h: Correct checks for when SJLJ exceptions must be used.
7116
7117 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7118
7119         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
7120         default.
7121
7122 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
7123
7124         PR tree-optimization/36218
7125         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
7126         configure for the build system.
7127         (BUILD_LDFLAGS): Define.
7128         * configure: Regenerate.
7129         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
7130
7131 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
7132
7133         PR target/36424
7134         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
7135         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
7136         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
7137
7138 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
7139
7140         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
7141
7142 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
7143
7144         * config.gcc (Obsolete configurations): Remove list of
7145         configurations.
7146         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
7147         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
7148         targets matched by those patterns.
7149         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
7150         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
7151         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
7152         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
7153         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7154         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
7155         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
7156         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
7157         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
7158         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
7159         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
7160         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
7161         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
7162         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
7163         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
7164         Make code for Solaris 7 and greater unconditional for Solaris.
7165         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
7166         Remove --with-* handling.
7167         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
7168         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
7169         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
7170         LINK_OS_WINDISS_SPEC): Remove.
7171         * config/rs6000/sysv4.opt (mwindiss): Remove.
7172         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
7173         * configure: Regenerate.
7174         * doc/cpp.texi: Don't mention BeOS.
7175         * doc/extend.texi (interrupt): Don't mention MS1.
7176         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
7177         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
7178         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
7179         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
7180         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
7181         Remove.
7182         * doc/invoke.texi (MT Options): Remove.
7183         (-mwindiss): Remove.
7184         (CRIS Options): Remove cris-axis-aout references.
7185         (HPPA Options): Don't mention hppa1.1-*-pro.
7186         * doc/md.texi: (MorphoTech family): Remove.
7187         * libgcc2.c: Don't handle UWIN.
7188         * config/alpha/t-unicosmk: Remove.
7189         * config/alpha/unicosmk.h: Remove.
7190         * config/arm/kaos-arm.h: Remove.
7191         * config/arm/kaos-strongarm.h: Remove.
7192         * config/arm/strongarm-coff.h: Remove.
7193         * config/arm/strongarm-elf.h: Remove.
7194         * config/arm/strongarm-pe.h: Remove.
7195         * config/arm/t-strongarm-pe: Remove.
7196         * config/arm/t-xscale-coff: Remove.
7197         * config/arm/t-xscale-elf: Remove.
7198         * config/arm/xscale-coff.h: Remove.
7199         * config/arm/xscale-elf.h: Remove.
7200         * config/chorus.h: Remove.
7201         * config/cris/aout.h: Remove.
7202         * config/cris/aout.opt: Remove.
7203         * config/cris/t-aout: Remove.
7204         * config/i386/beos-elf.h: Remove.
7205         * config/i386/kaos-i386.h: Remove.
7206         * config/i386/ptx4-i.h: Remove.
7207         * config/i386/sco5.h: Remove.
7208         * config/i386/sco5.opt: Remove.
7209         * config/i386/sysv4-cpp.h: Remove.
7210         * config/i386/sysv5.h: Remove.
7211         * config/i386/t-beos: Remove.
7212         * config/i386/t-sco5: Remove.
7213         * config/i386/t-uwin: Remove.
7214         * config/i386/uwin.asm: Remove.
7215         * config/i386/uwin.h: Remove.
7216         * config/kaos.h: Remove.
7217         * config/mips/windiss.h: Remove.
7218         * config/mt: Remove directory.
7219         * config/pa/pa-osf.h: Remove.
7220         * config/pa/pa-pro-end.h: Remove.
7221         * config/pa/t-pro: Remove.
7222         * config/ptx4.h: Remove.
7223         * config/rs6000/beos.h: Remove.
7224         * config/rs6000/kaos-ppc.h: Remove.
7225         * config/rs6000/t-beos: Remove.
7226         * config/rs6000/windiss.h: Remove.
7227         * config/sh/kaos-sh.h: Remove.
7228         * config/sol2-6.h: Remove.
7229         * config/sparc/sol26-sld.h: Remove.
7230         * config/sparc/sysv4-only.h: Remove.
7231         * config/vax/bsd.h: Remove.
7232         * config/vax/t-memfuncs: Remove.
7233         * config/vax/ultrix.h: Remove.
7234         * config/vax/vaxv.h: Remove.
7235         * config/windiss.h: Remove.
7236
7237 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
7238
7239         PR rtl-optimization/36438
7240         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
7241         for vector shifts with constant scalar shift operands.
7242
7243 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
7244
7245         * doc/invoke.texi: Document -march=xlr.
7246         * config/mips/xlr.md: New file.
7247         * config/mips/mips.md: Include it.
7248         (cpu): Add "xlr".
7249         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
7250         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
7251         (mips_rtx_cost_data): Likewise.
7252
7253 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
7254
7255         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
7256         PRE_INC and PRE_DEC cases.
7257
7258 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
7259
7260         PR rtl-optimization/36419
7261         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
7262         the emitting jump insn.
7263
7264         PR target/36362
7265         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
7266         is not bool, boolify the whole *expr_p and convert to the desired type.
7267
7268 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
7269
7270         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
7271         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
7272         Add omp_private_outer_ref hook, add another argument to
7273         omp_clause_default_ctor hook.
7274         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
7275         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
7276         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
7277         hook_tree_tree_tree_tree_null.
7278         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
7279         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
7280         * hooks.c (hook_tree_tree_tree_tree_null): New function.
7281         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
7282         * tree.def (OMP_TASK): New tree code.
7283         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
7284         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
7285         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
7286         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
7287         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
7288         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
7289         OMP_CLAUSE_COLLAPSE_EXPR): Define.
7290         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7291         (OMP_DIRECTIVE_P): Add OMP_TASK.
7292         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
7293         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
7294         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
7295         and OMP_CLAUSE_UNTIED entries.
7296         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
7297         num_ops to 2.
7298         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7299         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
7300         * tree-pretty-print.c (dump_omp_clause): Handle
7301         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
7302         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7303         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
7304         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
7305         warning about unsigned iterators.  Change decl/init/cond/incr
7306         arguments to TREE_VECs, check arguments for all collapsed loops.
7307         (c_finish_omp_taskwait): New function.
7308         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
7309         ws_clauses.
7310         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
7311         default_function_array_conversion on init.  Add par_clauses argument.
7312         If decl is present in parallel's lastprivate clause, change it to
7313         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
7314         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
7315         collapse count in clauses.
7316         (c_parser_omp_for, c_parser_omp_parallel): Adjust
7317         c_parser_omp_for_loop callers.
7318         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
7319         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
7320         (c_parser_omp_clause_name): Handle collapse and untied clauses.
7321         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
7322         functions.
7323         (c_parser_omp_clause_schedule): Handle schedule(auto).
7324         Include correct location in the error message.
7325         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
7326         and PRAGMA_OMP_CLAUSE_UNTIED.
7327         (OMP_TASK_CLAUSE_MASK): Define.
7328         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
7329         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
7330         * tree-nested.c (convert_nonlocal_omp_clauses,
7331         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
7332         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
7333         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7334         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
7335         OMP_CLAUSE_DECL.
7336         (conver_nonlocal_reference, convert_local_reference,
7337         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
7338         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
7339         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
7340         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
7341         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
7342         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
7343         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
7344         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
7345         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7346         OMP_CLAUSE_UNTIED.
7347         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
7348         * c-common.h (c_finish_omp_taskwait): New prototype.
7349         * gimple-low.c (lower_stmt): Handle OMP_TASK.
7350         * tree-parloops.c (create_parallel_loop): Create 1 entry
7351         vectors for OMP_FOR_{INIT,COND,INCR}.
7352         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7353         (make_edges): Handle OMP_TASK.
7354         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
7355         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7356         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
7357         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
7358         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
7359         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7360         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7361         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
7362         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
7363         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
7364         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
7365         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
7366         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
7367         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
7368         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
7369         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
7370         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
7371         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
7372         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
7373         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
7374         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
7375         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
7376         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
7377         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
7378         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
7379         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
7380         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
7381         original iterator is present in lastprivate clause or if
7382         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
7383         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7384         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
7385         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
7386         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
7387         if it is set, lookup var in outer contexts too.  Handle
7388         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
7389         to be implicitly determined firstprivate for task regions.
7390         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
7391         if it is set, lookup var in outer contexts too.  Set
7392         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
7393         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
7394         OMP_CLAUSE_UNTIED.  Take region_type as last argument
7395         instead of in_parallel and in_combined_parallel.
7396         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
7397         Adjust callers.
7398         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
7399         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
7400         (new_omp_context): Set default_kind to
7401         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
7402         (omp_region_type): New enum.
7403         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
7404         fields, add region_type.
7405         (new_omp_context): Take region_type as argument instead of is_parallel
7406         and is_combined_parallel.
7407         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
7408         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
7409         ctx->is_combined_parallel checks.
7410         (gimplify_omp_task): New function.
7411         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7412         OMP_CLAUSE_UNTIED.
7413         * omp-low.c (extract_omp_for_data): Use schedule(static)
7414         for schedule(auto).  Handle pointer and unsigned iterators.
7415         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
7416         Add loops argument.  Extract data for collapsed OMP_FOR loops.
7417         (expand_parallel_call): Assert sched_kind isn't auto,
7418         map runtime schedule to index 3.
7419         (struct omp_for_data_loop): New type.
7420         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
7421         Add loop, loops, collapse and iter_type fields.
7422         (workshare_safe_to_combine_p): Disallow combined for if
7423         iter_type is unsigned long long.  Don't combine collapse > 1 loops
7424         unless all bounds and steps are constant.  Adjust extract_omp_for_data
7425         caller.
7426         (expand_omp_for_generic): Handle pointer, unsigned and long long
7427         iterators.  Handle collapsed OMP_FOR loops.  Adjust
7428         for struct omp_for_data changes.  If libgomp function doesn't return
7429         boolean_type_node, add comparison of the return value with 0.
7430         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
7431         pointer, unsigned and long long iterators.  Adjust for struct
7432         omp_for_data changes.
7433         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
7434         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
7435         unsigned long long.  Allocate loops array, pass it to
7436         extract_omp_for_data.  For collapse > 1 loops use always
7437         expand_omp_for_generic.
7438         (omp_context): Add sfield_map and srecord_type fields.
7439         (is_task_ctx, lookup_sfield): New functions.
7440         (use_pointer_for_field): Use is_task_ctx helper.  Change first
7441         argument's type from const_tree to tree.  Clarify comment.
7442         In OMP_TASK disallow copy-in/out sharing.
7443         (build_sender_ref): Call lookup_sfield instead of lookup_field.
7444         (install_var_field): Add mask argument.  Populate both record_type
7445         and srecord_type if needed.
7446         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
7447         in srecord_type.
7448         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
7449         and DECL_FIELD_OFFSET.
7450         (scan_sharing_clauses): Adjust install_var_field callers.  For
7451         firstprivate clauses on explicit tasks allocate the var by value in
7452         record_type unconditionally, rather than by reference.
7453         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
7454         Use is_taskreg_ctx instead of is_parallel_ctx.
7455         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7456         (create_omp_child_function_name): Add task_copy argument, use
7457         *_omp_cpyfn* names if it is true.
7458         (create_omp_child_function): Add task_copy argument, if true create
7459         *_omp_cpyfn* helper function.
7460         (scan_omp_parallel): Adjust create_omp_child_function callers.
7461         Rename parallel_nesting_level to taskreg_nesting_level.
7462         (scan_omp_task): New function.
7463         (lower_rec_input_clauses): Don't run constructors for firstprivate
7464         explicit task vars which are initialized by *_omp_cpyfn*.
7465         Pass outer var ref to omp_clause_default_ctor hook if
7466         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
7467         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
7468         OMP_CLAUSE_REDUCTION_INIT.
7469         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
7470         avoid duplicate setting of fields.  Handle
7471         OMP_CLAUSE_PRIVATE_OUTER_REF.
7472         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
7473         copy-out if TREE_READONLY, only copy-in.
7474         (expand_task_copyfn): New function.
7475         (expand_task_call): New function.
7476         (struct omp_taskcopy_context): New type.
7477         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
7478         New functions.
7479         (lower_omp_parallel): Rename to...
7480         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
7481         Call create_task_copyfn if srecord_type is needed.  Adjust
7482         sender_decl type.
7483         (task_shared_vars): New variable.
7484         (check_omp_nesting_restrictions): Warn if work-sharing,
7485         barrier, master or ordered region is closely nested inside OMP_TASK.
7486         Add warnings for barrier if closely nested inside of work-sharing,
7487         ordered, or master region.
7488         (scan_omp_1): Call check_omp_nesting_restrictions even for
7489         GOMP_barrier calls.  Rename parallel_nesting_level to
7490         taskreg_nesting_level.  Handle OMP_TASK.
7491         (lower_lastprivate_clauses): Even if some lastprivate is found on a
7492         work-sharing construct, continue looking for them on parent parallel
7493         construct.
7494         (lower_omp_for_lastprivate): Add lastprivate clauses
7495         to the beginning of dlist rather than end.  Adjust for struct
7496         omp_for_data changes.
7497         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
7498         not after it.  Handle collapsed OMP_FOR loops, adjust for
7499         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
7500         (get_ws_args_for): Adjust extract_omp_for_data caller.
7501         (scan_omp_for): Handle collapsed OMP_FOR
7502         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7503         (lower_omp_single_simple): If libgomp function doesn't return
7504         boolean_type_node, add comparison of the return value with 0.
7505         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
7506         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
7507         (parallel_nesting_level): Rename to...
7508         (taskreg_nesting_level): ... this.
7509         (is_taskreg_ctx): New function.
7510         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
7511         of is_parallel_ctx.
7512         (execute_lower_omp): Rename parallel_nesting_level to
7513         taskreg_nesting_level.
7514         (expand_omp_parallel): Rename to...
7515         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
7516         Call omp_task_call for OMP_TASK regions.
7517         (expand_omp): Adjust caller, handle OMP_TASK.
7518         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
7519
7520         * bitmap.c (bitmap_default_obstack_depth): New variable.
7521         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
7522         if argument is NULL and bitmap_default_obstack is already initialized.
7523         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
7524         at the end.
7525         * matrix-reorg.c (matrix_reorg): Likewise.
7526
7527 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
7528
7529         * config/i386/i386.md (*indirect_jump): Macroize using P
7530         mode iterator.  Remove !TARGET_64BIT from insn constraints.
7531         (*tablejump_1): Ditto.
7532         (*indirect_jump_rex64): Remove insn pattern.
7533         (*tablejump_1_rex64): Ditto.
7534         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
7535         and eh_return_si insn patterns.
7536
7537 2008-06-06  Richard Guenther  <rguenther@suse.de>
7538
7539         * tree-ssa-structalias.c (merge_smts_into): Remove.
7540         (find_what_p_points_to): Do not bother to compute the
7541         points-to set for pt_anything pointers.
7542         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
7543         for pt_anything pointers is ok.
7544
7545 2008-06-06  Jan Hubicka  <jh@suse.cz>
7546
7547         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
7548
7549 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7550
7551         * cgraph.c: Fix typos in comments.
7552         (cgraph_availability_names): Fix string typo.
7553         * fold-const.c: Fix typos in comments.
7554         (fold_binary): Fix typo in warning.
7555         * genautomata.c: Fix typos in comments.
7556         (check_presence_pattern_sets): Fix typo in local variable.
7557         (output_description): Fix typo in output.
7558         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
7559         * hwint.h: Likewise.
7560         * matrix-reorg.c (check_allocation_function): Likewise.
7561         * omega.c (smooth_weird_equations): Likewise.
7562         * auto-inc-dec.c: Fix typos in comments.
7563         * bb-reorder.c: Likewise.
7564         * builtins.c: Likewise.
7565         * c-common.c: Likewise.
7566         * c-cppbuiltin.c: Likewise.
7567         * c-parser.c: Likewise.
7568         * c-pretty-print.c: Likewise.
7569         * cfgcleanup.c: Likewise.
7570         * cfgexpand.c: Likewise.
7571         * cfghooks.c: Likewise.
7572         * cfglayout.c: Likewise.
7573         * cfgloopmanip.c: Likewise.
7574         * cgraphunit.c: Likewise.
7575         * coverage.c: Likewise.
7576         * dbxout.c: Likewise.
7577         * df-byte-scan.c: Likewise.
7578         * df-core.c: Likewise.
7579         * df-problems.c: Likewise.
7580         * df-scan.c: Likewise.
7581         * dfp.c: Likewise.
7582         * dominance.c: Likewise.
7583         * domwalk.c: Likewise.
7584         * dse.c: Likewise.
7585         * dwarf2out.c: Likewise.
7586         * emit-rtl.c: Likewise.
7587         * et-forest.c: Likewise.
7588         * function.c: Likewise.
7589         * function.h: Likewise.
7590         * gcc.c: Likewise.
7591         * gcov-io.c: Likewise.
7592         * gcov.c: Likewise.
7593         * gcse.c: Likewise.
7594         * genattrtab.c: Likewise.
7595         * ggc-page.c: Likewise.
7596         * gimplify.c: Likewise.
7597         * gthr-lynx.h: Likewise.
7598         * haifa-sched.c: Likewise.
7599         * ipa-cp.c: Likewise.
7600         * ipa-inline.c: Likewise.
7601         * ipa-prop.h: Likewise.
7602         * ipa-pure-const.c: Likewise.
7603         * ipa-struct-reorg.c: Likewise.
7604         * ipa-struct-reorg.h: Likewise.
7605         * ipa-type-escape.c: Likewise.
7606         * ipa.c: Likewise.
7607         * loop-doloop.c: Likewise.
7608         * mips-tfile.c: Likewise.
7609         * mkmap-flat.awk: Likewise.
7610         * mkmap-symver.awk: Likewise.
7611         * modulo-sched.c: Likewise.
7612         * omp-low.c: Likewise.
7613         * optabs.c: Likewise.
7614         * optabs.h: Likewise.
7615         * opts.c: Likewise.
7616         * passes.c: Likewise.
7617         * postreload-gcse.c: Likewise.
7618         * postreload.c: Likewise.
7619         * predict.c: Likewise.
7620         * pretty-print.h: Likewise.
7621         * profile.c: Likewise.
7622         * protoize.c: Likewise.
7623         * ra-conflict.c: Likewise.
7624         * real.c: Likewise.
7625         * recog.c: Likewise.
7626         * regclass.c: Likewise.
7627         * regs.h: Likewise.
7628         * reload.c: Likewise.
7629         * rtl-error.c: Likewise.
7630         * rtlanal.c: Likewise.
7631         * scan.h: Likewise.
7632         * sched-rgn.c: Likewise.
7633         * see.c: Likewise.
7634         * stmt.c: Likewise.
7635         * target.h: Likewise.
7636         * tree-dfa.c: Likewise.
7637         * tree-eh.c: Likewise.
7638         * tree-flow-inline.h: Likewise.
7639         * tree-inline.c: Likewise.
7640         * tree-into-ssa.c: Likewise.
7641         * tree-loop-distribution.c: Likewise.
7642         * tree-nested.c: Likewise.
7643         * tree-parloops.c: Likewise.
7644         * tree-pass.h: Likewise.
7645         * tree-pretty-print.c: Likewise.
7646         * tree-profile.c: Likewise.
7647         * tree-scalar-evolution.c: Likewise.
7648         * tree-sra.c: Likewise.
7649         * tree-ssa-alias-warnings.c: Likewise.
7650         * tree-ssa-ccp.c: Likewise.
7651         * tree-ssa-coalesce.c: Likewise.
7652         * tree-ssa-dom.c: Likewise.
7653         * tree-ssa-dse.c: Likewise.
7654         * tree-ssa-forwprop.c: Likewise.
7655         * tree-ssa-live.c: Likewise.
7656         * tree-ssa-live.h: Likewise.
7657         * tree-ssa-loop-im.c: Likewise.
7658         * tree-ssa-loop-ivopts.c: Likewise.
7659         * tree-ssa-loop-niter.c: Likewise.
7660         * tree-ssa-loop-prefetch.c: Likewise.
7661         * tree-ssa-phiopt.c: Likewise.
7662         * tree-ssa-phiprop.c: Likewise.
7663         * tree-ssa-sccvn.c: Likewise.
7664         * tree-ssa-ter.c: Likewise.
7665         * tree-ssa-threadupdate.c: Likewise.
7666         * tree-ssa.c: Likewise.
7667         * tree-vect-analyze.c: Likewise.
7668         * tree-vect-transform.c: Likewise.
7669         * tree-vectorizer.c: Likewise.
7670         * tree-vn.c: Likewise.
7671         * tree-vrp.c: Likewise.
7672         * tree.c: Likewise.
7673         * tree.def: Likewise.
7674         * tree.h: Likewise.
7675         * unwind-dw2-fde.c: Likewise.
7676         * unwind.inc: Likewise.
7677         * value-prof.c: Likewise.
7678         * vmsdbgout.c: Likewise.
7679
7680 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
7681
7682         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
7683         always place FP constants in the TOC for TARGET_POWERPC64.
7684         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
7685
7686 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
7687
7688         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
7689         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
7690         enable for TARGET_E500_DOUBLE.
7691         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
7692         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
7693         floating-point modes like integer modes for E500 double.
7694         (rs6000_legitimate_offset_address_p): Likewise.
7695         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
7696         addressing for DDmode for E500 double.
7697         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
7698         modes as using 64-bits of registers for E500 double.
7699         (spe_build_register_parallel): Do not handle DDmode or TDmode.
7700         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
7701         specially for E500 double.
7702         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
7703         TDmode for E500 double.
7704         (rs6000_gimplify_va_arg): Only handle SDmode in registers
7705         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
7706         (rs6000_split_multireg_move): Do not handle TDmode specially for
7707         E500 double.
7708         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
7709         using 64-bit registers for E500 double.
7710         (emit_frame_save): Do not handle DDmode specially for E500 double.
7711         (gen_frame_mem_offset): Likewise.
7712         (rs6000_function_value): Do not call spe_build_register_parallel
7713         for DDmode or TDmode.
7714         (rs6000_libcall_value): Likewise.
7715         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
7716         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
7717         for E500 double.
7718
7719 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
7720
7721         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
7722         in comments.
7723
7724 2008-06-04  Junjie Gu <jgu@tensilica.com>
7725
7726         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
7727         comparison for frame pointers.
7728
7729 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
7730
7731         PR target/27386
7732         * config/avr/avr.h (PUSH_ROUNDING): Remove.
7733
7734 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
7735
7736         PR target/30243
7737         * builtins.c (expand_builtin_signbit): Don't take lowpart when
7738         register is already smaller or equal to required mode.
7739
7740 2008-06-04  Xinliang David Li  <davidxl@google.com>
7741
7742         * tree-call-cdce.c: New file.
7743         (cond_dead_built_in_calls): New static variable.
7744         (input_domain): New struct.
7745         (check_pow): New function.
7746         (check_builtin_call): Ditto.
7747         (check_target_format): Ditto.
7748         (is_call_dce_candidate): Ditto.
7749         (gen_one_condition): Ditto.
7750         (gen_conditions_for_domain): Ditto.
7751         (get_domain): Ditto.
7752         (gen_conditions_for_pow_cst_base): Ditto.
7753         (gen_conditions_for_pow_int_base): Ditto.
7754         (gen_conditions_for_pow): Ditto.
7755         (get_no_error_domain): Ditto.
7756         (gen_shrink_wrap_conditions): Ditto.
7757         (shrink_wrap_one_built_in_call): Ditto.
7758         (shink_wrap_conditional_dead_built_in_calls): Ditto.
7759         (tree_call_cdce): Ditto.
7760         (gate_call_cdce): Ditto.
7761         (pass_call_cdce): New gimple pass.
7762         * passes.c: (init_optimization_passes): New pass.
7763         * tree-pass.h: New pass declaration.
7764         * opts.c (decode_options): New flag setting.
7765         * common.opt: Add -ftree-builtin-call-dce flag.
7766         * Makefile.in: Add new source file.
7767         * tempvar.def: New tv_id.
7768         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
7769
7770 2008-06-04  Richard Guenther  <rguenther@suse.de>
7771
7772         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
7773         (is_call_clobbered): Always check var_ann->call_clobbered.
7774         (mark_call_clobbered): Always set var_ann->call_clobbered.
7775         (clear_call_clobbered): Always clear var_ann->call_clobbered.
7776         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
7777         (reset_alias_info): Clear call clobbering info on MTAGs and
7778         globals as well.
7779         (set_pt_anything): Set pt_global_mem.
7780         (create_tag_raw): Adjust comment.
7781         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
7782
7783 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
7784             Maxim Kuvyrkov  <maxim@codesourcery.com>
7785
7786         * config/m68k/m68k.opt (mxgot): New option.
7787         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
7788         (m68k_output_addr_const_extra): New.
7789         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
7790         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
7791         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
7792         * doc/invoke.texi (M680x0 Options): Document -mxgot.
7793
7794 2008-06-04  Richard Guenther  <rguenther@suse.de>
7795
7796         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
7797         negative or non-representable offsets.
7798
7799 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7800
7801         * config/i386/i386.c (ix86_gen_leave): New.
7802         (ix86_gen_pop1): Likewise.
7803         (ix86_gen_add3): Likewise.
7804         (ix86_gen_sub3): Likewise.
7805         (ix86_gen_sub3_carry): Likewise.
7806         (ix86_gen_one_cmpl2): Likewise.
7807         (ix86_gen_monitor): Likewise.
7808         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
7809         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7810         ix86_gen_one_cmpl2 and ix86_gen_monitor.
7811         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
7812         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
7813         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
7814         (ix86_expand_epilogue): Updated.
7815         (print_operand): Handle integer register operand for 'z'.
7816         (ix86_expand_strlensi_unroll_1): Likewise.
7817         (ix86_expand_strlen): Likewise.
7818         (ix86_expand_builtin): Likewise.
7819         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
7820         mov{q}/mov{l} and add{q}/add{l}.
7821
7822 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7823
7824         * config/i386/i386.md (P): New mode iterator.
7825         (SFmode push_operand splitter): Macroize DImode and SImode pushes
7826         using P mode iterator.
7827         (DFmode push_operand splitter): Ditto.
7828         (XFmode push_operand splitter): Ditto.
7829         (DFmode float_extend SFmode push_operand splitter): Ditto.
7830         (XFmode float_extend SFmode push_operand splitter): Do not generate
7831         SImode pushes for 64bit target.  Macroize Dimode and SImode
7832         pushes using P mode iterator.
7833         (XFmode float_extend DFmode push_operand splitter): Ditto.
7834
7835 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7836
7837         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
7838         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
7839         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
7840         return type to int.
7841         (ix86_call_abi_override): Remove check for call_used_regs.
7842
7843 2008-06-03  Richard Guenther  <rguenther@suse.de>
7844
7845         * tree-ssa-structalias.c (find_func_aliases): Add constraints
7846         for the lhs of calls if the return type contains pointers.
7847
7848 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7849
7850         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
7851         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
7852         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
7853         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
7854         of cfun and DEFAULT_ABI to deceide abi mode.
7855         (DEFAULT_ABI): New.
7856         (REG_PARM_STACK_SPACE): Removed.
7857         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
7858         (STACK_BOUNDARY): Use default target to deceide stack boundary.
7859         * config/i386/i386-protos.h (ix86_cfun_abi): New.
7860         (ix86_function_abi): Likewise.
7861         (ix86_function_type_abi): Likewise.
7862         (ix86_call_abi_override): Likewise.
7863         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
7864         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
7865         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
7866         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
7867         specific defines.
7868         (X86_64_REGPARM_MAX): New.
7869         (X86_64_SSE_REGPARM_MAX): New.
7870         (X64_REGPARM_MAX): New.
7871         (X64_SSE_REGPARM_MAX): New.
7872         (X86_32_REGPARM_MAX): New.
7873         (X86_32_SSE_REGPARM_MAX): New.
7874         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
7875         (ix86_function_regparm): Handle user calling abi.
7876         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
7877         by DEFAULT_ABI versus SYSV_ABI check.
7878         (ix86_reg_parm_stack_space): New.
7879         (ix86_function_type_abi): New.
7880         (ix86_call_abi_override): New.
7881         (ix86_function_abi): New.
7882         (ix86_cfun_abi): New.
7883         (init_cumulative_args): Call abi specific initialization.
7884         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
7885         (function_arg_64): Extend SSE_REGPARM_MAX check.
7886         (function_arg (): Remove TARGET_64BIT_MS_ABI.
7887         (ix86_pass_by_reference): Likewise.
7888         (ix86_function_value_regno_p): Likewise.
7889         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
7890         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
7891         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
7892         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
7893         (setup_incoming_varargs_64): Adjust regparm for call abi.
7894         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
7895         (ix86_va_start): Likewise.
7896         (ix86_gimplify_va_arg): Likewise.
7897         (ix86_expand_prologue): Likewise.
7898         (output_pic_addr_const): Likewise.
7899         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
7900         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
7901         (x86_output_mi_thunk): Likewise.
7902         (x86_function_profiler): Likewise.
7903         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
7904         (SYSV_ABI, MS_ABI): New constants.
7905         (DEFAULT_ABI): New.
7906         (init_regs): Add prototype of function in regclass.c file.
7907         (OVERRIDE_ABI_FORMAT): New.
7908         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
7909         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
7910         (OUTGOING_REG_PARM_STACK_SPACE): New.
7911         (ix86_reg_parm_stack_space): New prototype.
7912         (CUMULATIVE_ARGS): Add call_abi member.
7913         (machine_function): Add call_abi member.
7914         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
7915         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
7916
7917 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
7918
7919         PR target/34879
7920         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
7921         (avr_builtin_setjmp_frame_value): New function.
7922         * config/avr/avr.md (nonlocal_goto_receiver): Define.
7923         (nonlocal_goto): Define.
7924
7925 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
7926
7927         * config/mips/mips.c (mips_emit_loadgp): Return early if
7928         there is nothing do to, otherwise emit a blockage if
7929         !TARGET_EXPLICIT_RELOCS || crtl->profile.
7930         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
7931
7932 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7933
7934         * configure.ac: Drop unneeded backslash ending up in config.in.
7935         * acinclude.m4: Likewise.
7936         * config.in: Regenerate.
7937
7938 2008-05-26  Jan Hubicka  <jh@suse.cz>
7939
7940         * predict.c (maybe_hot_frequency_p): Break out of...
7941         (maybe_hot_bb_p): ... here.
7942         (maybe_hot_edge_p): New.
7943         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
7944         * basic-block.h (maybe_hot_edge_p): Declare.
7945
7946 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
7947
7948         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
7949         (*cmpfp_<mode>_cc): Ditto.
7950         (*fp_jcc_8<mode>_387): Ditto.
7951         (*fop_<MODEF:mode>_2_i387): Ditto.
7952         (*fop_<MODEF:mode>_3_i387): Ditto.
7953         (*fop_xf_2_i387): Ditto.
7954         (*fop_xf_3_i387): Ditto.
7955
7956 2008-06-02  Tomas Bily  <tbily@suse.cz>
7957
7958         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
7959
7960 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7961
7962         * config/mips/mips.c (mips_valid_offset_p): New function.
7963         (mips_valid_lo_sum_p): Likewise.
7964         (mips_classify_address): Use them.
7965         (mips_force_address): New function.
7966         (mips_legitimize_address): Use it.
7967         * config/mips/mips.md (MOVE128): New mode iterator.
7968         (movtf): Require TARGET_64BIT.  Remove empty strings.
7969         (*movtf_internal): Rename to...
7970         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
7971         of "R" and use {,fp}{load,store} attributes instead of "multi".
7972         Use a separate define_split.
7973         (*movtf_mips16): New pattern.
7974
7975 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7976
7977         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
7978         * config/mips/mips.c (mips_expand_before_return): New function.
7979         (mips_expand_epilogue): Call it.
7980         * config/mips/mips.md (return): Turn into a define_expand.
7981         (*return): New insn.
7982
7983 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7984
7985         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
7986         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
7987         functions.  Do not emit uses and clobbers of CONCATs; individually
7988         use and clobber their operands.
7989         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
7990         gen_clobber, emit_use and gen_use.
7991         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7992         (expand_builtin_return): Likewise.
7993         * cfgbuild.c (count_basic_blocks): Likewise.
7994         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
7995         * explow.c (emit_stack_restore): Likewise.
7996         * expmed.c (extract_bit_field_1): Likewise.
7997         * expr.c (convert_move, emit_move_complex_parts): Likewise.
7998         (emit_move_multi_word, store_constructor): Likewise.
7999         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
8000         (thread_prologue_and_epilogue_insns): Likewise.
8001         * lower-subreg.c (resolve_simple_move): Likewise.
8002         * optabs.c (widen_operand, expand_binop): Likewise.
8003         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
8004         * reload.c (find_reloads): Likewise.
8005         * reload1.c (eliminate_regs_in_insn): Likewise.
8006         * stmt.c (expand_nl_goto_receiver): Likewise.
8007         * config/alpha/alpha.md (builtin_longjmp): Likewise.
8008         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
8009         * config/arm/arm.c (arm_load_pic_register): Likewise.
8010         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
8011         * config/arm/arm.md (untyped_return): Likewise.
8012         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
8013         * config/avr/avr.c (expand_prologue): Likewise.
8014         * config/bfin/bfin.c (do_unlink): Likewise.
8015         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
8016         * config/cris/cris.c (cris_expand_prologue): Likewise.
8017         * config/darwin.c (machopic_indirect_data_reference): Likewise.
8018         (machopic_legitimize_pic_address): Likewise.
8019         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
8020         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
8021         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
8022         (ix86_expand_convert_uns_didf_sse): Likewise.
8023         (ix86_expand_vector_init_general): Likewise.
8024         * config/ia64/ia64.md (eh_epilogue): Likewise.
8025         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
8026         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
8027         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
8028         (config/iq2000/iq2000.c): Likewise.
8029         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
8030         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8031         (builtin_longjmp): Likewise.
8032         * config/mn10300/mn10300.md (call, call_value): Likewise.
8033         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
8034         * config/pdp11/pdp11.md (abshi2): Likewise.
8035         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8036         * config/s390/s390.c (s390_emit_prologue): Likewise.
8037         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
8038         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
8039         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
8040         * config/sh/sh.c (prepare_move_operands): Likewise.
8041         (output_stack_adjust, sh_expand_epilogue): Likewise.
8042         (sh_set_return_address, sh_expand_t_scc): Likewise.
8043         * config/sparc/sparc.c (load_pic_register): Likewise.
8044         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
8045         * config/spu/spu.c (spu_expand_epilogue): Likewise.
8046         * config/v850/v850.c (expand_epilogue): Likewise.
8047
8048 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
8049
8050         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
8051         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
8052         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
8053         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
8054         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
8055         stack pointer register.
8056         (output_movhi): Remove code for interrupt specific writing to the
8057         stack pointer register.
8058
8059 2008-05-31  Richard Guenther  <rguenther@suse.de>
8060
8061         PR tree-optimization/34244
8062         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
8063         (tree_expr_nonzero_warnv_p): Likewise.
8064         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
8065         ssa_name_nonnegative_p.
8066         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
8067         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
8068         not tree_expr_nonzero_warnv_p.
8069
8070         PR tree-optimization/36262
8071         Revert
8072         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
8073
8074         PR tree-optimization/34244
8075         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
8076         (record_numbers_of_iterations): New function.
8077         (execute_vrp): Cache the numbers of iterations of loops.
8078         * tree-scalar-evolution.c (scev_reset_except_niters):
8079         New function.
8080         (scev_reset): Use scev_reset_except_niters.
8081         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
8082
8083 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
8084
8085         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8086         __WORKAROUND_RETS when appropriate.
8087
8088 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
8089
8090         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
8091         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
8092         mode iterator.
8093         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
8094         *fop_df_comm_sse insn patterns using MODEF mode iterator.
8095         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
8096         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
8097         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
8098         *fop_df_1_mixed insn patterns using MODEF mode iterator.
8099         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
8100         *fop_df_1_sse insn patterns using MODEF mode iterator.
8101         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
8102         *fop_df_1_i387 insn patterns using MODEF mode iterator.
8103         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
8104         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
8105         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
8106         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
8107         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
8108         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
8109         (*fop_xf_4_i387): Use <MODE> for mode attribute.
8110         (*fop_xf_5_i387): Ditto.
8111         (*fop_xf_6_i387): Ditto.
8112
8113 2008-05-30  Richard Guenther  <rguenther@suse.de>
8114
8115         * builtins.c (build_string_literal): Avoid generating
8116         a non-gimple_val result.
8117
8118 2008-05-30  DJ Delorie  <dj@redhat.com>
8119
8120         * exec-tool.in: Use an environment variable (private) instead of a
8121         file (shared) as a semaphore, so as to not break parallel builds.
8122
8123 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
8124
8125         * optabs.c (maybe_encapsulate_block): Remove.
8126         (emit_libcall_block): Adjust accordingly.
8127         * optabs.h (maybe_encapsulate_block): Remove prototype.
8128
8129         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
8130         Don't use maybe_encapsulate_block.
8131
8132 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
8133
8134         * config/rs6000/rs6000.c (rs6000_legitimize_address,
8135         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
8136         rtx is a SYMBOL_REF before calling get_pool_constant.
8137
8138 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8139
8140         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
8141
8142 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
8143
8144         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
8145         rather than OS names to choose INO_T_EQ definition.
8146         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
8147         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
8148
8149 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
8150
8151         PR target/36348
8152         * config/darwin-f.c: New.
8153         * config/t-darwin: Added rule to build darwin-f.o.
8154         * config.gcc: Defined new variable, fortran_target_objs.
8155         (*-*-darwin*): Set fortran_target_objs.
8156         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
8157         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
8158         * configure: Regenerated.
8159
8160 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
8161
8162         PR target/35771
8163         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
8164         canonical type if needed.
8165
8166 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
8167
8168         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
8169
8170 2008-05-29  Richard Guenther  <rguenther@suse.de>
8171
8172         PR tree-optimization/36343
8173         PR tree-optimization/36346
8174         PR tree-optimization/36347
8175         * tree-flow.h (clobber_what_p_points_to): Declare.
8176         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
8177         pointed-to variable is dereferenced is irrelevant to whether
8178         the pointer can access the pointed-to variable.
8179         (clobber_what_p_points_to): New function.
8180         * tree-ssa-alias.c (set_initial_properties): Use it.
8181         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
8182         call clobber check for NMTs.
8183
8184 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
8185
8186         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
8187         for printing gcov_type.
8188
8189 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
8190
8191         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
8192         and the eh region information.
8193         * value-prof.c (gimple_move_stmt_histograms): New function.
8194         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
8195
8196 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
8197
8198         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
8199
8200 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
8201
8202         * value-prof.c (tree_ic_transform): Print counts.
8203         * tree-profile.c (tree_gen_ic_func_profiler):
8204         Clear __gcov_indreict_call_callee variable to avoid misattribution
8205         of the profile.
8206
8207 2008-05-28  Rafael Espindola  <espindola@google.com>
8208
8209         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
8210         invalid sharing.
8211
8212 2008-05-28  Richard Guenther  <rguenther@suse.de>
8213
8214         PR tree-optimization/36339
8215         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
8216         and clobbering code out of the loop.
8217
8218 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8219
8220         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
8221         letters defined.
8222
8223         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
8224         s390_contiguous_bitmask_p, s390_symref_operand_p,
8225         s390_check_symref_alignment, s390_reload_larl_operand,
8226         s390_reload_symref_address): New functions.
8227         (s390_branch_condition_mnemonic): Support compare and branch
8228         instructions.
8229         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
8230         and 'W' constraints.
8231         (s390_secondary_reload): Add secondary reloads for unaligned
8232         symbol refs or symbol refs to floating point or QI/TI mode
8233         integer values.
8234         (legitimate_address_p): Accept symbol references as addresses.
8235         (s390_expand_insv): Use rotate and insert selected bits
8236         instruction for insv when building for z10.
8237         (print_operand_address): Handle symbol ref addresses.
8238         (print_operand): Output modifier 'c' added for signed byte values.
8239         (s390_encode_section_info): Mark symbol refs with
8240         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
8241
8242         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
8243         (length attribute): RRF, RRR have 4 byte length.
8244         (FPALL, INTALL): New mode iterators added.
8245         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
8246         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
8247         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
8248         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
8249         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
8250         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
8251         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
8252         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
8253         instructions.
8254         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
8255         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
8256         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
8257         reload<INTALL:mode><P:mode>_toreg_z10,
8258         reload<FPALL:mode><P:mode>_tomem_z10,
8259         reload<FPALL:mode><P:mode>_toreg_z10,
8260         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
8261         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
8262         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
8263         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
8264         definition.
8265         (movmem, clrmem, cmpmem): New splitters added.
8266
8267         * config/s390/predicates.md (larl_operand): Use
8268         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
8269         SYMBOL_REF_ALIGN1_P.
8270         (s390_signed_integer_comparison,
8271         s390_unsigned_integer_comparison): New predicates.
8272
8273         * config/s390/s390-protos.h (s390_check_symref_alignment,
8274         s390_contiguous_bitmask_p, s390_reload_larl_operand,
8275         s390_reload_symref_address,
8276         s390_compare_and_branch_condition_mask): Prototypes added.
8277
8278         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
8279         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
8280         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
8281
8282 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8283
8284         * config/s390/s390.c (z10_cost): New cost function for z10.
8285         (s390_handle_arch_option, override_options): Support -march=z10 switch.
8286         (s390_issue_rate): Adjust issue rate for z10.
8287         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
8288         (processor_flags): Add PF_Z10.
8289         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
8290         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
8291         * gcc/config.gcc: Add z10.
8292
8293 2008-05-28  Richard Guenther  <rguenther@suse.de>
8294
8295         PR tree-optimization/36291
8296         * tree-flow. h (struct gimple_df): Remove var_anns member.
8297         * tree-flow-inline.h (gimple_var_anns): Remove.
8298         (var_ann): Simplify.
8299         * tree-dfa.c (create_var_ann): Simplify.
8300         (remove_referenced_var): Clear alias info from var_anns of globals.
8301         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
8302         (delete_tree_ssa): Clear alias info from var_anns of globals.
8303         Do not free var_anns.
8304         (var_ann_eq): Remove.
8305         (var_ann_hash): Likewise.
8306
8307 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
8308
8309         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
8310         and loongson2f entries.
8311         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
8312         * config/mips/mips.h (processor_type): Add Loongson-2E
8313         and Loongson-2F entries.
8314         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
8315         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
8316         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
8317         * doc/invoke.texi (MIPS Options): Document loongson2e
8318         and loongson2f processor names.
8319
8320 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8321
8322         PR target/35767
8323         PR target/35771
8324         * config/i386/i386.c (ix86_function_arg_boundary): Use
8325         alignment of canonical type.
8326         (ix86_expand_vector_move): Check unaligned memory access for
8327         all SSE modes.
8328
8329 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8330
8331         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
8332         Moved to the front of file.
8333
8334 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
8335             H.J. Lu  <hongjiu.lu@intel.com>
8336
8337         * dwarf2out.c (current_fde): New.
8338         (add_cfi): Use it.
8339         (lookup_cfa:): Likewise.
8340         (dwarf2out_end_epilogue): Likewise.
8341         (dwarf2out_note_section_used): Likewise.
8342
8343 2008-05-27  Michael Matz  <matz@suse.de>
8344
8345         PR c++/27975
8346         * c.opt (Wenum-compare): New warning option.
8347         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
8348
8349 2008-05-27  Michael Matz  <matz@suse.de>
8350
8351         PR middle-end/36326
8352         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
8353         non-BLKmode types.
8354         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
8355         into memory as tail calls.
8356
8357 2008-05-27  Richard Guenther  <rguenther@suse.de>
8358
8359         PR tree-optimization/36339
8360         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
8361         pointers cause all addressable variables to be call clobbered.
8362
8363 2008-05-27  Richard Guenther  <rguenther@suse.de>
8364
8365         PR tree-optimization/36245
8366         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
8367
8368 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8369
8370         * config/s390/s390.md: Replace all occurences of the 'm'
8371         constraint with 'RT'.
8372
8373 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8374
8375         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
8376         definitions added.
8377         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
8378         "*movdi_64".
8379         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
8380         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
8381         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
8382
8383 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8384
8385         * reload.c: (find_reloads): Skip alternatives according to the
8386         "enabled" attribute. Constify the constraint variable.
8387         * recog.c (get_attr_enabled): Add default implementation.
8388         (extract_insn): Set the alternative_enabled_p array
8389         in the recog_data struct.
8390         (preprocess_constraints, constrain_operands): Skip
8391         alternatives according to the "enabled" attribute
8392         * recog.h (struct recog_data): New field alternative_enabled_p.
8393         (skip_alternative): New inline function.
8394         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
8395         (record_reg_classes): Skip alternative according to the
8396         "enabled" attribute.
8397
8398         * doc/md.texi: Add documention for the "enabled" attribute.
8399
8400 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8401
8402         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
8403         * postreload.c (reload_cse_simplify_operands): Replace 'm'
8404         constraint with TARGET_MEM_CONSTRAINT.
8405         * recog.c (asm_operand_ok, preprocess_constraints,
8406         constrain_operands): Likewise.
8407         * regclass.c (record_reg_classes): Likewise.
8408         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
8409         * reload1.c (maybe_fix_stack_asms): Likewise.
8410         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8411         * recog.h: Adjust comment.
8412         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
8413         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
8414         * doc/md.texi: Add a note to description of 'm' constraint.
8415         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
8416
8417 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8418
8419         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
8420         that the bitfield is of integral type before testing its precision.
8421
8422 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8423             Sa Liu  <saliu@de.ibm.com>
8424
8425         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
8426         __modti3, __udivti3, __umodti3 and __udivmodti4.
8427         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
8428         that implement TImode mul and div functions.
8429         * config/spu/multi3.c: New. Implement __multi3.
8430         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
8431         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
8432         functions on SPU.
8433
8434 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
8435
8436         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
8437         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
8438         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
8439         tls_sysv_suffix): New mode and mode attribute iterators.
8440         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
8441         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
8442         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
8443         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
8444         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
8445         iterators.
8446
8447 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8448
8449         PR tree-optimization/36329
8450         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
8451         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
8452         * cgraphbuild.c (initialize_inline_failed): Use the latter
8453         macro in lieu of the former.
8454         * ipa-inline.c (cgraph_mark_inline): Likewise.
8455         (cgraph_decide_inlining_of_small_function): Likewise.
8456         (cgraph_decide_inlining): Likewise.
8457         (cgraph_decide_inlining_incrementally): Likewise.
8458
8459 2008-05-26  Tristan Gingold  <gingold@adacore.com>
8460             Anatoly Sokolov  <aesok@post.ru>
8461
8462         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
8463         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
8464         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
8465         optimization for 'avr6' architecture.
8466
8467 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
8468
8469         PR target/34932
8470         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
8471
8472 2008-05-26  Richard Guenther  <rguenther@suse.de>
8473
8474         * tree-ssa-sccvn.c (expr_has_constants): Declare.
8475         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
8476
8477 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
8478
8479         PR middle-end/36253
8480         * caller-save.c (insert_restore): Verify alignment of spill space.
8481         (insert_save): Likewise.
8482         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
8483         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
8484         (STACK_SLOT_ALIGNMENT): Likewise.
8485         * function.c (LOCAL_ALIGNMENT): Removed.
8486         (get_stack_local_alignment): New.
8487         (assign_stack_local): Use it.  Set alignment on stack slot.
8488         (assign_stack_temp_for_type): Use get_stack_local_alignment.
8489         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
8490         (STACK_SLOT_ALIGNMENT): New.
8491         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
8492         stack slot in XFmode.
8493
8494         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
8495
8496 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
8497
8498         PR/36321
8499         * config/i386/i386.md (allocate_stack_worker_64): Make sure
8500         argument operand in rax isn't removed.
8501
8502 2008-05-26  Richard Guenther  <rguenther@suse.de>
8503
8504         PR middle-end/36300
8505         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
8506         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
8507
8508 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8509
8510         PR bootstrap/36331
8511         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
8512
8513 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
8514
8515         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
8516         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
8517
8518 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8519
8520         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
8521         build a trampoline if we don't want one.
8522         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
8523         return zero for nested functions if we don't want a trampoline.
8524
8525 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8526
8527         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
8528
8529 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8530
8531         PR fortran/18428
8532         * c.opt: Removed undocumented option '-lang-fortran'.
8533         * c-common.h: Removed global variable 'lang_fortran'.
8534         * c-opts.c (c_common_handle_option): Removed code to handle
8535         option '-lang-fortran'. Updated includes.
8536         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
8537         definition of '__GFORTRAN__'.
8538         (define__GNUC__): Reimplemented to use BASEVER and
8539         cpp_define_formatted.
8540         (builtin_define_with_value_n): Removed.
8541         * c-incpath.h: Renamed to ...
8542         * incpath.h: ... this.
8543         * c-incpath.c: Renamed to ...
8544         * incpath.c: ... this. Updated includes.
8545         * fix-header.c: Updated includes.
8546         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
8547         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
8548         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
8549
8550 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         * tree.h: Update the table of flags used on tree nodes.
8553         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
8554         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
8555         (FORCED_LABEL): Add access check.
8556         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
8557         (ASM_INPUT_P): Likewise.
8558         (ASM_VOLATILE_P): Likewise.
8559         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
8560         (OMP_SECTION_LAST): Access private_flag directly.
8561         (OMP_RETURN_NOWAIT): Likewise.
8562         (OMP_PARALLEL_COMBINED): Likewise.
8563         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
8564         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
8565         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
8566         deprecated_flag directly.
8567
8568 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8569
8570         * final.c (frame_pointer_needed): Removed.
8571         * flags.h (frame_pointer_needed): Likewise.
8572
8573         * function.h (rtl_data): Add frame_pointer_needed.
8574         (frame_pointer_needed): New.
8575
8576 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
8577
8578         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
8579
8580 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
8581
8582         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
8583         SRC is a REG.
8584
8585 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
8586
8587         * c-common.c (strip_array_types): Move function to..
8588         * tree.c: ..here.
8589         (get_inner_array_type): Delete.
8590         * c-common.h (strip_array_types): Move declaration to..
8591         * tree.h: ..here.
8592         (get_inner_array_type): Delete.
8593         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
8594         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8595         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8596         * config/pa/pa.c (emit_move_sequence): Likewise.
8597
8598 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8599
8600         * config/i386/i386.md (*sse_prologue_save_insn): Set length
8601         attribute to 34.
8602
8603 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
8604
8605         * function.c: Include target hook for nonlocal_goto frame value.
8606
8607 2008-05-24  Richard Guenther  <rguenther@suse.de>
8608
8609         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
8610         variable can be only accessed through a pointer or a union.
8611
8612 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8613
8614         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
8615         * doc/extend.texi: Likewise.
8616
8617 2008-05-23  DJ Delorie  <dj@redhat.com>
8618
8619         * config/m32c/jump.md (untyped_call): Add.
8620
8621         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
8622         for A24 to PSImode.
8623         (m32c_address_cost): Detail costs for indirect offsets.
8624
8625 2008-05-23  Rafael Espindola  <espindola@google.com>
8626
8627         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
8628         if a node is a SUBREG.
8629         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
8630         is a SUBREG.
8631
8632 2008-05-23  Paul Brook  <paul@codesourcery.com>
8633             Carlos O'Donell  <carlos@codesourcery.com>
8634
8635         * doc/extend.texi: Clarify use of __attribute__((naked)).
8636         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
8637         * target.h (gcc_target): Add allocate_stack_slots_for_args.
8638         * function.c (use_register_for_decl): Use
8639         targetm.calls.allocate_stack_slots_for_args.
8640         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
8641         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
8642         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
8643
8644 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
8645
8646         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
8647
8648 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
8649
8650         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
8651         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
8652         is only rounded once.
8653
8654 2008-05-23  Richard Guenther  <rguenther@suse.de>
8655
8656         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
8657
8658 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
8659             Jakub Jelinek  <jakub@redhat.com>
8660
8661         PR target/36079
8662         * configure.ac: Handle --enable-cld.
8663         * configure: Regenerated.
8664         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
8665         * config/i386/i386.h (struct machine_function): Add needs_cld field.
8666         (ix86_current_function_needs_cld): New define.
8667         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
8668         (cld): New isns pattern.
8669         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
8670         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
8671         * config/i386/i386.opt (mcld): New option.
8672         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
8673         TARGET_CLD and ix86_current_function_needs_cld.
8674         (override_options): Use -mcld by default for 32-bit code if
8675         USE_IX86_CLD.
8676
8677         * doc/install.texi (Options specification): Document --enable-cld.
8678         * doc/invoke.texi (Machine Dependent Options)
8679         [i386 and x86-64 Options]: Add -mcld option.
8680         (Intel 386 and AMD x86-64 Options): Document -mcld option.
8681
8682 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
8683         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
8684         (return_in_memory_64): Likewise.
8685         (return_in_memory_ms_64): Likewise.
8686
8687 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8688
8689         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
8690         * builtins.c (fold_builtin_fpclassify): New.
8691         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
8692         * builtins.def (BUILT_IN_FPCLASSIFY): New.
8693         * c-common.c (handle_type_generic_attribute): Adjust to accept
8694         fixed arguments before an elipsis.
8695         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
8696         * doc/extend.texi: Document __builtin_fpclassify.
8697
8698 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
8699
8700         * omp-low.c (gate_expand_omp_ssa): Remove.
8701         (pass_expand_omp_ssa): Remove.
8702         (gate_expand_omp): Do not check for flag_openmp_ssa.
8703         * common.opt (-fopenmp-ssa): Remove.
8704         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
8705
8706 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
8707
8708         * config/sh/sh.opt (mfixed-range): New option.
8709         * config/sh/sh-protos.h (sh_fix_range): Declare.
8710         * config/sh/sh.c (sh_fix_range): New function.
8711         * config/sh/sh.h (sh_fixed_range_str): Declare.
8712         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
8713         is not empty.
8714         * doc/invoke.texi (SH Options): Document -mfixed-range.
8715
8716 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
8717
8718         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
8719         it before the redeclaration.
8720
8721 2008-05-22  Anatoly Sokolov <aesok@post.ru>
8722
8723         * config/avr/avr.c (get_sequence_length): Add new function.
8724         (expand_prologue, expand_epilogue): Remove duplicate code.
8725
8726 2008-05-22  Rafael Espindola  <espindola@google.com>
8727
8728         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
8729         sharing.
8730
8731 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8732
8733         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
8734         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
8735
8736         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
8737         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
8738         (vect_update_misalignment_for_peel): Likewise.
8739         (vector_alignment_reachable_p): Likewise.
8740         * tree-vect-transform.c (vectorizable_load): Likewise.
8741         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
8742         (get_vectype_for_scalar_type): Pass mode of scalar_type
8743         to UNITS_PER_SIMD_WORD.
8744
8745         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
8746         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
8747         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8748         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8749         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8750
8751 2008-05-22  Ira Rosen  <irar@il.ibm.com>
8752
8753         PR tree-optimization/36293
8754         * tree-vect-transform.c (vect_transform_strided_load): Don't check
8755         if the first load must be skipped because of a gap.
8756
8757 2008-05-22  Richard Guenther  <rguenther@suse.de>
8758
8759         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
8760         more cases of offset disambiguation that is possible if
8761         strict-aliasing rules apply.
8762         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
8763         for basic offset and type-based disambiguation.
8764
8765 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8766
8767         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
8768         ix86_expand_vector_set on V16QImode for SSE4.1.
8769
8770 2008-05-21  Tom Tromey  <tromey@redhat.com>
8771
8772         * c.opt (Wimport): Mark as undocumented.
8773         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
8774         -Wno-import.
8775         (Warning Options): Likewise.
8776         * doc/cppopts.texi: Don't mention -Wimport.
8777
8778 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
8779
8780         PR tree-optimization/36287
8781         PR tree-optimization/36286
8782         * lambda-code.c (build_access_matrix): Do not use the loop->num
8783         for computing the number of induction variables: use the loop depth
8784         instead.
8785
8786 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
8787
8788         PR/36280
8789         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
8790         option -f(no-)leading-underscore.
8791
8792 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8793
8794         * config/i386/i386.c (ix86_expand_vector_init_general): Use
8795         GET_MODE_NUNITS (mode).
8796
8797 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
8798
8799         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
8800         (-mmulhw): Add 464 to description.
8801         (-mdlmzb): Likewise.
8802         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
8803         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
8804         464fp entries.
8805         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
8806         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
8807         * config/rs6000/rs6000.md: Update comments for 464.
8808
8809 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
8810
8811         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
8812
8813 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8814
8815         * config/i386/sse.md (vec_extractv4sf): Removed.
8816         (vec_extractv2df): Likewise.
8817         (vec_extractv2di): Likewise.
8818         (vec_extractv4si): Likewise.
8819         (vec_extractv8hi): Likewise.
8820         (vec_extractv16qi): Likewise.
8821         (vec_extract<mode>): New.
8822
8823 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8824
8825         * config/i386/sse.md (vec_setv4sf): Removed.
8826         (vec_setv2df): Likewise.
8827         (vec_setv2di): Likewise.
8828         (vec_setv4si): Likewise.
8829         (vec_setv8hi): Likewise.
8830         (vec_setv16qi): Likewise.
8831         (vec_set<mode>): New.
8832
8833 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8834
8835         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
8836         goto for vec_concat and vec_interleave.
8837
8838 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8839
8840         * config/i386/sse.md (vec_initv4sf): Removed.
8841         (vec_initv2df): Likewise.
8842         (vec_initv2di): Likewise.
8843         (vec_initv4si): Likewise.
8844         (vec_initv8hi): Likewise.
8845         (vec_initv16qi): Likewise.
8846         (vec_init<mode>): New.
8847
8848 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
8849
8850         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
8851
8852 2008-05-21  Tom Tromey  <tromey@redhat.com>
8853
8854         * ggc-zone.c (lookup_page_table_if_allocated): New function.
8855         (zone_find_object_offset): Likewise.
8856         (gt_ggc_m_S): Likewise.
8857         (highest_bit): Likewise.
8858         * ggc-page.c (gt_ggc_m_S): New function.
8859         * stringpool.c (string_stack): Remove.
8860         (init_stringpool): Update.
8861         (ggc_alloc_string): Use ggc_alloc.
8862         (maybe_delete_ident): New function.
8863         (ggc_purge_stringpool): Likewise.
8864         (gt_ggc_m_S): Remove.
8865         * ggc-common.c (ggc_protect_identifiers): New global.
8866         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
8867         ggc_protect_identifiers.
8868         * ggc.h (ggc_protect_identifiers): Declare.
8869         (gt_ggc_m_S): Update.
8870         (ggc_purge_stringpool): Declare.
8871         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
8872         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
8873         special case.
8874         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
8875
8876 2008-05-21  David S. Miller  <davem@davemloft.net>
8877
8878         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
8879         tmake_file.
8880
8881 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8882
8883         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
8884         once finished.
8885
8886 2008-05-20  David Daney  <ddaney@avtrex.com>
8887
8888         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
8889         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
8890         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8891         UNSPEC_UPDATE_GOT_VERSION): Renumber.
8892         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
8893         (atomic_hiqi_op): New define_code_iterator.
8894         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
8895         mips_expand_compare_and_swap_12.
8896         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
8897         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
8898         (sync_<optab><mode>, sync_old_<optab><mode>,
8899         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8900         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
8901         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
8902         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
8903         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
8904         (test_and_set_12): New insn.
8905         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
8906         sync_new_<optab><mode>, sync_old_nand<mode>,
8907         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
8908         clobber to operand 0 for SI and DI mode insns.
8909         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
8910         mips_gen_fn_4): New typedefs.
8911         (mips_gen_fn_ptrs): Define new union type.
8912         (mips_expand_compare_and_swap_12): Remove declaration.
8913         (mips_expand_atomic_qihi): Declare function.
8914         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
8915         (mips_expand_atomic_qihi): ... this.  Use new generator function
8916         parameter.
8917         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
8918         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
8919         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
8920         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
8921         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
8922         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
8923         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
8924         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
8925         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
8926         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
8927         New macros.
8928
8929 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8930
8931         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
8932         the missing break.
8933
8934 2008-05-20  Anatoly Sokolov <aesok@post.ru>
8935
8936         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
8937         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
8938         (avr_attribute_table): Add 'OS_main' function attribute.
8939         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
8940         functions with 'OS_main' attribute.
8941
8942 2008-05-20  Richard Guenther  <rguenther@suse.de>
8943
8944         PR tree-optimization/35204
8945         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
8946         helper, split out from ...
8947         (DFS): ... here.  Make the DFS walk non-recursive.
8948
8949 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
8950             Jan Sjodin  <jan.sjodin@amd.com>
8951
8952         PR tree-optimization/36181
8953         * tree-parloops.c (loop_has_vector_phi_nodes): New.
8954         (parallelize_loops): Don't parallelize when the loop has vector
8955         phi nodes.
8956
8957 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
8958             Sebastian Pop  <sebastian.pop@amd.com>
8959
8960         * tree-loop-linear.c (gather_interchange_stats): Look in the access
8961         matrix, and never look at the tree representation of the memory
8962         accesses.
8963         (linear_transform_loops): Computes parameters and access matrices.
8964         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
8965         when fails.
8966         (access_matrix_get_index_for_parameter): New.
8967         * tree-data-ref.h (struct access_matrix): New.
8968         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
8969         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
8970         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
8971         am_vector_index_for_loop): New.
8972         (struct data_reference): Add field access_matrix.
8973         (DR_ACCESS_MATRIX): New.
8974         (compute_data_dependences_for_loop): Update declaration.
8975         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
8976         * lambda.h (lambda_vector_vec_p): Declared.
8977         * lambda-code.c: Depend on pointer-set.h.
8978         (lambda_collect_parameters_from_af, lambda_collect_parameters,
8979         av_for_af_base, av_for_af, build_access_matrix,
8980         lambda_compute_access_matrices): New.
8981         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
8982
8983 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
8984
8985         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
8986         $SOURCEDIR/include.
8987
8988 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
8989             Sebastian Pop  <sebastian.pop@amd.com>
8990
8991         PR tree-optimization/36206
8992         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
8993         FOLD_CONVERSIONS.
8994         (instantiate_scev_1): Rename flags to fold_conversions.
8995         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
8996         outeside instantiation_loop.
8997         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
8998         (evolution_function_is_affine_or_constant_p): Removed.
8999         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
9000         instantiate_scev.
9001         (analyze_siv_subscript): Pass in the loop nest number.
9002         Call evolution_function_is_affine_in_loop instead of
9003         evolution_function_is_affine_p.
9004         (analyze_overlapping_iterations): Pass in the loop nest number.
9005
9006 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
9007             Sebastian Pop  <sebastian.pop@amd.com>
9008
9009         PR tree-optimization/36206
9010         * tree-chrec.h (chrec_fold_op): New.
9011         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
9012         and other trees.
9013
9014 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
9015
9016         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
9017         (DIRS_EQ): New.
9018         (remove_duplicates): Do not set inode on non-inode systems.
9019         Use DIRS_EQ.
9020
9021 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
9022
9023         * config.gcc (tm_file): Update comments about relative pathnames.
9024
9025 2008-05-20  Richard Guenther  <rguenther@suse.de>
9026
9027         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
9028         * tree-ssa-sccvn.c (process_scc): Likewise.
9029         * tree-ssa-sink.c (execute_sink_code): Likewise.
9030         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9031         * tree-vrp.c (process_assert_insertions): Likewise.
9032         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
9033         (perform_tree_ssa_dce): Likewise.
9034         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9035         (dump_dominator_optimization_stats): Likewise.
9036         * tree-vectorizer.c (vectorize_loops): Likewise.
9037
9038 2008-05-20  Richard Guenther  <rguenther@suse.de>
9039
9040         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
9041
9042 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
9043
9044         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
9045         (ix86_i386elf_return_in_memory): Likewise.
9046         (ix86_i386interix_return_in_memory): Likewise.
9047         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
9048         (SUBTARGET_RETURN_IN_MEMORY): New.
9049         * config/i386/i386elf.h: Likewise.
9050         * config/i386/ptx4-i.h: Likewise.
9051         * config/i386/sol2-10.h: Likewise.
9052         * config/i386/sysv4.h: Likewise.
9053         * config/i386/vx-common.h: Likewise.
9054         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
9055         * config/i386/i386.c (ix86_return_in_memory): Made static and
9056         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
9057         (ix86_i386elf_return_in_memory): Removed.
9058         (ix86_i386interix_return_in_memory): Removed.
9059         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
9060         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
9061
9062 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
9063
9064         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
9065
9066 2008-05-19  Xinliang David Li  <davidxl@google.com>
9067
9068         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
9069         * opts.c: Ditto.
9070         * common.opt: Ditto.
9071         * doc/invoke.texi: Ditto.
9072
9073 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9074
9075         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
9076         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
9077
9078 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9079
9080         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
9081         sizes of operand array from 8/4 to 4/2.
9082         (ix86_expand_vector_init_general): Change size of operand array
9083         from 32 to 16.  Remove op0, op1 and half_mode.
9084
9085 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9086
9087         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
9088         (ix86_expand_vector_init_interleave): Likewise.
9089         (ix86_expand_vector_init_general): Use them.  Assert
9090         word_mode == SImode when n_words == 4.
9091
9092 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
9093
9094         * config/i386/i386.c (ix86_secondary_reload): New static function.
9095         (TARGET_SECONDARY_RELOAD): New define.
9096         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
9097         * config/i386/i386.md (reload_outqi): Remove.
9098
9099 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9100
9101         PR middle-end/35509
9102         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
9103         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
9104         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
9105         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
9106         (fold_builtin_1): Likewise.
9107         * builtins.def (BUILT_IN_ISINF_SIGN): New.
9108         c-common.c (check_builtin_function_arguments): Handle
9109         BUILT_IN_ISINF_SIGN.
9110         * doc/extend.texi: Document __builtin_isinf_sign.
9111         * fold-const.c (operand_equal_p): Handle COND_EXPR.
9112
9113 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9114
9115         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
9116         EH cleanup at the end of the pass, search for those that have been
9117         turned into forwarder blocks and do the cleanup on their successor.
9118
9119 2008-05-18  Richard Guenther  <rguenther@suse.de>
9120
9121         * tree-cfg.c (verify_gimple_expr): Allow conversions from
9122         pointers to sizetype and vice versa.
9123
9124 2008-05-18 Xinliang David Li   <davidxl@google.com>
9125
9126         * gcc/tree-ssa-dce.c: Coding style fix.
9127         (check_pow): Documentation comment.
9128         (check_log): Documenation comment. Coding style fix.
9129         (is_unnecessary_except_errno_call): Ditto.
9130         (gen_conditions_for_pow): Ditto.
9131         (gen_conditions_for_log): Ditto.
9132         (gen_shrink_wrap_conditions): Ditto.
9133         (shrink_wrap_one_built_in_calls): Ditto.
9134         * gcc/doc/invoke.texi: Better documentation string.
9135         * ChangeLog: Fix wrong change log entries from
9136         May 17 checkin on function call DCE.
9137
9138 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9139
9140         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
9141
9142 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
9143
9144         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
9145         * df-problems.c (simulation routines): Fixed block comment to
9146         properly say how to add forwards scanning functions.
9147
9148 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
9149
9150         * tree-inline.c (setup_one_parameter): Remove dead code.
9151
9152 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
9153
9154         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
9155         a BIT_AND_EXPR only for an INTEGER_TYPE.
9156
9157 2008-05-17 Xinliang David Li   <davidxl@google.com>
9158
9159         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
9160         (check_pow, check_log, is_unnecessary_except_errno_call): New
9161         functions to check for eliminating math functions that are pure
9162         except for setting errno.
9163         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
9164         general condition expressions for shrink-wrapping pow/log calls.
9165         (gen_shrink_wrap_conditions): Ditto.
9166         (shrink_wrap_one_built_in_call): Ditto.
9167         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
9168         (mark_operand_necessary): If debugging, output if OP is necessary.
9169         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
9170         unnecessary.
9171         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
9172         opt level >= 2.
9173         * gcc/common.opt: New user flag -ftree-builtin-dce.
9174         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
9175
9176 2008-05-16  David S. Miller  <davem@davemloft.net>
9177
9178         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
9179         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
9180
9181 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
9182
9183         PR target/36246
9184         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
9185
9186 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9187
9188         * ifcvt.c (dead_or_predicable): Rename
9189         df_simulate_one_insn_backwards to df_simulate_one_insn.
9190         * recog.c (peephole2_optimize): Ditto.
9191         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
9192         Ditto.
9193         * df.h: Rename df_simulate_one_insn_backwards to
9194         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
9195         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
9196         scanning of defs and uses.
9197         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
9198         (df_simulate_one_insn_forwards): Removed.
9199
9200 2008-05-16  Doug Kwan  <dougkwan@google.com>
9201
9202         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
9203         QNaN & SNaN.
9204         (real_from_string): Handle NaNs and Inf as approriate.
9205
9206 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
9207
9208         * doc/gty.texi (Source Files Containing Type Information): Note
9209         that headers should appear first in the gtfiles list.
9210
9211 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9212
9213         * tree.def (COND_EXEC): Properly documented this code.
9214
9215 2008-05-16  Diego Novillo  <dnovillo@google.com>
9216
9217         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
9218         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
9219         the new field.
9220
9221 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9222
9223         * tree-ssa-dse (max_stmt_uid): Removed.
9224         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
9225         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
9226         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
9227         * function.h (cfun.last_stmt_uid): New field.
9228         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
9229         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
9230         New functions.
9231         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
9232         (create_stmt_ann): Initialize the ann->uid field.
9233         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
9234         with new calls.
9235         * tree-flow.h (renumber_gimple_stmt_uids): New function.
9236
9237 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
9238
9239         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
9240         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
9241         (init_empty_tree_cfg): Call it.
9242
9243 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9244
9245         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
9246         Update all users.
9247
9248 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9249
9250         * doc/invoke.text (-fdump-tree-*-verbose): New option.
9251         * tree-dump.c (dump_options): New verbose option.
9252         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
9253         Add verbose dump.
9254         * tree-pass.h (TDF_VERBOSE): New dump flag.
9255         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
9256         (tree-flow.h): Added include.
9257         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
9258
9259 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
9260
9261         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
9262
9263         From Jie Zhang  <jie.zhang@analog.com>
9264         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9265         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
9266         mcpu=bf561-none and mcpu=bf561-0.2.
9267         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9268         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9269         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9270         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9271         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
9272         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
9273         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
9274         option.
9275         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
9276         (cputype_selected): Remove.
9277         (bfin_handle_option): Don't use cputype_selected.
9278         (override_options): When no mcpu option, enable all workarounds.
9279         Don't use bfin_workarounds.
9280         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
9281         processor type.
9282         (DEFAULT_CPU_TYPE): Don't define.
9283
9284 2008-05-16  Richard Guenther  <rguenther@suse.de>
9285
9286         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
9287         on deletion of the last stmt.
9288
9289 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9290
9291         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
9292         V8HImode for SSE2 and V16QImode for SSE4.1.
9293
9294 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
9295
9296         * cgraph.h (compute_inline_parameters): Made public.
9297         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
9298         variable_generate_summary, function_write_summary,
9299         variable_write_summary, variable_read_summary.  Added generate_summary,
9300         write_summary, read_summary.
9301         * cgraphunit.c (cgraph_process_new_functions): Changed call from
9302         pass_ipa_inline.function_generate_summary, to
9303         compute_inline_parameters.
9304         * ipa-inline.c (compute_inline_parameters): Made public and added
9305         node parameter.
9306         (compute_inline_parameters_for_current): New function.
9307         (pass_inline_param): Now calls compute_inline_parameters_for_current.
9308         (inline_generate_summary): Removed parameter and made to loop over
9309         all cgraph nodes.
9310         (pass_ipa_inline): Updated for new IPA_PASS structure.
9311         * passes.c (execute_ipa_summary_passes): Now is called once per
9312         pass rather than once per node*pass.
9313
9314 2008-05-15  Anatoly Sokolov <aesok@post.ru>
9315
9316         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
9317         avr_have_mul_p, avr_asm_only_p): Remove variables.
9318         (avr_override_options): Remove initialization of removed variables.
9319         (avr_file_start):  Convert removed variables to fields of
9320         'struct base_arch_s *avr_current_arch'.
9321         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
9322         (AVR_HAVE_MUL): (Ditto.).
9323         (AVR_HAVE_MOVW): (Ditto.).
9324         (AVR_HAVE_LPMX): (Ditto.).
9325         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
9326         avr_asm_only_p): Remove declaration.
9327
9328 2008-05-15  Diego Novillo  <dnovillo@google.com>
9329
9330         * config/arm/arm.c (arm_return_in_memory): Fix return type.
9331         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
9332
9333 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
9334
9335         PR middle-end/36194
9336         * combine.c (check_conversion): Rename back to check_promoted_subreg.
9337         Don't call record_truncated_value from here.
9338         (record_truncated_value): Turn it into a for_each_rtx callback.
9339         (record_truncated_values): New function.
9340         (combine_instructions): Call note_uses with record_truncated_values.
9341         Change name of check_conversion to check_promoted_subreg.
9342
9343 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
9344
9345         * doc/sourcebuild.texi: Document support for torture tests.
9346
9347 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9348
9349         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
9350         to alternative 4 of operand 2.
9351
9352 2008-05-15  Richard Guenther  <rguenther@suse.de>
9353
9354         * tree-pass.h (current_pass): Declare.
9355         (get_pass_for_id): Likewise.
9356         * passes.c (passes_by_id, passes_by_id_size): New globals.
9357         (set_pass_for_id): New function.
9358         (get_pass_for_id): Likewise.
9359         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
9360         (execute_function_todo): Flush per function statistics.
9361         * toplev.c (compile_file): Init statistics.
9362         (general_init): Do early statistics initialization.
9363         (finalize): Finish statistics.
9364         * statistics.h (statistics_early_init): Declare.
9365         (statistics_init): Likewise.
9366         (statistics_fini): Likewise.
9367         (statistics_fini_pass): Likewise.
9368         (statistics_counter_event): Likewise.
9369         (statistics_histogram_event): Likewise.
9370         * statistics.c: New file.
9371         * Makefile.in (OBJS-common): Add statistics.o.
9372         (statistics.o): Add dependencies.
9373         * doc/invoke.texi (-fdump-statistics): Document.
9374
9375         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
9376         (insert): Likewise.
9377         (execute_pre): Use statistics_counter_event.
9378         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
9379         (substitute_and_fold): Increment it.  Use statistics_counter_event.
9380
9381 2008-05-15  Diego Novillo  <dnovillo@google.com>
9382
9383         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
9384
9385         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
9386         * tree-ssa-alias.c (new_type_alias): Remove references to
9387         sub-variables from comment.
9388         * tree-ssa-operands.c (swap_tree_operands): Likewise.
9389
9390 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9391
9392         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
9393         attribute to 1 only for insertps alternative.
9394
9395 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9396
9397         * config/bfin/bfin.md (loadbytes): New pattern.
9398         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
9399         (bfin_init_builtins): Initialize it.
9400         (bdesc_1arg): Add it.
9401
9402 2008-05-15  Sa Liu  <saliu@de.ibm.com>
9403
9404         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
9405         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
9406         * testsuite/lib/target-supports.exp: Add
9407         check_effective_target_fortran_integer_16.
9408
9409 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9410
9411         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
9412         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
9413         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
9414         (TARGET_RETURN_IN_MEMORY): Define.
9415
9416 2008-05-15  Richard Guenther  <rguenther@suse.de>
9417
9418         PR middle-end/36244
9419         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
9420         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
9421         represent unmodifiable vars.
9422
9423 2008-05-15  Richard Guenther  <rguenther@suse.de>
9424
9425         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
9426         INDIRECT_REF and TARGET_MEM_REF.
9427         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9428         TARGET_MEM_REF.
9429
9430 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9431             H.J. Lu  <hongjiu.lu@intel.com>
9432
9433         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
9434         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
9435         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
9436         insn alternatives.  Add missing alternatives.
9437         (*vec_concatv2di_rex64_sse4_1): Likewise.
9438         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
9439         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
9440         Require TARGET_SSE.
9441
9442 2008-05-15  Richard Guenther  <rguenther@suse.de>
9443
9444         PR tree-optimization/36009
9445         PR tree-optimization/36204
9446         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
9447         (determine_invariantness_stmt): Record the loop a store is
9448         always executed in.
9449         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
9450         dependency.
9451
9452 2008-05-15  Richard Guenther  <rguenther@suse.de>
9453
9454         PR tree-optimization/34330
9455         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
9456         through the pointer will alias the SMT.
9457
9458 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
9459
9460         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
9461
9462 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9463
9464         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
9465
9466 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9467             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9468
9469         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
9470         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
9471         (vashl_optab): New optab for vector/vector shifts.
9472         (vashr_optab): Ditto.
9473         (vlshr_optab): Ditto.
9474         (vrotl_optab): Ditto.
9475         (vrotr_optab): Ditto.
9476         (optab_subtype): New enum for optab_for_tree_code call.
9477         (optab_for_tree_code): Add enum optab_subtype argument.
9478
9479         * optabs.c (optab_for_tree_code): Take an additional argument to
9480         distinguish between a vector shift by a scalar and vector shift by
9481         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
9482         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
9483         vector shift by a vector.
9484         (expand_widen_pattern_expr): Pass additional argument to
9485         optab_for_tree_code.
9486
9487         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
9488         vrotl_optab, vrotr_optab.
9489
9490         * expr.c (expand_expr_real_1): Update calls to
9491         optab_for_tree_code to distinguish between vector shifted by a
9492         scalar and vector shifted by a vector.
9493         * tree-vectorizer.c (supportable_widening_operation): Ditto.
9494         (supportable_narrowing_operation): Ditto.
9495         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
9496         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
9497         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
9498         (vect_create_epilog_for_reduction): Ditto.
9499         (vectorizable_reduction): Ditto.
9500         (vectorizable_operation): Ditto.
9501         (vect_strided_store_supported): Ditto.
9502         (vect_strided_load_supported): Ditto.
9503         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9504         * expmed.c (expand_shift): Ditto.
9505
9506         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
9507         scalar type.
9508         (ashr@var{m}3): Ditto.
9509         (vashl@var{m}3): Document new vector/vector shift standard name.
9510         (vashr@var{m}3): Ditto.
9511         (vlshr@var{m}3): Ditto.
9512         (vrotl@var{m}3): Ditto.
9513         (vrotr@var{m}3): Ditto.
9514
9515         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
9516         (PPERM_INVERT): Ditto.
9517         (PPERM_REVERSE): Ditto.
9518         (PPERM_REV_INV): Ditto.
9519         (PPERM_ZERO): Ditto.
9520         (PPERM_ONES): Ditto.
9521         (PPERM_SIGN): Ditto.
9522         (PPERM_INV_SIGN): Ditto.
9523         (PPERM_SRC1): Ditto.
9524         (PPERM_SRC2): Ditto.
9525
9526         * config/i386/sse.md (mulv2di3): Add SSE5 support.
9527         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
9528         allows a memory operand to be the value being added, and split it
9529         to improve vectorization.
9530         (sse5_pmacsdqh_mem): Ditto.
9531         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
9532         (sse5_mulv2div2di3_high): Ditto.
9533         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
9534         (vec_pack_trunc_v4si): Ditto.
9535         (vec_pack_trunc_v2di): Ditto.
9536         (sse5_pcmov_<mode>): Remove code that tried to use use
9537         andps/andnps instead of pcmov.
9538         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
9539         pmacsdqh instructions.
9540         (vec_widen_smult_lo_v4si): Ditto.
9541
9542         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
9543         (PPERM_INVERT): Ditto.
9544         (PPERM_REVERSE): Ditto.
9545         (PPERM_REV_INV): Ditto.
9546         (PPERM_ZERO): Ditto.
9547         (PPERM_ONES): Ditto.
9548         (PPERM_SIGN): Ditto.
9549         (PPERM_INV_SIGN): Ditto.
9550         (PPERM_SRC1): Ditto.
9551         (PPERM_SRC2): Ditto.
9552         (ix86_expand_sse_movcc): Move the SSE5 test after the if
9553         true/false tests.
9554         (ix86_expand_int_vcond): If SSE5 generate all possible integer
9555         comparisons.
9556         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
9557         says ignore whether the last reference is a memory operand.
9558
9559 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9560             Paolo Bonzini <bonzini at gnu dot org>
9561
9562         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
9563         shift patterns.
9564
9565         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
9566         (vlshr<mode>3): Rename from vlshr<mode>3.
9567         (vashr<mode>3): Rename from vashr<mode>3.
9568         (mulv4sf3): Change the names of vector shift patterns.
9569         (mulv4si3): Ditto.
9570         (negv4sf2): Ditt.
9571
9572         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
9573         shift insns.
9574
9575         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
9576         (SI_SHLHI): Ditto.
9577         (SI_SHL): Ditto.
9578         (SI_SHLI): Ditto.
9579         (SI_ROTH): Ditto.
9580         (SI_ROTHI): Ditto.
9581         (SI_ROT): Ditto.
9582         (SI_ROTI): Ditto.
9583         (SPU_RL_0): Ditto.
9584         (SPU_RL_1): Ditto.
9585         (SPU_RL_2): Ditto.
9586         (SPU_RL_3): Ditto.
9587         (SPU_RL_4): Ditto.
9588         (SPU_RL_5): Ditto.
9589         (SPU_RL_6): Ditto.
9590         (SPU_RL_7): Ditto.
9591         (SPU_SL_0): Ditto.
9592         (SPU_SL_1): Ditto.
9593         (SPU_SL_2): Ditto.
9594         (SPU_SL_3): Ditto.
9595         (SPU_SL_4): Ditto.
9596         (SPU_SL_5): Ditto.
9597         (SPU_SL_6): Ditto.
9598         (SPU_SL_7): Ditto.
9599
9600         * config/spu/spu.md (v): New iterator macro to add v for vector types.
9601         (floatunssidf2_internal): Change vector/vector shift names.
9602         (floatunsdidf2_internal): Ditto.
9603         (mulv8hi3): Ditto.
9604         (ashrdi3): Ditto.
9605         (ashrti3): Ditto.
9606         (cgt_df): Ditto.
9607         (cgt_v2df): Ditto.
9608         (dftsv): Ditto.
9609         (vashl<mode>3): Rename from ashl<mode>3.
9610         (vashr<mode>3): Rename from ashr<mode>3.
9611         (vlshr<mode>3): Rename from lshr<mode>3.
9612         (vrotl<mode>3): Rename from rotl<mode>3.
9613
9614 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9615
9616         PR target/36224
9617         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
9618         multiply gives the wrong value when doing widening multiplies.
9619         (vec_widen_smult_lo_v4si): Ditto.
9620
9621 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
9622
9623         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
9624         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
9625         emit_library_call_value.
9626         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
9627         * tree.h (ECF_LIBCALL_BLOCK): Removed.
9628         * calls.c (initialize_argument_information, precompute_arguments,
9629         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
9630         (precompute_arguments): Removed flags parameter.
9631         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
9632
9633 2008-05-14  Richard Guenther  <rguenther@suse.de>
9634
9635         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
9636         Make sure to register the store if the use is a PHI_NODE.
9637
9638 2008-05-14  Olivier Hainque  <hainque@adacore.com>
9639
9640         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
9641         memory if the component is to be referenced in BLKmode according
9642         to get_inner_reference.
9643
9644 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
9645
9646         * calls.c (emit_library_call_value_1): Restore code clearing
9647         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
9648
9649 2008-05-14  Olivier Hainque  <hainque@adacore.com>
9650             Nicolas Roche  <roche@adacore.com>
9651
9652         * configure.ac: Add support for a "gcc_subdir" variable in
9653         config-lang.in, to denote a subdirectory where the language/GCC
9654         integration files are to be found.
9655         * configure: Regenerate.
9656
9657 2008-05-14  Ira Rosen  <irar@il.ibm.com>
9658
9659         PR tree-optimization/36098
9660         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
9661         value for the first load in the group in case of a gap.
9662         (vect_build_slp_tree): Check that there are no gaps in loads.
9663
9664 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
9665
9666         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
9667         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
9668         expand_copysign_bit, ): Change call to emit_no_conflict_block to
9669         emit_insn and remove unneeded code to construct extra args.
9670         (emit_no_conflict_block): Removed.
9671         * optabls.h: (emit_no_conflict_block): Removed.
9672         * cse.c (cse_extended_basic_block): Remove search for
9673         REG_NO_CONFLICT note.
9674         * global.c: Removed incorrect comment added in revision 117.
9675         * expr.c (convert_move): Change call to emit_no_conflict_block to
9676         emit_insn.
9677         * recog.c: Change comments so that they do not mention
9678         REG_NO_CONFLICT.
9679         * local_alloc.c (combine_regs): Removed last parameter.
9680         (no_conflict_p): Removed.
9681         (block_alloc): Removed note, no_conflict_combined_regno and set
9682         local vars. Removed all code to process REG_NO_CONFLICT blocks.
9683         (combine_regs): Removed already_dead and code to look for
9684         REG_NO_CONFLICT notes.
9685         * lower_subreg (remove_retval_note): Removed code to look for
9686         REG_NO_CONFLICT block.
9687         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
9688         (resolve_clobber): Remove code to process libcalls that have
9689         REG_NO_CONFLICT notes.
9690         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
9691         case.
9692         * combine.c (can_combine_p, distribute_notes):  Removed
9693         REG_NO_CONFLICT case.
9694         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
9695         to emit_insns.
9696         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
9697         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
9698         Ditto.
9699         * reg-notes.def (NO_CONFLICT): Removed.
9700
9701 2008-05-14  David S. Miller  <davem@davemloft.net>
9702
9703         * config/sparc/sparc.c (sparc_profile_hook): If
9704         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
9705         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
9706         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
9707
9708 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9709
9710         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
9711
9712 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
9713
9714         PR target/36222
9715         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
9716         and op1 expansion before vector concat to have less live pseudos.
9717
9718 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9719
9720         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
9721         ix86_expand_vector_set if supported.
9722
9723 2008-05-13  Diego Novillo  <dnovillo@google.com>
9724             Kenneth Zadeck  <zadeck@naturalbridge.com>
9725
9726         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
9727
9728         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
9729         phinodes_print_statistics, init_ssanames, fini_ssanames,
9730         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
9731         release_ssa_name, release_defs, replace_ssa_name_symbol,
9732         ssanames_print_statistics): Move ...
9733         * tree-flow.h: ... here.
9734         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
9735         Use FN instead of cfun.
9736         (make_ssa_name_fn): Rename from make_ssa_name.
9737         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
9738         * tree-flow-inline.h (make_ssa_name): Move from
9739         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
9740         * omp-low.c (expand_omp_parallel):
9741         * tree-flow-inline.h (redirect_edge_var_map_result):
9742         * tree-ssa.c (init_tree_ssa): Add argument FN.
9743         Use it instead of cfun.  Update all users.
9744
9745 2008-05-13  Tom Tromey  <tromey@redhat.com>
9746
9747         PR preprocessor/22168:
9748         * doc/cpp.texi (Top): Update menu.
9749         (Alternatives to Wrapper #ifndef): New node.
9750         (Other Directives): Document deprecation.
9751         (Obsolete Features): Remove menu.
9752         (Assertions): Merge node into Obsolete Features.
9753         (Obsolete once-only headers): Move earlier; rename to Alternatives
9754         to Wrapper #ifndef.
9755         * doc/cppopts.texi: Update.
9756         * c.opt (Wdeprecated): Enable for C and ObjC.
9757         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
9758         (C++ Dialect Options): Move -Wno-deprecated from here to...
9759         (Warning Options): ... here.
9760
9761 2008-05-13  Richard Guenther  <rguenther@suse.de>
9762
9763         PR middle-end/36227
9764         * fold-const.c (fold_sign_changed_comparison): Do not allow
9765         changes in pointer-ness.
9766
9767 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9768
9769         PR target/24713
9770         * config/sh/sh.c (sh_expand_prologue): Don't clear
9771         RTX_FRAME_RELATED_P for push insns.
9772
9773 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
9774
9775         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
9776
9777 2008-05-12  Anatoly Sokolov <aesok@post.ru>
9778
9779         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
9780         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
9781         Use 'machine->is_leaf' instead of 'leaf_func_p'.
9782
9783 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9784
9785         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
9786         (*vec_concatv4sf_sse): This.
9787         (*sse2_concatv2si): Renamed to ...
9788         (*vec_concatv2si_sse2): This.
9789         (*sse1_concatv2si): Renamed to ...
9790         (*vec_concatv2si_sse): This.
9791         (*vec_concatv2di_rex): Renamed to ...
9792         (*vec_concatv2di_rex64): This.
9793         (*vec_concatv2si_sse4_1): New.
9794         (*vec_concatv2di_rex64_sse4_1): Likewise.
9795
9796 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
9797
9798         PR rtl-optimization/36111
9799         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
9800         that was created for swappable operands.
9801
9802 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
9803
9804         PR ada/36001
9805         * Makefile.in: Substitute GNATMAKE and GNATBIND.
9806         * configure.ac: Add call to ACX_PROG_GNAT.
9807
9808 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
9809
9810         * optc-gen.awk: Fix comment typo.
9811
9812 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9813
9814         * pretty-print.c (pp_integer_with_precision): Use
9815         HOST_LONG_LONG_FORMAT.
9816
9817 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
9818
9819         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
9820
9821 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9822
9823         * config/i386/i386.c (bdesc_ptest): Removed.
9824         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
9825         (bdesc_args): Add __builtin_ia32_ptestz128,
9826         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
9827         (ix86_init_mmx_sse_builtins): Updated.
9828         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
9829         (ix86_expand_builtin): Updated.
9830
9831 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
9832
9833         * tree-cfg.c (valid_fixed_convert_types_p): New function.
9834         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
9835
9836 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
9837
9838         * value-prof.c (interesting_stringop_to_profile): Do not
9839         return early for BUILT_IN_MEMPCPY.
9840
9841 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9842
9843         * calls.c (expand_call): Don't use callgraph to increase
9844         preferred_stack_boundary.
9845
9846         * cgraph.h (cgraph_rtl_info): Use unsigned on
9847         preferred_incoming_stack_boundary.
9848
9849         * final.c (rest_of_clean_state): Use unsigned on
9850         preferred_stack_boundary.
9851
9852 2008-05-09  Tom Tromey  <tromey@redhat.com>
9853
9854         PR preprocessor/22231:
9855         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
9856         proceeding.
9857
9858 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
9859
9860         PR tree-optimization/36129
9861         * tree-ssa-ccp.c: Include value-prof.h.
9862         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
9863         built-in function was folded to a constant.
9864         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
9865
9866 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
9867             Sebastian Pop  <sebastian.pop@amd.com>
9868
9869         * tree-scalar-evolution.c: Document instantiate_scev.
9870         (instantiate_parameters_1): Renamed instantiate_scev_1.
9871         Don't use the same loop for instantiation_loop and evolution_loop.
9872         (instantiate_scev): New.
9873         (instantiate_parameters): Moved...
9874         (resolve_mixers): Update call to instantiate_scev_1 to pass the
9875         same loop twice.  Maintains the semantics for this function.
9876         * tree-scalar-evolution.h (instantiate_scev): Declare.
9877         (instantiate_parameters): ...here.  Now static inline.
9878         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
9879         instead of resolve_mixers.
9880
9881 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9882
9883         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
9884
9885 2008-05-09  Tomas Bily  <tbily@suse.cz>
9886
9887         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
9888         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
9889         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9890         * c-common.c (c_common_truthvalue_conversion): Likewise.
9891         * tree-object-size.c (compute_object_offset): Likewise.
9892         * tree-inline.c (estimate_num_insns_1): Likewise.
9893         * varasm.c (const_hash_1, compare_constant, copy_constant)
9894         (compute_reloc_for_constant, output_addressed_constants)
9895         (initializer_constant_valid_p): Likewise.
9896         * c-omp.c (check_omp_for_incr_expr): Likewise.
9897         * gimplify.c (gimplify_expr): Likewise.
9898         * c-typeck.c (c_finish_return): Likewise.
9899         * tree-vectorizer.c (supportable_widening_operation)
9900         (supportable_narrowing_operation): Likewise.
9901         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
9902         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
9903         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
9904         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
9905         (descr_info_loc): Likewise.
9906         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9907         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
9908         (fold_unary): Likewise.
9909         * builtins.c (get_pointer_alignment): Likewise.
9910         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
9911         (instantiate_parameters_1): Likewise.
9912         * tree.c (expr_align, stabilize_reference): Likewise.
9913         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
9914         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9915         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
9916         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9917         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
9918         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
9919         Likewise.
9920         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
9921         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
9922         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9923         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
9924         (forward_propagate_comparison)
9925         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9926         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
9927         * emit-rtl.c (component_ref_for_mem_expr)
9928         (set_mem_attributes_minus_bitpos): Likewise.
9929         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
9930         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
9931         Likewise.
9932         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
9933         (build_function_call, pointer_diff, build_compound_expr)
9934         (c_finish_return): Likewise.
9935         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
9936         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
9937         Likewise.
9938         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
9939         * expr.c (is_aligning_offset): Likewise.
9940         * tree-ssa-alias.c (is_escape_site): Likewise.
9941         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
9942         (check_all_va_list_escapes): Likewise.
9943         * tree-ssa-loop-ivopts.c (determine_base_object)
9944         (determine_common_wider_type): Likewise.
9945         * dojump.c (do_jump): Likewise.
9946         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
9947         * tree-gimple.c (is_gimple_cast): Likewise.
9948         * fold-const.c (decode_field_reference, )
9949         (fold_sign_changed_comparison, fold_unary, fold_comparison)
9950         (fold_binary): Likewise.
9951         * tree-ssa-alias-warnings.c (find_alias_site_helper)
9952         (already_warned_in_frontend_p): Likewise.
9953         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
9954         * tree.c (really_constant_p, get_unwidened): Likewise.
9955         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9956         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9957         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
9958         Likewise.
9959         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
9960         CONVERT_EXPR_P.
9961         (CONVERT_EXPR_P): Define.
9962         (CASE_CONVERT): Define.
9963
9964 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
9965
9966         PR middle-end/36117
9967         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
9968         (delete_unmarked_insns): When deleting a call, call
9969         delete_unreachable_blocks.
9970         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
9971         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
9972
9973 2008-05-08  Richard Guenther  <rguenther@suse.de>
9974
9975         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
9976         (-ftree-salias): Likewise.
9977         (salias-max-implicit-fields): Remove param documentation.
9978         (salias-max-array-elements): Likewise.
9979         * tree-pass.h (pass_create_structure_vars): Remove.
9980         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
9981         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
9982         * tree-ssa-alias.c (create_structure_vars): Remove.
9983         (gate_structure_vars): Likewise.
9984         (pass_create_structure_vars): Likewise.
9985         (gate_build_alias): Likewise.
9986         (pass_build_alias): Adjust to run always and dump the function.
9987         * common.opt (ftree-salias): Hide.
9988         * passes.c (init_optimization_passes): Remove
9989         pass_create_structure_vars, adjust comment.
9990         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
9991         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
9992         * opts.c (decode_options): Do not set flag_tree_salias.
9993         (common_handle_option): Add OPT_ftree_salias to the backward
9994         compatibility section.
9995
9996 2008-05-08  Richard Guenther  <rguenther@suse.de>
9997
9998         * tree-flow-inline.h (var_can_have_subvars): Move ...
9999         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
10000         * tree-flow.h (var_can_have_subvars): Remove.
10001         (push_fields_onto_fieldstack): Remove.
10002         (sort_fieldstack): Likewise.
10003         (struct fieldoff): Move ...
10004         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
10005         alias_set and base_for_components fields.
10006         (sort_fieldstack): Make static.
10007         (push_fields_onto_fieldstack): Likewise.  Remove code that
10008         handles anything but RECORD_TYPEs.  Remove alias_set and
10009         base_for_components handling.
10010         (create_variable_info_for): Adjust.
10011
10012 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
10013
10014         * common.opt (Wframe-larger-than=): Shorten the help message
10015         to one line.
10016         * doc/invoke.texi (Wframe-larger-than=): Add more description.
10017
10018 2008-05-08  Rafael Espindola  <espindola@google.com>
10019
10020         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
10021         trap.
10022         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
10023         trap and that both operands are gimple values.
10024         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
10025         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
10026         is a fp operation.
10027
10028 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
10029
10030         * read-rtl.c (join_c_conditions): Return the first string if the
10031         two strings are equal.
10032
10033 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
10034
10035         * gensupport.h (pred_data): Add a "num_codes" field.
10036         (add_predicate_code): Declare.
10037         * gensupport.c (add_predicate_code): New function.
10038         (std_pred_table): Add an "allows_const_p" field.
10039         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
10040         Remove the (incomplete) list of such codes from the codes field.
10041         (init_predicate_table): Use add_predicate_code.  Add all
10042         RTX_CONST_OBJs if allows_const_p is true.
10043         * genrecog.c (process_define_predicate): Use add_predicate_code.
10044
10045 2008-05-08  David Daney  <ddaney@avtrex.com>
10046             Richard Sandiford  <rsandifo@nildram.co.uk>
10047
10048         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
10049         special case of constant zero operands.
10050         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
10051         old and new values.  Special case constant zero values.
10052         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
10053         fails.
10054         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
10055         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
10056
10057 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
10058
10059         PR target/36090
10060         * simplify-rtx.c (simplify_plus_minus): Create CONST of
10061         similar RTX_CONST_OBJ before CONST_INT.
10062
10063 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
10064
10065         * stmt.c (expand_stack_restore): Change sa mode if needed.
10066
10067 2008-05-08  Richard Guenther  <rguenther@suse.de>
10068
10069         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
10070         return type to bool.
10071         (ix86_sol10_return_in_memory): Likewise.
10072         (ix86_i386elf_return_in_memory): Likewise.
10073         (ix86_i386interix_return_in_memory): Likewise.
10074         * config/i386/i386.c (ix86_return_in_memory): Likewise.
10075         (ix86_sol10_return_in_memory): Likewise.
10076         (ix86_i386elf_return_in_memory): Likewise.
10077         (ix86_i386interix_return_in_memory): Likewise.
10078
10079 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
10080
10081         PR bootstrap/36180
10082         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
10083         fndecl argument.
10084         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
10085         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
10086         declared in front.
10087
10088 2008-05-08  Richard Guenther  <rguenther@suse.de>
10089
10090         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
10091         * tree-data-ref.h (struct dr_alias): Remove subvars field.
10092         (DR_SUBVARS): Remove.
10093         * tree-dfa.c (dump_subvars_for): Remove.
10094         (debug_subvars_for): Likewise.
10095         (dump_variable): Do not dump subvars.
10096         (remove_referenced_var): Do not remove subvars.
10097         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
10098         (lookup_subvars_for_var): Remove.
10099         (get_subvars_for_var): Likewise.
10100         (get_subvars_at): Likewise.
10101         (get_first_overlapping_subvar): Likewise.
10102         (overlap_subvar): Likewise.
10103         * tree-flow.h (subvar_t): Remove.
10104         (struct var_ann_d): Remove subvars field.
10105         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
10106         argument.  Remove special handling of SFTs.
10107         (compute_tag_properties): Likewise.
10108         (set_initial_properties): Likewise.
10109         (compute_call_clobbered): Likewise.
10110         (count_mem_refs): Likewise.
10111         (compute_memory_partitions): Likewise.
10112         (compute_flow_insensitive_aliasing): Likewise.
10113         (setup_pointers_and_addressables): Likewise.
10114         (new_type_alias): Likewise.
10115         (struct used_part): Remove.
10116         (used_portions): Likewise.
10117         (struct used_part_map): Likewise.
10118         (used_part_map_eq): Likewise.
10119         (used_part_map_hash): Likewise.
10120         (free_used_part_map): Likewise.
10121         (up_lookup): Likewise.
10122         (up_insert): Likewise.
10123         (get_or_create_used_part_for): Likewise.
10124         (create_sft): Likewise.
10125         (create_overlap_variables_for): Likewise.
10126         (find_used_portions): Likewise.
10127         (create_structure_vars): Likewise.
10128         * tree.def (STRUCT_FIELD_TAG): Remove.
10129         * tree.h (MTAG_P): Adjust.
10130         (struct tree_memory_tag): Remove base_for_components and
10131         unpartitionable flags.
10132         (struct tree_struct_field_tag): Remove.
10133         (SFT_PARENT_VAR): Likewise.
10134         (SFT_OFFSET): Likewise.
10135         (SFT_SIZE): Likewise.
10136         (SFT_NONADDRESSABLE_P): Likewise.
10137         (SFT_ALIAS_SET): Likewise.
10138         (SFT_UNPARTITIONABLE_P): Likewise.
10139         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
10140         (union tree_node): Remove sft field.
10141         * alias.c (get_alias_set): Remove special handling of SFTs.
10142         * print-tree.c (print_node): Remove handling of SFTs.
10143         * tree-dump.c (dequeue_and_dump): Likewise.
10144         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
10145         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
10146         * tree-predcom.c (set_alias_info): Do not set subvars.
10147         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
10148         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
10149         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
10150         (add_vars_for_offset): Remove.
10151         (add_virtual_operand): Remove special handling of SFTs.
10152         (add_call_clobber_ops): Likewise.
10153         (add_call_read_ops): Likewise.
10154         (get_asm_expr_operands): Likewise.
10155         (get_modify_stmt_operands): Likewise.
10156         (get_expr_operands): Likewise.
10157         (add_to_addressable_set): Likewise.
10158         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
10159         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10160         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
10161         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
10162         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
10163         (tree_node_structure): Likewise.
10164         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
10165         handling of SFTs.
10166         (find_what_p_points_to): Likewise.
10167
10168 2008-05-08  Sa Liu  <saliu@de.ibm.com>
10169
10170         * config/spu/spu.md: Fixed subti3 pattern.
10171
10172 2008-05-08  Richard Guenther  <rguenther@suse.de>
10173
10174         PR middle-end/36154
10175         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10176         sure to create a representative for trailing arrays for PTA.
10177
10178 2008-05-08  Richard Guenther  <rguenther@suse.de>
10179
10180         PR middle-end/36172
10181         * fold-const.c (operand_equal_p): Two objects which types
10182         differ in pointerness are not equal.
10183
10184 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
10185
10186         * calls.c (compute_argument_block_size): Add argument tree fndecl.
10187         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
10188         (emit_library_call_value_1): Add new variable fndecl initialized by
10189         NULL_TREE. It should be the decl type of orgfun, but this information
10190         seems not to be available here, so it uses the default calling abi.
10191         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
10192         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
10193         by TARGET_RETURN_IN_MEMORY.
10194         * config/i386/i386-interix.h: Likewise.
10195         * config/i386/i386.h: Likewise.
10196         * config/i386/i386elf.h: Likewise.
10197         * config/i386/ptx4-i.h: Likewise.
10198         * config/i386/sol2-10.h: Likewise.
10199         * config/i386/sysv4.h: Likewise.
10200         * config/i386/vx-common.h: Likewise.
10201         * config/cris/cris.h: Removed #if 0 clause.
10202         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
10203         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
10204         argument.
10205         (ix86_sol10_return_in_memory): Likewise.
10206         (ix86_i386elf_return_in_memory): New.
10207         (ix86_i386interix_return_in_memory): New.
10208         * config/mt/mt-protos.h (mt_return_in_memory): New.
10209         * config/mt/mt.c: Likewise.
10210         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10211         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
10212         * config/bfin/bfin.h: Likewise.
10213         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
10214         argument.
10215         * config/bfin/bfin.c: Likewise.
10216         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10217         * config/alpha/unicosmk.h: Likewise.
10218         * config/i386/cygming.h: Likewise.
10219         * config/iq2000/iq2000.h: Likewise.
10220         * config/mips/mips.h: Likewise.
10221         * config/mn10300/mn10300.h: Likewise.
10222         * config/rs6000/rs6000.h: Likewise.
10223         * config/score/score.h: Likewise.
10224         * config/spu/spu.h: Likewise.
10225         * config/v850/v850.h: Likewise.
10226         * defaults.h: Likewise.
10227         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
10228         * expr.c (emit_block_move): Adjust use of
10229         OUTGOING_REG_PARM_STACK_SPACE.
10230         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
10231         OUTGOING_REG_PARM_STACK_SPACE.
10232         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
10233
10234 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
10235
10236         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
10237         on OMP_RETURN for OMP_FOR.
10238
10239         PR debug/35896
10240         * dwarf2out.c (dw_expand_expr, common_check): Removed.
10241         (fortran_common): New function.
10242         (gen_variable_die): Call fortran_common instead of common_check,
10243         adjust for it returning tree instead of rtx.  Formatting.
10244
10245 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10246
10247         PR rtl/7335
10248         PR rtl/33826
10249         * see.c (see_copy_insn): Copy new pure const attributes for new call.
10250         * c-decl.c (merge_decls): Ditto.
10251         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
10252         to RTL_CONST_OR_PURE_CALL_P.
10253         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
10254         Initialized DECL_LOOPING_CONST_PURE.
10255         (process_call_operands): Set tree_side_effects properly.
10256         * tree.h (TREE_READONLY_DECL_P): Removed.
10257         (DECL_IS_PURE): Renamed to DECL_PURE_P.
10258         (DECL_LOOPING_OR_CONST_P): New macro.
10259         (struct tree_function_decl): Added looping_const_or_pure_p.
10260         (ECF_*) Renumbered.
10261         (ECF_LOOPING_OR_CONST_P): New macro.
10262         * rtlanal.c (pure_const_p): Removed.
10263         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
10264         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
10265         to RTL_CONST_CALL_P.
10266         * ipa-pure-const.c (pure_const_state_e): Added looping field.
10267         (check_decl, check_tree, check_call, scan_function): Initialize
10268         looping.
10269         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
10270         (static_execute): Set looping true for recursive functions.
10271         Undo setting state to IPA_NEITHER for recursive functions.
10272         * cse.c (cse_insn):
10273         * ifcvt.c (noce_can_store_speculate_p): Changed
10274         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
10275         RTL_CONST_OR_PURE_CALL_P.
10276         * dse.c (scan_insn): Ditto.
10277         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
10278         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
10279         RTL_CONST_OR_PURE_CALL_P.
10280         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
10281         pure_call_p to RTL_CONST_CALL_P.
10282         * gimplify.c (gimplify_call_expr): Clear side effects for
10283         non-looping pure and constant calls.
10284         * calls.c (emit_call_1): Set rtl flags from ecf flags.
10285         (flags_from_decl_or_type): Set ecf flags from decl flags.
10286         (initialize_argument_information): Turn off
10287         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
10288         Change const to pure if callee_copies is true rather than just
10289         turning off const.
10290         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
10291         way of marking pure calls.
10292         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
10293         Remove hack that was supposed to fix pr7335 and remove old
10294         way of marking pure calls.
10295         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
10296         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
10297         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
10298         RTL_CONST_OR_PURE_CALL_P.
10299         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
10300         * loop-invariant.c (find_exits, find_invariant_bb): Changed
10301         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
10302         * sched-deps.c (schedule_analyze): Ditto.
10303         * rtl.h (struct rtx_def): Use call field, unchanging field, and
10304         return_val field of calls to represent pure and const function info.
10305         (CONST_OR_PURE_CALL_P): Deleted macro.
10306         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10307         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
10308         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
10309         TREE_READONLY.
10310         * tree-optimize.c (execute_fixup_cfg): Added test for
10311         ECF_LOOPING_CONST_OR_PURE.
10312         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
10313         DECL_PURE_P.
10314         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
10315         effects for looping pure or const calls.
10316         (verify_gimple_expr): Added verification code.
10317         * config/alpha/alpha.c (alpha_legitimize_address,
10318         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
10319         RTL_CONST_CALL_P.
10320         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
10321         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
10322         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
10323         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
10324         RTL_CONST_OR_PURE_CALL_P.
10325         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
10326         and const calls to be deleted.
10327
10328 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
10329
10330         PR target/35714
10331         * config/i386/mmx.md (mmx_subv2sf3): New expander.
10332         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
10333         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
10334         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10335         to handle nonimmediate operands.
10336         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
10337         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
10338         to handle nonimmediate operands.
10339         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
10340         (mmx_pmulhrwv4hi3): New expander.  Use
10341         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10342         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
10343         (sse2_umulv1siv1di3): New expander.  Use
10344         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10345         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
10346         (mmx_eq<mode>3): New expander.  Use
10347         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10348         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
10349         (mmx_uavgv8qi3): New expander.  Use
10350         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10351         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
10352         (mmx_uavgv4hi3): New expander.  Use
10353         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10354
10355         * config/i386/sse.md
10356         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
10357         to handle nonimmediate operands.
10358         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
10359         to handle nonimmediate operands.
10360         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
10361         to handle nonimmediate operands.
10362         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
10363         to handle nonimmediate operands.
10364         (sse2_unpckhpd_exp): New expander.  Use
10365         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10366         (sse2_unpcklpd_exp): New expander.  Use
10367         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10368         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
10369         to handle nonimmediate operands.
10370         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
10371         to handle nonimmediate operands.
10372         (*sse2_<plusminus_insn><mode>3): Rename from
10373         sse2_<plusminus_insn><mode>3 insn pattern.
10374         (sse2_<plusminus_insn><mode>3): New expander.  Use
10375         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10376         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
10377         (sse2_umulv2siv2di3): New expander.  Use
10378         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10379         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
10380         (sse4_1_mulv2siv2di3): New expander.  Use
10381         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10382         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
10383         (sse2_pmaddwd): New expander.  Use
10384         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10385         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
10386         (sse2_eq<mode>3): New expander.  Use
10387         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10388         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
10389         (sse4_1_eqv2di3): New expander.  Use
10390         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10391         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10392         (sse2_uavgv16qi3): New expander.  Use
10393         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10394         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10395         (sse2_uavgv16qi3): New expander.  Use
10396         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10397         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
10398         (sse2_uavgv8hi3): New expander.  Use
10399         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10400         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
10401         (ssse3_pmulhrswv8hi3): New expander.  Use
10402         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10403         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
10404         (ssse3_pmulhrswv4hi3): New expander.  Use
10405         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10406
10407         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
10408         (<sse>_vmmul<mode>3): Ditto.
10409         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
10410         (divv2df3): Ditto.
10411         (ssse3_pmaddubsw128): Use register_operand for operand 1.
10412         (ssse3_pmaddubsw): Ditto.
10413
10414         * config/i386/i386.c (struct_builtin_description)
10415         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
10416         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
10417         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
10418         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
10419         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
10420         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
10421         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
10422         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
10423         (ix86_fixup_binary_operands): Assert that src1
10424         and src2 must have the same mode when swapped.
10425         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
10426         and ix86_binary_operator_ok.  Do not force operands in registers
10427         when optimizing.
10428
10429 2008-05-07  Jan Hubicka  <jh@suse.cz>
10430
10431         * cgraph.c (dump_cgraph_node): Update.
10432         * cgraph.h (cgraph_local_info): Break out inline summary.
10433         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
10434         hook.
10435         * ipa-inline (inline_summary): New accestor function.
10436         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
10437         cgraph_decide_inlining, compute_inline_parameters): Update.
10438         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
10439
10440 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10441
10442         Cleanup ColdFire scheduling support and add V4 pipeline model.
10443
10444         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
10445         (define_attr cpu): Add cfv4 value.
10446         (define_attr type, define_attr type1): Merge into a single 'type'
10447         attribute.  Update all uses.
10448         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
10449         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
10450         Update all uses.
10451         (define_attr opx_mem, define_attr opy_mem): Remove.
10452         (define_attr op_mem): Clean up, update comment.
10453         (define_attr size): Use specific values instead of general int.
10454         (define_attr guess, define_attr split): Remove.  Update all uses.
10455         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
10456         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
10457         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
10458         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
10459         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
10460         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
10461         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
10462         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
10463         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
10464         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
10465         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
10466         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
10467         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
10468         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
10469         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
10470         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
10471         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
10472         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
10473         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
10474         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
10475         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
10476         Update or set attributes.
10477         (stack_tie): New fake instruction.
10478
10479         * config/m68k/m68k.h (TUNE_CFV4): New macro.
10480         (m68k_sched_attr_size): Update declaration.
10481         (m68k_sched_attr_type2): Remove.
10482         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
10483         Declare new bypass predicates.
10484
10485         * config/m68k/m68k.c (m68k_sched_issue_rate,
10486         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
10487         implementations.
10488         (TARGET_SCHED_ISSUE_RATE,
10489         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
10490         (override_options): Handle scheduling for ColdFire V4 core.
10491         (m68k_expand_prologue): Emit stack_tie.
10492         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
10493         'OP_TYPE_FPN'.  Update all uses.
10494         (sched_guess_p): Remove.
10495         (sched_address_type): Handle symbolic addresses.
10496         (sched_get_operand): New static function.
10497         (sched_operand_type): Merge into sched_attr_op_type.
10498         (sched_attr_op_type): Handle FP registers, handle quick constants,
10499         update.
10500         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
10501         (m68k_sched_attr_size): Update.  Move logic to ...
10502         (sched_get_attr_size_int): New static function.
10503         (sched_get_opxy_mem_type): New static function.
10504         (m68k_sched_attr_op_mem): Update.
10505         (m68k_sched_attr_type2): Remove.
10506         (sched_cfv4_bypass_data): New static variable.
10507         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
10508         (m68k_sched_issue_rate): Implement scheduler hook.
10509         (struct _sched_ib: enabled_p): New field.
10510         (m68k_sched_variable_issue): Update.  Handle V4.
10511         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
10512         sched_dump_class_func_t, sched_dump_split_class,
10513         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
10514         sched_dump_dfa_class, m68k_sched_dump): Remove.
10515         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
10516         hook.
10517         (m68k_sched_init_global): Remove statisctics dumping, introduce
10518         sanity check that all instructions have pipeline reservations.  Handle
10519         ColdFire V4 core.
10520         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10521         Handle ColdFire V4 core.
10522         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
10523         New static functions.
10524         (m68k_sched_address_bypass_p): New bypass predicate.
10525         (sched_get_indexed_address_scale): New static function.
10526         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
10527
10528         * cf.md: Update comments.
10529         (define_attr type2): Remove.  Use 'type' attribute instead.
10530         Update all uses.
10531         (cf_ib): Rename to cfv123_ib.  Update all uses.
10532         (cf_oep): Rename to cfv123_oep.  Update all uses.
10533         (cf_chr): Rename to cfv123_chr.  Update all uses.
10534         (cf_mem): Rename to cfv123_mem.  Update all uses.
10535         (cf_mac): Move to more appropriate place.
10536         (cfv123_guess): New automaton and cpu_unit.
10537         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
10538         Update uses of 'size' attribute.  Handle before reload scheduling.
10539         (cfv123_guess): New dummy reservation for unhandled instructions.
10540         (cfv4_*): Pipeline description of ColdFire V4 core.
10541         (ignore): New reservation to handle 'ignore' type.
10542
10543 2008-05-07  Ian Lance Taylor  <iant@google.com>
10544
10545         PR middle-end/36013
10546         * gimplify.c (find_single_pointer_decl_1): Don't look through
10547         indirections.
10548         (find_single_pointer_decl): Adjust comments.
10549
10550 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
10551
10552         PR middle-end/36137
10553         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
10554         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
10555
10556         PR middle-end/36106
10557         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
10558         integral type rather than floating point, then VIEW_CONVERT_EXPR
10559         to the floating point type.
10560
10561 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
10562
10563         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
10564         TFmode op0 to register.
10565
10566 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
10567
10568         * c-decl.c (grokdeclarator): Comment typo.
10569
10570 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
10571
10572         * tree-flow.h: Remove prototype for computed_goto_p.
10573         * tree-cfg.c (computed_goto_p): Make static.
10574
10575 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10576
10577         PR target/35657
10578         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
10579         (contains_aligned_value_p): This.  Handle _Decimal128.
10580         (ix86_function_arg_boundary): Only align _Decimal128 to its
10581         natural boundary and handle it properly.
10582
10583 2008-05-06  Martin Jambor  <mjambor@suse.cz>
10584
10585         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
10586         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
10587         (ipcp_method_set_orig_node): Removed.
10588         (ipcp_cval_get_cvalue_type): Removed.
10589         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
10590         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
10591         (ipcp_cval_set_cvalue_type): Removed.
10592         (ipcp_cval_get_cvalue): Removed.
10593         (ipcp_cval_set_cvalue): Removed.
10594         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
10595         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
10596         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
10597         (ipcp_cval_meet): Renamed to ipa_lattice_meet
10598         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
10599         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
10600         (ipcp_get_ith_lattice): Changed parameters.
10601         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
10602         (ipcp_lattice_from_jfunc): Changed parameters.
10603         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
10604         (ipcp_method_cval_print): Added temporary variable info.
10605         (ipcp_redirect): Removed already unused local variable caller.
10606         (ipcp_redirect): New temporary variable orig_callee_info
10607         (ipcp_redirect): Removed newly unused local variable callee.
10608         (ipcp_redirect): Removed (a bit confusing) local variable type.
10609         (ipcp_insert_stage): Added local variable info.
10610         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
10611         renamed too
10612         (ipcp_formal_create): Removed.
10613         (ipcp_method_cval_set): Removed.
10614         (ipcp_propagate_stage): Renamed lattice variables.
10615         (ipcp_method_cval_set_cvalue_type): Removed.
10616         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
10617         (ipcp_print_all_lattices): Changed printed strings to refer to
10618         lattices rather than cvals.
10619         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
10620         (ipcp_propagate_const): Changed formal parameters.
10621         (build_const_val): Changed formal parameters.
10622         (ipcp_insert_stage): Removed useless variable cvalue
10623         (build_const_val): Changed formal parameters.
10624         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
10625         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
10626         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
10627         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
10628         (ipcp_print_func_profile_counts): Changed string from "method" to
10629         "function"
10630         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
10631         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
10632         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
10633         (ipcp_structures_print): Renamed to ipcp_print_all_structures
10634         (ipcp_profile_print): Renamed to ipcp_print_profile_data
10635         (ipcp_lat_is_const): Changed parameters and made inline.
10636         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
10637         (ipcp_redirect): Renamed to ipcp_need_redirect_p
10638         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
10639         the predicate condition directly
10640         (ipcp_propagate_stage): Added local variable args. Removed local
10641         variable callee.  (Both are mere code simplifications.)
10642         (ipcp_method_dont_insert_const): Renamed to
10643         ipcp_node_not_modifiable_p.
10644         (ipcp_node_not_modifiable_p): Made inline.
10645         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
10646         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
10647         (ipcp_print_all_lattices): Removed variable cvalue
10648         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
10649         Updated comments.
10650
10651 2008-05-06  Olivier Hainque  <hainque@adacore.com>
10652
10653         * tree-sra.c (try_instantiate_multiple_fields): Early return
10654         if field has POINTER_TYPE.
10655
10656 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
10657
10658         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
10659         by using 'q' specifier for instruction.
10660         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
10661
10662 2008-05-06  Anatoly Sokolov <aesok@post.ru>
10663
10664         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10665         Change mode of zero_extract from QImode to HImode.
10666         (sign bit tests peepholes): (Ditto.).
10667
10668 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
10669
10670         * config/i386/mmx.md: Remove double backslashes from asm templates.
10671         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
10672         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10673         to handle nonimmediate operands.
10674         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
10675         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10676         to handle nonimmediate operands.
10677         (*mmx_<code>v2sf3_finite): New insn pattern.
10678         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
10679         (mmx_<code>v2sf3): New expander.  Use
10680         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10681         (mmx_<plusminus_insn><mode>3): New expander.  Use
10682         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10683         (*mmx_<plusminus_insn><mode>3): New insn pattern.
10684         (mmx_add<mode>3): Removed.
10685         (mmx_ssadd<mode>3): Ditto.
10686         (mmx_usadd<mode>3): Ditto.
10687         (mmx_sub<mode>3): Ditto.
10688         (mmx_sssub<mode>3): Ditto.
10689         (mmx_ussub<mode>3): Ditto.
10690         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
10691         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
10692         to handle nonimmediate operands.
10693         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
10694         insn pattern.
10695         (mmx_smulv4hi3_highpart): New expander.  Use
10696         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10697         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
10698         insn pattern.
10699         (mmx_umulv4hi3_highpart): New expander.  Use
10700         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10701         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
10702         (mmx_<code>v4hi3): New expander.  Use
10703         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10704         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
10705         (mmx_<code>v8qi3): New expander.  Use
10706         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10707         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
10708         (mmx_<code><mode>3): New expander.  Use
10709         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10710
10711 2008-05-05  Jan Hubicka  <jh@suse.cz>
10712
10713         PR tree-optimization/36118
10714         * passes.c (pass_init_dump_file): Fix dump header.
10715
10716 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10717
10718         PR middle-end/36141
10719         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
10720         VCE for function decls.
10721
10722 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
10723
10724         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
10725
10726 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
10727
10728         * config/i386/i386.md (sat_plusminus): New.
10729         (plusminus_insn): Likewise.
10730         (plusminus_mnemonic): Likewise.
10731         (addsub): Removed.
10732         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
10733         (*<addsub><mode>3_cc_overflow): Renamed to ...
10734         (*<plusminus_insn><mode>3_cc_overflow): This.
10735         (*<addsub>si3_zext_cc_overflow): Renamed to ...
10736         (*<plusminus_insn>si3_zext_cc_overflow): This.
10737
10738         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
10739         (<plusminus_insn><mode>3): This.
10740         (*<addsub><mode>3): Renamed to ...
10741         (*<plusminus_insn><mode>3): This.
10742         (<sse>_vm<addsub><mode>3): Renamed to ...
10743         (<sse>_vm<plusminus_insn><mode>3): This.
10744         (sse3_h<addsub>v4sf3): Renamed to ...
10745         (sse3_h<plusminus_insn>v4sf3): This.
10746         (sse3_h<addsub>v2df3): Renamed to ...
10747         (sse3_h<plusminus_insn>v2df3): This.
10748         (<plusminus_insn><mode>3): New.
10749         (*<plusminus_insn><mode>3): Likewise.
10750         (sse2_<plusminus_insn><mode>3): Likewise.
10751         (add<mode>): Removed.
10752         (*add<mode>3): Likewise.
10753         (sse2_ssadd<mode>3): Likewise.
10754         (sse2_usadd<mode>3): Likewise.
10755         (sub<mode>3): Likewise.
10756         (*sub<mode>3): Likewise.
10757         (sse2_sssub<mode>3): Likewise.
10758         (sse2_ussub<mode>3): Likewise.
10759
10760 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
10761
10762         * gthr-single.h: Add in required interface elements as per gthr.h.
10763         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
10764         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
10765         Generalize UNUSED macro.
10766         (__gthread_once): Add.
10767         (__gthread_key_create): Add.
10768         (__gthread_key_delete): Add.
10769         (__gthread_getspecific): Add.
10770         (__gthread_setspecific): Add.
10771
10772 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
10773
10774         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
10775         the same size types for the indirect reference on the rhs, then
10776         create a VCE.
10777
10778 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
10779
10780         * config/i386/i386.md
10781         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
10782         one insn template instead of template series.
10783         (*xordi_1_rex64): Ditto.
10784         (*xordi_2_rex64): Ditto.
10785
10786 2008-05-05  Ira Rosen  <irar@il.ibm.com>
10787
10788         PR tree-optimization/36119
10789         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
10790         in case of SLP.
10791
10792 2008-06-04  Jan Hubicka  <jh@suse.cz>
10793
10794         tree-optimization/36100
10795         * tree-pass.h (pass_O0_always_inline): Declare.
10796         * ipa-inline.c (inline_transform): Remove dead code.
10797         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
10798         pass_O0_always_inline): New.
10799         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
10800
10801 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
10802
10803         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
10804         mnemonic in this_param move for TARGET_64BIT.
10805
10806 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
10807
10808         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
10809         (*strmovsi_rex_1): Ditto.
10810         (*strsetsi_1): Ditto.
10811         (*strsetsi_rex_1): Ditto.
10812
10813         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
10814         adddicc expanders using SWI mode iterator.
10815
10816 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10817
10818         PR target/36121
10819         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
10820         argument handling.
10821
10822 2008-05-04  David S. Miller  <davem@davemloft.net>
10823
10824         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
10825         (sparc*-*-linux*): Use linux.h in tm_file.
10826         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
10827         compiler defaulting to 32-bit.
10828         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
10829         no longer needed.
10830         * config/sparc/linux.h: Remove definitions now obtained
10831         properly from linux.h
10832         * config/sparc/linux64.h: Likewise.
10833         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
10834         don't want this setting for 32-bit builds in a biarch compiler.
10835         * doc/install.texi: Add sparc-linux to list of targets
10836         supporting --enable-targets=all.
10837
10838 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
10839
10840         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
10841
10842 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
10843
10844         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
10845         after V4SI_FTYPE_V8HI.
10846         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
10847         case V4SI_FTYPE_V2DF.
10848
10849 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
10850
10851         * doc/invoke.texi (max-flow-memory-locations): Removed.
10852         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
10853
10854 2008-05-03  Richard Guenther  <rguenther@suse.de>
10855
10856         PR middle-end/34973
10857         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
10858
10859 2008-05-02  David S. Miller  <davem@davemloft.net>
10860
10861         * config.gcc (need_64bit_hwint): Document libcpp dependency.
10862
10863 2008-05-02  Simon Baldwin <simonb@google.com>
10864
10865         PR bootstrap/36108
10866         * c-common.h (warn_array_subscript_range): Removed.
10867         * c-common.c (warn_array_subscript_range): Ditto.
10868         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
10869         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
10870
10871 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
10872
10873         * config/i386/i386.c (ix86_special_builtin_type): New.
10874         (bdesc_special_args): Likewise.
10875         (ix86_expand_special_args_builtin): Likewise.
10876         (ix86_init_mmx_sse_builtins): Updated.
10877         (ix86_expand_builtin): Updated.
10878         (ix86_expand_store_builtin): Removed.
10879         (ix86_expand_unop_builtin): Likewise.
10880
10881         * config/i386/mm3dnow.h (__v2sf): Moved to ...
10882         * config/i386/mmintrin.h (__v2sf): Here.
10883
10884         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
10885         const __v2sf.
10886         (_mm_loadl_pi): Likewise.
10887         (_mm_storeh_pi): Replace __v2si with __v2sf.
10888         (_mm_storel_pi): Likewise.
10889
10890         * doc/extend.texi: Correct __builtin_ia32_loadhps,
10891         __builtin_ia32_loadlps, __builtin_ia32_storehps,
10892         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
10893         __builtin_ia32_loadlpd.
10894
10895 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
10896
10897         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
10898         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
10899         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
10900         (ix86_init_mmx_sse_builtins): Updated.
10901         (ix86_expand_args_builtin): Likewise.
10902         (ix86_expand_builtin): Likewise.
10903         (ix86_expand_unop1_builtin): Renamed to ...
10904         (ix86_expand_unop_vec_merge_builtin): This.
10905
10906 2008-05-01  Jan Hubicka  <jh@suse.cz>
10907
10908         PR bootstrap/36100
10909         * ipa-inline.c (inline_generate_summary): Make static.
10910         (inline_transform): Do not call inlining at -O0; make static.
10911         * passes.c (execute_todo): Add sanity check.
10912         (execute_one_ipa_transform_pass): Execute proper flags.
10913
10914 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10915
10916         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
10917         (DECL_NONADDRESSABLE_P): Likewise.
10918         * alias.c (record_component_aliases): Fix comment.
10919
10920 2008-05-01  Simon Baldwin <simonb@google.com>
10921
10922         * c-common.h (warn_array_subscript_range): New function.
10923         * c-common.c (warn_array_subscript_range): Ditto.
10924         * tree-vrp.c (check_array_ref): Corrected code to agree with
10925         comment, ignoring only arrays of size 0 or size 1.
10926         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
10927
10928 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10929
10930         * config/i386/i386.c (ix86_builtin_type): Replace
10931         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
10932         (bdesc_args): Updated.
10933         (ix86_init_mmx_sse_builtins): Likewise.
10934         (ix86_expand_args_builtin): Likewise.
10935
10936         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
10937         with __v1di.
10938
10939         * doc/extend.texi: Correct __builtin_ia32_palignr.
10940
10941 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10942
10943         PR target/36095
10944         * config/i386/i386.c (bdesc_crc32): Removed.
10945         (ix86_expand_crc32): Likewise.
10946         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
10947         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
10948         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
10949         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
10950         UINT_FTYPE_UINT_UCHAR.
10951         (bdesc_args): Updated. Add crc32 builtins.
10952         (ix86_init_mmx_sse_builtins): Updated.
10953         (ix86_expand_args_builtin): Updated to support subreg.
10954
10955         * doc/extend.texi: Correct __builtin_ia32_crc32di.
10956
10957 2008-05-01  Jan Hubicka  <jh@suse.cz>
10958
10959         * tree-pass.h (opt_pass): Add IPA_PASS.
10960         (varpool_node, cgraph_node): Forward declare.
10961         (ipa_opt_pass): Define.
10962         (pass_ipa_inline): Turn into ipa_opt_pass.
10963         (pass_apply_inline): Remove.
10964         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
10965         (apply_inline): Turn into ....
10966         (inline_transform): ... this one.
10967         (inline_generate_summary): New function.
10968         (pass_apply_inline): Remove.
10969         * function.h (ipa_opt_pass): Forward declare structure; typedef;
10970         vector.
10971         (struct function): Add ipa_transforms_to_apply.
10972         * passes.c (register_one_dump_file): Work on IPA_PASS.
10973         (init_optimization_passes): Remove pass_inline_parameters and
10974         pass_apply_inline.
10975         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
10976         (execute_one_pass) ... here; apply transforms when possible.
10977         (add_ipa_transform_pass, execute_ipa_summary_asses,
10978         execute_one_ipa_transform_pass): New.
10979         (execute_ipa_pass_list): Update for IPA_PASS type.
10980
10981 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10982
10983         * config/i386/i386.c (ix86_builtin_type): Add
10984         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
10985         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
10986         (bdesc_args): Add SSE4a builtins.
10987         (ix86_init_mmx_sse_builtins): Updated.
10988         (ix86_expand_args_builtin): Likewise.
10989         (ix86_expand_builtin): Likewise.
10990
10991 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10992
10993         * config/i386/i386.c (ix86_builtin_type): Add
10994         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
10995         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
10996         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
10997         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
10998         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
10999         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
11000         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
11001         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
11002         and DI_FTYPE_DI_DI_INT.
11003         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
11004         (ix86_init_mmx_sse_builtins): Updated.
11005         (ix86_expand_args_builtin): Likewise.
11006         (ix86_expand_builtin): Likewise.
11007         (ix86_expand_binop_imm_builtin): Removed.
11008
11009         * doc/extend.texi: Correct __builtin_ia32_palignr128.
11010
11011 2008-04-30  Richard Guenther  <rguenther@suse.de>
11012
11013         PR tree-optimization/32921
11014         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
11015
11016 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
11017
11018         * config/arm/arm.c (arm_unwind_emit): Use
11019         crtl->all_throwers_are_sibcalls instead of
11020         cfun->all_throwers_are_sibcalls.
11021         (arm_output_fn_unwind): Likewise.
11022         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
11023         instead of cfun->uses_pic_offset_table.
11024         (frv_expand_prologue): Likewise.
11025         (frv_frame_pointer_required): Likewise.
11026         (frv_expand_fdpic_call): Likewise.
11027         (frv_emit_movsi): Likewise.
11028         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
11029         cfun->returns_pcc_struct instead of
11030         current_function_returns_pcc_struct.
11031         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
11032         instead of cfun->calls_eh_return.
11033         (m32c_pushm_popm): Likewise.
11034         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
11035         "extern" declaration.
11036
11037 2008-04-30  Richard Guenther  <rguenther@suse.de>
11038
11039         PR tree-optimization/21636
11040         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
11041         constant address.
11042         (evaluate_stmt): Print the likely value.
11043         (ccp_visit_stmt): Avoid excessive vertical spacing.
11044
11045 2008-04-30  Rafael Espindola  <espindola@google.com>
11046
11047         * builtins.c (fold_call_expr): Return realret.
11048         * tree-ssa-threadedge.c
11049         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11050         __builtin_object_size.
11051
11052 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
11053
11054         * gcc.c (wrapper_string): New variable.
11055         (insert_wrapper): New function.
11056         (execute): New option -wrapper.
11057         * doc/invoke.texi (Overall Options): New driver option -wrapper.
11058
11059 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
11060
11061         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
11062         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
11063         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
11064         from...
11065         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
11066         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
11067         config/rs6000/e500crtres64gprctr.asm,
11068         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
11069         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
11070         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
11071         config/rs6000/e500crtsav64gprctr.asm,
11072         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
11073         config/rs6000/e500crtsavg64gprctr.asm: New files.
11074         * config/rs6000/t-ppccomm: Add build rules for new files.
11075         (LIB2FUNCS_STATIC_EXTRA): Add new files.
11076         * config/rs6000/t-netbsd: Add build rules for new files.
11077         (LIB2FUNCS_STATIC_EXTRA): New variable.
11078         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
11079         (CRTSAVRES_DEFAULT_SPEC): Likewise.
11080         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
11081
11082 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
11083
11084         * config/i386/i386.c (ix86_builtin_type): Add
11085         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
11086         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
11087         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
11088         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
11089         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
11090         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
11091         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
11092         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
11093         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
11094         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
11095         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
11096         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
11097         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
11098         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
11099         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
11100         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
11101         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
11102         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
11103         V1DI_FTYPE_V2SI_V2SI.
11104         (bdesc_2arg): Moved to ...
11105         (bdesc_args): Here.
11106         (ix86_init_mmx_sse_builtins): Updated.
11107         (ix86_expand_args_builtin): Updated.  Take a pointer
11108         to const struct builtin_description.  Handle comparison
11109         builtin functions.
11110         (ix86_expand_sse_compare): Take a new argument for swapping operands.
11111         (ix86_expand_builtin): Updated.
11112
11113         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
11114         (ssse3_pmaddubsw128): This.
11115         (ssse3_pmaddubswv4hi3): Renamed to ...
11116         (ssse3_pmaddubsw): This.
11117
11118         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
11119         (__builtin_ia32_packssdw128): Likewise.
11120         (__builtin_ia32_packuswb128): Likewise.
11121         (__builtin_ia32_pmaddubsw): Likewise.
11122         (__builtin_ia32_pmaddubsw128): Likewise.
11123
11124 2008-04-30  Richard Guenther  <rguenther@suse.de>
11125
11126         PR tree-optimization/14847
11127         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
11128         (recognize_bits_test): Use it.
11129         (recognize_single_bit_test): Likewise.
11130
11131 2008-04-30  Martin Jambor  <mjambor@suse.cz>
11132
11133         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
11134         instead of setting number of formal parameters to zero.
11135         (ipcp_init_stage): Do not set the number of actual parameters to zero
11136         either.
11137         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
11138         which are called with variable number of arguments.
11139         (ipcp_insert_stage): Explicitely skipping all nodes which are
11140         called with variable number of arguments.
11141         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
11142         number of parameters.
11143
11144         * ipa-prop.h (struct ipa_node_params): Added flag
11145         called_with_var_arguments
11146         (ipa_set_param_count): Added.  Changed sole setter to use it.
11147         (ipa_get_param_count): Added.  All readers of param_count
11148         converted to use it instead.
11149         (ipa_set_called_with_variable_arg): Added.
11150         (ipa_is_called_with_var_arguments): Added.
11151         (ipa_get_ith_param): Added.  All readers of param_decls converted
11152         to use it instead.
11153         (ipa_set_cs_argument_count): Added, sole writer to argument_count
11154         changed to use it.
11155         (ipa_get_cs_argument_count): Added, all readers of argument_count
11156         changed to cal it.
11157         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
11158         to use it.
11159
11160         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
11161         (struct ipcp_lattice): Renamed cval_type to type
11162         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
11163
11164         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
11165         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
11166         (ipcp_insert_stage): Changed the type of variable cvalue to tree
11167         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
11168         (build_const_val): Changed the type of parameter cvalue to tree
11169         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
11170         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
11171
11172         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
11173         constant
11174
11175         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
11176         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
11177         (ipa_add_method): Renamed to ipa_push_func_to_list
11178         (ipa_remove_method): Renamed to ipa_pop_func_from_list
11179         (ipa_callsite_param_count): Removed.
11180         (ipa_callsite_param_count_set): Removed.
11181         (ipa_callsite_param): Removed.
11182         (ipa_callsite_callee): Removed.
11183         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
11184         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
11185         (ipa_method_formal_count): Removed.
11186         (ipa_method_formal_count_set): Removed.
11187         (ipa_method_get_tree): Removed.
11188         (ipa_method_tree_map_create): Removed.
11189         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
11190         (ipa_create_param_decls_array): Creates the array itself
11191         (ipa_create_param_decls_array): Temporary variable info instead of
11192         a few dereferences.
11193         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
11194         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
11195         (get_type): Removed.
11196         (ipa_jf_get_info_type): Removed.
11197         (ipa_node_create): Renamed to ipa_create_node_params
11198         (ipa_free): Renamed to ipa_free_all_node_params
11199         (ipa_nodes_create): Renamed to ipa_create_all_node_params
11200         (ipa_edges_create): Renamed to ipa_create_all_edge_args
11201         (ipa_edges_free): Renamed to ipa_free_all_edge_args
11202         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
11203         (ipa_free_all_node_params): Deallocation to jump_functions moved to
11204         ipa_free_all_edge_args
11205         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
11206         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
11207         (ipa_create_methodlist_node): Removed.
11208         (ipa_methodlist_method): Removed.
11209         (ipa_methodlist_method_set): Removed.
11210         (ipa_methodlist_next_method): Removed.
11211         (ipa_methodlist_next_method_set): Removed.
11212         (ipa_method_is_modified): Removed.
11213         (ipa_method_modify_create): Removed.
11214         (ipa_method_modify_init): Temporary variable info instead of a few
11215         dereferences.
11216         (ipa_detect_param_modifications): Temporary variable info instead of
11217         a few dereferences.
11218         (ipa_compute_jump_functions): Temporary variable info instead of
11219         a few dereferences.
11220         (ipa_method_modify_set): Removed.
11221         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
11222         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
11223         than craph_node as the first parameter.
11224         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
11225         (ipa_method_modify_init): Removed.
11226         (ipa_compute_jump_functions): Added a temp variable instead of
11227         repeatadly dereferencing the cgraph_edge.aux pointer
11228         (ipa_callsite_param_set_type): Removed.
11229         (ipa_compute_jump_functions): i renamed to index and moved to
11230         an inner block
11231         (ipa_callsite_param_set_info_type_formal): Removed.
11232         (ipa_callsite_param_set_info_type): Removed.
11233         (ipa_callsite_param_map_create): Removed.
11234         (ipa_callsite_tree): Removed.
11235         (ipa_callsite_caller): Removed.
11236         (ipa_pop_func_from_list): return_method removed to return_func
11237
11238         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
11239         prefixed all values with IPA_. Changed all users.
11240         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
11241         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
11242         and FORMAL_IPATYPE IPA_PASS_THROUGH.
11243         (union parameter_info): Renamed to jump_func_value.
11244         (union jump_func_value): Renamed value to constant
11245         (struct ipa_jump_func): Renamed info_type to value
11246         (struct ipa_node): Renamed to ipa_node_params
11247         (struct ipa_node_params): Renamed ipa_arg_num to param_count
11248         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
11249         (struct ipa_node_params): Renamed ipa_mod to modified_flags
11250         (struct ipa_edge): Renamed to ipa_edge_args
11251         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
11252         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
11253         (struct ipa_methodlist): Renamed to ipa_func_list
11254         (struct ipa_func_list): method_p renamed to node, next_method
11255         renamed to next
11256         (ipa_methodlist_p): Removed, switched all users to struct pointer
11257         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
11258
11259 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
11260
11261         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
11262         (rs6000_emit_epilogue): Use backchain to restore only when we
11263         have a large frame.  Make use of frame pointer to restore if we
11264         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
11265
11266 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
11267
11268         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
11269         Add mode to zero_extract.
11270         (sign bit tests peepholes): (Ditto.).
11271
11272 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11273
11274         * config/i386/i386.c (ix86_builtins): Replace Prescott New
11275         Instructions in comments with SSE3.
11276         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
11277         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
11278         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
11279         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
11280         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
11281         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
11282         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
11283         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
11284         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
11285         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
11286         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
11287         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
11288         (bdesc_sse_args): Renamed to ...
11289         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
11290         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
11291         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
11292         IX86_BUILTIN_FABSQ.
11293         (bdesc_1arg): Moved to ...
11294         (bdesc_args): Here.
11295         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
11296         Instructions in comments with SSE3.
11297         (ix86_expand_sse_operands_builtin): Renamed to ...
11298         (ix86_expand_args_builtin): This.  Updated.
11299         (ix86_expand_unop1_builtin): Update comments.
11300         (ix86_expand_builtin): Updated.
11301
11302 2008-04-29  Richard Guenther  <rguenther@suse.de>
11303
11304         PR tree-optimization/36078
11305         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
11306         Update virtual SSA form after cleaning up the CFG.
11307
11308 2008-04-29  Richard Guenther  <rguenther@suse.de>
11309
11310         PR middle-end/15255
11311         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
11312
11313 2008-04-29  Richard Guenther  <rguenther@suse.de>
11314
11315         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
11316         (compute_may_aliases): Do not call finalize_ref_all_pointers.
11317         (compute_flow_insensitive_aliasing): Do not treat
11318         PTR_IS_REF_ALL pointers special.
11319         (get_smt_for): Likewise.
11320         (may_alias_p): Re-structure.
11321         (is_escape_site): A ref-all pointer conversion is not an escape site.
11322         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
11323         PTR_IS_REF_ALL pointers special.
11324         * tree-ssa-structalias.h (struct alias_info): Remove
11325         ref_all_symbol_mem_tag field.
11326         (PTR_IS_REF_ALL): Remove.
11327
11328 2008-04-29  Richard Guenther  <rguenther@suse.de>
11329
11330         PR middle-end/36077
11331         * fold-const.c (extract_muldiv_1): In combining division constants
11332         make sure to never overflow.
11333
11334 2008-04-29  Nick Clifton  <nickc@redhat.com>
11335
11336         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
11337
11338 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11339
11340         PR bootstrap/35169
11341         * optc-gen.awk: Work around HP-UX/IA awk bug.
11342
11343 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
11344
11345         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
11346         2008-04-25 commit.
11347
11348 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11349
11350         PR target/36073
11351         * config/i386/i386.md
11352         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
11353         Change operand 1 predicate to nonimmediate_operand.
11354
11355 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
11356
11357         PR debug/36060
11358         * dwarf2out.c (struct die_struct): Mark as chain_circular through
11359         die_sub field.
11360         * gengtype.c (walk_type, write_func_for_structure): Handle
11361         chain_circular.
11362         * doc/gty.texi: Document chain_circular.
11363
11364 2008-04-28  Richard Guenther  <rguenther@suse.de>
11365
11366         PR tree-optimization/36066
11367         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
11368         SCEV and loop.
11369
11370 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11371
11372         PR target/36064
11373         * config/i386/i386.md
11374         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
11375         Use match_scratch instead of match_operand for operands 3 and 4.
11376
11377 2008-04-27  Richard Guenther  <rguenther@suse.de>
11378
11379         PR tree-optimization/18754
11380         PR tree-optimization/34223
11381         * tree-pass.h (pass_complete_unrolli): Declare.
11382         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
11383         loop size before and after unconditionally of UL_NO_GROWTH in effect.
11384         Rewrite loop into loop closed SSA form if it is not already.
11385         (tree_unroll_loops_completely): Re-structure to iterate over
11386         innermost loops with intermediate CFG cleanups.
11387         Unroll outermost loops only if requested or the code does not grow
11388         doing so.
11389         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
11390         loops are available.
11391         (tree_vectorize): Instead do so here.
11392         (tree_complete_unroll): Also unroll outermost loops.
11393         (tree_complete_unroll_inner): New function.
11394         (gate_tree_complete_unroll_inner): Likewise.
11395         (pass_complete_unrolli): New pass.
11396         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
11397         uses outside of the loop.
11398         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
11399         form if it is available.
11400         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
11401         * passes.c (init_optimization_passes): Schedule complete inner
11402         loop unrolling pass before the first CCP pass after final inlining.
11403
11404 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
11405
11406         * targhooks.h (default_emutls_var_fields,
11407         default_emutls_var_init): Declare.
11408         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
11409         * target.h (struct gcc_target): Add struct emutls member.
11410         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
11411         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
11412         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
11413         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
11414         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
11415         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
11416         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
11417         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
11418         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
11419         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
11420         emit debug information.
11421         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
11422         * varasm.c: Include targhooks.h.
11423         (emutls_object_section, emutls_tmpl_section): New.
11424         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
11425         (EMUTLS_SEPARATOR): New.
11426         (prefix_name): New.
11427         (get_emutls_object_name): New.
11428         (default_emutls_var_fields): New, broken out of ...
11429         (get_emutls_object_type): ... here.  Adjust to use target hooks.
11430         (get_emutls_init_templ_addr): Adjust to use target hooks.
11431         (emutls_decl): Adjust to use target hooks.
11432         (emutls_finish): Likewise.
11433         (default_emutls_var_init): New, broken out of ...
11434         (assemble_variable): ... here.  Adjust to use target hooks.
11435         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
11436         SECCAT_EMUTLS_TMPL.
11437         * c-common.c (handle_section_attribute): Prevent overriding
11438         sections for emulated tls with special sections.
11439         * config/i386/i386.c (x86_64_elf_select_section): Add
11440         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
11441         (x86_64_elf_unique_section): Likewise.
11442         * config/vxworks.c: Include tree.h.
11443         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
11444         (vxworks_override_options): Set TLS scheme.
11445         * doc/tm.texi (Emulated TLS): New node.
11446
11447 2008-04-26  Simon Baldwin <simonb@google.com>
11448
11449         PR c/35652
11450         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
11451         with propagated string constants.
11452
11453 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
11454
11455         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
11456         constraint for operand 2 when operand 0 is memory operand.
11457         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
11458         operand 0 is memory operand.
11459         (fix_trunc<mode>_i387_with_temp): Ditto.
11460         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
11461         operand 2 when operand 1 is memory operand.
11462         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
11463         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
11464         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
11465         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11466         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
11467         operands 2,3 and 4 when operand 1 is memory operand.
11468         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
11469         is memory operand.
11470         (fistdi2_floor_with_temp): Ditto.
11471         (fist<mode>2_floor_with_temp): Ditto.
11472         (fistdi2_ceil_with_temp): Ditto.
11473         (fist<mode>2_ceil_with_temp): Ditto.
11474         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
11475
11476 2008-04-26  David Daney  <ddaney@avtrex.com>
11477
11478         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
11479         unspec_volitile.
11480         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
11481         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11482         UNSPEC_UPDATE_GOT_VERSION): Renumber.
11483         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
11484         (compare_and_swap_12): New insn.
11485         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
11486         * config/mips/mips.c (mips_force_binary): New function.
11487         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
11488         (mips_expand_compare_and_swap_12): New function.
11489         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
11490
11491 2008-04-25  Jan Hubicka  <jh@suse.cz>
11492
11493         PR testsuite/35843
11494         * cfgexpand.c (pass_expand): Turn into RTL pass.
11495         * passes.c (execute_one_pass): Do pass typechecking after execution.
11496         * tree-pass.h (pass_expand): Turn into RTL pass.
11497
11498         * function.h (struct rtl_data): Move here fields
11499         accesses_prior_frames, calls_eh_return, saves_all_registers,
11500         has_nonlocal_goto, has_asm_statement, is_thunk,
11501         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
11502         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
11503         arg_pointer_save_area_init from struct function; turn into bool.
11504         (struct function): Move
11505         calls_eh_return, saves_all_registers, has_nonlocal_goto,
11506         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
11507         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
11508         tail_call_emit, arg_pointer_save_area_init
11509         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
11510         (current_function_returns_struct, current_function_returns_pcc_struct,
11511         current_function_calls_setjmp, current_function_calls_alloca,
11512         current_function_accesses_prior_frames,
11513         current_function_calls_eh_return, current_function_is_thunk,
11514         current_function_stdarg, current_function_profile,
11515         current_function_limit_stack, current_function_uses_pic_offset_table,
11516         current_function_uses_const_pool, current_function_has_nonlocal_label,
11517         current_function_saves_all_registers,
11518         current_function_has_nonlocal_goto,
11519         current_function_has_asm_statement): Remove accesor macros.
11520         * ra-conflict.c (global_conflicts): Update.
11521         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
11522         (suitable_for_tail_call_opt_p): Update.
11523         * builtins.c (expand_builtin_return_addr): Update.
11524         (expand_builtin_setjmp_setup): Update.
11525         (expand_builtin_nonlocal_goto): Update.
11526         * final.c (final_start_function): Update.
11527         (profile_function): Update.
11528         (leaf_function_p): Update.
11529         (only_leaf_regs_used): Update.
11530         * df-scan.c (df_get_exit_block_use_set): Update.
11531         * dojump.c (clear_pending_stack_adjust): Update.
11532         * tree-stdarg.c (gate_optimize_stdarg): Update.
11533         * gimple-low.c (lower_function_body): Update.
11534         * global.c (compute_regsets): Update.
11535         (global_alloc): Update.
11536         * dwarf2out.c (dwarf2out_begin_prologue): Update.
11537         * expr.c (expand_assignment): Update.
11538         * dse.c (dse_step0): Update.
11539         (dse_step1): Update.
11540         * c-decl.c (store_parm_decls): Update.
11541         * local-alloc.c (combine_regs): Update.
11542         (find_free_reg): Update.
11543         * function.c (assign_parms_augmented_arg_list): Update.
11544         (assign_parm_find_data_types): Update.
11545         (assign_parms): Update.
11546         (allocate_struct_function): Update.
11547         (expand_function_start): Update.
11548         (expand_function_end): Update.
11549         (get_arg_pointer_save_area): Update.
11550         (thread_prologue_and_epilogue_insns): Update.
11551         (rest_of_match_asm_constraints): Update.
11552         * stor-layout.c (variable_size): Update.
11553         * gcse.c (gcse_main): Update.
11554         (bypass_jumps): Update.
11555         * gimplify.c (gimplify_function_tree): Update.
11556         * calls.c (emit_call_1): Update.
11557         (expand_call): Update.
11558         * bt-load.c (compute_defs_uses_and_gen): Update.
11559         * except.c (sjlj_assign_call_site_values): Update.
11560         (sjlj_emit_function_enter): Update.
11561         (can_throw_external): Update.
11562         (set_nothrow_function_flags): Update.
11563         (expand_builtin_unwind_init): Update.
11564         (expand_eh_return): Update.
11565         (convert_to_eh_region_ranges): Update.
11566         (output_function_exception_table): Update.
11567         * emit-rtl.c (gen_tmp_stack_mem): Update.
11568         * cfgexpand.c (expand_used_vars): Update.
11569         (tree_expand_cfg): Update.
11570         * cfgcleanup.c (rest_of_handle_jump): Update.
11571         * explow.c (allocate_dynamic_stack_space): Update.
11572         * varasm.c (assemble_start_function): Update.
11573         (force_const_mem): Update.
11574         (mark_constant_pool): Update.
11575         * tree-optimize.c (tree_rest_of_compilation): Update.
11576         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
11577         * tree-cfg.c (notice_special_calls): Update.
11578         (is_ctrl_altering_stmt): Update.
11579         (tree_can_make_abnormal_goto): Update.
11580         (tree_purge_dead_abnormal_call_edges): Update.
11581         * config/alpha/predicates.md: Update.
11582         * config/alpha/alpha.c (alpha_sa_mask): Update.
11583         (alpha_sa_size): Update.
11584         (alpha_does_function_need_gp): Update.
11585         (alpha_expand_prologue): Update.
11586         (alpha_start_function): Update.
11587         (alpha_output_function_end_prologue): Update.
11588         (alpha_expand_epilogue): Update.
11589         * config/frv/frv.c (frv_stack_info): Update.
11590         (frv_expand_epilogue): Update.
11591         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
11592         (s390_register_info): Update.
11593         (s390_frame_info): Update.
11594         (s390_init_frame_layout): Update.
11595         (s390_can_eliminate): Update.
11596         (save_gprs): Update.
11597         * config/spu/spu.c (spu_split_immediate): Update.
11598         (need_to_save_reg): Update.
11599         (spu_expand_prologue): Update.
11600         (spu_expand_epilogue): Update.
11601         * config/sparc/sparc.md: Update.
11602         * config/sparc/sparc.c (eligible_for_return_delay): Update.
11603         (sparc_tls_got): Update.
11604         (legitimize_pic_address): Update.
11605         (sparc_emit_call_insn): Update.
11606         (sparc_expand_prologue): Update.
11607         (output_return): Update.
11608         (print_operand): Update.
11609         (sparc_function_ok_for_sibcall): Update.
11610         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
11611         * config/m32r/m32r.md: Update.
11612         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
11613         (m32r_compute_frame_size): Update.
11614         (m32r_expand_prologue): Update.
11615         (m32r_expand_epilogue): Update.
11616         (m32r_legitimize_pic_address): Update.
11617         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
11618         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
11619         * config/i386/i386.c (ix86_frame_pointer_required): Update.
11620         (gen_push): Update.
11621         (ix86_save_reg): Update.
11622         (ix86_compute_frame_layout): Update.
11623         (ix86_expand_prologue): Update.
11624         (ix86_expand_epilogue): Update.
11625         * config/sh/sh.c (output_stack_adjust): Update.
11626         (calc_live_regs): Update.
11627         (sh5_schedule_saves): Update.
11628         (sh_expand_prologue): Update.
11629         (sh_expand_epilogue): Update.
11630         (sh_setup_incoming_varargs): Update.
11631         (sh_allocate_initial_value): Update.
11632         (sh_get_pr_initial_val): Update.
11633         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
11634         * config/sh/sh.md (label:): Update.
11635         * config/avr/avr.c (out_movhi_mr_r): Update.
11636         * config/crx/crx.h (enum): Update.
11637         * config/xtensa/xtensa.h (along): Update.
11638         * config/stormy16/stormy16.c Update.
11639         (xstormy16_compute_stack_layout): Update.
11640         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
11641         (fr30_expand_prologue): Update.
11642         * config/cris/cris.c (cris_conditional_register_usage): Update.
11643         (cris_reg_saved_in_regsave_area): Update.
11644         (cris_initial_frame_pointer_offset): Update.
11645         (cris_simple_epilogue): Update.
11646         (cris_expand_prologue): Update.
11647         (cris_expand_epilogue): Update.
11648         (cris_expand_pic_call_address): Update.
11649         (cris_asm_output_symbol_ref): Update.
11650         (cris_asm_output_label_ref): Update.
11651         * config/cris/cris.md Update.
11652         * config/iq2000/iq2000.c (compute_frame_size): Update.
11653         (iq2000_expand_epilogue): Update.
11654         * config/mt/mt.h (save_direction): Update.
11655         * config/mn10300/mn10300.c (mn10300_function_value): Update.
11656         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11657         (ia64_secondary_reload_class): Update.
11658         * config/m68k/m68k.c (m68k_save_reg): Update.
11659         (m68k_expand_prologue): Update.
11660         (m68k_expand_epilogue): Update.
11661         (legitimize_pic_address): Update.
11662         * config/rs6000/rs6000.c (rs6000_got_register): Update.
11663         (first_reg_to_save): Update.
11664         (first_altivec_reg_to_save): Update.
11665         (compute_vrsave_mask): Update.
11666         (compute_save_world_info): Update.
11667         (rs6000_stack_info): Update.
11668         (spe_func_has_64bit_regs_p): Update.
11669         (rs6000_ra_ever_killed): Update.
11670         (rs6000_emit_eh_reg_restore): Update.
11671         (rs6000_emit_allocate_stack): Update.
11672         (rs6000_emit_prologue): Update.
11673         (rs6000_emit_epilogue): Update.
11674         (rs6000_output_function_epilogue): Update.
11675         (output_profile_hook): Update.
11676         (rs6000_elf_declare_function_name): Update.
11677         * config/rs6000/rs6000.h (rs6000_args): Update.
11678         * config/rs6000/rs6000.md: Update.
11679         * config/mcore/mcore.c (mcore_expand_prolog): Update.
11680         * config/arc/arc.c (arc_output_function_epilogue): Update.
11681         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
11682         * config/darwin.c (machopic_function_base_name): Update.
11683         * config/score/score3.c (score3_compute_frame_size): Update.
11684         (rpush): Update.
11685         (rpop): Update.
11686         (score3_epilogue): Update.
11687         * config/score/score7.c (score7_compute_frame_size): Update.
11688         (score7_prologue): Update.
11689         (score7_epilogue): Update.
11690         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
11691         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
11692         * config/arm/arm.c (use_return_insn): Update.
11693         (require_pic_register): Update.
11694         (arm_load_pic_register): Update.
11695         (arm_compute_save_reg0_reg12_mask): Update.
11696         (arm_compute_save_reg_mask): Update.
11697         (thumb1_compute_save_reg_mask): Update.
11698         (output_return_instruction): Update.
11699         (arm_output_function_prologue): Update.
11700         (arm_output_epilogue): Update.
11701         (arm_get_frame_offsets): Update.
11702         (arm_expand_prologue): Update.
11703         (thumb_pushpop): Update.
11704         (thumb_exit): Update.
11705         (thumb1_expand_prologue): Update.
11706         (thumb1_expand_epilogue): Update.
11707         (arm_unwind_emit): Update.
11708         (arm_output_fn_unwind): Update.
11709         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
11710         * config/arm/arm.md: Update.
11711         * config/pa/pa.md: Update.
11712         * config/pa/pa.c (legitimize_pic_address): Update.
11713         (compute_frame_size): Update.
11714         (hppa_expand_prologue): Update.
11715         (hppa_expand_epilogue): Update.
11716         (borx_reg_operand): Update.
11717         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
11718         (HARD_REGNO_RENAME_OK): Update.
11719         * config/mips/mips.c (mips_global_pointer): Update.
11720         (mips_save_reg_p): Update.
11721         (mips_compute_frame_info): Update.
11722         (mips_frame_pointer_required): Update.
11723         (mips_expand_prologue): Update.
11724         (mips_expand_epilogue): Update.
11725         (mips_can_use_return_insn): Update.
11726         (mips_reorg_process_insns): Update.
11727         * config/v850/v850.c (compute_register_save_size): Update.
11728         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
11729         * config/mmix/mmix.c (along): Update.
11730         (mmix_expand_epilogue): Update.
11731         * config/bfin/bfin.c (legitimize_pic_address): Update.
11732         (must_save_p): Update.
11733         (stack_frame_needed_p): Update.
11734         (add_to_reg): Update.
11735         (bfin_expand_prologue): Update.
11736         * stmt.c (expand_asm_operands): Update.
11737         * reload1.c (reload): Update.
11738         (init_elim_table): Update.
11739
11740 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
11741
11742         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
11743
11744 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
11745
11746         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
11747         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
11748         (mov<mode>): Removed.
11749         (*movv4sf_internal): Likewise.
11750         (*movv2df_internal): Likewise.
11751
11752 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
11753
11754         * config.gcc (crx-*-elf): Remove deprecation.
11755
11756 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
11757
11758         * config/i386/cygming-crtend.c (register_frame_ctor): Register
11759         __gcc_deregister_frame with atexit.
11760         (deregister_frame_dtor): Remove.
11761
11762 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
11763             Nathan Sidwell  <nathan@codesourcery.com>
11764
11765         * config/rs6000/rs6000.opt (mspe): Remove Var property.
11766         (misel): Likewise.
11767         * config/rs6000/rs6000.h (rs6000_spe): Declare.
11768         (rs6000_isel): Likewise.
11769         * config/rs6000/rs6000.c (rs6000_spe): New variable.
11770         (rs6000_isel): New variable.
11771         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
11772
11773 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11774
11775         PR c++/35758
11776         * c-common.c (handle_vector_size_attribute): Call
11777         lang_hooks.types.reconstruct_complex_type instead of
11778         reconstruct_complex_type.
11779         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
11780         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
11781         * langhooks.h (struct lang_hooks_for_types): Add
11782         reconstruct_complex_type hook.
11783         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
11784         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11785
11786 2008-04-24  Richard Guenther  <rguenther@suse.de>
11787
11788         * c-common.h (check_builtin_function_arguments): Declare.
11789         * c-common.c (validate_nargs): New function.
11790         (check_builtin_function_arguments): Likewise.
11791         * c-typeck.c (build_function_call): Call
11792         check_builtin_function_arguments.
11793         * builtins.c (fold_builtin_classify): Remove error reporting code.
11794         (fold_builtin_unordered_cmp): Likewise.
11795         (fold_builtin_1): Likewise.
11796         (fold_builtin_n): Likewise.
11797
11798 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11799
11800         PR tree-optimization/36008
11801         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
11802         the original op1, rather than delta by step.
11803
11804 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
11805             Sebastian Pop  <sebastian.pop@amd.com>
11806
11807         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
11808         eliminate_local_variables_stmt, eliminate_local_variables,
11809         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
11810         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
11811         of code delimited by two edges in the CFG.
11812         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
11813         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
11814         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
11815         the case of parallelisation of reductions.
11816         (expr_invariant_in_region_p): New.
11817
11818         * tree-flow.h (gather_blocks_in_sese_region): Declared.
11819         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
11820
11821 2008-04-24  Ira Rosen  <irar@il.ibm.com>
11822             Richard Guenther  <rguenther@suse.de>
11823
11824         PR tree-optimization/36034
11825         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
11826         incapable of dealing with loads with gaps.
11827
11828 2008-04-24  Rafael Espindola  <espindola@google.com>
11829
11830         * tree-flow.h (vrp_evaluate_conditional): Change signature.
11831         * tree-ssa-propagate.c (fold_predicate_in): Update call to
11832         vrp_evaluate_conditional.
11833         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
11834         (vrp_evaluate_conditional): Split the cond argument.
11835         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
11836         (simplify_stmt_for_jump_threading): Update call to
11837         vrp_evaluate_conditional.
11838
11839 2008-04-24  Ira Rosen  <irar@il.ibm.com>
11840
11841         PR tree-optimization/35982
11842         * tree-vect-analyze.c (vect_check_interleaving): Check that the
11843         interleaved data-refs are of the same type.
11844
11845 2008-04-24  Danny Smith  <dannysmith@users.net>
11846
11847         * c-format.c (check_format_info_main): Use strncmp rather than a
11848         magic prefix to handle multichar length specs.
11849         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
11850         Don't prefix "I64" and "I32" with '\0'.
11851
11852 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11853
11854         PR target/36015
11855         * config/i386/i386.c (init_cumulative_args): Don't pass anything
11856         in registers for -m32 only if stdarg_p (fntype).
11857
11858 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
11859
11860         PR rtl-optimization/36006
11861         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
11862         temp to op0 in order to avoid invalid rtx sharing.
11863
11864 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
11865
11866         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
11867         check TREE_INVARIANT.
11868         * tree-gimple.c (is_gimple_address): New.
11869         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
11870         * tree-gimple.h (is_gimple_address): New.
11871         * tree.h (decl_address_invariant_p): New.
11872         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
11873         (build_string): Likewise.
11874         (decl_address_invariant_p): New, from is_gimple_invariant_address.
11875         (tree_invariant_p_1): Likewise.
11876         (save_expr): Use it.
11877         (tree_invariant_p): New.
11878         (skip_simple_arithmetic): Use it.
11879         (stabilize_reference_1): Use it.
11880         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
11881         simplify.
11882         (build1_stat): Drop code to compute TREE_INVARIANT.
11883         (build2_stat): Drop code to compute TREE_INVARIANT.
11884         (build3_stat): Drop code to compute TREE_INVARIANT.
11885         (build4_stat): Drop code to compute TREE_INVARIANT.
11886         (build5_stat): Drop code to compute TREE_INVARIANT.
11887         (build7_stat): Drop code to compute TREE_INVARIANT.
11888         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
11889         * tree.h (struct tree_base): Remove invariant_flag.
11890         (TREE_INVARIANT): Remove.
11891         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
11892         (fold_builtin_expect): Check TREE_CONSTANT.
11893         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
11894         * c-tree.h (c_expr_to_decl): Drop third parameter.
11895         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
11896         (build_c_cast): Don't set TREE_INVARIANT.
11897         (pop_init_level): Don't set TREE_INVARIANT.
11898         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
11899         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
11900         TREE_CONSTANT.
11901         (gimplify_init_constructor): Don't set TREE_INVARIANT.
11902         (gimplify_addr_expr): Adjust comment.
11903         * tree-mudflap.c (mf_build_string):
11904         * print-tree.c (print_node): Don't print TREE_INVARIANT.
11905         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
11906         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
11907         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
11908         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
11909         * langhooks.h (struct lang_hooks): Drop third parameter from
11910         expr_to_decl.
11911
11912 2008-04-23  Richard Guenther  <rguenther@suse.de>
11913
11914         PR tree-optimization/27799
11915         PR tree-optimization/32921
11916         PR tree-optimization/32624
11917         * tree-ssa-structalias.c (merge_smts_into): Only merge the
11918         SMTs aliases and the tag itself into the solution.
11919         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
11920         merge the points-to solution back into the SMT aliases.
11921         (may_alias_p): Use alias_set_subset_of instead of
11922         aliases_conflict_p.  A pointer which points to
11923         memory with alias set zero may access any variable.
11924
11925 2008-04-23  Richard Guenther  <rguenther@suse.de>
11926
11927         * alias.c (alias_set_subset_of): Correctly handle asking
11928         if zero is a subset of an alias set with zero child.
11929         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
11930         (compute_flow_insensitive_aliasing): Correctly walk all
11931         pointers.  Do not unnecessarily union sets.
11932
11933 2008-04-23  Richard Guenther  <rguenther@suse.de>
11934
11935         PR middle-end/36021
11936         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
11937
11938 2008-04-22  Tomas Bily  <tbily@suse.cz>
11939
11940         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
11941         unreachable case.
11942         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
11943         NON_LVALUE_EXPR.
11944         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
11945         * tree-ssa-structalias.c (get_constraint_for): Likewise.
11946         * tree-inline.c (estimate_num_insns_1): Likewise.
11947         * varasm.c (const_hash_1, compare_constant, copy_constant)
11948         (compute_reloc_for_constant, output_addressed_constants): Likewise.
11949         * emit-rtl.c (component_ref_for_mem_expr)
11950         (set_mem_attributes_minus_bitpos): Likewise.
11951         * expr.c (highest_pow2_factor, expand_expr_real_1, )
11952         (is_aligning_offset): Likewise.
11953         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
11954         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
11955         * dojump.c (do_jump): Likewise.
11956         * builtins.c (get_pointer_alignment, get_memory_rtx)
11957         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
11958         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
11959
11960 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
11961
11962         PR rtl-optimization/36017
11963         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
11964         expanding the library call.
11965
11966 2008-04-22  Ian Lance Taylor  <iant@google.com>
11967
11968         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
11969         than size_in_bytes.
11970
11971 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
11972
11973         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
11974         of LR/CTR moves for Power6.
11975
11976 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
11977
11978         PR middle-end/36003
11979         * passes.c (init_optimization_passes): Remove
11980         pass_fast_rtl_byte_dce.
11981
11982 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
11983
11984         PR target/29096
11985         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
11986         builtin functions to generate faster code.
11987         (_mm_cvtpu16_ps): Ditto.
11988         (_mm_cvtpi32x2_ps): Ditto.
11989
11990 2008-04-22  Nick Clifton  <nickc@redhat.com>
11991
11992         * common.opt (ftree-loop-distribution): Add Optimization
11993         attribute.
11994
11995         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
11996         (frv_expand_builtin_va_start): Likewise.
11997
11998         * config/arm/arm.c (thumb_find_work_register): Fix location of
11999         argument register count.
12000
12001 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12002
12003         Support scheduling for ColdFire V1 and V3 microarchitecture.
12004         Improve scheduling of multiplication instructions.
12005
12006         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
12007         (mac): New instruction attribute.
12008         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
12009         (m68k_sched_mac): New variable.
12010         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
12011         Handle cfv1 and cfv3.
12012         (max_insn_size): New static variable.
12013         (struct _sched_ib): New type.
12014         (sched_ib): New static variable.
12015         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
12016         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
12017         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
12018         Update.
12019         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
12020         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
12021         new variables.  Update.
12022         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
12023         Add modeling of cfv3 instruction buffer.  Update.
12024         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
12025         * config/m68k/m68k.h (TUNE_CFV3): New macro.
12026         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
12027         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
12028         a particular reservation applies to.
12029         (type2): Reorganize attribute values.  Rename alu to alu_reg,
12030         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
12031         to mul_l and mul_w.
12032         (cf_ib_*): Simplify description of instruction buffer.
12033         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
12034         (cf_mem): Split into cf_mem1 and cf_mem2.
12035         (cf_v2_move_??): Rename to cfv12_alu_??.
12036         (cf_v2_move_l_??): Rename to cfv12_omove_??.
12037         (cf_v2_mul_??): Remove reservations.
12038         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
12039         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
12040         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
12041         appropriate place.
12042         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
12043         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
12044         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
12045         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
12046         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
12047         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
12048         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
12049         expansions of the above reservations for instructions of sizes
12050         1, 2 and 3 words.
12051
12052 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12053
12054         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
12055
12056 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
12057
12058         * coverage.c: Include tree-pass.h.
12059         (coverage_counter_alloc): Print da_file_name to the dump file.
12060
12061 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
12062
12063         * sbitmap.c (sbitmap_range_empty_p): New function.
12064         * sbitmap.h (sbitmap_range_empty_p): New function.
12065         * bitmap.h: Now includes obstack.h.
12066
12067 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
12068             Kenneth Zadeck  <zadeck@naturalbridge.com>
12069
12070         * dbgcnt.def (ra_byte_scan): Added.
12071         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
12072         when the last hit happens for a counter.
12073         * timevar.def (TV_DF_BYTE_LR): New variable.
12074         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
12075         * passes.c (pass_fast_rtl_byte_dce): New pass.
12076         * fwprop.c (update_df): Added mode to call df_ref_create.
12077         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12078         DF_REF_EXTRACT_OFFSET.
12079         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
12080         DF_BYTE_LR_OUT, df_byte_lr): New macro.
12081         (df_mm): New enum.
12082         (df_ref_extract): Added mode field.
12083         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
12084         DF_REF_EXTRACT_OFFSET.
12085         (DF_REF_EXTRACT_MODE): New macro.
12086         (df_byte_lr_bb_info): New structure.
12087         (df_print_byte_regset, df_compute_accessed_bytes,
12088         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
12089         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
12090         df_byte_lr_simulate_uses,
12091         df_byte_lr_simulate_artificial_refs_at_top,
12092         df_byte_lr_simulate_artificial_refs_at_end,
12093         df_compute_accessed_bytes): New function.
12094         (df_ref_create): Add parameter.
12095         (df_byte_lr_get_bb_info): New inline function.
12096         * df-scan.c (df_ref_record, df_uses_record,
12097         df_ref_create_structure): Added mode parameter.
12098         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
12099         df_defs_record, df_uses_record, df_get_conditional_uses,
12100         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12101         df_entry_block_defs_collect, df_exit_block_uses_collect):
12102         Added mode parameter to calls to df_ref_record, df_uses_record,
12103         df_ref_create_structure.
12104         (df_ref_equal_p, df_ref_compare): Added test for modes.
12105         (df_ref_create_structure): Added code to set mode.  Renamed
12106         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12107         DF_REF_EXTRACT_OFFSET.
12108         * df-core.c (df_print_byte_regset): New function.
12109         * df-byte-scan.c: New file.
12110         * df-problems.c (df_rd_transfer_function): Removed unnecessary
12111         calls to BITMAP_FREE.
12112         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
12113         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
12114         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
12115         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
12116         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
12117         df_byte_lr_local_compute, df_byte_lr_init,
12118         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12119         df_byte_lr_transfer_function, df_byte_lr_free,
12120         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
12121         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
12122         df_byte_lr_simulate_uses,
12123         df_byte_lr_simulate_artificial_refs_at_top,
12124         df_byte_lr_simulate_artificial_refs_at_end): New function.
12125         * dce.c (byte_dce_process_block): New function.
12126         (dce_process_block): au is now passed in rather than computed
12127         locally.  Changed loops that look at artificial defs to not look
12128         for conditional or partial ones, because there never are any.
12129         (fast_dce): Now is able to drive byte_dce_process_block or
12130         dce_process_block depending on the kind of dce being done.
12131         (rest_of_handle_fast_dce): Add parameter to fast_dce.
12132         (rest_of_handle_fast_byte_dce): New function.
12133         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
12134         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
12135
12136 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
12137
12138         PR fortran/35019
12139         * gcc.h: Added fortran options that take arguments to
12140         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
12141         macros.
12142
12143 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
12144
12145         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
12146         scalarization if on the LHS and not a full access.
12147
12148 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12149
12150         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
12151
12152 2008-04-18  Rafael Espindola  <espindola@google.com>
12153
12154         * tree-vrp.c (find_case_label_index): Fix the binary search.
12155         (find_case_label_range): New.
12156         (vrp_visit_switch_stmt): Use find_case_label_range.
12157         (simplify_switch_using_ranges): Use find_case_label_range.
12158
12159 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12160
12161         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
12162         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
12163
12164 2008-04-18  Tom Tromey  <tromey@redhat.com>
12165
12166         PR libcpp/15500:
12167         * doc/cpp.texi (Implementation-defined behavior): Mention
12168         -finput-charset.
12169
12170 2008-04-18  Ian Lance Taylor  <iant@google.com>
12171
12172         * fold-const.c (pointer_may_wrap_p): New static function.
12173         (fold_comparison): Add another test for pointer overflow.  Use
12174         pointer_may_wrap_p to disable some false positives.
12175
12176 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
12177
12178         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
12179         (fname_as_string): Match updated cpp_interpret_string prototype.
12180         (fix_string_type): Support char16_t* and char32_t*.
12181         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
12182         derivative) nodes.  Register as builtin if C++0x.
12183         (c_parse_error): Support CPP_CHAR{16,32}.
12184         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
12185         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
12186         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
12187         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
12188         CTI_CHAR32_ARRAY_TYPE>: New elements.
12189         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
12190         char32_type_node, signed_char32_type_node, char16_array_type_node,
12191         char32_array_type_node): New defines.
12192         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
12193         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
12194         (lex_string): Support CPP_STRING{16,32}, match updated
12195         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
12196         (lex_charconst): Support CPP_CHAR{16,32}.
12197         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
12198         and CPP_STRING{16,32}.
12199
12200 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
12201
12202         PR bootstrap/35457
12203         * aclocal.m4: Regenerate.
12204         * configure: Regenerate.
12205
12206 2008-04-18  Jan Hubicka  <jh@suse.cz>
12207
12208         * except.c (dw2_size_of_call_site_table,
12209         sjlj_size_of_call_site_table): Use vector API for call_site_record.
12210
12211         * cgraphbuild.c (build_cgraph_edges): Update.
12212         * tree-pass.h: Update comment.
12213         * final.c (leaf_function_p): Update.
12214         (leaf_renumber_regs): Update.
12215         (rest_of_clean_state): Update.
12216         * omp-low.c (expand_omp_parallel): Update.
12217         * ipa-reference.c (analyze_function): Update.
12218         * reorg.c (find_end_label): Update.
12219         (optimize_skip): Update.
12220         (fill_simple_delay_slots): Update.
12221         (fill_simple_delay_slots): Update.
12222         (make_return_insns): Update.
12223         (dbr_schedule): Update.
12224         * gimple-low.c (record_vars_into): Update.
12225         * cfgbuild.c (make_edges): Update.
12226         * function.c (assign_stack_local): Update.
12227         (assign_parm_adjust_stack_rtl): Update.
12228         (locate_and_pad_parm): Update.
12229         (allocate_struct_function): Do not initialize stack_alignment_needed
12230         and preferred_stack_boundary here.
12231         (stack_protect_prologue): Update.
12232         (stack_protect_epilogue): Update.
12233         (expand_function_start): Initialize stack_alignment_needed,
12234         preferred_stack_boundary and max_jumptable_ents.
12235         (expand_function_end): Update.
12236         (free_after_compilation): Do not NULLify epilogue_delay_list.
12237         * function.h (struct rtl_data): Add stack_protect_guard,
12238         stack_alignment_needed,
12239         preferred_stack_boundary, epilogue_delay_list.
12240         (struct function): Remove value_histograms, stack_alignment_needed,
12241         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
12242         last_label_uid,
12243         unexpanded_var_list, stack_protect_guard.
12244         (current_function_epilogue_delay_list): Remove.
12245         * ipa-type-escape.c (analyze_function): Update.
12246         * gimplify.c (pop_gimplify_context): Update comment.
12247         * calls.c (expand_call): Update.
12248         (emit_library_call_value_1): Update.
12249         * except.c (set_nothrow_function_flags): Update.
12250         * cfgexpand.c (get_decl_align_unit): Update.
12251         (create_stack_guard): Update.
12252         (estimated_stack_frame_size): Update.
12253         (expand_used_vars): Update.
12254         (tree_expand_cfg): Free histogram earliers, init expansion variables.
12255         * explow.c (allocate_dynamic_stack_space): Update.
12256         * tree-ssa-live.c (remove_unused_locals): Update.
12257         * varasm.c (mark_constant_pool): Update.
12258         * tree-inline.c (remap_decls): Update.
12259         (initialize_cfun): Update.
12260         (declare_return_variable): Update.
12261         (inline_forbidden_p): Update.
12262         (expand_call_inline): Update.
12263         (declare_inline_vars): Update.
12264         (tree_function_versioning): Update.
12265         * tree-flow.h (value_histograms): New.
12266         (VALUE_HISTOGRAMS): New macro.
12267         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
12268         last_label_uid.
12269         * tree-cfg.c (set_bb_for_stmt): Update.
12270         (replace_by_duplicate_decl): Update.
12271         (move_block_to_fn): Update.
12272         (new_label_mapper): Update.
12273         (dump_function_to_file): Update.
12274         * ipa-struct-reorg.c (build_data_structure): Update.
12275         * cfgrtl.c (print_rtl_with_bb): Update.
12276         * reload1.c (reload): Update.
12277         (reload): Update.
12278         * config/i386/i386.c (setup_incoming_varargs_64,
12279         ix86_compute_frame_layout): Update.
12280         * config/arc/arc.c (arc_output_function_epilogue): Update.
12281
12282 2008-04-18  Marius Strobl <marius@FreeBSD.org>
12283
12284         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
12285         for FreeBSD as well.
12286         * gthr-posix95.h: Likewise.
12287
12288 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
12289
12290         PR rtl-optimization/35838
12291         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
12292         out the byte offset of the first subreg.
12293
12294 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
12295
12296         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
12297         to split_ti instead of three separate calls with single member arrays.
12298         (subti3 splitter): Ditto.
12299         (adddi3 splitter): Ditto with split_di.
12300         (subdi3 splitter): Ditto.
12301         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
12302         two separate calls with single member arrays.  Swap match_dup
12303         operands 1 and 2 to better fit into the array.
12304         (negdi2 splitter): Ditto with split_di.
12305         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
12306         two separate calls with single member arrays.  Swap match_dup operands
12307         6 and 7 to better fit into the array.
12308
12309 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
12310
12311         * config/i386/i386.c (sse_builtin_type): New.
12312         (bdesc_sse_args): Likewise.
12313         (bdesc_sse_3arg): Removed.
12314         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12315         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
12316         IX86_BUILTIN_ROUNDPS.
12317         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
12318         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
12319         IX86_BUILTIN_ROUNDPS.
12320         (ix86_expand_sse_4_operands_builtin): Removed.
12321         (ix86_expand_sse_operands_builtin): New.
12322         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
12323         and CODE_FOR_sse4_1_roundps.
12324         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12325         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
12326
12327 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
12328
12329         PR target/35907
12330         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
12331         regs before frame pop when needed.  If use_backchain_to_restore_sp
12332         then load backchain into a temp reg to restore vr and vrsave.  Add
12333         code to restore vr after frame pop if possible.
12334
12335 2008-04-17  Richard Guenther  <rguenther@suse.de>
12336
12337         * tree-vn.c (expressions_equal_p): Do not check type
12338         equality or compatibility before calling operand_equal_p.
12339         * fold-const.c (operand_equal_p): Check equivalence of
12340         integer constants before bailing out due to signedness or
12341         precision differences.
12342         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
12343         spurious differences in type qualification.  Ignore types
12344         for COMPONENT_REFs at all.
12345
12346 2008-04-17  Christian Bruel  <christian.bruel@st.com>
12347
12348         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
12349         msw_skip comparison.
12350
12351 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
12352
12353         PR c/35739
12354         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
12355         reg type.
12356
12357         PR tree-optimization/35899
12358         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
12359         rather than TREE_OPERAND.
12360
12361 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
12362
12363         PR target/35944
12364         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
12365         temporary registers.  Change operand predicate to general_operand.
12366         (remainderxf3): Ditto.
12367
12368 2008-04-16  Richard Guenther  <rguenther@suse.de>
12369
12370         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
12371         * tree-affine.c (aff_combination_expand): Look through some
12372         conversions.
12373
12374 2008-04-15  Doug Kwan  <dougkwan@google.com>
12375
12376         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
12377         for hex printing.
12378         * tree-pretty-print.c (dump_generic_node): Ditto.
12379         * final.c (output_addr_const): Ditto.
12380         * dwarf2out.c (output_cfi): Ditto.
12381         * c-pretty-print.c (pp_c_integer_constant): Ditto.
12382         * print-rtl.c (print_rtx): Ditto.
12383         * print-tree.c (print_node_brief, print_node): Ditto.
12384         * c-common.c (match_case_to_enum_1): Ditto.
12385         * sched-vis.c (print_value): Ditto.
12386         * config/i386/i386.c (print_operand): Cast to long unsigned int
12387         for hex printing.
12388
12389 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
12390         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
12391         MS Windows VirtualProtect function.
12392
12393 2008-04-15  Jan Hubicka  <jh@suse.cz>
12394
12395         * gengtype.c (write_root): Param_is argument is OK.
12396         * expr.c (expand_expr_real_1): Update call of get_exception_*.
12397         * function.h: Include varray.h
12398         (rtl_eh): New stucture based on except.c one.
12399         (call_site_record): New forward declaration and vector type.
12400         * calls.c (emit_call_1): Do not call
12401         note_current_region_may_contain_throw.
12402         * except.c (eh_status): Remove cur_region, try_region since they are
12403         unused.
12404         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
12405         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
12406         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
12407         Remove call_site_data_used, call_site_data_size.
12408         Turn call_site_record into vector in function.h.
12409         (note_current_region_may_contain_throw): Remove.
12410         (get_exception_pointer, get_exception_filter): Do not take struct
12411         function argument; update.
12412         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
12413         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
12414         build_post_landing_pads, dw2_build_landing_pads,
12415         sjlj_assign_call_site_values, sjlj_mark_call_sites,
12416         sjlj_emit_function_enter, sjlj_emit_function_enter,
12417         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12418         sjlj_build_landing_pads, finish_eh_generation,
12419         remove_exception_handler_label, remove_eh_handler,
12420         maybe_remove_eh_handler, add_reachable_handler,
12421         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
12422         add_action_record, collect_one_action_chain, add_call_site,
12423         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
12424         sjlj_output_call_site_table, output_function_exception_table,
12425         * except.h (note_current_region_may_contain_throw): Remove
12426         (get_exception_pointer, get_exception_filter): Do not take struct
12427         function argument.
12428         * Makefile.in (GTFILES): Put varargs before struct function.
12429
12430 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12431
12432         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
12433         punt for STRING_CST.
12434         (get_constraint_for): Deal with STRING_CST here instead.
12435
12436 2008-04-15  Richard Guenther  <rguenther@suse.de>
12437
12438         * tree-ssa-propagate.c (substitute_and_fold): Substitute
12439         statements in a basic-block with a backward walk.  Do not
12440         substitute into dead statements but instead remove those.
12441
12442 2008-04-15  Richard Guenther  <rguenther@suse.de>
12443
12444         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
12445         to zero, thus disable creation of SFTs.
12446
12447 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12448
12449         * tree-predcom.c (suitable_reference_p): Return false if the
12450         reference can throw.
12451
12452 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
12453
12454         PR c/35751
12455         * c-decl.c (finish_decl): If extern or static var has variable
12456         size, set TREE_TYPE (decl) to error_mark_node.
12457
12458 2008-04-15  Rafael Espindola  <espindola@google.com>
12459
12460         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
12461         variable arg1.
12462
12463 2008-04-15  Richard Guenther  <rguenther@suse.de>
12464
12465         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12466         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
12467         (visit_reference_op_load): Do walk vuse-vdef chains on
12468         vn_reference_lookup.
12469         (visit_reference_op_store): But do not here.
12470         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
12471         vn_reference_lookup.
12472         (vn_lookup_with_vuses): But do so here.
12473
12474 2008-04-14  Ian Lance Taylor  <iant@google.com>
12475
12476         * fold-const.c (fold_overflow_warning): Remove assertion.
12477
12478 2008-04-15  Ben Elliston  <bje@au.ibm.com>
12479
12480         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
12481         temp1 local variables.
12482
12483 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
12484
12485         PR target/35661
12486         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
12487         ".text.unlikely" section as executable.
12488
12489 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
12490
12491         * config/ia64/ia64.c (rtx_needs_barrier): Handle
12492         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
12493         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
12494         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
12495         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
12496         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
12497         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
12498
12499 2008-04-14  Ian Lance Taylor  <iant@google.com>
12500
12501         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
12502         * fold-const.c (fold_comparison): If appropriate, test
12503         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
12504         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
12505         reassociating a pointer type.
12506         * doc/invoke.texi (Optimize Options): Document that
12507         -fstrict-overflow applies to pointer wraparound.
12508
12509 2008-04-13  Jan Hubicka  <jh@suse.cz>
12510
12511         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
12512
12513 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
12514
12515         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
12516         we are going to "save the world".
12517
12518 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
12519
12520         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
12521         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
12522         operand 0 constraint, not "=".
12523
12524 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
12525
12526         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
12527
12528 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
12529
12530         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
12531         of size of positions_needed * CHAR_BIT.
12532
12533 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
12534
12535         PR middle-end/35897
12536         * dse.c (store_info): Change positions_needed to unsigned
12537         HOST_WIDE_INT.
12538         (lowpart_bitmask): New.
12539         (record_store): Cast to unsigned HOST_WIDE_INT for
12540         positions_needed.  Assert width <= size of positions_needed *
12541         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
12542         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
12543         lowpart_bitmask to set mask.
12544
12545 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
12546
12547         * config/bfin/constraints.md: New file.
12548         * config/bfin/bfin.md: Include it.
12549         (adddi3): Use satisfies_constraint functions instead of the old macros.
12550         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
12551         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
12552         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
12553         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
12554         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
12555         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
12556         EXTRA_CONSTRAINT): Delete.
12557         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
12558         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
12559         of the old macros.
12560         * config/bfin/bfin.c: Include "tm-constrs.h".
12561         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
12562         Use satisfies_constraint functions instead of the old macros.
12563         * doc/md.texi (Blackfin Constraints): Update file name reference.
12564
12565 2008-04-11  Richard Guenther  <rguenther@suse.de>
12566
12567         PR tree-optimization/35869
12568         * tree-vrp.c (execute_vrp): Move switch statement update after
12569         jump threading.  Schedule another cfg cleanup run.
12570
12571 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
12572
12573         PR c/35744
12574         * attribs.c (decl_attributes): Return early on errorneous node.
12575
12576 2008-04-10  Oleg Ryjkov  <olegr@google.com>
12577
12578         * tree.h (struct tree_base): Added a new flag default_def_flag.
12579         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
12580
12581 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12582
12583         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
12584
12585 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12586
12587         PR target/35768
12588         * pa.md: Define mode iterator P.  Define mode attribute dwc.
12589         (dcacheflush): Update pattern to use iterator P and attribute dwc.
12590         (icacheflush): Likewise.
12591         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
12592         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
12593
12594 2008-04-11  Ben Elliston  <bje@au.ibm.com>
12595
12596         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
12597
12598 2008-04-10  Rafael Espindola  <espindola@google.com>
12599
12600         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
12601         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
12602         (extract_range_from_expr): The same.
12603
12604 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
12605
12606         * config/mips/mips.md (GPR2): New mode iterator.
12607         (seq): Add comment.
12608         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
12609         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
12610         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
12611         Rewrite these to take two modes, the mode of comparison and the
12612         mode of the destination.
12613         * config/mips/mips.c (mips_expand_scc): Instead of having
12614         paradoxical subreg as destination, expand "narrowing" scc if mode
12615         of comparison is SI and target is requested in DI mode.
12616         (mips_emit_int_order_test): Update comment.  Make mode of
12617         comparison match CMP0 rather than TARGET.  When creating inverse
12618         target use mode of TARGET.
12619
12620 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
12621
12622         * gcov-dump.c (tag_summary): Only print summaries for the first
12623         GCOV_COUNTERS_SUMMABLE counters.
12624
12625 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
12626
12627         * config/i386/i386.md (absneg): New code iterator.
12628         (absnegprefix): New code attribute.
12629         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
12630         patterns using absneg code iterator.
12631         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
12632         using absneg code iterator.
12633         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
12634         *neg<mode>2 patterns using absneg code iterator.
12635         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
12636         *negextendsfdf2 patterns using absneg code iterator.
12637         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
12638         *negextendsfxf2 patterns using absneg code iterator.
12639         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
12640         *negextendsfdf2 patterns using absneg code iterator.
12641         * config/i386/sse.md (<code><mode>2): Macroize expander from
12642         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
12643
12644 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
12645
12646         * config/s390/s390.h: Remove the remains of the recent search
12647         & replace action of current_function_outgoing_args_size.
12648
12649 2008-04-10  Ira Rosen  <irar@il.ibm.com>
12650
12651         PR tree-optimization/35821
12652         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
12653         NEW_STMT_LIST is not NULL.
12654
12655 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
12656
12657         PR libstdc++/35597
12658         * toplev.c (process_options): Remove -ffunction-sections debugging
12659         warning.
12660
12661 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
12662
12663         PR middle-end/PR28690
12664         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
12665         than gen_rtx_fmt_ee to perform more canonicalizations.
12666
12667 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12668
12669         PR driver/35665
12670         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
12671
12672 2008-04-09  Richard Guenther  <rguenther@suse.de>
12673
12674         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
12675         (dump_function_to_file): Dump function arguments with types.
12676
12677 2008-04-08  Richard Guenther  <rguenther@suse.de>
12678
12679         * fold-const.c (fold_widened_comparison): Do not allow
12680         sign-changes that change the result.
12681
12682 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
12683
12684         PR target/35839
12685         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
12686         kinds of indirect references.
12687
12688 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
12689
12690         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
12691         GNU Fortran language string.
12692
12693 2008-04-08  Rafael Espindola  <espindola@google.com>
12694
12695         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
12696         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
12697         * tree.h (tree_call_nonnegative_warnv_p): New.
12698
12699 2008-04-08  Jan Hubicka  <jh@suse.cz>
12700
12701         * function.c (free_after_compilation): Clear out regno_reg_rtx
12702         pointer.
12703
12704 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
12705
12706         Revert
12707         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
12708
12709         PR middle-end/PR28690
12710         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
12711         same precedence as REG_POINTER and MEM_POINTER operands.
12712
12713 2008-04-08  Richard Guenther  <rguenther@suse.de>
12714
12715         PR middle-end/35834
12716         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
12717         for adding index to base.
12718
12719 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
12720
12721         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
12722         (MINGW_ENABLE_EXECUTE_STACK): New.
12723         (IN_LIBGCC2): For libgcc include windows.h file for
12724         function declarations.
12725
12726 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
12727
12728         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
12729         and tem2 if tem1 is not a REG or MULT.
12730
12731 2008-04-08  Jan Hubicka  <jh@suse.cz>
12732
12733         * function.h (incomming_args): Break out of struct function.
12734         (function_subsections): Break out of struct function.
12735         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
12736         return_rtx and hard_reg_initial_vals from struct function.
12737         Kill inl_max_label_num.
12738         (current_function_pops_args, current_function_args_info,
12739         current_function_args_size, current_function_args_size,
12740         current_function_pretend_args_size,
12741         current_function_outgoing_args_size,
12742         current_function_internal_arg_pointer, current_function_return_rtx):
12743         Kill compatibility accestor macros.
12744         * builtins.c (expand_builtin_apply_args_1): Update.
12745         (expand_builtin_next_arg): Update.
12746         * df-scan.c (df_get_call_refs): Update.
12747         * dbxout.c (dbxout_function_end): Update.
12748         * dwarf2out.c (dwarf2out_switch_text_section): Update.
12749         (output_line_info): Update.
12750         (secname_for_decl): Update.
12751         (dwarf2out_var_location): Update.
12752         * function.c (free_after_compilation): Update.
12753         (assign_parm_find_stack_rtl): Update.
12754         (assign_parms): Update.
12755         (expand_dummy_function_end): Update.
12756         (expand_function_end): Update.
12757         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
12758         (expand_call): Update.
12759         (emit_library_call_value_1): Update.
12760         (store_one_arg): Update.
12761         * varasm.c (initialize_cold_section_name): Update.
12762         (unlikely_text_section): Update.
12763         (unlikely_text_section_p): Update.
12764         (assemble_start_function): Update.
12765         (assemble_end_function): Update.
12766         (default_section_type_flags): Update.
12767         (switch_to_section): Update.
12768         * integrate.c (set_decl_abstract_flags): Update.
12769         (get_hard_reg_initial_val): Update.
12770         (has_hard_reg_initial_val): Update.
12771         (allocate_initial_values): Update.
12772         * resource.c (init_resource_info): Update.
12773         * config/alpha/alpha.c (NUM_ARGS): Update.
12774         (direct_return): Update.
12775         (alpha_va_start): Update.
12776         (alpha_sa_size): Update.
12777         (alpha_initial_elimination_offset): Update.
12778         (alpha_expand_prologue): Update.
12779         (alpha_start_function): Update.
12780         (alpha_expand_epilogue): Update.
12781         (unicosmk_initial_elimination_offset):
12782         * config/alpha/alpha.md (call expander): Update.
12783         * config/s390/s390.c (s390_register_info): Update.
12784         (s390_register_info): Update.
12785         (s390_frame_info): Update.
12786         (s390_initial_elimination_offset): Update.
12787         (s390_build_builtin_va_list): Update.
12788         (s390_va_start): Update.
12789         * config/spu/spu.c (direct_return): Update.
12790         (spu_expand_prologue): Update.
12791         (spu_initial_elimination_offset): Update.
12792         (spu_build_builtin_va_list): Update.
12793         (spu_va_start): Update.
12794         * config/sparc/sparc.c (sparc_init_modes): Update.
12795         (sparc_compute_frame_size): Update.
12796         (function_value): Update.
12797         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
12798         * config/i386/i386.md (return expander): Update.
12799         * config/i386/i386.c (ix86_va_start): Update.
12800         (ix86_can_use_return_insn_p): Update.
12801         (ix86_compute_frame_layout): Update.
12802         (ix86_expand_epilogue): Update.
12803         * config/sh/sh.c (output_stack_adjust): Update.
12804         (calc_live_regs): Update.
12805         (sh_expand_prologue): Update.
12806         (sh_builtin_saveregs): Update.
12807         (sh_va_start): Update.
12808         (initial_elimination_offset): Update.
12809         (sh_allocate_initial_value): Update.
12810         (sh_function_ok_for_sibcall): Update.
12811         (sh_get_pr_initial_val): Update.
12812         * config/sh/sh.md (return expander): Update.
12813         * config/avr/avr.c (frame_pointer_required_p): UPdate.
12814         * config/crx/crx.c (crx_compute_frame): UPdate.
12815         (crx_initial_elimination_offset): UPdate.
12816         * config/xtensa/xtensa.c (compute_frame_size): Update
12817         (xtensa_builtin_saveregs): Update.
12818         (xtensa_va_start): Update.
12819         (order_regs_for_local_alloc): Update.
12820         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
12821         (xstormy16_expand_builtin_va_start): Update.
12822         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
12823         * config/m68hc11/m68hc11.md (return expanders): Update.
12824         * config/m68hc11/m68hc11.c (expand_prologue): Update.
12825         (expand_epilogue): Update.
12826         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
12827         (cris_simple_epilogue): Update.
12828         (cris_expand_prologue): Update.
12829         (cris_expand_epilogue): Update.
12830         * config/iq2000/iq2000.c (iq2000_va_start): Update.
12831         (compute_frame_size): Update.
12832         * config/mt/mt.c (mt_compute_frame_size): Update.
12833         * config/mn10300/mn10300.c (expand_prologue): Update.
12834         (expand_epilogue): Update.
12835         (initial_offset): Update.
12836         (mn10300_builtin_saveregs):
12837         * config/mn10300/mn10300.md (return expander): Update.
12838         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
12839         (ia64_initial_elimination_offset): Update.
12840         (ia64_initial_elimination_offset): Update.
12841         (ia64_expand_prologue): Update.
12842         * config/m68k/m68k.md (return expander): Update.
12843         * config/rs6000/rs6000.c (rs6000_va_start): Update.
12844         (rs6000_stack_info): Update.
12845         * config/mcore/mcore.c (layout_mcore_frame): Update.
12846         (mcore_expand_prolog): Update.
12847         * config/arc/arc.c (arc_compute_frame_size): Update.
12848         * config/score/score3.c (score3_compute_frame_size): Update.
12849         * config/score/score7.c (score7_compute_frame_size): Update.
12850         * config/arm/arm.c (use_return_insn): Update.
12851         (thumb_find_work_register): Update.
12852         (arm_compute_save_reg_mask): Update.
12853         (arm_output_function_prologue): Update.
12854         (arm_output_epilogue): Update.
12855         (arm_size_return_regs): Update.
12856         (arm_get_frame_offsets): Update.
12857         (arm_expand_prologue): Update.
12858         (thumb_exit): Update.
12859         (thumb_unexpanded_epilogue): Update.
12860         (thumb1_output_function_prologue): Update.
12861         * config/pa/pa.md (return expander): Update.
12862         * config/pa/pa.c (compute_frame_size): Update.
12863         (hppa_builtin_saveregs): Update.
12864         * config/mips/mips.c (mips_va_start): Update.
12865         (mips16_build_function_stub): Update.
12866         (mips_compute_frame_info): Update.
12867         (mips_restore_gp): Update.
12868         (mips_output_function_prologue): Update.
12869         (mips_expand_prologue): Update.
12870         * config/v850/v850.c (compute_frame_size): Update.
12871         (expand_prologue): * config/mmix/mmix.c (along): update.
12872         (mmix_initial_elimination_offset): update.
12873         (mmix_reorg): update.
12874         (mmix_use_simple_return): update.
12875         (mmix_expand_prologue): update.
12876         (mmix_expand_epilogue): Update.
12877         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
12878         (emit_link_insn): Update.
12879
12880 2008-04-08  Anatoly Sokolov <aesok@post.ru>
12881
12882         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
12883         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
12884         instructions.
12885         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
12886         atmega103 device.
12887
12888 2008-04-07  Jan Hubicka  <jh@suse.cz>
12889
12890         * function.h (rtl): Rename to x_rtl.
12891         (crtl): New define.
12892         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12893         frame_offset, stack_check_probe_note, arg_pointer_save_area,
12894         used_temp_slots avail_temp_slots, temp_slot_level,
12895         nonlocal_goto_handler_labels): Update accesstors.
12896         (rtl): New global variable.
12897         (struct function): Move some fileds to rtl_data.
12898         (get_arg_pointer_save_area): Update prototype.
12899         * builtins.c (expand_builtin_setjmp_receiver): Update call of
12900         get_arg_pointer_save_area.
12901         * expr.c (init_expr): Update
12902         * function.c (get_frame_size): Update
12903         (assign_stack_local): Update
12904         (expand_function_end): Update.
12905         (get_art_pointer_save_area): Update
12906         * function.h
12907         * emit-rtl.c (rtl): Declare.
12908         (regno_reg_rtx): Declare.
12909         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12910         Update.
12911         (gen_reg_rtx): Update.
12912         * varasm.c (n_deferred_constatns): Update accestor.
12913         (init_varasm_status): Do not allocate varasm_status.
12914         (force_const_mem, get_pool_size, output_constant_pool): Update.
12915         * stmt.c (force_label_rtx): Do not use x_ prefixes.
12916         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12917         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
12918         * sparc/sparc.h (INIT_EXPANDERS): Update.
12919         * ia64/ia64.h (INIT_EXPANDERS): Update.
12920
12921 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
12922
12923         * reload.c (push_secondary_reload): Add missing break to for loop.
12924
12925 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
12926
12927         PR middle-end/PR28690
12928         * rtlanal.c: Update copyright years.
12929         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
12930         as REG_POINTER and MEM_POINTER operands.
12931         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
12932         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
12933         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
12934         * gcse.c: Update copyright years.
12935         (pre_delete): Call gen_reg_rtx_and_attrs.
12936         (hoist_code): Likewise.
12937         (build_store_vectors): Likewise.
12938         (delete_store): Likewise.
12939         * loop-invariant.c (move_invariant_reg): Likewise.
12940         Update copyright years.
12941
12942 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
12943
12944         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
12945         control string instead of quoted.
12946
12947 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
12948
12949         * doc/rtl.texi: Rewrite of subreg section.
12950
12951 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
12952
12953         PR/35842
12954         * config/i386/i386.c (legitimize_pic_address): Add treating
12955         of dllimport SYM_REF's.
12956         (legitimize_dllimport_symbol): Add prototype.
12957
12958 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
12959
12960         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
12961         reference in constructor with non self-referential type.
12962
12963 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
12964
12965         Removal of Return with Depressed Stack Pointer support
12966         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
12967         (ECF_SP_DEPRESSED): Likewise.
12968         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
12969         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
12970         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12971         (expand_call): Do not test ECF_SP_DEPRESSED.
12972         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12973         * function.c (keep_stack_depressed): Delete.
12974         (handle_epilogue_set): Likewise.
12975         (update_epilogue_consts): Likewise.
12976         (emit_equiv_load): Likewise.
12977         (thread_prologue_and_epilogue_insns): Remove support for Return with
12978         Depressed Stack Pointer.
12979         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12980
12981 2008-04-06  Richard Guenther  <rguenther@suse.de>
12982
12983         PR tree-optimization/35400
12984         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
12985         information from SSA_NAMEs.
12986
12987 2008-04-06  Anatoly Sokolov <aesok@post.ru>
12988
12989         * config/avr/avr.h (avr_mega_p): Remove declaration.
12990         (AVR_MEGA): Remove macro.
12991         * config/avr/avr.c (avr_mega_p): Remove variable.
12992         (avr_override_options): Remove inicializion of avr_mega_p.
12993         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
12994         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
12995         (avr_jump_mode): (Ditto.).
12996         (avr_output_progmem_section_asm_op): (Ditto.).
12997         (avr_asm_init_sections): (Ditto.).
12998         (avr_asm_init_sections): (Ditto.).
12999         (avr_rtx_costs): (Ditto.).
13000         * config/avr/avr.md: (Ditto.).
13001         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
13002         '__AVR_MEGA__'.
13003
13004 2008-04-06  Richard Guenther  <rguenther@suse.de>
13005
13006         PR tree-optimization/35842
13007         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
13008         is_gimple_invariant_address.
13009
13010 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13011
13012         * gcc.c (default_compilers): Sync Fortran extensions list with
13013         that in fortran/lang-specs.h.
13014         * doc/invoke.texi: Likewise.
13015         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
13016         * dwarf2out.c (gen_compile_unit_die): Likewise.
13017
13018 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
13019
13020         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
13021
13022 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
13023
13024         PR target/12329
13025         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
13026         attribute is used for nested functions.
13027
13028 2008-04-05  Jan Hubicka  <jh@suse.cz>
13029
13030         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
13031
13032         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
13033         letter argument.
13034         (dump_files): Update.
13035         (enable_rtl_dump_file): Do not accept letter argument.
13036         * tree-pass.h (dump_file_info): Remove letter argument.
13037         * toplev.c (decode_d_option): Update -da handling.
13038         * toplev.h (enable_rtl_dump_file): Update prototype.
13039         * passes.c (register_one_dump_file): Do not accept IPA argument; work
13040         it out based on pass type.
13041         (register_dump_files_1): Likewise.
13042         (init_optimization_passes): Update register_one_dump_file calls.
13043         (execute_one_pass): Sanity check that IPA passes are called at IPA
13044         level and RTL passes at RTL level.
13045         (execute_pass_list): IPA pass can not be after or subpass of
13046         GIMPLE/RTL pass.
13047         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
13048         disallov RTL subpasses of IPA subpasses.
13049
13050 2008-04-05  Ben Elliston  <bje@au.ibm.com>
13051
13052         * tree-cfg.c (need_fake_edge_p): Return false for calls to
13053         builtins that return exactly once and do not throw. Cache call to
13054         call_expr_flags.
13055
13056 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
13057
13058         PR rtl-optimization/34916
13059         PR middle-end/35519
13060         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
13061         between instruction pairs.
13062
13063 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
13064
13065         * doc/invoke.texi: Document -mbitops for SH.
13066         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
13067         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
13068         * config/sh/sh.c (print_operand): Add %t operand code.
13069         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
13070         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
13071         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
13072         (extendqihi2): Likewise.
13073         (movqi_i): Likewise.
13074         (insv): Use bset, bclr and bst instructions for SH2A if possible.
13075         (extv): Use bld instruction for SH2A if possible.
13076         (extzv): Likewise.
13077         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
13078         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
13079         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
13080         (bset.b, bclr.b): Define peepholes.
13081         * config/sh/sh.opt (mbitops): New option.
13082
13083 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
13084
13085         PR target/35620
13086         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
13087         and view convert expression.
13088
13089 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
13090
13091         PR target/35364
13092         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13093
13094 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
13095
13096         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
13097
13098         * config/i386/cpuid.h (bit_AES): New.
13099         (bit_PCLMUL): Likewise.
13100
13101         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
13102         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
13103         SSE2 if AES or PCLMUL is enabled.
13104         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
13105         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13106         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
13107         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
13108         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
13109         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
13110         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13111         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
13112         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
13113         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
13114         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
13115         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
13116         __builtin_ia32_aeskeygenassist128 and
13117         __builtin_ia32_pclmulqdq128.
13118         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
13119         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
13120         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
13121
13122         * config/i386/i386.h (TARGET_AES): New.
13123         (TARGET_PCLMUL): Likewise.
13124         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
13125
13126         * config/i386/i386.md (UNSPEC_AESENC): New.
13127         (UNSPEC_AESENCLAST): Likewise.
13128         (UNSPEC_AESDEC): Likewise.
13129         (UNSPEC_AESDECLAST): Likewise.
13130         (UNSPEC_AESIMC): Likewise.
13131         (UNSPEC_AESKEYGENASSIST): Likewise.
13132         (UNSPEC_PCLMUL): Likewise.
13133
13134         * config/i386/i386.opt (maes): New.
13135         (mpclmul): Likewise.
13136
13137         * config/i386/sse.md (aesenc): New pattern.
13138         (aesenclast): Likewise.
13139         (aesdec): Likewise.
13140         (aesdeclast): Likewise.
13141         (aesimc): Likewise.
13142         (aeskeygenassist): Likewise.
13143         (pclmulqdq): Likewise.
13144
13145         * config/i386/wmmintrin.h: New.
13146
13147         * doc/extend.texi: Document AES and PCLMUL built-in function.
13148
13149         * doc/invoke.texi: Document -maes and -mpclmul.
13150
13151 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
13152
13153         * function.c (free_after_parsing): Replace with
13154         cxx_push_function_context from C++ front-end.
13155         (allocate_struct_function): Don't call langhook.
13156         * langhooks.h (struct lang_hooks_for_functions): Delete.
13157         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
13158         member "function".
13159         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
13160         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
13161         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
13162         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
13163         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
13164         remove LANG_HOOKS_FUNCTION_INITIALIZER.
13165         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
13166
13167         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
13168         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
13169
13170 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
13171
13172         PR c/35440
13173         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
13174         for all types.
13175
13176 2008-04-04  Richard Guenther  <rguenther@suse.de>
13177
13178         PR middle-end/35823
13179         * fold-const.c (optimize_minmax_comparison): Use the correct
13180         type for the constant in the simplified comparison.
13181
13182 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
13183
13184         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
13185         Pass L2 size as "--param l2-cache-size" to the compiler.
13186         (decode_l2_cache): New function to decode L2 cache parameters using
13187         0x8000006 extended cpuid function.
13188         (detect_caches_amd): Determine parameters of L2 cache using
13189         decode_l2_caches function.
13190         (decode_caches_intel): Decode L2 cache parameters.
13191         (detect_caches_intel): Determine L2 cache parameters using
13192         decode_caches_intel and decode_l2_caches functions.
13193
13194 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
13195
13196         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
13197         secondary input reload for subword loads from the constant pool.
13198
13199 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
13200
13201         PR target/35713
13202         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
13203           constants of the appropriate size for runtime calculations.
13204
13205         PR c/35712
13206         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
13207           decimal-float literal constant zero.
13208
13209 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
13210
13211         PR c/35738
13212         * c-parser.c (c_parser_omp_atomic): Call
13213         default_function_array_conversion on the RHS.
13214
13215         PR middle-end/35818
13216         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
13217         call is_variable_sized if decl has incomplete type.
13218
13219 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
13220
13221         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
13222
13223 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
13224
13225         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
13226         iterators.
13227         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
13228         (sgt<u>): Merge sgt and sgtu into new expander.
13229         (sgt, sgtu): Remove expanders.
13230         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
13231         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
13232         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
13233         *sgtu_<mode>_mips16 into new pattern.
13234         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
13235         (sge<u>): Merge sge and sgeu into new expander.
13236         (sge, sgeu): Remove expanders.
13237         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
13238         new pattern.
13239         (*sge_<mode>, second *sge_<mode>): Remove patterns.
13240         (slt<u>): Merge slt and sltu into new expander.
13241         (slt, sltu): Remove expanders.
13242         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
13243         (*slt_<mode>, *sltu_<mode>): Remove patterns.
13244         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
13245         *sltu_<mode>_mips16 into new pattern.
13246         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
13247         (sle<u>): Merge sle and sleu into new expander.
13248         (sle, sleu): Remove expanders.
13249         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
13250         (*sle_<mode>, *sleu_<mode>): Remove patterns.
13251         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
13252         *sleu_<mode>_mips16 into new pattern.
13253         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
13254
13255 2008-04-03  Jan Hubicka  <jh@suse.cz>
13256
13257         PR tree-optimization/35795
13258         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
13259         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13260         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13261         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13262         * score/score3.c (score3_output_mi_thunk): Likewise.
13263         * score/score7.c (score7_output_mi_thunk): Likewise.
13264         * mips/mips.c (mips_output_mi_thunk): Likewise.
13265
13266 2008-04-03  Richard Guenther  <rguenther@suse.de>
13267
13268         * tree-vrp.c (extract_range_from_unary_expr): Handle all
13269         conversions.  Simplify code.
13270
13271 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13272
13273         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
13274
13275 2008-04-03  Tom Tromey  <tromey@redhat.com>
13276             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13277
13278         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13279         * config/bfin/t-bfin-linux (generated_files): Add
13280         linux-sysroot-suffix.h.
13281         * doc/install.texi (Prerequisites): Require make 3.80.
13282         * doc/sourcebuild.texi (Front End Directory): Document new
13283         variable.
13284         * Makefile.in (generated_files): New variable.
13285         (ALL_HOST_OBJS): New variable.
13286         ($(ALL_HOST_OBJS)): New target.
13287
13288 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13289
13290         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
13291         (remap_block): Call id->transform_lang_insert_block instead
13292         of langhook.
13293         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
13294         Set id.transform_lang_insert_block to NULL.
13295         (clone_body): Move to cp/optimize.c
13296         * tree-inline.h (struct copy_body_data): Change
13297         transform_lang_insert_block to function pointer.
13298         (copy_generic_body, copy_decl_no_change): Export.
13299         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
13300         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
13301         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
13302
13303         * c-tree.h (insert_block): Kill.
13304         * c-decl.c (insert_block): Kill.
13305
13306 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13307
13308         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13309         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13310         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
13311         argument.
13312         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
13313         argument, call {push,pop}_function_context from here.
13314         * c-parser.c: Use c_{push,pop}_function_context.
13315
13316         * function.c (push_function_context_to): Move meat ...
13317         (push_function_context): ... here.  Simplify.
13318         * function.c (pop_function_context_from): Move meat ...
13319         (pop_function_context): ... here.  Simplify.
13320         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
13321         leave_nested).
13322         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13323         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13324         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
13325         * tree.h (push_function_context_to, pop_function_context_from): Remove.
13326
13327 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13328
13329         * expmed.c (extract_force_align_mem_bit_field): Remove.
13330
13331 2008-04-03  Richard Guenther  <rguenther@suse.de>
13332
13333         PR middle-end/35800
13334         * expr.h (try_casesi): Adjust prototype.
13335         * expr.c (try_casesi): Take fallback label as extra parameter.
13336         Use that for gen_casesi if default_label is NULL.
13337         * stmt.c (expand_case): Pass fallback label to try_casesi,
13338         make sure to fill gaps with a fallback label if default_label
13339         is not present.
13340
13341 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
13342
13343         PR target/35801
13344         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
13345
13346 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13347
13348         * expmed.c (extract_split_bit_field): Remove if (0) code.
13349         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
13350         (do_ds_constraint): Likewise.
13351
13352 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
13353
13354         * doc/cppopts.texi (-dU): Document.
13355         * c-common.h (flag_dump_macros): Update comment.
13356         * c-opts.c (handle_OPT_d): Handle -dU.
13357         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
13358         dump_queued_macros, cb_used_define, cb_used_undef): New.
13359         (init_pp_output): Handle -dU.
13360         (cb_line_change): Call dump_queued_macros.
13361         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
13362
13363 2008-04-02  Anatoly Sokolov <aesok@post.ru>
13364
13365         * config/avr/predicates.md (io_address_operand): New predicate.
13366         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
13367         * config/avr/avr.c (avr_io_address_p): Remove function.
13368         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
13369         'avr_io_address_p' function.
13370         (out_movhi_r_mr): (Ditto.).
13371         (out_movqi_mr_r): (Ditto.).
13372         (out_movhi_mr_r): (Ditto.).
13373         (avr_address_cost): (Ditto.).
13374
13375 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
13376
13377         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
13378         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
13379         in 32bit mode when XMM registers are available to avoid store
13380         forwarding stalls.
13381         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
13382         corresponding post-reload splitters.
13383
13384 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13385
13386         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
13387         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
13388         __builtin_ia32_roundss.
13389         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
13390         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
13391         __builtin_ia32_roundss.
13392         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
13393         IX86_BUILTIN_SHUFPD here.
13394
13395 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13396
13397         * config/i386/i386.md (plogic): New.
13398         (plogicprefix): Likewise.
13399
13400         * config/i386/mmx.md (mmx_<code><mode>3): New.
13401         (mmx_and<mode>3): Removed.
13402         (mmx_ior<mode>3): Likewise.
13403         (mmx_xor<mode>3): Likewise.
13404
13405         * config/i386/sse.md (<code><mode>3): New.
13406         (*<code><mode>3): Likewise.
13407         (*<code><mode>3): Likewise.
13408         (<code><mode>3): Likewise.
13409         (*sse_<code><mode>3): Likewise.
13410         (*sse2_<code><mode>3): Likewise.
13411         (<code>tf3): Likewise.
13412         (*<code>tf3): Likewise.
13413         (and<mode>3): Likewise.
13414         (*and<mode>3): Likewise.
13415         (ior<mode>3): Removed.
13416         (*ior<mode>3): Likewise.
13417         (xor<mode>3): Likewise.
13418         (*xor<mode>3): Likewise.
13419         (*and<mode>3): Likewise.
13420         (*ior<mode>3): Likewise.
13421         (*xor<mode>3): Likewise.
13422         (and<mode>3): Likewise.
13423         (*sse_and<mode>3): Likewise.
13424         (*sse2_and<mode>3): Likewise.
13425         (andtf3): Likewise.
13426         (*andtf3): Likewise.
13427         (ior<mode>3): Likewise.
13428         (*sse_ior<mode>3): Likewise.
13429         (*sse2_ior<mode>3): Likewise.
13430         (iortf3): Likewise.
13431         (*iortf3): Likewise.
13432         (xor<mode>3): Likewise.
13433         (*sse_xor<mode>3): Likewise.
13434         (*sse2_xor<mode>3): Likewise.
13435         (xortf3): Likewise.
13436         (*xortf3): Likewise.
13437
13438 2008-04-02  Richard Guenther  <rguenther@suse.de>
13439
13440         PR tree-optimization/14495
13441         PR tree-optimization/34793
13442         * tree-vrp.c (struct switch_update): New structure.
13443         (to_remove_edges, to_update_switch_stmts): New VECs.
13444         (simplify_switch_using_ranges): New function.  Remove not taken
13445         case labels and edges.
13446         (simplify_stmt_using_ranges): Call it.
13447         (identify_jump_threads): Mark edges we have queued for removal
13448         so we don't thread them.
13449         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
13450         case label vector.
13451         * tree-cfg.c (group_case_labels): Deal with missing default label.
13452         (tree_verify_flow_info): Allow missing default label.
13453         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
13454         (emit_case_nodes): Likewise.
13455         (expand_case): Do not rely on the default label to be present.
13456         * expr.c (try_casesi): Deal with NULL default_label.
13457         (do_tablejump): Likewise.
13458
13459 2008-04-02  Richard Guenther  <rguenther@suse.de>
13460
13461         PR tree-optimization/14495
13462         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
13463         SWITCH_EXPR here ...
13464         (vrp_visit_switch_stmt): ... but here (new function).
13465         (find_case_label_index): New helper function.
13466         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
13467
13468 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13469
13470         * fwprop.c: Fix ISO-C99ism.
13471
13472 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13473
13474         PR bootstrap/35752
13475         * Makefile.in (objdir): Set it here.
13476         * configure.ac: Not here.  Find dynamic linker characteristics.
13477         * exec-tool.in: Use them.
13478         * aclocal.m4: Regenerate.
13479         * configure: Regenerate.
13480
13481 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13482
13483         * expr.c (expand_var): Delete it.
13484         * expr.h (expand_var): Delete prototype.
13485         * function.c (expand_function_start): Use expand_decl instead.
13486         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
13487         langhook.
13488
13489 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
13490
13491         PR rtl-optimization/35542
13492         * fwprop.c (forward_propagate_and_simplify): Replace
13493         loc_reg_mentioned_in_p with reg_mentioned_p.
13494
13495 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13496
13497         PR rtl-optimization/35281
13498         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
13499         (propagate_rtx_1): Handle PR_HANDLE_MEM.
13500         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
13501         (varying_mem_p): Move above propagate_rtx.
13502         (all_uses_available_at): Do not check MEMs.
13503
13504 2008-04-02  Rafael Espindola  <espindola@google.com>
13505
13506         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
13507         (register_edge_assert_for_2): Split the cond argument.
13508         (register_edge_assert_for_1): Adjust for the change in
13509         register_edge_assert_for_2.
13510         (register_edge_assert_for): Split the cond argument.
13511         (find_switch_asserts): Adjust for the change in
13512         register_edge_assert_for.
13513
13514 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
13515
13516         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
13517         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
13518         offsets for 64-bit mingw.
13519         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
13520         abi for x86_64-pc-mingw.
13521
13522 2008-04-02  Richard Guenther  <rguenther@suse.de>
13523
13524         * tree-vrp.c (extract_range_from_assert): Make sure to not
13525         produce range min/max with TREE_OVERFOW set.
13526         If merging a anti-range and a range keep the anti-range if
13527         the range covers all values of the type.
13528         (register_edge_assert_for_2): Only allow sign-changing
13529         conversions in detecting canonical range checks.  Also
13530         register an assert for the unsigned name if useful.
13531
13532         PR tree-optimization/35787
13533         * tree-vrp.c (vrp_val_max): New function.
13534         (vrp_val_min): Likewise.
13535         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
13536         (vrp_val_is_min): Likewise.
13537         (supports_overflow_infinity): Use vrp_val_{min,max}.
13538         (negative_overflow_infinity): Likewise.
13539         (positive_overflow_infinity): Likewise.
13540         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
13541         (is_positive_overflow_infinity): Likewise.
13542         (is_overflow_infinity): Likewise.
13543         (avoid_overflow_infinity): Use vrp_val_{min,max} and
13544         vrp_val_is_{min,max}.
13545         (set_and_canonicalize_value_range): Canonicalize anti-ranges
13546         to ranges if possible.  Avoid empty ranges.
13547
13548 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13549
13550         PR middle-end/35705
13551         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
13552         the expression is a function address.
13553
13554 2008-04-01  George Helffrich  <george@gcc.gnu.org>
13555
13556         PR fortran/35154, fortran/23057
13557         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
13558         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
13559         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
13560         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
13561         in common.
13562         (dbxout_syms): Check for COMMON-based symbol and wrap in
13563         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
13564         in bracket for efficiency.
13565
13566         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
13567         using DW_TAG_common_block + member offset.
13568         (add_pubname_string): New function.
13569         (dw_expand_expr): New function to find block name and offset for
13570         COMMON var.
13571         (common_check): New function to check whether symbol in Fortran COMMON.
13572         (gen_variable_die): If COMMON, use DW_TAG_common_block.
13573
13574 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
13575
13576         PR c/35436
13577         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
13578
13579 2008-04-02  Ben Elliston  <bje@au.ibm.com>
13580
13581         * config/v850/v850.md (casesi): Remove if (0) code.
13582         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13583         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13584
13585 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
13586
13587         * config/i386/i386.md (rex64suffix): New mode attribute.
13588         (floathi<mode>2): Disable expander for SSE math.
13589         (*floathi<mode>2_1): New insn insn_and_split pattern.
13590         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
13591         corresponding post-reload splitters.
13592         (*floathi<mode>2_i387): New macroized insn pattern.
13593         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
13594         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
13595         insn_and_split pattern.
13596         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
13597         New macroized instruction patterns and corresponding post-reload
13598         splitters.
13599         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
13600         and corresponding post-reload splitters.
13601         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
13602         New macroized instruction patterns.
13603         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
13604         macroized instruction patterns and corresponding post-reload splitters.
13605         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
13606         corresponding post-reload splitters.
13607         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
13608         New macroized instruction patterns.
13609         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
13610         corresponding post-reload splitters.
13611         (*floatsi<mode>2_i387): New macroized instruction patterns.
13612
13613 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
13614
13615         * config/i386/i386.md (smaxmin): New.
13616         (umaxmin): Likewise.
13617         (maxminiprefix): Likewise.
13618         (maxminfprefix): Likewise.
13619         (<code><mode>3): Likewise.
13620         (smin<mode>3): Removed.
13621         (smax<mode>3): Likewise.
13622
13623         * config/i386/mmx.md (mmx_<code>v2sf3): New.
13624         (mmx_<code>v4hi3): Likewise.
13625         (mmx_<code>v8qi3): Likewise.
13626         (mmx_smaxv2sf3): Removed.
13627         (mmx_sminv2sf3): Likewise.
13628         (mmx_umaxv8qi3): Likewise.
13629         (mmx_smaxv4hi3): Likewise.
13630         (mmx_uminv8qi3): Likewise.
13631         (mmx_sminv4hi3): Likewise.
13632
13633         * config/i386/sse.md (<addsub><mode>3): New.
13634         (*<addsub><mode>3): Likewise.
13635         (<sse>_vm<addsub><mode>3): Likewise.
13636         (<maxmin><mode>3): Likewise.
13637         (*<maxmin><mode>3_finite): Likewise.
13638         (*<maxmin><mode>3): Likewise.
13639         (<sse>_vm<maxmin><mode>3): Likewise.
13640         (sse3_h<addsub>v4sf3): Likewise.
13641         (sse3_h<addsub>v2df3): Likewise.
13642         (<maxmin>v16qi3): Likewise.
13643         (*<maxmin>v16qi3): Likewise.
13644         (<maxmin>v8hi3): Likewise.
13645         (*<maxmin>v8hi3): Likewise.
13646         (*sse4_1_<maxmin><mode>3): Likewise.
13647         (*sse4_1_<maxmin><mode>3): Likewise.
13648         (add<mode>3): Removed.
13649         (*add<mode>3): Likewise.
13650         (<sse>_vmadd<mode>3): Likewise.
13651         (sub<mode>3): Likewise.
13652         (*sub<mode>3): Likewise.
13653         (<sse>_vmsub<mode>3): Likewise.
13654         (smin<mode>3): Likewise.
13655         (*smin<mode>3_finite): Likewise.
13656         (*smin<mode>3): Likewise.
13657         (<sse>_vmsmin<mode>3): Likewise.
13658         (smax<mode>3): Likewise.
13659         (*smax<mode>3_finite): Likewise.
13660         (*smax<mode>3): Likewise.
13661         (<sse>_vmsmax<mode>3): Likewise.
13662         (sse3_haddv4sf3): Likewise.
13663         (sse3_haddv2df3): Likewise.
13664         (sse3_hsubv4sf3): Likewise.
13665         (sse3_hsubv2df3): Likewise.
13666         (umaxv16qi3): Likewise.
13667         (*umaxv16qi3): Likewise.
13668         (smaxv8hi3): Likewise.
13669         (*smaxv8hi3): Likewise.
13670         (*sse4_1_smax<mode>3): Likewise.
13671         (*sse4_1_umax<mode>3): Likewise.
13672         (uminv16qi3): Likewise.
13673         (*uminv16qi3): Likewise.
13674         (sminv8hi3): Likewise.
13675         (*sminv8hi3): Likewise.
13676         (*sse4_1_smin<mode>3): Likewise.
13677         (*sse4_1_umin<mode>3): Likewise.
13678
13679 2008-04-01  Rafael Espindola  <espindola@google.com>
13680
13681         * tree-cfg.c (verify_expr): remove in_phi.
13682         (verify_stmt): Don't call walk_tree with verify_expr. Use
13683         is_gimple_min_invariant instead of is_gimple_val.
13684
13685 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
13686
13687         * doc/include/gpl_v3.texi: Update for manpage generation.
13688         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
13689         gpl.texi.
13690         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
13691         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
13692         gpl_v3.texi instead of gpl.texi.
13693         (gpl.pod): New.
13694
13695 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
13696
13697         PR pch/13675
13698         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
13699
13700 2008-04-01  Rafael Espindola  <espindola@google.com>
13701
13702         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
13703         (extract_code_and_val_from_cond): Use
13704         extract_code_and_val_from_cond_with_ops.
13705
13706 2008-04-01  Jan Hubicka  <jh@suse.cz>
13707
13708         * function.c (free_after_compilation): Free epilogue_delay_list.
13709         (prepare_function_start): Assert that previous compilation was freed.
13710
13711 2008-04-01  Jan Hubicka  <jh@suse.cz>
13712             Jim Wilson  <wilson@tuliptree.org>
13713             Andreas Tobler <andreast@gcc.gnu.org>
13714
13715         PR middle-end/35781
13716         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
13717         rtl.emit instead cfun->emit.
13718         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
13719         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
13720
13721 2008-04-01  Ben Elliston  <bje@au.ibm.com>
13722
13723         * doc/c-tree.texi (Function Basics): Fix grammatical error.
13724
13725 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
13726
13727         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
13728         New options
13729         (fprofile-use): Add var flag_profile_use
13730         * coverage.c (coverage_begin_output): Do not open a gcno file for
13731         output only if -ftest-coverage is set.
13732         Do not add getpwd() to gcda file path.
13733         (build_gcov_info): Check the new flag
13734         flag_profile_datafile_relative_path.
13735         (coverage_init): Use profile_data_prefix.
13736         Read profile counter only if flag_profile_use is set.
13737         * opts.c (common_handle_option): New option fprofile-use=,
13738         fprofile-dir=, fprofile-generate=.
13739         * toplev.c (profile_data_prefix): New variable definition.
13740         * toplev.h (profile_data_prefix): New declaration.
13741         * doc/invoke.tex (Option Summary, Optimization Options):
13742         Add new options.
13743
13744 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
13745
13746         * varasm.c (output_constant_pool_1): In LABEL_REF check,
13747         use tmp consistently.
13748
13749         PR target/35695
13750         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
13751         * config/ia64/ia64.c (rtx_needs_barrier): Handle
13752         UNSPEC_FR_RECIP_APPROX_RES.
13753         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
13754
13755 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
13756
13757         PR c/35750
13758         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
13759
13760 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13761
13762         PR middle-end/30186
13763         * fold-const.c (fold_indirect_ref_1): Support accessing non first
13764         element of the vector via a pointer.
13765
13766 2008-03-31  Ian Lance Taylor  <iant@google.com>
13767
13768         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
13769
13770 2008-03-31  Jan Hubicka  <jh@suse.cz>
13771
13772         * builtins.c (expand_builtin_setjmp_receiver): Update call of
13773         get_arg_pointer_save_area.
13774         * expr.c (init_expr): Just clear out rtl.expr.
13775         * function.c (free_after_compilation): Clear out whole RTL structure.
13776         (get_func_frame_size): Merge into ...
13777         (get_frame_size): ... this one.
13778         (assign_stack_local_1): Merge into ...
13779         (assign_stack_local): ... this one.
13780         (expand_function_end): Update call of get_arg_pointer_save_area.
13781         (get_art_pointer_save_area): Remove cfun argument.
13782         * function.h (emit_status): regno_pointer_align does not need length
13783         attribute. Move x_regno_reg_rtx to ...
13784         (regno_reg_rtx): ... new global array.
13785         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
13786         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
13787         apply_args_value, forced_labels, stack_pointer_delta):
13788         Update accestors.
13789         (struct varasm_status): Move here from varasm.c
13790         (struct rtl_data): New. Move here some fields from struct function.
13791         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
13792         frame_offset, stack_check_probe_note, arg_pointer_save_area,
13793         used_temp_slots avail_temp_slots, temp_slot_level,
13794         nonlocal_goto_handler_labels): Update accesstors.
13795         (rtl): New global variable.
13796         (struct function): Move some fileds to rtl_data.
13797         (get_arg_pointer_save_area): Update prototype.
13798         * emit-rtl.c (rtl): Declare.
13799         (regno_reg_rtx): Declare.
13800         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
13801         Update.
13802         (gen_reg_rtx): Update.
13803         (init_virtual_regs): Do not tate emit_status argument.
13804         (init_emit): Do not allocate emit.
13805         * varasm.c (varasm_statuc): Move to function.h.
13806         (n_deferred_constatns): Update accestor.
13807         (init_varasm_status): Do not allocate varasm_status.
13808         (force_const_mem, get_pool_size, output_constant_pool): Update.
13809         * stmt.c (force_label_rtx): Do not use x_ prefixes.
13810         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
13811
13812 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
13813
13814         PR rtl-optimization/35729
13815         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
13816         references.
13817
13818 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13819
13820         PR target/32000
13821         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
13822         load/store if memory is unaligned.
13823         (*movti_rex64): Likewise.
13824
13825         * config/i386/predicates.md (misaligned_operand): New.
13826
13827 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
13828
13829         PR tree-opt/35431
13830         * tree-ssa-phiopt.c (conditional_replacement): Return early for
13831         complex types.
13832
13833 2008-03-31  Jan Beulich  <jbeulich@novell.com>
13834
13835         * config/ia64/constraints.md: Add 'j' constraint.
13836         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
13837         (movdi_internal): Likewise.
13838
13839 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
13840
13841         PR c/35748
13842         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
13843
13844 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13845
13846         PR target/35757
13847         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
13848         proper error message for the third argument on blendpd and
13849         blendps.
13850
13851         * config/i386/sse.md (blendbits): New.
13852         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
13853
13854 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
13855
13856         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
13857
13858 2008-03-30  Richard Guenther  <rguenther@suse.de>
13859
13860         PR middle-end/31023
13861         * fold-const.c (fold_sign_changed_comparison): Do leave
13862         conversions to base-types alone.
13863
13864 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13865
13866         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
13867         the link register if one altivec register is be saved.
13868
13869 2008-03-30  Ben Elliston  <bje@au.ibm.com>
13870
13871         * final.c (final_scan_insn): Remove if (0) code.
13872
13873 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
13874
13875         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
13876
13877 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13878
13879         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
13880         of V4SFmode to ix86_binary_operator_ok.
13881
13882 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
13883
13884         * config/i386/i386.c (override_options): Initialize
13885         ix86_veclib_handler to ix86_veclibabi_svml when
13886         -mveclibabi=svml is used.
13887         (ix86_veclibabi_svml): New function for SVML ABI style
13888         vectorization support.
13889         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
13890
13891 2008-03-28  Rafael Espindola  <espindola@google.com>
13892
13893         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
13894         (tree_binary_nonnegative_warnv_p): Make it public.
13895         (tree_single_nonnegative_warnv_p): Make it public.
13896         (tree_invalid_nonnegative_warnv_p): Make it public.
13897         (tree_unary_nonzero_warnv_p): Make it public.
13898         (tree_binary_nonzero_warnv_p): Make it public
13899         (tree_single_nonzero_warnv_p): Make it public.
13900         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
13901         (extract_range_from_binary_expr): Split the expr argument.
13902         (extract_range_from_unary_expr): Split the expr argument.
13903         (extract_range_from_comparison): Split the expr argument.
13904         (extract_range_from_expr): Use the new aux functions.
13905         (vrp_evaluate_conditional_warnv): Use
13906         vrp_evaluate_conditional_warnv_with_ops.
13907         * tree.h (tree_unary_nonzero_warnv_p): Declare.
13908         (tree_binary_nonzero_warnv_p): Declare.
13909         (tree_single_nonzero_warnv_p): Declare.
13910         (tree_expr_nonzero_warnv_p): Declare.
13911         (tree_unary_nonnegative_warnv_p): Declare.
13912         (tree_binary_nonnegative_warnv_p): Declare.
13913         (tree_single_nonnegative_warnv_p): Declare.
13914         (tree_invalid_nonnegative_warnv_p): Declare.
13915
13916 2008-03-28  Richard Guenther  <rguenther@suse.de>
13917
13918         PR tree-optimization/30317
13919         PR tree-optimization/30911
13920         PR tree-optimization/34793
13921         * tree-vrp.c (set_and_canonicalize_value_range): New function.
13922         (struct assert_locus_d): New member EXPR.
13923         (register_new_assert_for): Add EXPR parameter to support
13924         ASSERT_EXPR <name, expr OP limit>.
13925         (register_edge_assert_for_1): Adjust callers.
13926         (find_assert_locations): Likewise.
13927         (process_assert_insertions_for): Build condition from expression.
13928         (extract_range_from_assert): Handle ASSERT_EXPRs
13929         of the form ASSERT_EXPR <name, expr OP limit>.
13930         (register_edge_assert_for_2): New helper registering
13931         asserts for comparisons.  Recognize range tests of the form
13932         (unsigned)i - CST1 OP CST2.
13933         (register_edge_assert_for_1): Use it.
13934         (register_edge_assert_for): Likewise.
13935         (needs_overflow_infinity): Integer sub-types
13936         do not need overflow infinities.
13937         (vrp_val_is_max): The extreme values of integer sub-types
13938         are those of the base type.
13939         (vrp_val_is_min): Likewise.
13940         * tree.def (ASSERT_EXPR): Document extra allowed conditional
13941         expressions.
13942
13943 2008-03-28  Nick Clifton  <nickc@redhat.com>
13944
13945         PR target/31110
13946         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
13947         Return GENERAL_REGS for stack adjustment reloads.
13948
13949 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13950
13951         PR target/31334
13952         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
13953         const_vector when all the vectors are constant.
13954
13955 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
13956
13957         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
13958         comparisons.
13959         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
13960         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
13961         (scc_sf): New.
13962         (s<code>_sf): Use new scc_sf attribute for opcode names.
13963
13964 2008-03-27  Tom Tromey  <tromey@redhat.com>
13965
13966         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
13967         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
13968         config/spu/t-spu-elf, config/i386/t-interix,
13969         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
13970         config/i386/x-darwin, config/i386/x-mingw32,
13971         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
13972         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
13973         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
13974         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
13975         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
13976         config/rs6000/x-darwin, config/rs6000/t-rs6000,
13977         config/score/t-score-elf, config/arm/t-strongarm-pe,
13978         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
13979         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
13980         Revert automatic dependency patch.
13981
13982 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13983
13984         PR target/35657
13985         * config/i386/i386.c (ix86_function_arg_boundary): Align
13986         decimal floating point to its natural boundary.
13987
13988 2008-03-27  Richard Guenther  <rguenther@suse.de>
13989
13990         PR middle-end/35716
13991         * fold-const.c (fold_comparison): Restrict distinct decl
13992         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
13993         solely rely on operand_equal_p.
13994
13995 2008-03-27  Richard Guenther  <rguenther@suse.de>
13996
13997         PR c/32511
13998         * c-common.c (handle_weak_attribute): Reject combination of
13999         weak and inline.
14000
14001 2008-03-27  Richard Guenther  <rguenther@suse.de>
14002
14003         PR tree-optimization/32810
14004         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
14005         conversions from DECL_INITIAL.
14006         (fold_const_aggregate_ref): Likewise from constructor elements.
14007
14008 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
14009
14010         * tree-affine.h (aff_combination_expand): Declare.
14011         (get_inner_reference_aff): Likewise.
14012         * tree-affine.c (aff_combination_expand): Split out from
14013         tree_to_aff_combination_expand.
14014         (get_inner_reference_aff): New function.
14015         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
14016         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
14017         (struct lim_aux_data): sm_done field removed.
14018         (mem_ref_loc_p, mem_ref_locs_p): New types.
14019         (struct mem_ref): Added id, stored, accesses_in_loop,
14020         indep_loop, dep_loop, indep_ref, dep_ref fields.
14021         Removed is_stored, locs and next fields.
14022         (memory_accesses): New variable.
14023         (movement_possibility): Do not allow moving statements
14024         that store to memory.
14025         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
14026         New functions.
14027         (determine_max_movement): For statements with memory references,
14028         find the outermost loop in that the reference is independent.
14029         (move_computations_stmt): Mark the virtual operands for renaming.
14030         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
14031         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
14032         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
14033         add_vop_ref_mapping, create_vop_ref_mapping_loop,
14034         create_vop_ref_mapping, analyze_memory_references,
14035         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
14036         get_all_locs_in_loop, ref_always_accessed_p,
14037         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
14038         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
14039         store_motion_loop, store_motion): New functions.
14040         (struct vop_to_refs_elt): New type.
14041         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
14042         memref_hash, memref_eq, hoist_memory_references): Rewritten.
14043         (schedule_sm): Replaced by...
14044         (execute_sm): ... this.
14045         (determine_lsm_ref, hoist_memory_references,
14046         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
14047         find_more_ref_vops, free_mem_ref, free_mem_refs,
14048         determine_lsm_loop, determine_lsm): Removed.
14049         (tree_ssa_lim_finalize): Free data structures used by store motion.
14050         (tree_ssa_lim): Call analyze_memory_references.  Use
14051         store_motion instead of determine_lsm.
14052
14053 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
14054
14055         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
14056         rename tmake_file to m68hc11/t-m68hc11.
14057         (mcore): Set inhibit_libc to true.
14058         * config.host (alpha*-dec-*vms*): Set extra_programs.
14059         (interix3*): Don't use host_xmake_file.
14060         * configure.ac: Let config.gcc override inhibit_libc.
14061         * configure: Regenerate.
14062
14063         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
14064         * config/t-openbsd-thread: Remove commented out lines.
14065
14066         * config/x-interix: Remove.
14067
14068         * config/m68hc11/t-m68hc11-gas: Rename to...
14069         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
14070
14071         * config/mcore/t-mcore: Remove T_CFLAGS.
14072         * config/mcore/t-mcore-pe: Likewise.
14073
14074 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
14075
14076         * configure.ac: Replace custom __GNU_SOURCE test with
14077         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
14078         * aclocal.m4: Regenerate.
14079         * configure: Regenerate.
14080         * config.in: Regenerate.
14081
14082 2008-03-27  Richard Guenther  <rguenther@suse.de>
14083
14084         * fold-const.c (target.h): Include.
14085         (fold_comparison): Fold comparison of addresses of decls
14086         that bind locally or of constants.  Consolidate address folding code.
14087         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
14088         results from fold_binary_to_constant.
14089         (compare_values_warnv): Likewise.
14090
14091 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
14092
14093         PR middle-end/35429
14094         * fold-const.c (fold_truthop): Check for integeral types when folding
14095         a == 0 && b == 0 and a != 0 || b != 0 .
14096
14097 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
14098
14099         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
14100
14101 2008-03-26  Andreas Schwab  <schwab@suse.de>
14102
14103         * doc/invoke.texi: Fix use of @item vs. @itemx.
14104
14105 2008-03-26  Tom Tromey  <tromey@redhat.com>
14106
14107         * Makefile.in (build/gensupport.o, build/print-rtl.o,
14108         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
14109         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
14110         build/gencodes.o, build/genconditions.o, build/genconfig.o,
14111         build/genconstants.o, build/genemit.o, build/genextract.o,
14112         build/genflags.o, build/genmddeps.o, build/genopinit.o,
14113         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
14114         options.h.
14115
14116 2008-03-26  Richard Guenther  <rguenther@suse.de>
14117
14118         Revert
14119         2008-03-26  Richard Guenther  <rguenther@suse.de>
14120
14121         * fold-const.c (target.h): Include.
14122         (fold_comparison): Fold comparison of addresses of two decls
14123         that bind locally.  Consolidate address folding code.
14124
14125 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14126
14127         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
14128         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
14129         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
14130         dconstsqrt2, dconstthird, dconste and/or dconst10.
14131         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
14132         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
14133         dconstsqrt2, dconste): Delete.
14134         (init_emit_once): Likewise.  Simplify initializing dconstm1.
14135         Constify variable.
14136         * real.c (get_real_const): New.
14137         * real.h (dconst3, dconst10, dconstm2, dconstthird,
14138         dconstsqrt2, dconste): Delete.
14139         (real_value_const, get_real_const): New.
14140
14141 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14142
14143         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
14144
14145         * config/i386/i386.c (ix86_function_arg_boundary): Check
14146         BIGGEST_ALIGNMENT instead of 128.
14147         (setup_incoming_varargs_64): Likewise.
14148
14149 2008-03-26  Tom Tromey  <tromey@redhat.com>
14150
14151         * Makefile.in (DEPFILES): Add missing '/'.
14152
14153 2008-03-26  Richard Guenther  <rguenther@suse.de>
14154
14155         * fold-const.c (target.h): Include.
14156         (fold_comparison): Fold comparison of addresses of two decls
14157         that bind locally.  Consolidate address folding code.
14158
14159 2008-03-26  Nick Clifton  <nickc@redhat.com>
14160
14161         PR target/31232
14162         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
14163         not allow INT+INT as a legitimate addressing mode.
14164
14165 2008-03-26  Richard Guenther  <rguenther@suse.de>
14166
14167         * tree-flow.h (widen_bitfield): Remove declaration.
14168         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
14169         (widen_bitfield): Remove function.
14170         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
14171         code.
14172
14173 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14174
14175         PR target/31558
14176         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
14177         error_mark_node's.
14178
14179 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14180
14181         PR rtl-optimization/35232
14182         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
14183         (forget_old_reloads_1, forget_marked_reloads): Don't clear
14184         reg_reloaded_call_part_clobbered here.
14185         (reload_regs_reach_end_p): New function.
14186         (reload_reg_rtx_for_input): New variable.
14187         (reload_reg_rtx_for_output): Likewise.
14188         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
14189         when reassigning a pseudo register.  Load reloadreg from
14190         reload_reg_rtx_for_input, moving the mode and register
14191         calculation to...
14192         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
14193         instead of the original when deciding whether an input reload
14194         would be a no-op or whether an output reload can be deleted.
14195         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
14196         when setting up new_spill_reg_store.  Load it from
14197         reload_reg_rtx_for_output, moving the mode and register
14198         calculation to...
14199         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
14200         instead of the original when deciding whether an output reload
14201         would be a no-op.  Do the same when modifying insn notes.
14202         Use rtx_equal_p instead of == to compare the registers.
14203         (inherit_piecemeal_p): Take a mode and two register numbers
14204         as argument.
14205         (emit_reload_insns): Clear new_spill_reg_store for every hard
14206         register in the reload register.  Remove spill registers
14207         from reg_reloaded_valid before considering whether to record
14208         inheritance information for them.  Use reload_reg_rtx_for_output
14209         instead of reg_rtx when recording output reloads.  Use
14210         reload_reg_rtx_for_input instead of reg_rtx when recording
14211         input reloads.  Set or clear reg_reloaded_call_part_clobbered
14212         at the same time as setting reg_reloaded_valid.
14213         (delete_output_reload): Add a new_reload_reg parameter and use it
14214         instead of rld[j].reg_rtx.
14215         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
14216         calls accordingly.
14217
14218 2008-03-25  Tom Tromey  <tromey@redhat.com>
14219
14220         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
14221         (build/genattr.o): Likewise.
14222         (build/genattrtab.o): Likewise.
14223         (build/gencodes.o): Likewise.
14224         (build/genconfig.o): Likewise.
14225         (build/genconstants.o): Likewise.
14226         (build/genemit.o): Likewise.
14227         (build/genextract.o): Likewise.
14228         (build/genflags.o): Likewise.
14229
14230 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
14231
14232         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
14233         instead of size_int for integer types.
14234         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
14235         to match type of MINUS_EXPR.
14236
14237 2008-03-25  Tom Tromey  <tromey@redhat.com>
14238
14239         * configure: Rebuilt.
14240         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
14241         Makefile.
14242
14243 2008-03-25  Tom Tromey  <tromey@redhat.com>
14244
14245         * config/x-solaris (host-solaris.o): Update.
14246         * config/x-linux (host-linux.o): Update.
14247         * config/x-hpux (host-hpux.o): Update.
14248         * config/x-darwin (host-darwin.o): Update.
14249         * config/v850/t-v850e (v850-c.o): Update.
14250         * config/v850/t-v850 (v850-c.o): Update.
14251         * config/t-vxworks (vxworks.o): Update.
14252         * config/t-sol2 (sol2-c.o, sol2.o): Update.
14253         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
14254         * config/spu/t-spu-elf (spu-c.o): Update.
14255         (spu.o): Remove.
14256         * config/sh/t-symbian (sh-c.o): Update.
14257         (symbian.o): Update.
14258         * config/sh/t-sh (sh-c.o): Update.
14259         * config/score/t-score-elf (score7.o, score3.o): Update.
14260         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
14261         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
14262         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
14263         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
14264         (rs6000.o): Remove.
14265         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
14266         * config/m32c/t-m32c (m32c-pragma.o): Update.
14267         * config/ia64/t-ia64 (ia64-c.o): Update.
14268         * config/i386/x-mingw32 (host-mingw32.o): Update.
14269         * config/i386/x-i386 (driver-i386.o): Update.
14270         * config/i386/x-darwin (host-i386-darwin.o): Update.
14271         * config/i386/x-cygwin (host-cygwin.o): Update.
14272         * config/i386/t-nwld (nwld.o): Update.
14273         * config/i386/t-netware (netware.o): Update.
14274         * config/i386/t-interix (winnt.o): Update.
14275         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
14276         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
14277         msformat-c.o): Update.
14278         * config/bfin/t-bfin-linux (generated_files): Add
14279         linux-sysroot-suffix.h.
14280         * config/arm/t-wince-pe (pe.o): Update.
14281         * config/arm/t-strongarm-pe (pe.o): Update.
14282         * config/arm/t-pe (pe.o): Update.
14283         * config/arm/t-arm (arm-c.o): Update.
14284         * doc/install.texi (Prerequisites): Require make 3.80.
14285         * Makefile.in: Remove .o targets.
14286         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
14287         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
14288         (simple_generated_h, simple_generated_c): Move earlier.
14289         (generated_files): New variable.
14290         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
14291         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
14292         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
14293         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
14294         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
14295         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
14296         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
14297         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
14298         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
14299         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
14300         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
14301         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
14302         (.c.o): Remove.
14303         (COMPILE.base, COMPILE): New variables.
14304         (%.o): New pattern rule.
14305         (ALL_HOST_OBJS): New variable.
14306         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
14307         (dummy-checksum.o, cc1-checksum.o): Remove.
14308         (DRIVER_SHLIB): New variable.
14309         (DRIVER_DEFINES): Use it.
14310         (gencondmd.c): Move out of build/.
14311         (s-conditions): Update.
14312         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
14313         (ALL_BUILD_OBJS): Likewise.
14314         (build/%.o): Use BUILDCOMPILE.
14315         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
14316         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
14317         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
14318         build/gencheck.o, build/gencodes.o, build/genconditions.o,
14319         build/genconfig.o, build/genconstants.o, build/genemit.o,
14320         build/genextract.o, build/genflags.o, build/genmddeps.o,
14321         build/genopinit.o, build/genoutput.o, build/genpeep.o,
14322         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
14323         build/gen-protos.o, build/scan.o, build/fix-header.o,
14324         build/scan-decls.o): Simplify.
14325         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
14326         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
14327         prefix.o, toplev.o): Reduce to variable setting.
14328         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
14329         ($(out_object_file), gcc-options.o): New targets.
14330         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
14331         * configure: Rebuilt.
14332         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
14333         * doc/sourcebuild.texi (Front End Directory): Document new variable.
14334
14335 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
14336
14337         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
14338         complain when we hit an error, return ERROR_MARK_NODE.
14339
14340 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14341
14342         * config/sh/constraints.md (Pso, Psz): New constraints.
14343         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
14344         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
14345
14346 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14347
14348         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
14349         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
14350
14351 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14352
14353         * config/sh/sh.md (prefetch): Add condition for SH2A target.
14354         (prefetch_sh2a): New.
14355
14356 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14357             Naveen.H.S  <naveen.hs@kpitcummins.com>
14358
14359         * config/sh/constraints.md (I28): New constraint.
14360         * config/sh/sh.c (broken_move): Add support for movi20s.
14361         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
14362
14363 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
14364             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14365             Naveen.H.S  <naveen.hs@kpitcummins.com>
14366
14367         * config/sh/sh.c (SH_ATTRIBUTES): Define.
14368         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14369         (print_operand): Handle resbank in %@ operand code.
14370         (sh_encode_section_info): New.
14371         (push_regs): Add conditions for resbank.
14372         (sh_expand_epilogue): Likewise.
14373         (sh_insert_attributes): Likewise.
14374         (sh_attribute_table): Likewise.
14375         (sh_handle_resbank_handler_attribute): New.
14376         (sh2a_handle_function_vector_handler_attribute): New.
14377         (sh2a_is_function_vector_call): New.
14378         (sh2a_get_function_vector_number): New.
14379         (sh2a_function_vector_p): New.
14380         (sh_cfun_resbank_handler_p): New.
14381         * config/sh/sh.md (calli): Emit jsr/n if possible.
14382         (calli_tbr_rel): New.
14383         (calli_pcrel): Emit jsr/n if possible.
14384         (return_i): Emit rts/n if possible.
14385         (call_valuei_tbr_rel): New.
14386         (call_valuei_pcrel): Add condition for SH2A target.
14387         (call_value): Likewise.
14388         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
14389         (sh2a_get_function_vector_number): Likewise.
14390         (sh2a_is_function_vector_call): Likewise.
14391         * doc/extend.texi: Document TBR relative addressing of SH2A.
14392         (resbank): Add description for SH2A.
14393
14394 2008-03-24  Richard Guenther  <rguenther@suse.de>
14395
14396         PR c/22371
14397         * gimplify.c (gimplify_modify_expr): For frontend type-correct
14398         pointer assignments change conversions according to middle-end rules.
14399         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
14400         * configure.ac: Include type checking in yes.
14401         * configure: Regenerate.
14402
14403 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14404
14405         * diagnostic.c (diagnostic_count_diagnostic): Delete.
14406         (diagnostic_report_diagnostic): Update. Handle ICEs here.
14407
14408 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
14409
14410         * gthr-vxworks.h (UNUSED): Define.
14411
14412 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
14413
14414         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
14415
14416 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
14417
14418         * doc/extend.texi (Function Attributes): Add missing comma in the
14419         example of the "alloc_size" attribute.
14420
14421 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
14422
14423         Revert:
14424         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14425
14426         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14427         32bit host.
14428
14429         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
14430
14431         PR target/35496
14432         * stor-layout.c (update_alignment_for_field): Set minimum alignment
14433         of the underlying type of a MS bitfield layout to the natural
14434         alignment of the type.
14435
14436         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14437
14438         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14439         to their natural alignment to avoid store forwarding stalls.
14440
14441 2008-03-22  Richard Guenther  <rguenther@suse.de>
14442
14443         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
14444         For PHI nodes verify the address is invariant.
14445         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
14446         (get_symbol_constant_value): Use is_gimple_min_invariant.
14447         (maybe_fold_stmt_indirect): Likewise.
14448
14449 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
14450
14451         PR rtl-optimization/33927
14452         * Makefile.in (dse.o): Depend on $(TM_P_H).
14453         * expr.h (extract_low_bits): Declare.
14454         * expmed.c (extract_low_bits): New function.
14455         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
14456         * dse.c: Include tm_p.h.
14457         (find_shift_sequence): Remove the read_reg argument and return the
14458         read value.  Emit the instructions instead of returning them.
14459         Iterate on new_mode rather than calculating it each time.
14460         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
14461         source to NEW_MODE and extract_low_bits to convert the shifted
14462         value to READ_MODE.
14463         (replace_read): Allow the load and store to have different mode
14464         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
14465         or extraction instructions before trying the replacement.  Update
14466         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
14467
14468 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14469
14470         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14471         to their natural alignment to avoid store forwarding stalls.
14472
14473 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14474
14475         PR target/27946
14476         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
14477         encouraging but not allowing gprs for input;
14478         change the input constraint to !f#r.
14479         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
14480         gprs for output;
14481         change the output constraint to !f#r.
14482
14483 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
14484
14485         PR target/13958
14486         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
14487         corresponding post-reload splitters.
14488         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
14489         when x87 FP math is selected.
14490         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
14491         New function prototype.
14492         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
14493         unreachable function to ease macroization of insn patterns.
14494
14495 2008-03-21  Martin Jambor  <mjambor@suse.cz>
14496
14497         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
14498         reference dumps if ddr is NULL or dependence is unknown.
14499
14500 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14501
14502         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
14503         unsigned extension into account.
14504         (ATOMIC_COMPARE_AND_SWAP): Likewise.
14505         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
14506         Do computations on a scratch register.
14507
14508 2008-03-21  Richard Guenther  <rguenther@suse.de>
14509
14510         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14511         Use is_gimple_min_invariant instead of TREE_INVARIANT.
14512         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
14513         * tree-ssa-dom.c (record_equality): Likewise.
14514         * tree-inline.c (copy_body_r): Likewise.
14515         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
14516         TREE_INVARIANT.
14517
14518 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14519
14520         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
14521         as 'delete_unused' argument.
14522
14523 2008-03-20  Richard Guenther  <rguenther@suse.de>
14524
14525         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
14526         special casing of constant qualifiers.
14527         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
14528         care about them in general.
14529         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
14530         regardless of their type.
14531         (fold_stmt_r): Forcefully fold *& if we end up with that.
14532
14533 2008-03-20  Paul Brook  <paul@codesourcery.com>
14534
14535         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
14536         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
14537         linker flags.
14538         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
14539         definition.
14540         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
14541         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
14542
14543 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
14544
14545         * common.opt (Wmudflap): New option.
14546         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
14547         (mx_register_decls): Likewise.
14548         (mudflap_finish_file): Likewise.
14549         * doc/invoke.texi: Document -Wno-mudflap.
14550
14551 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
14552
14553         * c-format.c (replace_format_name_to_system_name): New.
14554         (cmp_attribs): New.
14555         (convert_format_name_to_system_name): New.
14556         (decode_format_attr): Add use of convert_format_name_to_system_name.
14557         (format_types_orig): Add gnu_ prefix to names.
14558         (check_format_info_main): Special treating of \0 escaped names for
14559         supporting multi-character format specifiers as I32, I64.
14560         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
14561         (gnu_target_overrides_format_attributes): New.
14562         * c-format.h: Add structure target_ovr_attr to hold
14563         system specific formatter names.
14564         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
14565         msformat-c.o file to c_target_objs and cxx_target_objs.
14566         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
14567         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
14568         (TARGET_N_FORMAT_TYPES): New.
14569         * config/i386/msformat-c.c: New.
14570         * config/i386/t-cygming: Add build rule for msformat-c.o.
14571         * doc/extend.texi: Add new format names gnu_* and ms_* and
14572         further details.
14573         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
14574
14575 2008-03-20  Ira Rosen  <irar@il.ibm.com>
14576
14577         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
14578         optimizations turned on under -O3.
14579         (ftree-vectorize): Add that the flag is turned on with -O3.
14580
14581 2008-03-20  Ben Elliston  <bje@au.ibm.com>
14582
14583         * regmove.c (try_auto_increment): Fix spelling error in comment.
14584         * final.c (final_scan_insn): Likewise.
14585
14586 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
14587
14588         PR target/14552
14589         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
14590         allocator preferences for "y" and "r" class registers.
14591         ("*mov<mode>_internal"): Ditto.
14592         ("*movv2sf_internal_rex64"): Ditto.
14593         ("*movv2sf_internal"): Ditto.
14594
14595 2008-03-19  Michael Matz  <matz@suse.de>
14596
14597         PR middle-end/35616
14598         * calls.c (expand_call): Check overlap of arguments with call
14599         address for sibcalls.
14600
14601 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
14602
14603         PR target/35496
14604         * stor-layout.c (update_alignment_for_field): Set minimum alignment
14605         of the underlying type of a MS bitfield layout to the natural
14606         alignment of the type.
14607
14608 2008-03-19  Jan Hubicka  <jh@suse.cz>
14609
14610         PR other/35094
14611         * toplev.c (decode_d_option): Handle all CPP flags.
14612         * tree-vrp.c: Update tree_pass descriptors.
14613         * regrename.c: Update tree_pass descriptors.
14614         * fwprop.c: Update tree_pass descriptors.
14615         * doc/invoke.texi: Remove documentation of dropped -d? flags.
14616         * tree-into-ssa.c: Update tree_pass descriptors.
14617         * tree-dump.c: Update tree_pass descriptors.
14618         * tree-complex.c: Update tree_pass descriptors.
14619         * tree-dump.h: Update tree_pass descriptors.
14620         * see.c: Update tree_pass descriptors.
14621         * cgraphbuild.c: Update tree_pass descriptors.
14622         * tracer.c: Update tree_pass descriptors.
14623         * tree-loop-distribution.c: Update tree_pass descriptors.
14624         * cgraph.c: Update tree_pass descriptors.
14625         * postreload-gcse.c: Update tree_pass descriptors.
14626         * postreload.c: Update tree_pass descriptors.
14627         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
14628         * tree-tailcall.c: Update tree_pass descriptors.
14629         * tree-pass.h (tree_opt_pass): Rename to ...
14630         (opt_pass) ... this one; add "type" field and remove letter field.
14631         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
14632         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
14633         all_lowering_passes): Update declaration.
14634         * ipa-cp.c: Update tree_pass descriptors.
14635         * final.c: Update tree_pass descriptors.
14636         * omp-low.c: Update tree_pass descriptors.
14637         * tree-ssa-dse.c: Update tree_pass descriptors.
14638         * ipa-reference.c: Update tree_pass descriptors.
14639         * tree-ssa-uncprop.c: Update tree_pass descriptors.
14640         * auto-inc-dec.c: Update tree_pass descriptors.
14641         * reorg.c: Update tree_pass descriptors.
14642         * cgraphunit.c: Update tree_pass descriptors.
14643         * tree-ssa-copyrename.c: Update tree_pass descriptors.
14644         * tree-ssa-ccp.c: Update tree_pass descriptors.
14645         * df-core.c: Update tree_pass descriptors.
14646         * mode-switching.c: Update tree_pass descriptors.
14647         * tree-nomudflap.c: Update tree_pass descriptors.
14648         * modulo-sched.c: Update tree_pass descriptors.
14649         * ipa-pure-const.c: Update tree_pass descriptors.
14650         * cse.c: Update tree_pass descriptors.
14651         * web.c: Update tree_pass descriptors.
14652         * tree-stdarg.c: Update tree_pass descriptors.
14653         * tree-ssa-math-opts.c: Update tree_pass descriptors.
14654         * tree-ssa-dom.c: Update tree_pass descriptors.
14655         * tree-nrv.c: Update tree_pass descriptors.
14656         * tree-ssa-alias.c: Update tree_pass descriptors.
14657         * loop-init.c: Update tree_pass descriptors.
14658         * gimple-low.c: Update tree_pass descriptors.
14659         * ipa-inline.c: Update tree_pass descriptors.
14660         * tree-ssa-sink.c: Update tree_pass descriptors.
14661         * global.c: Update tree_pass descriptors.
14662         * ifcvt.c: Update tree_pass descriptors.
14663         * jump.c: Update tree_pass descriptors.
14664         * predict.c: Update tree_pass descriptors.
14665         * tree-ssa-loop.c: Update tree_pass descriptors.
14666         * recog.c: Update tree_pass descriptors.
14667         * dse.c: Update tree_pass descriptors.
14668         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
14669         * tree-eh.c: Update tree_pass descriptors.
14670         * regmove.c: Update tree_pass descriptors.
14671         * local-alloc.c
14672         * function.c: Update tree_pass descriptors.
14673         * tree-vectorizer.c: Update tree_pass descriptors.
14674         * gcse.c: Update tree_pass descriptors.
14675         * ipa-type-escape.c: Update tree_pass descriptors.
14676         * tree-if-conv.c: Update tree_pass descriptors.
14677         * init-regs.c: Update tree_pass descriptors.
14678         * ipa.c: Update tree_pass descriptors.
14679         * tree-ssa-phiopt.c: Update tree_pass descriptors.
14680         * rtl-factoring.c: Update tree_pass descriptors.
14681         * lower-subreg.c: Update tree_pass descriptors.
14682         * bt-load.c: Update tree_pass descriptors.
14683         * tree-dfa.c: Update tree_pass descriptors.
14684         * except.c: Update tree_pass descriptors.
14685         * emit-rtl.c: Update tree_pass descriptors.
14686         * cfgexpand.c: Update tree_pass descriptors.
14687         * tree-cfgcleanup.c: Update tree_pass descriptors.
14688         * cfgcleanup.c: Update tree_pass descriptors.
14689         * tree-ssa-pre.c: Update tree_pass descriptors.
14690         * tree-sra.c: Update tree_pass descriptors.
14691         * tree-mudflap.c: Update tree_pass descriptors.
14692         * tree-ssa-copy.c: Update tree_pass descriptors.
14693         * cfglayout.c: Update tree_pass descriptors.
14694         * tree-ssa-forwprop.c: Update tree_pass descriptors.
14695         * tree-ssa-dce.c: Update tree_pass descriptors.
14696         * tree-ssa.c: Update tree_pass descriptors.
14697         * regclass.c: Update tree_pass descriptors.
14698         * integrate.c: Update tree_pass descriptors.
14699         * tree-optimize.c: Update tree_pass descriptors.
14700         * tree-ssa-phiprop.c: Update tree_pass descriptors.
14701         * tree-object-size.c: Update tree_pass descriptors.
14702         * combine.c: Update tree_pass descriptors.
14703         * tree-outof-ssa.c: Update tree_pass descriptors.
14704         * bb-reorder.c: Update tree_pass descriptors.
14705         * stack-ptr-mod.c: Update tree_pass descriptors.
14706         * var-tracking.c: Update tree_pass descriptors.
14707         * tree-profile.c: Update tree_pass descriptors.
14708         * tree-vect-generic.c: Update tree_pass descriptors.
14709         * reg-stack.c: Update tree_pass descriptors.
14710         * sched-rgn.c: Update tree_pass descriptors.
14711         * tree-ssa-structalias.c: Update tree_pass descriptors.
14712         * tree-cfg.c: Update tree_pass descriptors.
14713         * passes.c (current_pass): Update declaration.
14714         (finish_optimization_passes): Update.
14715         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
14716         (register_one_dump_file, register_dump_files_1, next_pass_1):
14717         Update arguments.
14718         (init_optimization_passes): Update handling of new types.
14719         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
14720         * ipa-struct-reorg.c: Update tree_pass descriptors.
14721         * tree-ssa-reassoc.c: Update tree_pass descriptors.
14722         * combine-stack-adj.c: Update tree_pass descriptors.
14723         * cfgrtl.c: Update tree_pass descriptors.
14724         * dce.c: Update tree_pass descriptors.
14725         * tree-ssanames.c: Update tree_pass descriptors.
14726
14727 2008-03-19  Richard Guenther  <rguenther@suse.de>
14728
14729         PR middle-end/35609
14730         * tree-ssa.c (walk_data): New structure.
14731         (warn_uninitialized_var): If not always_executed warn with "maybe"
14732         instead of "is".
14733         (execute_early_warn_uninitialized): Compute post-dominators.
14734         Initialize always_executed before processing each basic block.
14735
14736 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
14737
14738         PR target/35504
14739         * config/i386/i386.c (x86_this_parameter): Calculate correct location
14740         of "this" pointer when "regparm = N" or "fastcall" is in effect.
14741
14742 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14743
14744         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
14745
14746 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
14747
14748         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
14749         is true.
14750         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
14751         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
14752         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
14753         target after ignore has been set, and move there also the commputation
14754         of subtarget and original_target.
14755         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
14756         (LANG_HOOKS_INITIALIZER): Remove it.
14757         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
14758
14759 2008-03-18  Richard Guenther  <rguenther@suse.de>
14760
14761         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
14762         found an expression with constants, note that in the VN for the lhs.
14763         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
14764         fold them to constants if possible.  Run cleanup_cfg if done so.
14765         (execute_pre): Return todo.
14766         (do_pre): Likewise.
14767         (execute_fre): Likewise.
14768         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
14769         of constants.
14770         (get_prop_source_stmt): Look through pointer conversions.
14771
14772 2008-03-18  Jan Hubicka  <jh@suse.cz>
14773
14774         * tree-pretty-print.c: Include predict.h.
14775         (dump_generic_node): Dump predictor.
14776         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
14777         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
14778         * gimple-low.c (lower_stmt): Likewise.
14779         * expr.c (expand_expr_real): Likewise.
14780         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
14781         them.
14782         (build_predict_expr, build_predict_expr): New.
14783         * predict.h (predictor_name, build_predict_expr): Update.
14784         * c-typeck.c (c_finish_bc_stmt): Add prediction.
14785         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
14786         * predict.def (PRED_CONTINUE): Update hitrate.
14787         * tree.def (PREDICT_EXPR): Define.
14788         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
14789         do not handle BIND_EXPR.
14790         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
14791         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
14792         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
14793         operands.
14794
14795 2008-03-18  Michael Matz  <matz@suse.de>
14796
14797         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
14798
14799 2008-03-18  Richard Guenther  <rguenther@suse.de>
14800
14801         * tree-gimple.h (is_gimple_invariant_address): Declare.
14802         (is_gimple_constant): Likewise.
14803         * tree-gimple.c (is_gimple_constant): New function.
14804         (is_gimple_invariant_address): Likewise.
14805         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
14806         and is_gimple_invariant_address.
14807         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
14808         previous change.
14809         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
14810         an addressable base.
14811
14812 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14813
14814         PR middle-end/35611
14815         * gimplify.c (gimplify_expr): Gimplify second operand of
14816         OMP_ATOMIC_LOAD.
14817
14818 2008-03-17  Richard Guenther  <rguenther@suse.de>
14819
14820         PR tree-optimization/19637
14821         * fold-const.c (fold_unary): Remove restrictions of removing
14822         intermediate pointer-conversions (P2)(P1)P0.
14823         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
14824         conversion to void pointer.
14825         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
14826
14827 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
14828
14829         PR debug/31510
14830         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
14831         emulated thread local variables.
14832
14833 2008-03-16  Richard Guenther  <rguenther@suse.de>
14834
14835         PR middle-end/35607
14836         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14837         expand TREE_INVARIANT operations that are not gimple invariant.
14838
14839 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
14840
14841         * doc/extend.texi (Alignment): Say that the ABI controls
14842         the __alignof__ for non-strict-alignment targets rather
14843         than being a recommendation.
14844
14845 2008-03-15  Paul Brook  <paul@codesourcery.com>
14846
14847         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
14848         annotations.
14849         (arm_output_fn_unwind): Mark functions that can not be unwound.
14850
14851 2008-03-15  Paul Brook  <paul@codesourcery.com>
14852
14853         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
14854         extension instructions.
14855
14856 2008-03-15  Richard Guenther  <rguenther@suse.de>
14857
14858         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
14859         and fold constant aggregate refs.
14860         (fold_const_aggregate_ref): Handle string constants
14861         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
14862         (evaluate_stmt): Simplify now that ccp_fold folds constant
14863         aggregate refs.
14864
14865 2008-03-15  Paul Brook  <paul@codesourcery.com>
14866
14867         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
14868         (extzv): Use gen_extzv_t2.
14869         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
14870
14871 2008-03-15  Richard Guenther  <rguenther@suse.de>
14872
14873         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
14874         (fold_const_aggregate_ref): Likewise.
14875         (get_value): Return NULL if we don't have any values.
14876         (ccp_finalize): Set const_val to NULL after freeing it.
14877         * tree-flow.h (get_symbol_constant_value): Declare.
14878         (fold_const_aggregate_ref): Likewise.
14879         * tree-ssa-sccvn.c (try_to_simplify): Use them.
14880
14881 2008-03-15  Richard Guenther  <rguenther@suse.de>
14882
14883         PR middle-end/35593
14884         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
14885         to not produce negative array indices if not allowed.  Add
14886         parameter to indicate that.
14887         (maybe_fold_offset_to_component_ref): Allow negative array
14888         indices only for the first member of a structure.
14889         (maybe_fold_offset_to_reference): Allow negative array indices.
14890         (maybe_fold_stmt_addition): Likewise.
14891
14892 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
14893             Anatoly Sokolov <aesok@post.ru>
14894
14895         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
14896         (avr_arch): Add ARCH_AVR6.
14897         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
14898         (initial_elimination_offset): Initialize and use 'avr_pc_size'
14899         instead of fixed value 2.
14900         (print_operand_address): Use gs() asm specifier instead of pm().
14901         (avr_assemble_integer): (Ditto.).
14902         (avr_output_addr_vec_elt): (Ditto.).
14903         (print_operand): Handle "!" code.
14904         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
14905         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
14906         (AVR_HAVE_EIJMP_EICALL): Define.
14907         (AVR_3_BYTE_PC): Redefine.
14908         (AVR_2_BYTE_PC): (Ditto.).
14909         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
14910         (LINK_SPEC): Add atmega2560 and atmega2561.
14911         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
14912         (crtm2561.o).
14913         * config/avr/avr.md (call_insn): Use eicall instead of icall
14914         for 3 byte PC devices.
14915         (call_value_insn): (Ditto.).
14916         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
14917         (indirect_jump): Use only for for 2 byte PC devices.
14918         (*tablejump): (Ditto.).
14919         (*indirect_jump_avr6): Add insn.
14920         (*tablejump_rjmp): Don't use for 3 byte PC devices.
14921         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
14922         instead of ijmp for 3 byte PC devices.
14923         (__tablejump2__): (Ditto.).
14924         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
14925         (MULITLIB_DIRNAMES): (Ditto.).
14926         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
14927
14928 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
14929
14930         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
14931         "sse2_umulsidi3".  Use V1DI mode for operand 0.
14932         ("mmx_psadbw"): Use V1DI mode for operand 0.
14933         * config/i386/i386-modes.def (V1SI): New vector mode.
14934         * config/i386/i386.c (struct builtin_description)
14935         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
14936         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
14937         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
14938         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
14939         v1di_ftype_v8qi_v8qi type.
14940         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
14941
14942         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
14943         __builtin_ia32_pmuludq]: Fix the mode of return value.
14944
14945 2008-03-15  Richard Guenther  <rguenther@suse.de>
14946
14947         PR middle-end/35595
14948         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
14949         being a PHI_NODE.
14950
14951 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
14952
14953         * doc/invoke.texi (Option Summary, Xtensa Options): Document
14954         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
14955         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
14956         unless TARGET_SERIALIZE_VOLATILE is enabled.
14957         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
14958         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
14959         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
14960
14961 2008-03-14  Richard Guenther  <rguenther@suse.de>
14962
14963         PR tree-optimization/34172
14964         * tree-flow.h (refs_may_alias_p): Declare.
14965         (get_single_def_stmt): Likewise.
14966         (get_single_def_stmt_from_phi): Likewise.
14967         (get_single_def_stmt_with_phi): Likewise.
14968         * tree-dfa.c (refs_may_alias_p): New function.
14969         (get_single_def_stmt): Likewise.
14970         (get_single_def_stmt_from_phi): Likewise.
14971         (get_single_def_stmt_with_phi): Likewise.
14972         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
14973         (vn_reference_lookup_1): New helper function.
14974         (vn_reference_lookup): Walk the virtual use-def chain to
14975         continue searching for a match if the def does not alias the
14976         reference we are looking for.
14977
14978 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
14979
14980         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
14981         archive and Perzl.  Update The Written Word listing.
14982
14983 2008-03-14  Richard Guenther  <rguenther@suse.de>
14984
14985         PR tree-optimization/34043
14986         PR tree-optimization/33989
14987         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
14988         when doing FRE.
14989         (bitmap_find_leader): Use extra argument to verify dominance
14990         relationship inside a basic-block.
14991         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
14992         (find_leader_in_sets): Adjust.
14993         (create_component_ref_by_pieces): Take extra argument for
14994         dominance check, handle lookup failures.
14995         (find_or_generate_expression): Likewise.
14996         (create_expression_by_pieces): Likewise.
14997         (insert_into_preds_of_block): Adjust.
14998         (create_value_expr_from): If asked for, verify all operands
14999         are in the blocks AVAIL_OUT set.
15000         (make_values_for_stmt): Check for SSA_NAMEs that are life
15001         over an abnormal edge.
15002         (compute_avail): Remove such check.
15003         (do_SCCVN_insertion): New function.
15004         (eliminate): If we do not find a leader suitable for replacement
15005         insert a replacement expression from SCCVN if available.
15006         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
15007         (struct vn_ssa_aux): Add needs_insertion flag.
15008         * tree-ssa-sccvn.c (may_insert): New global flag.
15009         (copy_reference_ops_from_ref): Value-number union member access
15010         based on its size, not type and member if insertion is allowed.
15011         (visit_reference_op_load): For a weak match from union type
15012         punning lookup a view-converted value and insert a SSA_NAME
15013         for that value if that is not found.
15014         (visit_use): Make dumps shorter.  Do not disallow value numbering
15015         SSA_NAMEs that are life over an abnormal edge to constants.
15016         (free_scc_vn): Release inserted SSA_NAMEs.
15017         (run_scc_vn): New flag to specify whether insertion is allowed.
15018         Process SSA_NAMEs in forward order.
15019         * tree-ssa-loop-im.c (for_each_index): Handle invariant
15020         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
15021         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
15022         pointer type to/from integral types that do not change the
15023         precision to regular conversions.
15024
15025 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
15026
15027         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15028         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15029         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
15030         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
15031         input arguments and the mode of return value.  Built-in functions
15032         that operate on whole 64-bit MMX register now use V1DI mode.
15033
15034 2008-03-13  Alon Dayan  <alond@il.ibm.com>
15035             Olga Golovanevsky  <olga@il.ibm.com>
15036
15037         PR tree-optimization/35041
15038         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
15039         to locate the right position in a statement.
15040
15041 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
15042
15043         PR target/34000
15044         PR target/35553
15045         * config/i386/xmmintrin.h:  Change all static inline functions to
15046         extern inline and add __gnu_inline__ attribute.
15047         * config/i386/bmintrin.h: Ditto.
15048         * config/i386/smmintrin.h: Ditto.
15049         * config/i386/tmmintrin.h: Ditto.
15050         * config/i386/mmintrin-common.h: Ditto.
15051         * config/i386/ammintrin.h: Ditto.
15052         * config/i386/emmintrin.h: Ditto.
15053         * config/i386/pmmintrin.h: Ditto.
15054         * config/i386/mmintrin.h: Ditto.
15055         * config/i386/mm3dnow.h: Ditto.
15056
15057 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
15058
15059         PR middle-end/35185
15060         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
15061         (lower_omp_2): New function.
15062         (lower_omp_1, lower_omp): Rewritten.
15063
15064 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
15065
15066         PR 35054
15067         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
15068         with the phrase "Microsoft Windows compilers".
15069         (Push/Pop Macro Pragmas): New subsection. Document
15070         #pragma push_macro and pragma pop_macro.
15071
15072 2008-03-12  Paul Brook  <paul@codesourcery.com>
15073
15074         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
15075
15076 2008-03-12  Paul Brook  <paul@codesourcery.com>
15077
15078         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
15079         (thumb2_alusi3_short): Exclude PLUS and MINUS.
15080         (thumb2_addsi_shortim): Rename ...
15081         (thumb2_addsi_short): ... to this.  Allow register operands.
15082         (thumb2_subsi_short): New pattern.
15083         (thumb2_one_cmplsi2_short,
15084         thumb2_negsi2_short): New patterns and peepholes.
15085
15086 2008-03-12  Paul Brook  <paul@codesourcery.com>
15087
15088         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
15089
15090 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
15091
15092         * config/i386/i386.md (int_cond): New code iterator.
15093         (fp_cond): Ditto.
15094         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
15095         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
15096         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
15097         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
15098         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
15099         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
15100         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
15101         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
15102
15103 2008-03-12  Paul Brook  <paul@codesourcery.com>
15104
15105         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
15106         instead of {arm,thumb}_compute_save_reg_mask.
15107         (output_return_instruction): Ditto.
15108         (thumb_unexpanded_epilogue): Ditto.
15109         (thumb1_expand_prologue): Ditto.
15110         (thumb1_output_function_prologue): Ditto.
15111         (arm_set_return_address): Ditto.
15112         (thumb_set_return_address): Ditto.
15113         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
15114         regs to achieve stack alignment.
15115         (thumb1_compute_save_reg_mask): Fix compiler warning.
15116         (arm_output_epilogue): Use offsets->saved_regs_mask.
15117         Adjust stack pointer by poping call clobered registers.
15118         (arm_expand_prologue): Use offsets->saved_regs_mask.
15119         Adjust stack pointer by pushing extra registers.
15120         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
15121
15122 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
15123
15124         PR tree-opt/35422
15125         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
15126         conversion to the operands of a multiplication.
15127
15128 2008-03-12  Richard Guenther  <rguenther@suse.de>
15129
15130         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
15131         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
15132         * timevar.def (TV_TREE_PHIPROP): Add.
15133         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
15134         pass description.  Use TV_TREE_PHIPROP.
15135         * tree-ssa-forwprop.c: Remove phiprop code.
15136
15137 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
15138
15139         PR middle-end/35549
15140         * omp-low.c (maybe_lookup_decl): Constify first argument.
15141         (use_pointer_for_field): Change last argument from bool to
15142         omp_context *.  Disallow shared copy-in/out in nested
15143         parallel if decl is shared in outer parallel too.
15144         (build_outer_var_ref, scan_sharing_clauses,
15145         lower_rec_input_clauses, lower_copyprivate_clauses,
15146         lower_send_clauses, lower_send_shared_vars): Adjust callers.
15147
15148 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
15149             Ira Rosen  <irar@il.ibm.com>
15150
15151         * tree-vectorizer.c (free_stmt_vec_info): New function.
15152         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
15153         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
15154         * tree-vectorizer.h (free_stmt_vec_info): Declare.
15155         * tree-vect-transform.c (vectorizable_conversion): Free
15156         vec_oprnds0 if it was allocated.
15157         (vect_permute_store_chain): Remove unused VECs.
15158         (vectorizable_store): Free VECs that are allocated in the..
15159         function.
15160         (vect_transform_strided_load, vectorizable_load): Likewise.
15161         (vect_remove_stores): Simplify the code.
15162         (vect_transform_loop): Move code to vect_remove_stores().
15163         Call vect_remove_stores() and free_stmt_vec_info().
15164
15165 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15166
15167         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
15168         TARGET_HPUX.  Revise comment.
15169         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
15170         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
15171         Use sr4 variant of `be' instruction when not generating PIC code.
15172         (attr_length_call): Adjust for above change.
15173
15174 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15175
15176         * ipa-reference.c (static_execute): Remove module_statics_const and
15177         associated setting code.
15178
15179 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
15180
15181         PR target/35540
15182         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
15183         predicate for operand 1.
15184         (paritysi2_cmp): Use register_operand predicate for operand 2.
15185         Use earlyclobber modifier for operand 1.  Remove support for
15186         memory operands.
15187         (paritydi2_cmp): Use register_operand predicate for operand 3.
15188         Use earlyclobber modifier for operand 1.  Remove support for
15189         memory operands.
15190
15191 2008-03-11  Paul Brook  <paul@codesourcery.com>
15192             Vladimir Prus  <vladimir@codesourcery.com>
15193
15194         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
15195         (arm_compute_save_reg0_reg12_mask): Always
15196         check if register 11 must be saved.  Always safe hard frame pointer
15197         when frame_pointer_needeed.
15198         (arm_compute_save_reg_mask): Save IP and PC
15199         only with apcs frames.
15200         (arm_output_epilogue): Adjust Thumb2 codepath to
15201         be also invoked and work for ARM non-apcs frames.
15202         (arm_expand_prologue): Don't bother saving IP
15203         for non-apcs frame, since it's not clobbered by
15204         prologue code.  Implement non-apcs frame
15205         layout.
15206
15207 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
15208
15209         PR rtl-optimization/35281
15210         * expr.c (convert_move): Use a new pseudo for the intermediate
15211         from_mode->word_mode result.
15212
15213 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
15214
15215         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
15216         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
15217         * toplev.c (compile_file): Don't call it.
15218
15219 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
15220
15221         PR middle-end/35526
15222         * expr.c (store_expr): Call emit_block_move if the mode
15223         of "temp" RTX is BLKmode.
15224
15225 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15226             Richard Guenther  <rguenther@suse.de>
15227
15228         PR tree-optimization/31358
15229         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
15230         the step with a NULL_TREE.
15231         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
15232         to sizetype if type is a pointer type.
15233         (add_candidate_1): Don't convert the base and step to
15234         the generic type if the orginal type is a pointer type.
15235         (add_iv_value_candidates): Use sizetype for the step
15236         if type is a pointer type.
15237         (cand_value_at): Likewise.
15238         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
15239         for pointer types.
15240         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
15241         Don't convert the tem affine to the type.
15242         (add_elt_to_tree): Use sizetype for the step if a pointer.
15243         Use POINTER_PLUS_EXPR for pointers.
15244         (aff_combination_to_tree): Use sizetype for the step if a
15245         pointer.
15246
15247 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
15248
15249         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
15250         Remove commutativity hint.
15251
15252 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
15253
15254         PR c/35438
15255         PR c/35439
15256         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
15257         errorneous type.  Check that v is a VAR_DECL.
15258
15259         PR middle-end/35099
15260         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
15261
15262 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
15263
15264         PR tree-optimization/35494
15265         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
15266         may be overriden at link and run time.
15267
15268 2008-03-10  Richard Guenther  <rguenther@suse.de>
15269
15270         PR tree-optimization/34677
15271         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
15272         (poolify_tree): Likewise.
15273         (modify_expr_template): Likewise.
15274         (poolify_modify_stmt): Likewise.
15275         (insert_fake_stores): Handle all component-ref style stores
15276         in addition to INDIRECT_REF.  Also handle complex types.
15277         Do not poolify the inserted load.
15278         (realify_fake_stores): Do not rebuild the tree but only
15279         make it a SSA_NAME copy.
15280         (init_pre): Remove initialzation of modify_expr_template.
15281         Do not allocate modify_expr_node_pool.
15282         (fini_pre): Do not free modify_expr_node_pool.
15283
15284 2008-03-10  Paul Brook  <paul@codesourcery.com>
15285
15286         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
15287         to avoid conflicts.
15288
15289 2008-03-10  Paul Brook  <paul@codesourcery.com>
15290             Mark Shinwell  <shinwell@codesourcery.com>
15291
15292         * config/arm/cortex-r4.md: New.
15293         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
15294         insn attributes.
15295         * config/arm/arm.md: Include cortex-r4.md.
15296         (insn): Add smmls, sdiv and udiv values.
15297         (generic_sched): Don't use generic scheduling for Cortex-R4.
15298         (arm_issue_rate): New function.
15299         (TARGET_SCHED_ISSUE_RATE): Define.
15300
15301 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
15302
15303         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
15304
15305 2008-03-10  Richard Guenther  <rguenther@suse.de>
15306
15307         * tree-ssa-pre.c (get_sccvn_value): Simplify.
15308         (compute_avail): Do not add stmt uses to AVAIL_OUT.
15309
15310 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
15311
15312         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
15313         Set default to true.
15314
15315 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15316
15317         * c.opt (Wsynth): Deprecate.
15318         * doc/invoke.texi (Option Summary, Warning Options): Document
15319         -Wno-format-contains-nul.
15320
15321 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
15322
15323         PR target/35496
15324         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
15325         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
15326
15327 2008-03-09  Ira Rosen  <irar@il.ibm.com>
15328
15329         * config/rs6000/rs6000.c (builtin_description): Rename vector
15330         left shift operations.
15331         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
15332         (altivec_vsl<VI_char>): Rename to ...
15333         (ashl<mode>3): ... new name.
15334         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
15335         gen_ashlv4si3.
15336         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
15337
15338 2008-03-08  Richard Guenther  <rguenther@suse.de>
15339
15340         * coverage.h (tree_coverage_counter_addr): Declare.
15341         * coverage.c (tree_coverage_counter_addr): New function.
15342         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
15343         before using again.
15344         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
15345         (tree_gen_one_value_profiler): Likewise.
15346         (tree_gen_ic_profiler): Likewise.
15347         (tree_gen_average_profiler): Likewise.
15348         (tree_gen_ior_profiler): Likewise.
15349
15350 2008-03-08  Richard Guenther  <rguenther@suse.de>
15351
15352         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
15353         (vn_binary_op_insert): Likewise.
15354         (vn_unary_op_lookup): Likewise.
15355         (vn_unary_op_insert): Likewise.
15356         (vn_nary_op_lookup): Declare.
15357         (vn_nary_op_insert): Likewise.
15358         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
15359         and binary hashes, use a single obstack for unary_op_pool
15360         and binary_op_pool.
15361         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
15362         a single struct vn_nary_op_s.  Store tree code length and
15363         a variable number of operands.
15364         (struct vn_reference_op_struct): Remove unused op2.
15365         (vn_reference_op_eq): Do not compare op2.
15366         (vn_reference_op_compute_hash): Do not compute hash of op2.
15367         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
15368         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
15369         with vn_nary_op_compute_hash.
15370         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
15371         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
15372         vn_nary_op_lookup.
15373         (vn_unary_op_insert, vn_binary_op_insert): Replace with
15374         vn_nary_op_insert.
15375         (visit_unary_op): Call nary functions.
15376         (visit_binary_op): Likewise.
15377         (process_scc): Adjust for struct vn_tables_s changes.
15378         (allocate_vn_table): Likewise.
15379         (free_vn_table): Likewise.
15380         * tree-vn.c (vn_add): Call nary functions.
15381         (vn_lookup): Likewise.
15382
15383 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
15384
15385         PR target/35498
15386         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
15387         wdst back after sync_compare_and_swapqhi_internal.
15388
15389 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
15390
15391         PR target/22152
15392         * config/i386/i386-modes.def (V1DI): New vector mode.
15393         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
15394         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
15395         (MMXMODE248): Ditto.
15396         (MMXMODE): Add V1DI mode.
15397         (mmxvecsize): Change DI mode to V1DI mode.
15398         ("mov<mode>): Use MMXMODEI8 mode iterator.
15399         ("*mov<mode>_internal_rex64"): Ditto.
15400         ("*mov<mode>_internal"): Ditto.
15401         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
15402         ("mmx_sub<mode>3"): Ditto.
15403         ("mmx_adddi3"): Remove insn pattern.
15404         ("mmx_subdi3"): Ditto.
15405         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
15406         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
15407         ("mmx_ashl<mode>3"): Ditto.
15408         ("mmx_lshrdi3"): Remove insn pattern.
15409         ("mmx_ashldi3"): Ditto.
15410         * config/i386/i386.c (classify_argument): Handle V1DImode.
15411         (function_arg_advance_32): Ditto.
15412         (function_arg_32): Ditto.
15413         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
15414         mmx_addv1di3 insn pattern.
15415         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
15416         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
15417         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
15418         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
15419         Remove definitions of built-in functions.
15420         (V1DI_type_node): New node.
15421         (v1di_ftype_v1di_int): Ditto.
15422         (v1di_ftype_v1di_v1di): Ditto.
15423         (v2si_ftype_v2si_si): Ditto.
15424         (v4hi_ftype_v4hi_di): Remove node.
15425         (v2si_ftype_v2si_di): Ditto.
15426         (ix86_init_mmx_sse_builtins): Handle V1DImode.
15427         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
15428         Redefine builtins using def_builtin_const with *_ftype_*_int node.
15429         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
15430         Add new builtins using def_builtin_const.
15431         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
15432         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
15433         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
15434         * config/i386/mmintrin.h (__v1di): New typedef.
15435         (_mm_add_si64): Cast arguments to __v1di type.
15436         (_mm_sub_si64): Ditto.
15437         (_mm_sll_pi16): Cast __count to __v4hi type.
15438         (_mm_sll_pi32): Cast __count to __v2si type.
15439         (_mm_sll_si64): Cast arguments to __v1di type.
15440         (_mm_srl_pi16): Cast __count to __v4hi type.
15441         (_mm_srl_pi32): Cast __count to __v2si type.
15442         (_mm_srl_si64): Cast arguments to __v1di type.
15443         (_mm_sra_pi16): Cast __count to __v4hi type.
15444         (_mm_sra_pi32): Cast __count to __v2si type.
15445         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
15446         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
15447         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
15448         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
15449         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
15450         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
15451         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
15452         (_mm_srai_pi32): Use __builtin_ia32_psradi.
15453         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
15454         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15455         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15456         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
15457
15458 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
15459
15460         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
15461
15462 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
15463
15464         PR target/35373
15465         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
15466         reg+const addressing for Altivec modes.  Don't generate reg+reg
15467         addressing for TFmode or TDmode quantities.
15468
15469 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
15470
15471         * c-common.c (vector_types_convertible_p): Call langhook
15472         instead of comptypes.
15473
15474 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15475
15476         PR tree-opt/35402
15477         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
15478         integral and scalar float variables which have a
15479         NULL DECL_INITIAL.
15480
15481 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
15482
15483         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
15484         dwarf_register_span hook when emitting unwind information for
15485         register-to-memory saves.
15486         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
15487         (rs6000_frame_related): Remove call to spe_synthesize_frame.
15488
15489 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
15490
15491         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
15492         for the same VAR_DECL.
15493
15494 2008-03-06  Tom Tromey  <tromey@redhat.com>
15495
15496         * treelang: Delete.
15497         * doc/standards.texi (Standards): Don't mention treelang.
15498         * doc/invoke.texi (Overall Options): Don't mention treelang.
15499         * doc/install.texi (Prerequisites): Don't mention bison or
15500         treelang.
15501         (Configuration): Don't mention treelang.
15502         (Building): Likewise.
15503         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
15504
15505 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
15506
15507         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
15508         word-extractions out of a multi-word object.
15509
15510 2008-03-06  Richard Guenther  <rguenther@suse.de>
15511
15512         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
15513         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
15514         result type and precision.
15515         * expr.c (get_inner_reference): Set unsignedp based on the result
15516         type of BIT_FIELD_REF.
15517         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
15518         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
15519         (try_instantiate_multiple_fields): Likewise.  Use the correct type
15520         for BIT_FIELD_REF.
15521         (sra_build_assignment): Likewise.
15522         (sra_build_elt_assignment): Likewise.
15523         (sra_explode_bitfield_assignment): Likewise.
15524         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
15525         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
15526         set BIT_FIELD_REF_UNSIGNED.
15527         (vectorizable_load): Likewise.
15528
15529 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
15530
15531         * cse.c (cse_extended_basic_block): Invalidate artificial defs
15532         at bb start.
15533
15534 2008-03-06  Richard Guenther  <rguenther@suse.de>
15535
15536         * alias.c (struct alias_set_entry): Move has_zero_child field
15537         to pack with alias_set.
15538
15539 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
15540
15541         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15542         32bit host.
15543
15544 2008-03-05  Ian Lance Taylor  <iant@google.com>
15545
15546         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
15547
15548 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
15549
15550         * fwprop.c (update_df): Support width and offset parameters of
15551         df_ref_create.
15552         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
15553         global_conflicts): Change DF_REF_EXTRACT to either
15554         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15555         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15556         * df-scan.c (df_ref_record, df_defs_record,
15557         df_ref_create_structure, df_def_record_1, df_uses_record,
15558         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
15559         df_bb_refs_collect, df_entry_block_defs_collect,
15560         df_exit_block_uses_collect): Support new width and offset fields.
15561         (ref_extract_pool): New storage pool.
15562         (df_free_ref): New function.
15563         (df_reg_chain_unlink, df_free_collection_rec,
15564         df_sort_and_compress_refs): Call df_free_ref.
15565         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
15566         of df_ref_extract.
15567         (df_ref_create_structure): Allocate df_ref_extract if offset and
15568         width fields are used.
15569         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
15570         (df_uses_record): Get offset and width from ZERO_EXTRACT
15571         and SIGN_EXTRACT.
15572         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
15573         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15574         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15575         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
15576         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15577         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15578         (df_ref_extract): New structure.
15579         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
15580         (df_ref_create): Add width and offset parameters.
15581
15582 2008-03-05  Richard Guenther  <rguenther@suse.de>
15583
15584         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15585         Use ranges_overlap_p.
15586         (offset_overlaps_with_access): Rename
15587         to ranges_overlap_p and move ...
15588         * tree-flow-inline.h (ranges_overlap_p): ... here.
15589
15590         * tree.h (get_inner_reference, handled_component_p): Update
15591         comments.
15592
15593         * tree.h (record_component_aliases, get_alias_set,
15594         alias_sets_conflict_p, alias_sets_must_conflict_p,
15595         objects_must_conflict_p): Move declarations ...
15596         * alias.h (record_component_aliases, get_alias_set,
15597         alias_sets_conflict_p, alias_sets_must_conflict_p,
15598         objects_must_conflict_p): ... here.
15599         Include coretypes.h.
15600         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
15601
15602 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
15603
15604         * cfg.c: Include tree-flow.h.
15605         (remove_edge_raw): Call redirect_edge_var_map_clear.
15606         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
15607         * tree-flow-inline.h (redirect_edge_var_map_def): New.
15608         (redirect_edge_var_map_result): New.
15609         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
15610         PENDING_STMT use with redirect_edge_var_map_*.
15611         * tree-ssa.c (edge_var_maps): New definition.
15612         (redirect_edge_var_map_add): New.
15613         (redirect_edge_var_map_clear): New.
15614         (redirect_edge_var_map_dup): New.
15615         (redirect_edge_var_map_vector): New.
15616         (redirect_edge_var_map_destroy): New.
15617         (ssa_redirect_edge): Replace PENDING_STMT use with
15618         redirect_edge_var_map_*.
15619         (flush_pending_stmts): Same.
15620         (delete_tree_ssa): Destroy edge var map.
15621         * tree-flow.h (struct _edge_var_map): New.
15622         Define edge_var_map vector type.
15623         Declare redirect_edge_var_map_* prototypes.
15624         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
15625         * tree-cfg.c (reinstall_phi_args): Replace
15626         PENDING_STMT use with redirect_edge_var_map_*.
15627
15628 2008-03-05  Richard Guenther  <rguenther@suse.de>
15629
15630         PR tree-optimization/35472
15631         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
15632         whose single use_stmt has a overlapping set of loaded and
15633         stored symbols as that use_stmt might be a noop assignment then.
15634
15635 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
15636
15637         * gthr-rtems.h: Implement __gthread_mutex_destroy.
15638
15639 2008-03-05  Richard Guenther  <rguenther@suse.de>
15640
15641         PR c++/35336
15642         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
15643         should be constants.
15644         * tree-cfg.c (verify_expr): Verify it.
15645         * fold-const.c (fold_truthop): Remove code generating
15646         BIT_FIELD_REFs of structure bases.
15647         (fold_binary): Likewise.
15648         (fold_ternary): Position and size of BIT_FIELD_REFs are
15649         always host integers.
15650         (make_bit_field_ref): Remove.
15651         (optimize_bit_field_compare): Remove.
15652         (all_ones_mask_p): Remove.
15653
15654 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
15655
15656         PR gcc/33009
15657         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
15658         (split_block_and_df_analyze): New. Split basic block and rebuild
15659         dataflow.
15660         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
15661         SPLIT_BLOCK.
15662         (split_pattern_seq): Likewise.
15663         (erase_matching_seqs): Likewise.
15664         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
15665
15666 2008-03-04  Geoff Keating  <geoffk@apple.com>
15667
15668         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
15669         declaration and code.
15670         (tree_invalid_nonnegative_warnv_p): Likewise.
15671
15672 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
15673
15674         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
15675         examples.  Truncate option-names then causing overfull hbox.
15676
15677 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15678
15679         PR target/35222
15680         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
15681         on hpux10.
15682         * configure: Rebuilt.
15683
15684 2008-03-04  Rafael Espindola  <espindola@google.com>
15685
15686         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
15687         (tree_unary_nonnegative_warnv_p): New.
15688         (tree_binary_nonnegative_warnv_p): New.
15689         (tree_single_nonnegative_warnv_p): New.
15690         (tree_invalid_nonnegative_warnv_p): New.
15691         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
15692
15693 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15694
15695         PR 28322
15696         * opts.c (handle_option): Postpone 'unknown option' errors only for
15697         warning options.
15698
15699 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
15700
15701         PR target/35453
15702         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
15703         (_SIDD_XXX): This.
15704
15705 2008-03-04  Rafael Espindola  <espindola@google.com>
15706
15707         * fold-const.c (tree_unary_nonzero_warnv_p): New.
15708         (tree_binary_nonzero_warnv_p): New.
15709         (tree_single_nonzero_warnv_p): New.
15710         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
15711
15712 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
15713
15714         PR middle-end/35456
15715         * fold-const.c (fold_cond_expr_with_comparison): Prevent
15716         transformations for modes that have signed zeros.
15717         * ifcvt.c (noce_try_abs): Ditto.
15718
15719 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
15720
15721         * config/i386/i386.c (override_options): Force
15722         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
15723
15724 2008-03-04  Jan Hubicka  <jh@suse.cz>
15725
15726         PR c++/35262
15727         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
15728         in last commit.
15729
15730 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
15731
15732         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
15733         label to probe the stack.
15734
15735 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
15736
15737         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
15738         (__gthr_win32_mutex_destroy): Declare.
15739         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
15740         __gthr_win32_mutex_destroy.
15741         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
15742
15743 2008-03-03  Jan Hubicka  <jh@suse.cz>
15744
15745         PR c++/35262
15746         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
15747         aggressive on inlining cold calls.
15748
15749 2008-03-03  Richard Guenther  <rguenther@suse.de>
15750
15751         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
15752         struct copies into the expression table.
15753         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
15754         (try_to_simplify): Likewise.
15755         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
15756         integral and pointer arguments which do not change the
15757         precision to NOP_EXPRs.
15758         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
15759         VIEW_CONVERT_EXPR case.
15760
15761 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
15762
15763         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
15764         defined in a loop at depth 0 is invariant.
15765         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
15766         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
15767         be called at loop depth 0.
15768
15769 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
15770
15771         PR driver/35420
15772         * gcc.c (process_command): Update copyright notice dates.
15773         * gcov.c (print_version): Likewise.
15774         * gcov-dump.c (print_version): Likewise.
15775         * mips-tfile.c (main): Likewise.
15776         * mips-tdump.c (main): Likewise.
15777
15778 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15779
15780         PR 24924
15781         * c-common.c (flag_permissive): Delete.
15782         (constant_expression_warnings): Check flags first.
15783         (constant_expression_error): New.
15784         * c-common.h (flag_permissive): Delete.
15785         (constant_expression_error): Declare.
15786         * flags.h (flag_permissive): Declare. Update description.
15787         * diagnostic.c (pedwarn): Update.
15788         (permerror): New.
15789         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
15790         (permissive_error_kind): New.
15791         * toplev.c (flag_permissive): Define. Update description.
15792         * toplev.h (permissive_error_kind): Declare.
15793         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
15794         (pedwarn_c90): Use pedantic_warning_kind.
15795         * c-opts.c (c_common_post_options): flag_permissive does not affect
15796         flag_pedantic_errors.
15797
15798 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
15799
15800         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
15801         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
15802         __absvsi2, __absvDI2): Use unsigned arithmetic.
15803
15804 2008-03-02  Andi Kleen  <ak@suse.de>
15805             Richard Guenther  <rguenther@suse.de>
15806
15807         * struct-equiv.c: Remove file.
15808         * cfg_cleanup.c (condjump_equiv_p): Remove.
15809         * Makefile.in (OBJS-common): Remove struct-equiv.o.
15810         (struct-equiv.o): Remove rule.
15811         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
15812         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
15813         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
15814
15815 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15816
15817         * ifcvt.c (noce_process_if_block): Try to handle only the then
15818         block if the else block exists but isn't suitable.
15819
15820 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
15821
15822         PR gcc/35063
15823         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
15824         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
15825         regression from previous patch.
15826
15827 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
15828
15829         PR gcc/35063
15830         * gthr.h: Add __gthread_mutex_destroy as a function that must be
15831         implemented.
15832         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
15833         * gthr-single.h (__gthread_mutex_destroy): Likewise.
15834         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
15835         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
15836         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
15837         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
15838         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
15839         (__gthread_mutex_destroy_function): Rename to
15840         __gthread_mutex_destroy.
15841         * gthr-dce.h (__gthread_mutex_destroy): Call
15842         pthread_mutex_destroy.
15843         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
15844         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
15845         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
15846
15847 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15848
15849         * df-scan.c (df_ref_chain_change_bb): Simplify.
15850         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
15851         set_block_for_insn if there's any change.
15852         * df.h ((df_insn_change_bb): Fix prototype.
15853         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
15854         df_insn_change_bb, don't call set_block_for_insn.
15855         * emit-rtl.c (reorder_insns): Likewise.
15856         * haifa-sched.c (move_insn): Likewise.
15857
15858 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15859
15860         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
15861
15862 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15863
15864         * tree-flow-inline.h (next_readonly_imm_use): Return
15865         NULL_USE_OPERAND_P after the end.
15866
15867 2008-03-01  Richard Guenther  <rguenther@suse.de>
15868
15869         PR tree-optimization/35411
15870         * tree-sra.c (sra_build_assignment): Split conversion to
15871         final type to a separate statement if we are not assigning
15872         to a register.
15873
15874 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15875
15876         * fold-const.c (fold_convertible_p): Correct the logic to follow
15877         that in fold_convert().
15878
15879 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
15880
15881         PR c++/35315
15882         * tree-inline.c (build_duplicate_type): When we make a
15883         duplicate type, make it unique in the canonical types system.
15884
15885 2008-02-29  Tom Tromey  <tromey@redhat.com>
15886
15887         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
15888         input_file_stack_history, input_file_stack_restored): Remove.
15889         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
15890         * input.h (struct file_stack): Remove.
15891         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
15892         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
15893         Likewise.
15894         * diagnostic.h (struct diagnostic_context) <last_module>: Change
15895         type.
15896         (diagnostic_last_module_changed): Add 'map' argument.
15897         (diagnostic_set_last_function): Likewise.
15898         * diagnostic.c (undiagnostic_report_current_module): Iterate using
15899         line map, not input_file_stack.
15900         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
15901
15902 2008-02-29  Paul Brook  <paul@codesourcery.com>
15903
15904         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
15905
15906 2008-02-29  Paul Brook  <paul@codesourcery.com>
15907
15908         * config/arm/ieee754-df.S (muldf3): Use RET macros.
15909
15910 2008-02-29  Richard Guenther  <rguenther@suse.de>
15911
15912         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
15913         vn_lookup_or_add.
15914         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
15915         value for comparing for a store match.
15916         (simplify_unary_expression): Do nothing for SSA_NAMEs.
15917         (try_to_simplify): Do not do a full-blown reference lookup.
15918
15919 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15920
15921         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
15922         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
15923
15924         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
15925
15926 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
15927
15928         * tree-loop-linear.c (try_interchange_loops): Compare memory access
15929         strides against cache sizes.
15930
15931 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15932
15933         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
15934         constant to fpul.
15935
15936 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
15937
15938         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
15939         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
15940         is smaller than the original promoted value.
15941         (simplify_subreg): If OP is a SUBREG, try to preserve its
15942         SUBREG_PROMOTED_VAR_P information.
15943
15944 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
15945
15946         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
15947         (VN_INFO_GET): Allocate new objects on the obstack.
15948         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
15949         for rpo_numbers_temp, for consistency.
15950         (free_scc_vn): Free the obstack.
15951
15952 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
15953
15954         * doc/invoke.texi: Document -ftree-loop-distribution.
15955         * tree-loop-distribution.c: New.
15956         * tree-pass.h (pass_loop_distribution): New.
15957         * graphds.h (struct graph): Add htab_t indices.
15958         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
15959         * tree-vectorizer.c (rename_variables_in_loop): Extern.
15960         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
15961         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
15962         * tree-data-ref.c (debug_data_dependence_relations): New.
15963         (dump_data_dependence_relation): Also print data references.
15964         (free_data_ref): Extern.
15965         (same_access_functions): Moved...
15966         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
15967         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
15968         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
15969         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
15970         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
15971         (stmts_from_loop): Skip LABEL_EXPR.
15972         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
15973         New.
15974         (build_rdg): Initialize rdg->indices htab.
15975         (free_rdg, stores_from_loop, ref_base_address,
15976         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
15977         have_similar_memory_accesses_1, ref_base_address_1,
15978         remove_similar_memory_refs): New.
15979         * tree-data-ref.h: Depend on tree-chrec.h.
15980         (debug_data_dependence_relations, free_data_ref): Declared.
15981         (same_access_functions): ... here.
15982         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
15983         New.
15984         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
15985         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
15986         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
15987         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
15988         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
15989         rdg_vertex_for_stmt): Declared.
15990         (struct rdg_edge): Add level.
15991         (RDGE_LEVEL): New.
15992         (free_rdg, stores_from_loop, remove_similar_memory_refs,
15993         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
15994         Declared.
15995         (rdg_has_similar_memory_accesses): New.
15996         * tree-vect-analyze.c: Remove unused static decls.
15997         * lambda.h (dependence_level): New.
15998         * common.opt (ftree-loop-distribution): New.
15999         * tree-flow.h (mark_virtual_ops_in_bb,
16000         slpeel_tree_duplicate_loop_to_edge_cfg,
16001         rename_variables_in_loop): Declared.
16002         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
16003         (OBJS-common): Add tree-loop-distribution.o.
16004         (tree-loop-distribution.o): New rule.
16005         * tree-cfg.c (mark_virtual_ops_in_bb): New.
16006         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
16007         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
16008
16009 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
16010
16011         PR target/33963
16012         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
16013         other than structures and unions.
16014
16015 2008-02-28  Richard Guenther  <rguenther@suse.de>
16016
16017         Revert:
16018         2008-02-26  Richard Guenther  <rguenther@suse.de>
16019
16020         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16021         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16022         (lookup_decl_from_uid): Declare.
16023         (remove_decl_from_map): Likewise.
16024         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16025         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16026         (decl_for_uid_map): New global hashtable mapping DECL_UID
16027         to the decl tree.
16028         (init_ttree): Allocate it.
16029         (insert_decl_to_uid_decl_map): New helper function.
16030         (make_node_stat): Insert new decls into the map.
16031         (copy_node_stat): Likewise.
16032         (lookup_decl_from_uid): New function.
16033         (remove_decl_from_map): Likewise.
16034         (print_decl_for_uid_map_statistics): New helper.
16035         (dump_tree_statistics): Call it.
16036
16037         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16038         (referenced_var_iterator): Adjust.
16039         (FOR_EACH_REFERENCED_VAR): Adjust.
16040         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16041         (num_referenced_vars): Adjust.
16042         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16043         (first_referenced_var): Remove.
16044         (end_referenced_vars_p): Likewise.
16045         (next_referenced_var): Likewise.
16046         (referenced_var_iterator_set): New helper function.
16047         * tree-dfa.c (referenced_var_lookup): Adjust.
16048         (referenced_var_check_and_insert): Likewise.
16049         (remove_referenced_var): Likewise.
16050         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16051         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16052         (verify_call_clobbering): Likewise.
16053         (verify_memory_partitions): Likewise.
16054         (init_tree_ssa): Allocate bitmap instead of hashtable for
16055         referenced_vars.
16056         (delete_tree_ssa): Adjust.
16057         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16058         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16059         (compute_tag_properties): Likewise.
16060         (set_initial_properties): Likewise.
16061         (find_partition_for): Likewise.
16062         (update_reference_counts): Likewise.
16063         (dump_may_aliases_for): Likewise.
16064         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16065         (add_call_clobber_ops): Likewise.
16066         (add_call_read_ops): Likewise.
16067         (get_asm_expr_operands): Likewise.
16068         * tree-into-ssa.c (dump_decl_set): Likewise.
16069         (update_ssa): Likewise.
16070         * tree-sra.c (scan_function): Likewise.
16071         (decide_instantiations): Likewise.
16072         (scalarize_parms): Likewise.
16073         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16074         (dsa_named_for): Likewise.
16075         * tree-ssa-structalias.c (update_alias_info): Likewise.
16076         (merge_smts_into): Likewise.
16077
16078 2008-02-27  David Daney  <ddaney@avtrex.com>
16079
16080         PR target/34409
16081         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
16082         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
16083         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
16084         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
16085         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
16086
16087 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
16088
16089         PR target/25477
16090         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
16091         (BUILT_IN_NEXTTOWARD): Remove.
16092         (BUILT_IN_NEXTTOWARDF): Ditto.
16093         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
16094         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
16095
16096 2008-02-27  Tom Tromey  <tromey@redhat.com>
16097
16098         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
16099         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
16100
16101 2008-02-27  Jan Beulich  <jbeulich@novell.com>
16102
16103         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
16104         update the respective field on newdecl.
16105
16106 2008-02-27  Revital Eres  <eres@il.ibm.com>
16107
16108         PR rtl-optimization/34999
16109         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
16110         crossing edges that ends with a call insn.
16111         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
16112         call insn and clear the EDGE_CROSSING flag of the crossing edge
16113         when fixing fallthru edges.
16114
16115 2008-02-27  Richard Guenther  <rguenther@suse.de>
16116
16117         PR middle-end/35390
16118         * fold-const.c (fold_unary): Return the correct argument,
16119         converted to the result type.
16120
16121 2008-02-27  Richard Guenther  <rguenther@suse.de>
16122
16123         PR middle-end/34971
16124         * expr.c (expand_expr_real_1): Assert on rotates that operate
16125         on partial modes.
16126         * fold-const.c (fold_binary): Use the types precision, not the
16127         bitsize of the mode if folding rotate expressions.  Build rotates
16128         only for full modes.
16129
16130 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
16131
16132         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
16133         and CPP_PRAGMA_EOL.
16134         * c-pragma.c (pragma_ns_name): New typedef.
16135         (registered_pp_pragmas): New variable.
16136         (c_pp_lookup_pragma): New function.
16137         (c_register_pragma_1): If flag_preprocess_only, do nothing
16138         for non-expanded pragmas, for expanded ones push pragma's
16139         namespace and name into registered_pp_pragmas vector.
16140         (c_invoke_pragma_handler): Register OpenMP pragmas even when
16141         flag_preprocess_only, don't register GCC pch_preprocess
16142         pragma if flag_preprocess_only.
16143         * c-opts.c (c_common_init): Call init_pragma even if
16144         flag_preprocess_only.
16145         * c-pragma.c (c_pp_lookup_pragma): New prototype.
16146         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
16147         cpp_register_pragma if flag_preprocess_only.
16148
16149 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16150
16151         PR c/28800
16152         * c-parser.c (c_parser_translation_unit): Warn for empty
16153         translation unit, not empty source file.
16154
16155 2008-02-26  Paul Brook  <paul@codesourcery.com>
16156
16157         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
16158         operand for Thumb-2.
16159         * config/arm/arm.h (reg_class): Add CORE_REGS.
16160         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
16161         (BASE_REG_CLASS): Use CORE_REGS.
16162         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
16163         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
16164         (REGNO_OK_FOR_INDEX_P): Exclude SP.
16165         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
16166         ARM_REGNO_OK_FOR_INDEX_P.
16167         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
16168         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
16169         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
16170         (ldm/stm peepholes): Ditto.
16171         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
16172         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
16173         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
16174         * config/arm/constraints.md: Enable "k" constraint on ARM.
16175
16176 2008-02-27  Ben Elliston  <bje@au.ibm.com>
16177
16178         * config/rs6000/rs6000.c: Annotate cache line size field in all
16179         instances of struct processor_costs.
16180
16181 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
16182
16183         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
16184         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
16185         jump_bypass): New counters.
16186         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
16187         * dce.c (gate_ud_dce): Same.
16188         (gate_fast_dce): Same.
16189         * dse.c (gate_dse1): New function.
16190         (gate_dse2): New function.
16191         (gate_dse): Merge results of new gate functions.
16192         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
16193         (gate_handle_jump_bypass): Add dbg_cnt.
16194         (gate_handle_gcse): Add dbg_cnt.
16195         * ifcvt.c (gate_handle_if_conversion): Same.
16196         (gate_handle_if_after_combine): Same.
16197         (gate_handle_if_after_reload): Same.
16198         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
16199
16200 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
16201
16202         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
16203         line sizes.
16204         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
16205
16206 2008-02-26  Jason Merrill  <jason@redhat.com>
16207
16208         PR c++/35315
16209         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
16210         alone if it's the naming decl for the type's main variant.
16211
16212 2008-02-26  Tom Tromey  <tromey@redhat.com>
16213
16214         * system.h (USE_MAPPED_LOCATION): Poison.
16215         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
16216         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
16217         (make_goto_expr_edges): Likewise.
16218         (remove_bb): Likewise.
16219         (execute_warn_function_return): Likewise.
16220         * basic-block.h (struct edge_def) <goto_locus>: Change type to
16221         location_t.
16222         * c-common.c (fname_decl): Remove old location code.
16223         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
16224         location code.
16225         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
16226         variant.
16227         (ASM_INPUT_SOURCE_LOCATION): Likewise.
16228         (gen_rtx_ASM_INPUT): Likewise.
16229         (gen_rtx_ASM_INPUT_loc): Likewise.
16230         (get_rtx_asm_OPERANDS): Remove.
16231         * cfglayout.c (insn_locators_alloc): Remove old location code.
16232         (set_curr_insn_source_location): Likewise.
16233         (curr_insn_locator): Likewise.
16234         * print-tree.c (print_node): Remove old location code.
16235         * tree-mudflap.c (mf_varname_tree): Remove old location code.
16236         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
16237         * cfgexpand.c (expand_gimple_cond_expr): Don't use
16238         location_from_locus.
16239         (construct_exit_block): Remove old location code.
16240         * emit-rtl.c (force_next_line_note): Remove old location code.
16241         * profile.c (branch_prob): Remove old location code.
16242         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
16243         LOC_LINE): Remove old-location variants.
16244         * langhooks.c (lhd_print_error_function): Remove old location
16245         code.
16246         * configure, config.in: Rebuilt.
16247         * configure.ac (--enable-mapped-location): Remove.
16248         * c-decl.c (c_init_decl_processing): Remove old location code.
16249         (finish_function): Likewise.
16250         * recog.c (decode_asm_operands): Remove old location code.
16251         * c-pch.c (c_common_read_pch): Remove old location code.
16252         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
16253         variants.
16254         * gimple-low.c (lower_function_body): Remove old location code.
16255         * toplev.c (unknown_location): Remove.
16256         (push_srcloc): Remove old-location variant.
16257         (process_options): Remove old location code.
16258         (lang_dependent_init): Likewise.
16259         * input.h (UNKNOWN_LOCATION): Move definition.
16260         (location_t): Undeprecate.
16261         (source_locus): Remove.
16262         (location_from_locus): Remove.
16263         (struct location_s): Remove.
16264         Remove all old-location code.
16265         (input_line, input_filename): Remove.
16266         * final.c (final_scan_insn): Remove old location code.
16267         * diagnostic.c (diagnostic_build_prefix): Remove
16268         USE_MAPPED_LOCATION test.
16269         * tree.h (gimple_stmt) <locus>: Now a location_t.
16270         (tree_exp) <locus>: Likewise.
16271         (DECL_IS_BUILTIN): Remove old-location variant.
16272         (annotate_with_file_line, annotate_with_locus): Likewise.
16273         (expr_locus, set_expr_locus): Update.
16274         * tree.c (build1_stat): Remove old location code.
16275         (last_annotated_node): Remove.
16276         (annotate_with_file_line): Remove old-location variant.
16277         (annotate_with_locus): Likewise.
16278         (expr_location): Remove old location code.
16279         (set_expr_location): Likewise.
16280         (expr_has_location): Likewise.
16281         (expr_locus): Likewise.
16282         (set_expr_locus): Likewise.
16283         (expr_filename): Don't use location_from_locus.
16284         (expr_lineno): Likewise.
16285         * rtl-error.c (location_for_asm): Remove old location code.
16286         * c-lex.c (cb_line_change): Remove old location code.
16287         (fe_file_change): Likewise.
16288         (cb_def_pragma): Likewise.
16289         (c_lex_with_flags): Likewise.
16290         * gengtype.c (do_typedef): Don't special-case location types.
16291         (define_location_structures): Remove.
16292         (main): Don't call define_location_structures.
16293         * tree-pretty-print.c (dump_implicit_edges): Remove old location
16294         code.
16295
16296 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16297
16298         PR 26264
16299         * builtins.def (BUILT_IN_STDARG_START): Remove.
16300         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
16301         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16302         * tree-inline.c (inline_forbidden_p_1): Likewise.
16303
16304 2008-02-26  Richard Guenther  <rguenther@suse.de>
16305
16306         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16307         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16308         (lookup_decl_from_uid): Declare.
16309         (remove_decl_from_map): Likewise.
16310         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16311         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16312         (decl_for_uid_map): New global hashtable mapping DECL_UID
16313         to the decl tree.
16314         (init_ttree): Allocate it.
16315         (insert_decl_to_uid_decl_map): New helper function.
16316         (make_node_stat): Insert new decls into the map.
16317         (copy_node_stat): Likewise.
16318         (lookup_decl_from_uid): New function.
16319         (remove_decl_from_map): Likewise.
16320         (print_decl_for_uid_map_statistics): New helper.
16321         (dump_tree_statistics): Call it.
16322
16323         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16324         (referenced_var_iterator): Adjust.
16325         (FOR_EACH_REFERENCED_VAR): Adjust.
16326         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16327         (num_referenced_vars): Adjust.
16328         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16329         (first_referenced_var): Remove.
16330         (end_referenced_vars_p): Likewise.
16331         (next_referenced_var): Likewise.
16332         (referenced_var_iterator_set): New helper function.
16333         * tree-dfa.c (referenced_var_lookup): Adjust.
16334         (referenced_var_check_and_insert): Likewise.
16335         (remove_referenced_var): Likewise.
16336         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16337         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16338         (verify_call_clobbering): Likewise.
16339         (verify_memory_partitions): Likewise.
16340         (init_tree_ssa): Allocate bitmap instead of hashtable for
16341         referenced_vars.
16342         (delete_tree_ssa): Adjust.
16343         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16344         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16345         (compute_tag_properties): Likewise.
16346         (set_initial_properties): Likewise.
16347         (find_partition_for): Likewise.
16348         (update_reference_counts): Likewise.
16349         (dump_may_aliases_for): Likewise.
16350         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16351         (add_call_clobber_ops): Likewise.
16352         (add_call_read_ops): Likewise.
16353         (get_asm_expr_operands): Likewise.
16354         * tree-into-ssa.c (dump_decl_set): Likewise.
16355         (update_ssa): Likewise.
16356         * tree-sra.c (scan_function): Likewise.
16357         (decide_instantiations): Likewise.
16358         (scalarize_parms): Likewise.
16359         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16360         (dsa_named_for): Likewise.
16361         * tree-ssa-structalias.c (update_alias_info): Likewise.
16362         (merge_smts_into): Likewise.
16363
16364 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16365
16366         PR 34351
16367         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
16368         * c-opts.c (c_common_handle_option): Wall enables
16369         Wvolatile-register-var.
16370         * common.opt: Move Wvolatile-register-var to...
16371         * c.opt: ...here.
16372
16373 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16374
16375         * common.opt (Wlarger-than=): New.
16376         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
16377         -Wlarger-than=.
16378         * opts.c (common_handle_option): Handle -Wlarger-than=.
16379         * optc-gen.awk: Likewise.
16380         * opth-gen.awk: Likewise.
16381         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
16382         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16383
16384 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16385
16386         * c-common.c (match_case_to_enum_1): Add appropriate
16387         OPT_W* parameter to warning.
16388         (c_do_switch_warnings): Likewise.
16389         * c-typeck.c (warning_init): Add one more parameter following
16390         'warning' function.
16391         (push_init_level): Update call to warning_init.
16392         (pop_init_level): Likewise.
16393         (add_pending_init): Likewise.
16394         (output_init_element: Likewise.
16395
16396 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16397
16398         PR 28322
16399         * toplev.c (toplev_main): If there are warnings or error, print
16400         errors for ignored options.
16401         * opts.c (ignored_options): New static variable.
16402         (postpone_unknown_option_error): New.
16403         (print_ignored_options): New.
16404         (handle_option): Postpone errors for unknown -Wno-* options.
16405         * opts.h (print_ignored_options): Declare.
16406
16407 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
16408
16409         * config/mips/mips.md (loadgp_blockage, blockage): Change type
16410         to "ghost".
16411
16412 2008-02-25  Richard Guenther  <rguenther@suse.de>
16413
16414         Revert:
16415         2008-02-25  Richard Guenther  <rguenther@suse.de>
16416
16417         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16418         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16419         (lookup_decl_from_uid): Declare.
16420         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16421         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16422         (decl_for_uid_map): New global hashtable mapping DECL_UID
16423         to the decl tree.
16424         (init_ttree): Allocate it.
16425         (insert_decl_to_uid_decl_map): New helper function.
16426         (make_node_stat): Insert new decls into the map.
16427         (copy_node_stat): Likewise.
16428         (lookup_decl_from_uid): New function.
16429         (print_decl_for_uid_map_statistics): New helper.
16430         (dump_tree_statistics): Call it.
16431
16432         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16433         (referenced_var_iterator): Adjust.
16434         (FOR_EACH_REFERENCED_VAR): Adjust.
16435         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16436         (num_referenced_vars): Adjust.
16437         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16438         (first_referenced_var): Remove.
16439         (end_referenced_vars_p): Likewise.
16440         (next_referenced_var): Likewise.
16441         (referenced_var_iterator_set): New helper function.
16442         * tree-dfa.c (referenced_var_lookup): Adjust.
16443         (referenced_var_check_and_insert): Likewise.
16444         (remove_referenced_var): Likewise.
16445         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16446         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16447         (verify_call_clobbering): Likewise.
16448         (verify_memory_partitions): Likewise.
16449         (init_tree_ssa): Allocate bitmap instead of hashtable for
16450         referenced_vars.
16451         (delete_tree_ssa): Adjust.
16452         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16453         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16454         (compute_tag_properties): Likewise.
16455         (set_initial_properties): Likewise.
16456         (find_partition_for): Likewise.
16457         (update_reference_counts): Likewise.
16458         (dump_may_aliases_for): Likewise.
16459         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16460         (add_call_clobber_ops): Likewise.
16461         (add_call_read_ops): Likewise.
16462         (get_asm_expr_operands): Likewise.
16463         * tree-into-ssa.c (dump_decl_set): Likewise.
16464         (update_ssa): Likewise.
16465         * tree-sra.c (scan_function): Likewise.
16466         (decide_instantiations): Likewise.
16467         (scalarize_parms): Likewise.
16468         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16469         (dsa_named_for): Likewise.
16470         * tree-ssa-structalias.c (update_alias_info): Likewise.
16471         (merge_smts_into): Likewise.
16472
16473 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16474
16475         PR fortran/29549
16476         * doc/invoke.texi (-fcx-limited-range): Document new option.
16477         * toplev.c (process_options): Handle -fcx-fortran-rules.
16478         * common.opt: Add documentation for -fcx-fortran-rules.
16479
16480 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16481
16482         PR c/35162
16483         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
16484         actual behaviour and C99.
16485
16486 2008-02-26  Ben Elliston  <bje@au.ibm.com>
16487
16488         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
16489         (ASM_CPU_POWER6_SPEC): Likewise.
16490         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
16491         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
16492         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
16493
16494 2008-02-25  Richard Guenther  <rguenther@suse.de>
16495
16496         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16497         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16498         (lookup_decl_from_uid): Declare.
16499         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16500         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16501         (decl_for_uid_map): New global hashtable mapping DECL_UID
16502         to the decl tree.
16503         (init_ttree): Allocate it.
16504         (insert_decl_to_uid_decl_map): New helper function.
16505         (make_node_stat): Insert new decls into the map.
16506         (copy_node_stat): Likewise.
16507         (lookup_decl_from_uid): New function.
16508         (print_decl_for_uid_map_statistics): New helper.
16509         (dump_tree_statistics): Call it.
16510
16511         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16512         (referenced_var_iterator): Adjust.
16513         (FOR_EACH_REFERENCED_VAR): Adjust.
16514         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16515         (num_referenced_vars): Adjust.
16516         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16517         (first_referenced_var): Remove.
16518         (end_referenced_vars_p): Likewise.
16519         (next_referenced_var): Likewise.
16520         (referenced_var_iterator_set): New helper function.
16521         * tree-dfa.c (referenced_var_lookup): Adjust.
16522         (referenced_var_check_and_insert): Likewise.
16523         (remove_referenced_var): Likewise.
16524         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16525         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16526         (verify_call_clobbering): Likewise.
16527         (verify_memory_partitions): Likewise.
16528         (init_tree_ssa): Allocate bitmap instead of hashtable for
16529         referenced_vars.
16530         (delete_tree_ssa): Adjust.
16531         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16532         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16533         (compute_tag_properties): Likewise.
16534         (set_initial_properties): Likewise.
16535         (find_partition_for): Likewise.
16536         (update_reference_counts): Likewise.
16537         (dump_may_aliases_for): Likewise.
16538         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16539         (add_call_clobber_ops): Likewise.
16540         (add_call_read_ops): Likewise.
16541         (get_asm_expr_operands): Likewise.
16542         * tree-into-ssa.c (dump_decl_set): Likewise.
16543         (update_ssa): Likewise.
16544         * tree-sra.c (scan_function): Likewise.
16545         (decide_instantiations): Likewise.
16546         (scalarize_parms): Likewise.
16547         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16548         (dsa_named_for): Likewise.
16549         * tree-ssa-structalias.c (update_alias_info): Likewise.
16550         (merge_smts_into): Likewise.
16551
16552 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
16553
16554         PR target/35258
16555         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
16556         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
16557         * alias.h (nonoverlapping_memrefs_p): Likewise.
16558
16559 2008-02-25  Jan Beulich  <jbeulich@novell.com>
16560
16561         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
16562         * config/i386/netware-libgcc.exp: Add __bswap?i2,
16563         __emultls_get_address, __emultls_register_common,
16564         __floatundi?f, and _Unwind_GetIPInfo.
16565         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
16566         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
16567         (gen_regparm_prefix): Likewise.
16568         (i386_nlm_encode_section_info): Sync with
16569         config/i386/winnt.c:i386_pe_encode_section_info().
16570         (i386_nlm_maybe_mangle_decl_assembler_name): New.
16571         i386_nlm_mangle_decl_assembler_name): New.
16572         (netware_override_options): New.
16573         * config/i386/netware.h (netware_override_options): Declare.
16574         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
16575         (i386_nlm_mangle_decl_assembler_name): Declare.
16576         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
16577
16578 2008-02-25  Ben Elliston  <bje@au.ibm.com>
16579
16580         PR other/32948
16581         * c-decl.c (grokdeclarator): Remove unused local variables
16582         `typedef_type' and `type_as_written'.
16583         * bb-reorder.c
16584         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
16585         unused local variable `has_hot_blocks'.
16586         (fix_crossing_conditional_branches): Remove unused local variable
16587         `prev_bb'.
16588
16589 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
16590
16591         PR middle-end/19984
16592         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
16593         using DEF_C99_BUILTIN.
16594         (BUILT_IN_NANF): Ditto.
16595         (BUILT_IN_NANL): Ditto.
16596
16597 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
16598             Revital Eres  <eres@il.ibm.com>
16599
16600         * modulo-sched.c (calculate_must_precede_follow): Address TODO
16601         regarding the order of two dependent insns in the same row.
16602
16603 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
16604
16605         * stor-layout.c (layout_decl): Do not bump the alignment of a
16606         bit-field to more than byte alignment if it is packed.
16607
16608 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
16609
16610         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
16611         e300c2 and e300c3.
16612
16613 2008-02-24  Diego Novillo  <dnovillo@google.com>
16614
16615         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
16616
16617         PR 33738
16618         * tree-vrp.c (vrp_evaluate_conditional): With
16619         -Wtype-limits, emit a warning when comparing against a
16620         constant outside the natural range of OP0's type.
16621         * c.opt (Wtype-limits): Move ...
16622         * common.opt (Wtype-limits): ... here.
16623
16624 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
16625
16626         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
16627         * config/rs6000/e300c2c3.md: New file.
16628         * config/rs6000/rs6000.c (processor_costs): Add new costs for
16629         e300c2 and e300c3.
16630         (rs6000_override_options): Add e300c2 and e300c3 cases to
16631         processor_target_table. Do not allow usage of Altivec or Spe
16632         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
16633         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
16634         * config/rs6000/rs6000.h (processor_type): Add
16635         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
16636         (ASM_CPU_SPEC): Add e300c2 and e300c3.
16637         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
16638         and ppce300c3. Include e300c2c3.md.
16639
16640 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
16641
16642         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
16643         instead of TARGET_STRICT_ALIGN.
16644
16645 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
16646
16647         * explow.c (memory_address): Assert that the generated address is
16648         valid.
16649
16650 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
16651
16652         PR target/25477
16653         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
16654         * config/darwin-ppc-ldouble-patch.def: New file.
16655         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
16656         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
16657         SUBTARGET_INIT_BUILTINS if defined.
16658         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
16659         New functions.
16660
16661 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16662
16663         PR rtl-opt/33512
16664         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
16665         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
16666
16667 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16668
16669         PR pch/35027
16670         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
16671         file" warning condtional on -Winvalid-PCH.
16672
16673 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
16674
16675         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
16676
16677 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
16678
16679         PR target/22076
16680         PR target/34256
16681         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
16682         prevent reload from using MMX registers.
16683         (*mov<mode>_internal): Ditto.
16684         (*movv2sf_internal_rex64): Ditto.
16685         (*movv2sf_internal): Ditto.
16686
16687 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16688
16689         PR documentation/31569
16690         * doc/install.texi2html: Use makeinfo --no-number-sections.
16691
16692 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16693
16694         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
16695         ensure that we can address an entire entity > 8 bytes.  Don't
16696         generate reg+reg addressing for such data.
16697
16698 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16699
16700         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
16701         strings when optimizing for size, unless the target cares about
16702         alignment.
16703
16704 2008-02-22  Tom Tromey  <tromey@redhat.com>
16705
16706         * regclass.c (current_pass): Remove declaration.
16707
16708 2008-02-22  Anatoly Sokolov <aesok@post.ru>
16709
16710         * config/avr/libgcc.S (__RAMPZ__): Define.
16711         (__do_copy_data): Add for devices with 128KB code memory.
16712
16713 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16714
16715         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
16716         Use spe_abi.
16717         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
16718
16719 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
16720
16721         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
16722         GENNONACR_REGS.
16723
16724 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16725
16726         PR c/19999
16727         * c-typeck.c (build_binary_op): Warn about floating point
16728         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
16729
16730 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
16731
16732         PR target/34526
16733         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
16734         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
16735         add vrsave.
16736         (rs6000_override_options): Set altivec_abi as default, not override,
16737         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
16738         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
16739         is used; use new member spe_abi.
16740         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
16741         spe_abi and altivec_abi.
16742
16743 2008-02-22  Tomas Bily  <tbily@suse.cz>
16744
16745         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
16746
16747 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16748
16749         PR bootstrap/35273
16750         * config.build (build_file_translate): Set to `CMD //c' only if
16751         it works.
16752         * Makefile.in (build_file_translate): Improve comment.
16753
16754 2008-02-21  Jan Hubicka  <jh@suse.cz>
16755
16756         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
16757         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
16758         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
16759
16760 2008-02-21  Michael Matz  <matz@suse.de>
16761
16762         PR target/35264
16763         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
16764
16765 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
16766
16767         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
16768         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
16769         as insn constraint.
16770         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
16771         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
16772         SSE_VEC_FLOAT_MODE_P as insn constraint.
16773         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
16774         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
16775         sse4a_movntdf using MODEF mode iterator.
16776         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
16777         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
16778         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
16779         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
16780         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
16781         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
16782         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
16783
16784 2008-02-21  Richard Guenther  <rguenther@suse.de>
16785
16786         * tree.def (PAREN_EXPR): New tree code.
16787         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
16788         and PAREN_EXPR.
16789         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
16790         * expr.c (expand_expr_real_1): Likewise.
16791         * tree-inline.c (estimate_num_insns_1): Likewise.
16792         * tree-complex.c (expand_complex_move): Likewise.
16793         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
16794         as plain x.
16795
16796 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16797
16798         PR target/35225
16799         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
16800
16801 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16802
16803         PR target/35190
16804         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
16805
16806         * config/sh/sh.c (find_barrier): Don't go past
16807         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
16808
16809 2008-02-20  DJ Delorie  <dj@redhat.com>
16810
16811         * config/h8300/h8300.md (insv): Force source operand to be a register.
16812
16813         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
16814         as a jump, not as a plain insn.
16815
16816 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
16817
16818         * doc/invoke.texi (Warning Options): Add new option
16819         -Wframe-larger-than=.
16820         (-Wframe-larger-than): Document.
16821
16822         * flags.h (warn_frame_larger_than, frame_larger_than_size):
16823         Add declarations for new option variables.
16824
16825         * final.c (final_start_function): Check the frame size
16826         before emission and issue a Wframe-larger-than warning.
16827
16828         * opts.c (warn_frame_larger_than, frame_larger_than_size):
16829         Add definitions for new option variables.
16830         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
16831
16832         * common.opt (Wframe-larger-than=): New option.
16833
16834 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
16835
16836         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
16837         (<sse>_div<mode>3): Ditto.
16838         (<sse>_vmdiv<mode>3): Ditto.
16839         (<sse>_vmsqrt<mode>2): Ditto.
16840         (*smax<mode>3): Ditto.
16841         (sse5_frcz<mode>2): Ditto.
16842         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
16843         as insn constraint.
16844
16845 2008-02-20  Richard Guenther  <rguenther@suse.de>
16846
16847         PR middle-end/35265
16848         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
16849         be happy with INTEGRAL_TYPE_P.
16850
16851 2008-02-20  Richard Guenther  <rguenther@suse.de>
16852
16853         * fold-const.c (split_tree): Associate floatig-point expressions
16854         if flag_associative_math is set.
16855
16856 2008-02-20  Richard Guenther  <rguenther@suse.de>
16857
16858         * tree.h (fold_real_zero_addition_p): Declare.
16859         * fold-const.c (fold_real_zero_addition_p): Export.
16860         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
16861         floating-point operations with zero and one.
16862
16863 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
16864
16865         * doc/install.texi: Correct references to CFLAGS, replacing them
16866         with BOOT_CFLAGS.  Document flags used during bootstrap for
16867         target libraries.
16868
16869 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
16870
16871         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
16872         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
16873         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
16874         insn constraint.
16875         (smin<mode>3): Ditto from similar patterns.
16876         (smax<mode>3): Ditto.
16877         (*ieee_smin<mode>3): Ditto.
16878         (*ieee_smax<mode>3): Ditto.
16879         * config/i386/sse.md (sse): New mode attribute.
16880         (mov<mode>): Macroize expander from movv4sf and movv2df using
16881         SSEMODEF2P mode iterator.
16882         (<sse>_movnt<mode>): Ditto from similar patterns. Use
16883         SSE_VEC_FLOAT_MODE_P as insn constraint.
16884         (storent<mode>): Ditto.
16885         (storent<mode>): Macroize expander from storentsf and storentdf using
16886         MODEF mode iterator.
16887         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
16888         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
16889         (abs<mode>2): Ditto from similar patterns.
16890         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
16891         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
16892         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
16893         (<sse>_vmsqrt<mode>2): Ditto.
16894         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
16895         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
16896         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
16897         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
16898         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
16899         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
16900         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
16901         insn constraint.
16902         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
16903         iterator and SSE_FLOAT_MODE_P as insn constraint.
16904         (<sse>_ucomi): Ditto from similar patterns.
16905         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
16906         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
16907         SSE_VEC_FLOAT_MODE_P as insn constraint.
16908         (vcond<mode>): Ditto from similar patterns.
16909         (and<mode>3, *and<mode>3): Ditto.
16910         (<sse>_nand<mode>3): Ditto.
16911         (ior<mode>3, *ior<mode>3): Ditto.
16912         (xor<mode>3, *xor<mode>3): Ditto.
16913         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
16914         iterator and SSE_FLOAT_MODE_P as insn constraint.
16915         (*nand<mode>3): Ditto from similar patterns.
16916         (*ior<mode>3): Ditto.
16917         (*xor<mode>3): Ditto.
16918
16919 2008-02-20  Ira Rosen  <irar@il.ibm.com>
16920
16921         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
16922         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
16923         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
16924
16925 2008-02-19  Jan Hubicka  <jh@suse.cz>
16926
16927         * predict.c (tree_bb_level_predictions): Remove variable next
16928         mistakely introduced by previous commit.
16929
16930 2008-02-19  Jan Hubicka  <jh@suse.cz>
16931
16932         * predict.c (predict_paths_leading_to): Rewrite.
16933         (predict_paths_for_bb): New.
16934         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
16935
16936 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16937
16938         PR bootstrap/35218
16939         * Makefile.in (build_file_translate): New.
16940         (gcc-vers.texi): Use it for translating $(abs_srcdir).
16941         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
16942         * configure.ac (build_file_translate): Substitute it.
16943         * configure: Regenerate.
16944
16945 2008-02-19  Jan Hubicka  <jh@suse.cz>
16946
16947         PR rtl-optimization/34408
16948         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
16949         invalid sharing.
16950
16951 2008-02-19  Jan Hubicka  <jh@suse.cz>
16952
16953         PR middle-end/28779
16954         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
16955         call_expr.
16956
16957 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
16958
16959         PR Ada/35186
16960         * config/i386/i386-modes.def: Revert the last DI alignment
16961         change until Ada people can look into it.
16962
16963 2008-02-19  Nick Clifton  <nickc@redhat.com>
16964
16965         * opts.c (print_specific_help): Fix typo in --help text.
16966
16967 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
16968
16969         PR target/35239
16970         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
16971         32-bit inline asm without asm alternatives for host GCC < 3.0.
16972
16973 2008-02-19  Richard Guenther  <rguenther@suse.de>
16974
16975         PR tree-optimization/34989
16976         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
16977         Allow propagation to INDIRECT_REF if we can simplify only.
16978
16979 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16980
16981         * c-common.c (warn_for_collisions_1): Use appropriate option when
16982         warning.
16983
16984 2008-02-19  Nick Clifton  <nickc@redhat.com>
16985
16986         PR other/31349
16987         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
16988         (handle_options): Fix indentation.
16989         (print_filtered_help): If no language-specific options were
16990         displayed tell the user how to list all the options supported by
16991         the language's front-end.
16992         (print_specific_help): Fix indentation and remove duplicate line.
16993         (common_handle_option): Handle the -v option.
16994         For --help enable the display of undocumented options if the -v
16995         switch has been included on the command line.
16996         For --help= check for overlaps in the arguments between the option
16997         classes and the language names and issue a warning when they
16998         cannot be disambiguated.
16999         * c.opt (v): Pass on to the common option handler.
17000
17001 2008-02-19  Revital Eres  <eres@il.ibm.com>
17002
17003         * modulo-sched.c (sms_schedule): Change dump message when
17004         create_ddg function fails.
17005         (try_scheduling_node_in_cycle): Rename row to cycle.
17006         (print_partial_schedule): Rename CYCLE to ROW.
17007
17008 2008-02-19  Christian Bruel  <christian.bruel@st.com>
17009             Zdenek Dvorak  <ook@ucw.cz>
17010
17011         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
17012
17013 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
17014
17015         PR target/33555
17016         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
17017         (*x86_movdicc_0_m1_se): Ditto.
17018
17019 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
17020
17021         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
17022         (CMPtype): Define as __gcc_CMPtype.
17023         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
17024         (CMPtype): Define as __gcc_CMPtype.
17025
17026 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
17027
17028         Support valgrind 3.3 for --enable-checking=valgrind.
17029         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
17030         here.
17031         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
17032         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
17033         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
17034         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
17035         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
17036         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
17037         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
17038         respectively.
17039         * ggc-zone.c: Similar.
17040         * ggc-page.c: Similar.
17041
17042 2008-02-19  Paul Brook  <paul@codesourcery.com>
17043
17044         PR target/35071
17045         * config/arm/ieee754-df.S: Fix do_it typo.
17046         * config/arm/ieee754-sf.S: Fix do_it typo.
17047
17048 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17049
17050         PR target/35189
17051         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
17052         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
17053         (OPTION_MASK_ISA_SSE_SET): Likewise.
17054         (OPTION_MASK_ISA_SSE2_SET): Likewise.
17055         (OPTION_MASK_ISA_SSE3_SET): Likewise.
17056         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
17057         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
17058         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
17059         (OPTION_MASK_ISA_SSE4_SET): Likewise.
17060         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
17061         (OPTION_MASK_ISA_SSE5_SET): Likewise.
17062         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
17063         (OPTION_MASK_ISA_MMX_UNSET): Updated.
17064         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
17065         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
17066         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
17067         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
17068         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
17069         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
17070         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
17071         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
17072         (OPTION_MASK_ISA_SSE4): Removed.
17073         (ix86_handle_option): Turn on bits in ix86_isa_flags and
17074         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
17075         (override_options): Don't turn on implied SSE/MMX bits in
17076         ix86_isa_flags.
17077
17078 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17079
17080         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17081         32bit host.
17082
17083 2008-02-18  Joey Ye  <joey.ye@intel.com>
17084
17085         PR middle-end/34921
17086         * tree-nested.c (insert_field_into_struct): Set type alignment
17087         to field alignment if the former is less than the latter.
17088
17089 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
17090
17091         * BASE-VER: Set to 4.4.0.
17092
17093 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17094
17095         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
17096         * doc/cfg.texi: Likewise.
17097         * doc/extend.texi: Likewise.
17098         * doc/gty.texi: Likewise.
17099         * doc/invoke.texi: Likewise.
17100         * doc/loop.texi: Likewise.
17101         * doc/md.texi: Likewise.
17102         * doc/passes.texi: Likewise.
17103         * doc/rtl.texi: Likewise.
17104         * doc/sourcebuild.texi: Likewise.
17105         * doc/tm.texi: Likewise.
17106         * doc/tree-ssa.texi: Likewise.
17107
17108 2008-02-17  Richard Guenther  <rguenther@suse.de>
17109
17110         PR middle-end/35227
17111         * tree-complex.c (init_parameter_lattice_values): Handle parameters
17112         without default definition.
17113
17114 2008-02-17  Richard Guenther  <rguenther@suse.de>
17115
17116         PR tree-optimization/35231
17117         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
17118         if A | B != 1.
17119
17120 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
17121
17122         Revert:
17123         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17124         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17125         libgcc_cmp_return mode.
17126
17127 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17128
17129         PR c/28368
17130         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
17131
17132 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
17133
17134         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
17135         multilibs.
17136
17137 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17138
17139         * doc/c-tree.texi: Use `@.' where appropriate.
17140         * doc/extend.texi: Likewise.
17141         * doc/install.texi: Likewise.
17142         * doc/invoke.texi: Likewise.
17143         * doc/loop.texi: Likewise.
17144         * doc/makefile.texi: Likewise.
17145         * doc/md.texi: Likewise.
17146         * doc/passes.texi: Likewise.
17147         * doc/standards.texi: Likewise.
17148         * doc/tm.texi: Likewise.
17149
17150 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
17151
17152         PR middle-end/35196
17153         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
17154         in entry_bb.
17155         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
17156         rather than in entry_bb.
17157
17158 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17159
17160         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17161         libgcc_cmp_return mode.
17162
17163 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
17164
17165         PR middle-end/35130
17166         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
17167         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
17168
17169 2008-02-15  Richard Guenther  <rguenther@suse.de>
17170             Zdenek Dvorak  <ook@ucw.cz>
17171
17172         PR tree-optimization/35164
17173         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
17174         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
17175         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
17176         Only propagate addresses which do not have abnormal SSA_NAMEs
17177         in their operands.
17178
17179 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
17180
17181         PR target/35088
17182         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
17183
17184 2008-02-15  Jan Hubicka  <jh@suse.cz>
17185
17186         PR middle-end/35149
17187         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
17188
17189 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17190
17191         PR middle-end/34621
17192         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
17193         when calculating alignment_pad.
17194
17195 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17196
17197         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
17198         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
17199         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
17200         and STACK_BOUNDARY define.
17201
17202 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
17203
17204         PR preprocessor/35061
17205         * c-pragma.c (handle_pragma_pop_macro): Check that
17206         pushed_macro_table has been allocated.
17207
17208 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
17209
17210         PR middle-end/35136
17211         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
17212         (force_gimple_operand): Likewise.
17213         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
17214         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
17215         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
17216         (find_interesting_uses_address): Check addressability and alignment
17217         of the base expression only after substituting bases of IVs into it.
17218
17219 2008-02-14  Michael Matz  <matz@suse.de>
17220
17221         PR target/34930
17222         * function.c (instantiate_virtual_regs_in_insn): Reload address
17223         before falling back to reloading the whole operand.
17224
17225 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
17226
17227         * config/s390/s390.c (s390_mainpool_start): Emit the pool
17228         before the first section switch note.
17229
17230 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17231
17232         * doc/bugreport.texi: Update copyright years.
17233         * doc/c-tree.texi: Likewise.
17234         * doc/cfg.texi: Likewise.
17235         * doc/cpp.texi: Likewise.
17236         * doc/cppinternals.texi: Likewise.
17237         * doc/fragments.texi: Likewise.
17238         * doc/frontends.texi: Likewise.
17239         * doc/gcc.texi: Likewise.
17240         * doc/gty.texi: Likewise.
17241         * doc/hostconfig.texi: Likewise.
17242         * doc/implement-c.texi: Likewise.
17243         * doc/libgcc.texi: Likewise.
17244         * doc/loop.texi: Likewise.
17245         * doc/makefile.texi: Likewise.
17246         * doc/options.texi: Likewise.
17247         * doc/passes.texi: Likewise.
17248         * doc/rtl.texi: Likewise.
17249         * doc/sourcebuild.texi: Likewise.
17250         * doc/standards.texi: Likewise.
17251         * doc/tree-ssa.texi: Likewise.
17252         * doc/trouble.texi: Likewise.
17253
17254         * doc/extend.texi: Use @: or add comma where appropriate.
17255         * doc/invoke.texi: Likewise.
17256         * doc/tm.texi: Likewise.
17257
17258 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
17259
17260         PR target/34393
17261         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
17262         to a reg.
17263
17264 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
17265
17266         * doc/md.texi (clz, ctz): Add reference.
17267         * doc/rtl.texi (clz, ctz): Likewise.
17268
17269 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17270
17271         PR other/35148
17272         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
17273         srcdir.
17274
17275 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
17276
17277         * config/s390/s390.c (struct constant_pool): New field
17278         emit_pool_after added.
17279         (s390_mainpool_start): Set the emit_pool_after flag according
17280         to the section switch notes.
17281         (s390_mainpool_finish): Consider emit_pool_after when emitting
17282         the literal pool at the end of the function.
17283         (s390_chunkify_start): Force literal pool splits at section
17284         switch notes.
17285
17286 2008-02-13  Michael Matz  <matz@suse.de>
17287
17288         PR debug/35065
17289         * var-tracking.c (clobber_variable_part): Correctly traverse the
17290         list.
17291
17292 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17293
17294         PR 29673
17295         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
17296         Add -fdump-ipa-inline.
17297         * tree-dump.c (dump_files): Remove tree-inlined dump.
17298         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
17299
17300 2008-02-12  Richard Guenther  <rguenther@suse.de>
17301
17302         PR tree-optimization/35171
17303         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
17304         default defs.
17305
17306 2008-02-12  Richard Guenther  <rguenther@suse.de>
17307
17308         PR middle-end/35163
17309         * fold-const.c (fold_widened_comparison): Use get_unwidened in
17310         value-preserving mode.  Disallow final truncation.
17311
17312 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
17313
17314         PR middle-end/35136
17315         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
17316         code from here to...
17317         (force_gimple_operand): ...here.
17318
17319 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
17320
17321         PR c++/35144
17322         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
17323         non-compatible pointers.
17324         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
17325         different FIELD_DECLs, try harder by comparing field offsets, sizes
17326         and types.
17327
17328         PR inline-asm/35160
17329         * function.c (match_asm_constraints_1): Don't replace the same input
17330         multiple times.
17331
17332 2008-02-12  Anatoly Sokolov <aesok@post.ru>
17333
17334         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
17335         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
17336         (expand_epilogue): Restore RAMPZ register.
17337         * config/avr/avr.md (RAMPZ_ADDR): New constant.
17338
17339 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
17340
17341         * config/i386/cygwin.asm: (__alloca): Correct calling
17342         convention and alignment.
17343         (__chkstk): Force 8 byte stack alignment.
17344
17345 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
17346             Richard Guenther  <rguenther@suse.de>
17347
17348         PR tree-optimization/33992
17349         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
17350         the zero we compare against.
17351
17352 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
17353
17354         PR libfortran/35063
17355         * gthr-win32.h (__gthread_mutex_destroy_function): New function
17356         to CloseHandle after unlocking to prevent accumulation of handle
17357         count.
17358
17359 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17360
17361         PR middle_end/34150
17362         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
17363         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
17364         and update LABEL_NUSES during and after reload.
17365
17366 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
17367
17368         PR middle-end/34627
17369         * combine.c (simplify_if_then_else): Make sure the comparison is
17370         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
17371
17372 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17373
17374         PR bootstrap/35051
17375         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
17376         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
17377         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
17378         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
17379         * tree.h (get_type_static_bounds): Likewise.
17380
17381 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17382
17383         * doc/invoke.texi (Option Summary, C++ Dialect Options)
17384         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17385         Make -Wfoo language annotations match what the compiler outputs.
17386
17387 2008-02-08  Sa Liu  <saliu@de.ibm.com>
17388
17389         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
17390         intrinsics spu_convts, spu_convtu, spu_convtf.
17391
17392 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
17393
17394         * doc/extend.texi (Function Attributes) <noinline>: Mention
17395         asm ("") as method to keep calls.
17396
17397 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17398
17399         PR other/32754
17400         * doc/options.texi (Options): Replace references to opts.sh with
17401         optc-gen.awk.
17402         * opts-common.c: Likewise.
17403         * optc-gen.awk: Likewise.
17404
17405 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
17406
17407         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
17408
17409 2008-02-07  Richard Henderson  <rth@redhat.com>
17410
17411         PR rtl-opt/33410
17412         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
17413         EXPR_LIST for the REG_EQUAL instead of a comparison with a
17414         funny mode.
17415
17416 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
17417
17418         PR tree-optimization/35085
17419         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
17420         for operand entry oe2 in addition to operand entry oe3 in order to
17421         expose more opportunities for vectorizer sum reduction.
17422
17423 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17424
17425         PR other/35107
17426         * Makefile.in (LIBS): Remove $(GMPLIBS).
17427         (cc1-dummy, cc1): Add $(GMPLIBS).
17428
17429 2008-02-06  Jan Hubicka  <jh@suse.cz>
17430
17431         PR target/23322
17432         * i386.md (moddf_integer): Do not produce partial memory stalls for
17433         targets where it hurts.
17434
17435 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
17436
17437         PR target/35083
17438         * optabs.c (expand_float): Do not check for decimal modes when
17439         expanding unsigned integer through signed conversion.
17440
17441 2008-02-06  Nick Clifton  <nickc@redhat.com>
17442
17443         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
17444         inside the clobber with a match_operand and duplicated operand
17445         number in the constraint.
17446         (ineqbranchsi): Delete redundant comment.
17447
17448 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
17449
17450         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
17451         builtin_define ("__USE_INIT_FINI__").
17452         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
17453         -msx multilibs.
17454         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
17455
17456 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17457
17458         PR documentation/30330
17459         * doc/invoke.texi (C++ Dialect Options)
17460         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17461         For each warning option -Wfoo that allows -Wno-foo, ensure both
17462         -Wfoo and -Wno-foo are listed in the option index.  Fix index
17463         entry of -Wswitch-default, index -Wnormalized= including the
17464         `=', and -Wlarger-than-@var{len} including @var{len}.
17465
17466 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
17467
17468         * config/i386/i386.md (floatunssisf2): Use
17469         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
17470         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
17471         Macroize expander using MODEF mode iterator.
17472
17473 2008-02-05  Diego Novillo  <dnovillo@google.com>
17474
17475         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
17476
17477         PR 33738
17478         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
17479
17480 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17481
17482         PR other/35070
17483         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
17484
17485 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
17486
17487         PR target/35084
17488         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
17489         to indicate if a message should be generated.
17490         (init_cumulative_args): Updated.
17491         (function_value_32): Likewise.
17492
17493 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
17494
17495         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
17496
17497 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
17498
17499         PR target/35083
17500         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
17501         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
17502
17503 2008-02-04  Diego Novillo  <dnovillo@google.com>
17504
17505         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
17506
17507         PR 33738
17508         * tree-vrp.c (vrp_evaluate_conditional): With
17509         -Wtype-limits, emit a warning when comparing against a
17510         constant outside the natural range of OP0's type.
17511
17512 2008-02-04  Richard Guenther  <rguenther@suse.de>
17513
17514         PR middle-end/33631
17515         * expr.c (count_type_elements): Give for unions instead of
17516         guessing.
17517
17518 2008-02-04  Richard Guenther  <rguenther@suse.de>
17519
17520         PR middle-end/35043
17521         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
17522         to TYPE_DOMAINs base type instead of using bitsizetype here.
17523
17524 2008-02-03  Jason Merrill  <jason@redhat.com>
17525
17526         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
17527
17528 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17529
17530         PR other/29972
17531         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
17532         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
17533         (RS/6000 and PowerPC Options): Fix typos and markup.
17534         * doc/passes.texi (Tree-SSA passes): Likewise.
17535
17536 2008-02-02  Michael Matz  <matz@suse.de>
17537
17538         PR target/35045
17539         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
17540         from record_last_reg_set_info.
17541         (record_last_reg_set_info): Take an RTX argument, iterate over all
17542         constituent hardregs.
17543         (record_last_set_info, record_opr_changes): Change calls to
17544         new signature or to record_last_reg_set_info_regno.
17545
17546 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17547
17548         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
17549
17550 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
17551
17552         PR rtl-optimization/34773
17553         * reg-notes.def (EQUAL): Mention significance of combination of
17554         REG_EQUAL and REG_RETVAL.
17555         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
17556         insn that has a REG_RETVAL.
17557
17558 2008-02-01  Roger Sayle  <roger@eyesopen.com>
17559
17560         PR bootstrap/33781
17561         * configure.ac (--enable-fixed-point): Disable unless explicitly
17562         requested on IRIX.
17563         * configure: Regenerate.
17564
17565 2008-02-01  Richard Guenther  <rguenther@suse.de>
17566
17567         PR other/35042
17568         * invoke.texi (-finline-limit): Remove no longer true parts
17569         of the documentation.  Note that there is no default value.
17570
17571 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
17572             Mark Mitchell  <mark@codesourcery.com>
17573             Ben Elliston  <bje@au.ibm.com>
17574
17575         PR c/29326
17576         * doc/extend.texi (Other Builtins): Document.
17577
17578 2008-01-31  Tom Browder <tom.browder@gmail.com>
17579
17580         * doc/c-tree.texi (Types): Fix grammar.
17581         (Expression trees): Ditto.
17582         * doc/passes.texi (Tree-SSA passes): Ditto.
17583
17584         * doc/configterms.texi (Configure Terms): Fix typo.
17585         * doc/cpp.texi (Common Predefined Macros): Ditto.
17586         * doc/md.texi (Machine Constraints): Ditto.
17587
17588         * doc/makefile.texi (Makefile): Add comma.
17589
17590 2008-01-31  Tom Browder  <tom.browder@gmail.com>
17591             Gerald Pfeifer  <gerald@pfeifer.com>
17592
17593         * doc/sourcebuild.texi (Front End): Remove references to CVS
17594         and CVSROOT/modules.
17595         (Texinfo Manuals): Replace reference to CVS by one to SVN.
17596         (Back End): Remove reference to CVS.
17597
17598 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
17599
17600         PR target/34900
17601         * config/mips/mips.c (gen_load_const_gp): New function, taking a
17602         comment from...
17603         (mips16_gp_pseudo_reg): ...here.
17604         * config/mips/mips.md (load_const_gp): Replace with...
17605         (load_const_gp_<mode>): ...this :P-based insn.
17606
17607 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17608
17609         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
17610         options. Minor fixes.
17611         (-std): Move reference to standards closer to where language
17612         standards are first mentioned.
17613
17614 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
17615
17616         PR rtl-optimization/34995
17617         * reload.c (alternative_allows_const_pool_ref): Take an rtx
17618         parameter and return a bool.  If the rtx parameter is nonnull,
17619         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
17620         (find_reloads): Update call accordingly.  Pass the new operand
17621         if it needed no address reloads, otherwise pass null.
17622
17623 2008-01-30  Richard Henderson  <rth@redhat.com>
17624
17625         PR c/34993
17626         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
17627         for unbounded arrays.
17628
17629 2008-01-30  Silvius Rus  <rus@google.com>
17630
17631         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
17632
17633 2008-01-30  Jan Hubicka  <jh@suse.cz>
17634
17635         PR target/34982
17636         * i386.c (init_cumulative_args): Use real function declaration when
17637         calling locally.
17638
17639 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
17640
17641         PR rtl-optimization/34998
17642         * global.c (build_insn_chain): Treat non-subreg_lowpart
17643         SUBREGs of pseudos as clobbering all the words covered by the
17644         SUBREG, not just all the bytes.
17645         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
17646         original df_ref rather than an extract parameter.
17647         (global_conflicts): Update call accordingly.
17648
17649 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
17650
17651         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
17652         the overflow check to make it easier to read.
17653         (__fixtfdi): Change the type of the ll member in union
17654         long_double to UDItype_x.
17655
17656 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
17657
17658         PR middle-end/34969
17659         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
17660         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
17661         * tree-inline.c (fold_marked_statements): Call
17662         cgraph_update_edges_for_call_stmt if folding a call statement.
17663         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
17664         debug_generic_stmt calls, reset it back afterwards.
17665
17666         PR c/35017
17667         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
17668         static decls.
17669         * c-typeck.c (build_external_ref): Don't pedwarn about
17670         static vars in current function's scope.
17671
17672 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
17673
17674         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
17675
17676 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
17677
17678         PR c/35002
17679         * ipa-struct-reorg.c: Fix spelling.
17680         * params.def: Ditto.
17681
17682 2008-01-29  Richard Guenther  <rguenther@suse.de>
17683
17684         PR middle-end/35006
17685         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
17686         field.
17687         * tree-inline.c (remap_type): Increment remapping_type_depth
17688         around remapping types.
17689         (copy_body_r): Only add referenced variables if they are referenced
17690         from code, not types.
17691
17692 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
17693
17694         PR c++/34055
17695         PR c++/34103
17696         PR c++/34219
17697         PR c++/34606
17698         PR c++/34753
17699         PR c++/34754
17700         PR c++/34755
17701         PR c++/34919
17702         PR c++/34961
17703         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
17704         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
17705
17706 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
17707
17708         PR target/34412
17709         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
17710         pointer for tiny stack.
17711
17712 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
17713
17714         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
17715
17716 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
17717
17718         * config/vx-common.h: Fix typo in comment.
17719
17720 2008-01-28  Ian Lance Taylor  <iant@google.com>
17721
17722         PR c++/34862
17723         PR c++/33407
17724         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17725         coalesce pointers if they have different DECL_NO_TBAA_P values.
17726         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
17727         between variables with different DECL_NO_TBAA_P values.
17728
17729 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
17730
17731         PR 31535
17732         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
17733         are not legitimate small data references on SPE targets.
17734
17735 2008-01-28  David Daney  <ddaney@avtrex.com>
17736
17737         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
17738
17739 2008-01-28  David Daney  <ddaney@avtrex.com>
17740
17741         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
17742
17743 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
17744
17745         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
17746         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
17747         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
17748         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
17749         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
17750         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
17751         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
17752         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
17753
17754 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17755
17756         * basic-block.h (condjump_equiv_p): Fix comment.
17757
17758 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17759
17760         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
17761         print_generic_stmt_indented): Fix comment.
17762
17763 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17764
17765         * configure.ac (__stack_chk_fail): Add detecion for availability
17766         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
17767         * configure: Regenerate.
17768
17769 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
17770
17771         PR middle-end/34688
17772         * final.c (output_addr_const): Handle TRUNCATE.
17773
17774 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
17775
17776         PR target/34711
17777         * tree-ssa-loop-ivopts.c (comp_cost): New type.
17778         (zero_cost, infinite_cost): New constants.
17779         (struct cost_pair): Change type of cost to comp_cost.
17780         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
17781         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
17782         New functions.
17783         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
17784         split_address_cost, ptr_difference_cost, difference_cost,
17785         get_computation_cost_at, get_computation_cost,
17786         determine_use_iv_cost_generic, determine_use_iv_cost_address,
17787         determine_use_iv_cost_condition, determine_use_iv_costs,
17788         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
17789         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
17790         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
17791         Change type of cost to comp_cost.
17792         (determine_iv_cost): Increase cost of non-original ivs, instead
17793         of decreasing the cost of original ones.
17794         (get_address_cost): Indicate the complexity of the addressing mode
17795         in comp_cost.
17796         (try_add_cand_for): Prefer using ivs not specific to some object.
17797         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
17798
17799 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
17800             Janis Johnson  <janis187@us.ibm.com>
17801
17802         PR target/34814
17803         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
17804         (TARGET_INSTANTIATE_DECLS): Likewise.
17805         * target.h (expand_to_rtl_hook): New target hook.
17806         (instantiate_decls): Likewise.
17807         * function.c (instantiate_decl): Make non-static.  Rename to...
17808         (instantiate_decl_rtl): ... this.
17809         (instantiate_expr): Use instantiate_decl_rtl.
17810         (instantiate_decls_1): Likewise.
17811         (instantiate_decls): Likewise.
17812         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
17813         * function.h (instantiate_decl_rtl): Add prototype.
17814         * cfgexpand.c (target.h): New include.
17815         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
17816         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
17817         (TARGET_INSTANTIATE_DECLS): Likewise.
17818         (TARGET_INITIALIZER): New target hooks added.
17819         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
17820         New prototype.
17821         * config/rs6000/rs6000.c (tree-flow.h): New include.
17822         (machine_function): Add sdmode_stack_slot field.
17823         (rs6000_alloc_sdmode_stack_slot): New function.
17824         (rs6000_instantiate_decls): Likewise.
17825         (rs6000_secondary_memory_needed_rtx): Likewise.
17826         (rs6000_check_sdmode): Likewise.
17827         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
17828         (TARGET_INSTANTIATE_DECLS): Likewise.
17829         (rs6000_hard_regno_mode_ok): Allow SDmode.
17830         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
17831         (rs6000_emit_move): Handle SDmode.
17832         (function_arg_advance): Likewise.
17833         (function_arg): Likewise.
17834         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
17835         SDmode var args for 32-bit compiles.
17836         (rs6000_secondary_reload_class): Handle SDmode.
17837         (rs6000_output_function_epilogue): Likewise.
17838         (rs6000_function_value): Simplify if statement.
17839         (rs6000_libcall_value): Likewise.
17840         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
17841         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
17842         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
17843         (movsd_hardfloat): New define_insn.
17844         (movsd_softfloat): Likewise.
17845         (movsd_store): Likewise.
17846         (movsd_load): Likewise.
17847         (extendsddd2): Likewise.
17848         (extendsdtd2): Likewise.
17849         (truncddsd2): Likewise.
17850         (movdd_hardfloat64): Fixup comment.
17851         (UNSPEC_MOVSD_LOAD): New constant.
17852         (UNSPEC_MOVSD_STORE): Likewise.
17853
17854 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
17855
17856         PR c++/34965
17857         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
17858         TRUTH_XOR_EXPR.
17859         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
17860         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
17861         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
17862         and TRUTH_XOR_EXPR.
17863
17864 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
17865
17866         PR target/34794
17867         * config.gcc: Separate AIX 5.3 from AIX 6.1.
17868         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17869         __LONGDOUBLE128 too.
17870         * config/rs6000/aix61.h: New file.
17871
17872 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
17873
17874         PR rtl-optimization/34959
17875         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
17876         popcount and parity rtxes the same mode as their operand.
17877         Truncate or extend the result to the return value's mode
17878         if necessary.
17879
17880 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
17881
17882         PR target/34981
17883         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
17884         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
17885         to GOT_VERSION_REGNUM.
17886         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
17887         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
17888         * config/mips/mips.c (mips_emit_call_insn): New function.
17889         (mips_call_tls_get_addr): Call mips_expand_call directly.
17890         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
17891         emit_call_insn.
17892         (mips16_build_call_stub): Likewise.  Return the call insn or null.
17893         (mips_expand_call): Update the call to mips16_build_call_stub
17894         accordingly and a remove redundant condition.  Assert that MIPS16
17895         stubs do not use lazy binding.  Use mips_emit_call_insn and return
17896         the call insn.
17897         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
17898         TARGET_USE_GOT.
17899         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
17900         (mips_avoid_hazard): Remove hazard_set handling.
17901         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
17902         (UNSPEC_RESTORE_GP): ...this.
17903         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
17904         (FAKE_CALL_REGNO): Rename to...
17905         (GOT_VERSION_REGNUM): ...this.
17906         (type): Add "ghost" value.  Add an associated insn reservation.
17907         (hazard_set): Remove.
17908         (exception_receiver): Rename to...
17909         (restore_gp): ...this and update the unspec identifier accordingly.
17910         (exception_receiver, nonlocal_got_receiver): New expanders.
17911         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
17912         FAKE_CALL_REGNO.  Remove hazard_set attribute.
17913         (set_got_version, update_got_version): New patterns.
17914
17915 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
17916
17917         PR target/34970
17918         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
17919
17920 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
17921
17922         PR other/31955
17923         * doc/install.texi2html: Generate gcc-vers.texi.
17924
17925 2008-01-25  DJ Delorie  <dj@redhat.com>
17926
17927         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
17928
17929 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
17930
17931         * config/c4x: Remove directory.
17932         * config.gcc (crx-*, mt-*): Mark obsolete.
17933         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
17934         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
17935         sh-*-rtemscoff*): Remove cases.
17936         * defaults.h (C4X_FLOAT_FORMAT): Remove.
17937         * real.c (encode_c4x_single, decode_c4x_single,
17938         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
17939         c4x_extended_format): Remove.
17940         * real.h (c4x_single_format, c4x_extended_format): Remove.
17941         * doc/extend.texi (interrupt, naked): Remove mention of attributes
17942         on C4x.
17943         (Pragmas): Remove comment about c4x pragmas.
17944         * doc/install.texi (c4x): Remove target-specific instructions.
17945         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
17946         * doc/md.texi (Machine Constraints): Remove C4x documentation.
17947         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
17948         refer to C4x source files as examples.
17949         (C4X_FLOAT_FORMAT): Remove documentation.
17950
17951 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
17952
17953         * config/bfin/bfin.c (override_options): Reorder tests so that
17954         flag_pic gets enabled for -msep-data.
17955
17956 2008-01-25  Richard Guenther  <rguenther@suse.de>
17957
17958         PR middle-end/32244
17959         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
17960         to its bitfield precision if required.
17961
17962 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
17963
17964         PR middle-end/33880
17965         * tree-nested.c (walk_omp_for): New function.
17966         (convert_nonlocal_reference, convert_local_reference): Call
17967         walk_omp_for on OMP_FOR.
17968         (convert_call_expr): Call walk_body on OMP_FOR's
17969         OMP_FOR_PRE_INIT_BODY.
17970
17971 2008-01-25  Richard Guenther  <rguenther@suse.de>
17972
17973         PR tree-optimization/34966
17974         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
17975         default defs and PHI_NODEs we have to insert after the
17976         defining statement.
17977
17978 2008-01-24  Nick Clifton  <nickc@redhat.com>
17979
17980         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
17981         Provide a default definition.
17982         (LIBGCC2_UNITS_PER_WORD): Likewise.
17983
17984         * config/stormy16/stormy16.c: Include df.h for the prototype
17985         for df_regs_ever_live_p.
17986         (xstormy16_expand_builtin_va_start): Convert the stack offset
17987         into a component_ref and then use POINTER_PLUS_EXPR to add it
17988         to the incoming_virtual_args_rtx.
17989         (xstormy16_gimplify_va_arg_expr): Rename to
17990         xstormy16_gimplify_va_arg_expr.
17991         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
17992         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
17993         xstormy16_gimplify_va_arg_expr.
17994         Fix up some formatting issues.
17995
17996         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
17997         Move to predicates.md.
17998         (xs_hi_general_operand): Likewise.
17999         (xs_hi_nonmemory_operand): Likewise.
18000         * config/stormy16/predicates.md:
18001         (xstormy16_carry_plus_operand): New predicate.
18002         (xs_hi_general_operand): New predicate.
18003         (xs_hi_nonmemory_operand): New predicate.
18004         * config/stormy16/stormy16-protos.h:
18005         (xstormy16_carry_plus_operand): Delete prototype.
18006         (xs_hi_general_operand): Likewise.
18007         (xs_hi_nonmemory_operand): Likewise.
18008
18009         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
18010         modifiers as they are no longer needed and they can trigger
18011         reload spill failures.
18012
18013         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
18014         with a match_operand in order to help reload.
18015
18016         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
18017         constraint with 'e' for the 8th alternative as this version of
18018         the mov.w instruction only accepts the lower 8 registers.
18019
18020 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
18021
18022         PR target/34856
18023         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
18024         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
18025         vector elements.
18026
18027 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18028
18029         PR middle-end/33333
18030         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
18031
18032 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
18033
18034         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
18035         New functions.
18036         (remove_structure): Update allocations list before removing structure.
18037
18038 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
18039
18040         * ipa-struct-reorg.c (is_safe_cond_expr,
18041         create_new_stmts_for_cond_expr): Use integer_zerop function,
18042         that recognize not only zero-pointer, but zero-integer too.
18043
18044 2008-01-25  Ben Elliston  <bje@au.ibm.com>
18045
18046         PR other/22232
18047         * fixproto: Escape "." in sed expression that strips leading "./".
18048
18049 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18050
18051         PR driver/34904
18052         * gcc.c (SWITCH_OK): Removed.
18053         (SWITCH_LIVE): Changed to bit.
18054         (SWITCH_FALSE): Likewise.
18055         (SWITCH_IGNORE): Likewise.
18056         (switchstr): Change live_cond to unsigned int.
18057         (process_command): Replace SWITCH_OK with 0.
18058         (do_self_spec): Likewise.
18059         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
18060         (give_switch): Likewise.
18061         (used_arg): Likewise.
18062         (do_spec_1): Set the SWITCH_IGNORE bit.
18063         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
18064         bits.  Set the SWITCH_LIVE bit.
18065
18066 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
18067
18068         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
18069
18070 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
18071
18072         PR tree-optimization/34472
18073         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
18074         parameter to a "bool *" and set *DATA to false if there is
18075         an unsafe access.  Do not delete the structure here.
18076         (check_cond_exprs): Delete it here instead.
18077         (check_cond_exprs, exclude_cold_structs): Do not increase
18078         I when removing a structure.
18079
18080 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
18081
18082         PR target/34856
18083         * config/i386/i386.c (ix86_expand_vector_init): Consider only
18084         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
18085
18086 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
18087
18088         PR middle-end/34934
18089         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
18090         a fixed vector for stack.
18091
18092 2008-01-24  Ben Elliston  <bje@au.ibm.com>
18093
18094         PR c++/25701
18095         * doc/gcc.texi (Software development): Add a direntry for g++.
18096
18097 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
18098
18099         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
18100         stale and straggling -fforce-addr comments above.
18101
18102         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
18103         define.
18104         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
18105         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
18106
18107 2008-01-23  Michael Matz  <matz@suse.de>
18108
18109         PR debug/34895
18110         * dwarf2out.c (force_type_die): Use modified_type_die instead of
18111         gen_type_die.
18112
18113 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
18114
18115         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
18116         malloc result type.
18117
18118 2008-01-23 Anatoly Sokolov <aesok@post.ru>
18119
18120         * config/avr/avr.c (avr_current_arch): New variable.
18121         (avr_arch_types): Add 'avr31' and 'avr51' entries.
18122         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
18123         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
18124         (avr_override_options): Init 'avr_current_arch'.
18125         (base_arch_s): Move from here...
18126         * config/avr/avr.h (base_arch_s): ... here. Add new members
18127         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
18128         'mega' to 'have_jmp_call'.
18129         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
18130         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
18131         macros.
18132         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
18133         architectures.
18134         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18135         MULTILIB_MATCHES): Ditto.
18136
18137 2008-01-23  Richard Guenther  <rguenther@suse.de>
18138
18139         PR middle-end/31529
18140         * cgraphunit.c (cgraph_reset_node): Always mark the node
18141         not reachable if it is not queued already.
18142
18143 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
18144
18145         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
18146         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
18147         (cputype_selected): New static variable.
18148         (bfin_handle_option): Set it if -mcpu is used.
18149         (override_option): Select default set of workarounds if no cpu type
18150         selected on the command line.
18151         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
18152
18153         From  Michael Frysinger  <michael.frysinger@analog.com>
18154         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
18155         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
18156
18157         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
18158         for bf547, bf523, bf524, and bf526.
18159         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
18160         bf526.
18161         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
18162         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
18163         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
18164         __ADSPBF547__ and __ADSPBF54x__ for bf547.
18165         * doc/invoke.texi (Blackfin Options): Document that
18166         -mcpu now accept bf547, bf523, bf524, and bf526.
18167
18168 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
18169
18170         PR rtl-optimization/34628
18171         * combine.c (try_combine): Stop and undo after the first combination
18172         if an autoincrement side-effect on the first insn has effectively
18173         been lost.
18174
18175 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
18176
18177         PR target/34529
18178         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
18179         Offset addresses are not valid for Altivec or paired float modes.
18180
18181 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
18182
18183         PR c++/34607
18184         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
18185         if DECL_INITIAL (decl) is error_mark_node.
18186
18187         PR c++/34914
18188         * c-common.c (handle_vector_size_attribute): Only allow
18189         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
18190         the same way as pointer, array etc. types.
18191         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
18192
18193         PR c++/34917
18194         * tree.c (build_type_attribute_qual_variant): Call
18195         build_qualified_type if attributes are equal, but quals are not.
18196
18197 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18198
18199         PR 32102
18200         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
18201         * flags.h (warn_strict_aliasing): Remove.
18202         (warn_strict_overflow): Remove.
18203         * opts.c (warn_strict_aliasing): Remove.
18204         (warn_strict_overflow): Remove.
18205         * c-opts.c (c_common_handle_option): -Wall only sets
18206         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
18207         (c_common_post_options): Give default values to -Wstrict-aliasing
18208         and -Wstrict-overflow if they are uninitialized.
18209         * common.opt (Wstrict-aliasing): Specify Var and Init.
18210         (Wstrict-overflow): Likewise.
18211
18212 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
18213
18214         PR rtl-optimization/26854
18215         PR rtl-optimization/34400
18216         PR rtl-optimization/34884
18217         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
18218         DF_RD->gen.
18219         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
18220         (df_rd_bb_info.expanded_lr_out): Deleted
18221         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
18222         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
18223         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18224         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18225         Removed code to allocate, initialize or free expanded_lr_out.
18226         (df_rd_bb_local_compute_process_def): Restructured to make more
18227         understandable.
18228         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
18229         sets if the sets are being trimmed.
18230
18231 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
18232
18233         PR bootstrap/32287
18234         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
18235         (as_vers): Likewise.
18236         * configure: Regenerated.
18237
18238 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18239
18240         PR middle-end/33092
18241         * tree-pass.h (pass_build_alias): New pass.
18242         * tree-ssa-alias.c (gate_build_alias): New.
18243         (pass_build_alias): New.
18244         * passes.c (init_optimization_passes): Add pass_build_alias after
18245         pass_create_structure_vars.
18246
18247 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
18248
18249         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
18250         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
18251         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
18252         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
18253         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
18254         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
18255         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
18256         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
18257         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
18258         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
18259         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
18260         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
18261         * config/s390/s390.md (FP_ALL): New mode iterator.
18262         (_d): New mode attribute.
18263         ("*signbit<mode>2>"): Changed mode of first operand.
18264         ("isinf<mode>2"): Changed mode of first operand.
18265         ("*TDC_insn"): Adaptation for DFP modes.
18266
18267 2008-01-22  Ben Elliston  <bje@au.ibm.com>
18268
18269         * tree.c (check_qualified_type): Improve function description.
18270
18271 2008-01-21  Jason Merrill  <jason@redhat.com>
18272
18273         PR c++/34196
18274         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
18275         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
18276         if it is set.
18277
18278 2008-01-21  DJ Delorie  <dj@redhat.com>
18279
18280         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
18281         return zero.
18282
18283 2008-01-21  Richard Guenther  <rguenther@suse.de>
18284
18285         PR middle-end/34856
18286         * tree-cfg.c (verify_expr): Allow all invariant expressions
18287         instead of just constant class ones as reference argument.
18288         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
18289         like any other constant.
18290         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18291
18292 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
18293
18294         * regmove.c (fixup_match_1): Update call crossed frequencies.
18295
18296 2008-01-21  Richard Guenther  <rguenther@suse.de>
18297
18298         PR c/34885
18299         * tree-inline.c (setup_one_parameter): Deal with mismatched
18300         types using a VIEW_CONVERT_EXPR.
18301
18302 2008-01-21  Alon Dayan  <alond@il.ibm.com>
18303             Olga Golovanevsky  <olga@il.ibm.com>
18304
18305         PR tree-optimization/34701
18306         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
18307         when the structure size is not a power of 2.
18308
18309 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18310
18311         * doc/install.texi: Add doc for --enable-checking=df.
18312
18313 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18314
18315         PR rtl-optimization/34808
18316         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
18317
18318 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18319
18320         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
18321         input.
18322
18323 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
18324
18325         PR rtl-optimization/26854
18326         PR rtl-optimization/34400
18327         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
18328         DF_RD->gen.
18329         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
18330         (df_rd_bb_info.expanded_lr_out): New.
18331         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
18332         * loop_iv.c (iv_analysis_loop_init): Ditto.
18333         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18334         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18335         Added code to allocate, initialize or free expanded_lr_out.
18336         (df_rd_bb_local_compute_process_def): Restructured to make
18337         more understandable.
18338         (df_rd_confluence_n): Add code to do nothing with fake edges and
18339         code to no apply invalidate_by_call sets if the sets are being trimmed.
18340         (df_lr_local_finalize): Renamed to df_lr_finalize.
18341         (df_live_local_finalize): Renamed to df_live_finalize.
18342
18343 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18344
18345         PR target/34831
18346         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
18347         deciding whether to use reciprocal instructions.
18348
18349 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
18350
18351         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
18352         dwarf2out_note_section_used if cold_text_section is NULL.
18353
18354 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
18355
18356         PR gcov-profile/34610
18357         * tree-cfg.c (make_edges): Mark both outgoing edges from
18358         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
18359         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
18360         from OMP_FOR and OMP_CONTINUE outgoing edges.
18361
18362         * tree-profile.c (tree_profiling): Return early if
18363         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
18364         at the end.
18365         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
18366         from cfun to child_cfun.
18367         * function.h (struct function): Add after_tree_profile bit.
18368
18369 2008-01-19 Anatoly Sokolov <aesok@post.ru>
18370
18371         * config/avr/avr.S (_exit): Disable interrupt.
18372
18373 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
18374             Steven Bosscher  <stevenb.gcc@gmail.com>
18375
18376         PR rtl-optimization/26854
18377         PR rtl-optimization/34400
18378         * df-problems.c (df_live_scratch): New scratch bitmap.
18379         (df_live_alloc): Allocate df_live_scratch when doing df_live.
18380         (df_live_reset): Clear the proper bitmaps.
18381         (df_live_bb_local_compute): Only process the artificial defs once
18382         since the order is not important.
18383         (df_live_init): Init the df_live sets only with the variables
18384         found live by df_lr.
18385         (df_live_transfer_function): Use the df_lr sets to prune the
18386         df_live sets as they are being computed.
18387         (df_live_free): Free df_live_scratch.
18388
18389 2008-01-18  Ian Lance Taylor  <iant@google.com>
18390
18391         * common.opt: Add fmerge-debug-strings.
18392         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
18393         flag_merge_debug_strings rather than flag_merge_constants.
18394         * doc/invoke.texi (Option Summary): Mention
18395         -fmerge-debug-strings.
18396         (Debugging Options): Document -fmerge-debug-strings.
18397
18398 2008-01-18  Ian Lance Taylor  <iant@google.com>
18399
18400         PR c++/33407
18401         * tree.h (DECL_IS_OPERATOR_NEW): Define.
18402         (struct tree_function_decl): Add new field operator_new_flag.
18403         * tree-inline.c (expand_call_inline): When inlining a call to
18404         operator new, force the return value to go into a variable, and
18405         set DECL_NO_TBAA_P on that variable.
18406         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
18407
18408 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
18409
18410         PR debug/34484
18411         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
18412         DWARF2_DEBUGGING_INFO.
18413         (dwarf2out_note_section_used): Ditto.  Add prototype.
18414         (have_multiple_function_sections, text_section_used,
18415         cold_text_section_used, *cold_text_sections): Move declarations
18416         before their uses.
18417
18418 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
18419
18420         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
18421         field and add signal_ra.
18422         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
18423         assignments to frame state pc.  Move end of stack check after
18424         MD_FALLBACK_FRAME_STATE_FOR.
18425         (uw_update_context_1): Use frame state signal_regs if set, instead
18426         of checking signal_frame flag.
18427         (uw_update_context): Use frame state signal_ra if set.
18428         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
18429         * config/xtensa/linux-unwind.h: New file.
18430
18431 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
18432
18433         * modulo-sched.c (get_sched_window): Fix comment typo.
18434
18435 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
18436
18437         PR tree-optimization/34648
18438         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
18439
18440 2008-01-17  Anatoly Sokolov <aesok@post.ru>
18441
18442         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
18443         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
18444
18445 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
18446
18447         PR rtl-optimization/34400
18448         * df-core.c (df_worklist_dataflow_overeager,
18449         df_worklist_dataflow_doublequeue): New functions.
18450         (df_worklist_dataflow): Two different worklist solvers.
18451         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
18452         New param.
18453
18454 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18455
18456         PR testsuite/34821
18457         * doc/invoke.texi: Document the dependence on pthread for fopenmp
18458         and ftree-parallelize-loops.
18459
18460 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
18461
18462         PR rtl-optimization/34826
18463         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
18464
18465 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
18466
18467         * global.c (find_reg): Mark the eh regs as used if necessary.
18468         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
18469         * ra.h (struct allocno): no_eh_reg field added.  Changed
18470         no_stack_reg type to bitfield.
18471
18472 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
18473
18474         * tree.c (substitute_in_expr): Add missing 'break'.
18475
18476 2008-01-17  Richard Guenther  <rguenther@suse.de>
18477
18478         PR tree-optimization/34825
18479         * tree-ssa-math-opts.c (is_division_by): Do not recognize
18480         x / x as division to handle.
18481
18482 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18483
18484         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
18485         "-pthread" is specified.
18486         * pa-hpux11.h (LIB_SPEC): Likewise.
18487
18488 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
18489             Peter Bergner  <bergner@vnet.ibm.com>
18490
18491         PR rtl-optimization/33796
18492         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
18493
18494 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18495
18496         PR libgfortran/34699
18497         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
18498         static links.
18499         * pa-hpux10.h (LINK_SPEC): Likewise.
18500         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
18501
18502 2008-01-16  Richard Guenther  <rguenther@suse.de>
18503
18504         PR middle-end/32628
18505         * fold-const.c (fold_convert_const_int_from_int): Do not
18506         set overflow if that occured only because of a sign extension
18507         change when converting from/to a sizetype with the same
18508         precision and signedness.
18509
18510 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
18511
18512         PR debug/34249
18513         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
18514         location address to the correct place.  Update copyright year.
18515
18516 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18517
18518         * lambda-code.c (lambda_transform_legal_p): Handle the case of
18519         no dependences in the dependence_relations vector.
18520
18521 2008-01-16  Jan Hubicka  <jh@suse.cz>
18522
18523         PR rtl-optimization/31396
18524         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
18525         * cfg.c (dump_reg_info): Print it.
18526         * regs.h (struct reg_info_t): add freq_calls_crossed.
18527         (REG_FREQ_CALLS_CROSSED): New macro.
18528         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
18529         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
18530         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
18531         regmove_optimize): Update call crossed frequencies.
18532         * local-alloc.c (struct qty): Add freq_calls_crossed.
18533         (alloc_qty): Copute freq_calls_crossed.
18534         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
18535         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
18536         * ra.h (struct allocno): Add freq_calls_crossed.
18537
18538 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18539
18540         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
18541         libgomp when compiling with ftree-parallelize-loops.
18542         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
18543
18544 2008-01-16  Richard Guenther  <rguenther@suse.de>
18545
18546         PR tree-optimization/34769
18547         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
18548         * tree.c (int_cst_value): Instead make this function more
18549         permissive in what it accepts as valid input.  Document this
18550         function always sign-extends the value.
18551
18552 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
18553             Richard Guenther  <rguenther@suse.de>
18554
18555         PR c/34668
18556         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
18557         (gimple_fold_indirect_ref_rhs): ... this.
18558         (gimple_fold_indirect_ref): New function with foldings
18559         that preserve lvalueness.
18560         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
18561         * tree-flow.h (gimple_fold_indirect_ref): Declare.
18562         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
18563         to fold an INDIRECT_REF, fall back to the old use of
18564         fold_indirect_ref_1.
18565
18566 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18567
18568         * tree-data-ref.c (subscript_dependence_tester_1): Call
18569         free_conflict_function.
18570         (compute_self_dependence): Same.
18571
18572 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
18573
18574         PR debug/34249
18575         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
18576         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
18577         function global.
18578         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
18579         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
18580         for DWARF2_UNWIND_INFO targets.
18581
18582 2008-01-16  Richard Guenther  <rguenther@suse.de>
18583
18584         PR c/34768
18585         * c-typeck.c (common_pointer_type): Do not merge inconsistent
18586         type qualifiers for function types.
18587
18588 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
18589
18590         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
18591         loop_iterator li from previous commit.
18592
18593 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
18594
18595         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
18596
18597 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
18598
18599         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
18600         (parallelize_loops): Don't parallelize irreducible components.
18601
18602 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18603
18604         PR c++/24924
18605         * c-opts (c_common_post_options): Do not enable CPP
18606         flag_pedantic_errors by default.
18607
18608 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
18609
18610         PR rtl-optimization/31944
18611         * cse.c (remove_pseudo_from_table): New function.
18612         (merge_equiv_classes): Use above function to remove pseudo-registers.
18613         (invalidate): Likewise.
18614
18615 2008-01-13  Richard Guenther  <rguenther@suse.de>
18616
18617         PR middle-end/34601
18618         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
18619         instead of TYPE_MODE to deal with calls from expand_one_error_var.
18620
18621 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
18622
18623         * gcse.c (cprop_jump): Call validate_unshare_change instead of
18624         validate_change to unshare the source of the PC set.
18625
18626 2008-01-12  Jan Hubicka  <jh@suse.cz>
18627
18628         PR middle-end/32135
18629         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
18630         references above array bounds.  This might trigger bounds checks for
18631         pointers to arrays.
18632
18633 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
18634
18635         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
18636         new_replaceable_dependencies.
18637
18638 2008-01-12  Doug Kwan  <dougkwan@google.com>
18639
18640         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
18641         instead of OPT_Wreturn_type in warning due to ignored return type
18642         qualifiers.
18643         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
18644         options included in -Wextra.
18645         * c.opt: New option -Wignored_qualifiers.
18646         * doc/invoke.texi (Warning Options, -Wextra): Add new option
18647         -Wignore_qualifiers.
18648         (-Wignored-qualifiers): Document.
18649         (-Wreturn-type): Remove description of functionality now handled
18650         by -Wignored-qualifiers.
18651
18652 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
18653
18654         PR ada/33788
18655         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
18656         NOP_EXPR if it is between integral types with the same precision.
18657
18658 2008-01-12  Jan Hubicka  <jh@suse.cz>
18659
18660         PR other/28023
18661         * invoke.texi (max-inline-recursive-depth): Fix default value.
18662
18663 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
18664
18665         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
18666         correct type.
18667
18668 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
18669
18670         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
18671
18672 2008-01-11  James E. Wilson  <wilson@specifix.com>
18673
18674         PR target/26015
18675         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
18676
18677 2008-01-11  Anatoly Sokolov <aesok@post.ru>
18678
18679         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
18680         save/restore frame pointer register and don't use 'call-prologues'
18681         optimization in function with "OS_task" attribute.
18682
18683 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
18684
18685         PR middle-end/31309
18686         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
18687         when copying to memory.
18688
18689 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
18690
18691         PR rtl-optimization/30905
18692         * cfgcleanup.c: Include dce.h
18693         (crossjumps_occured): New global variable.
18694         (try_crossjump_bb): Exit loop after finding a fallthru edge.
18695         If something changed, set crossjumps_occured to true.
18696         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
18697         Don't add/remove fake edges to exit here...
18698         (cleanup_cfg): ...but do it here, when crossjumping.
18699         Run a fast DCE when successful crossjumps occured in the latest
18700         iteration of try_optimize_cfg.
18701
18702 2008-01-11  Richard Guenther  <rguenther@suse.de>
18703
18704         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
18705         (struct vn_unary_op_s): Likewise.
18706         (vn_reference_insert): Free old reference on hash collision.
18707
18708 2008-01-10  Raksit Ashok  <raksit@google.com>
18709
18710         PR rtl-optimization/27971
18711         * combine.c (find_split_point): Split PLUS expressions which are
18712         inside a MEM rtx, and whose first operand is complex.
18713
18714 2008-01-10  DJ Delorie  <dj@redhat.com>
18715
18716         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
18717         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
18718         (m32c_hard_regno_ok): Call the underlying function.
18719
18720 2008-01-10  Richard Guenther  <rguenther@suse.de>
18721
18722         PR middle-end/34683
18723         * tree-cfg.c (tree_merge_blocks): Do not go through the
18724         full-blown folding and stmt updating path if we just deal
18725         with virtual operands.
18726         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
18727         test for abnormal SSA_NAMEs.
18728
18729 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18730
18731         PR middle-end/34641
18732         * reload.c (push_reload): Add assertions.  All constants from
18733         reg_equiv_constant should have been used for replacing the respective
18734         pseudo earlier.
18735         (find_reloads_address): Invoke find_reloads_address_part for
18736         constant taken from the reg_equiv_constant array.
18737
18738 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
18739
18740         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
18741         field (valnum) the first in the struct.  Replace bools with
18742         unit bit fields.
18743
18744 2008-01-10  Richard Guenther  <rguenther@suse.de>
18745
18746         PR tree-optimization/34651
18747         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
18748         types and ordering for masking and converting.
18749
18750 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
18751
18752         PR tree-optimization/34017
18753         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
18754         also for PHI_NODE expressions.
18755
18756 2008-01-09  Jan Hubicka  <jh@suse.cz>
18757
18758         PR tree-optimization/34708
18759         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
18760         based on number of case labels.
18761         (init_inline_once): Remove switch_cost.
18762         * tree-inline.h (eni_weights_d): Remove switch_cost.
18763
18764 2008-01-09  Richard Guenther  <rguenther@suse.de>
18765         Andrew Pinski  <andrew_pinski@playstation.sony.com>
18766
18767         PR middle-end/30132
18768         * gimplify.c (gimplify_cond_expr): Do not create an addressable
18769         temporary if an rvalue is ok or an lvalue is not required.
18770
18771 2008-01-09  Richard Guenther  <rguenther@suse.de>
18772
18773         PR middle-end/34458
18774         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
18775         adjust return type.
18776
18777 2008-01-09  Richard Guenther  <rguenther@suse.de>
18778
18779         PR middle-end/34679
18780         * tree.c (host_integerp): Check for sizetype only if the
18781         type is an integer type.
18782
18783 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
18784
18785         PR debug/26364
18786         * opts.c (decode_options): Disable inlining of functions called
18787         once if not in unit-at-a-time mode.
18788
18789 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
18790
18791         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
18792
18793 2008-01-08  Richard Guenther  <rguenther@suse.de>
18794
18795         PR middle-end/31863
18796         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
18797         out early if the result will be unused.
18798
18799 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
18800
18801         PR target/34709
18802         Revert:
18803
18804         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18805         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
18806         for TARGET_RECIP.
18807
18808 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
18809
18810         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
18811         for vectorization tuned.
18812
18813 2008-01-08  Richard Guenther  <rguenther@suse.de>
18814
18815         PR tree-optimization/34683
18816         * tree-ssa-operands.c (operand_build_cmp): Export.
18817         * tree-ssa-operands.h (operand_build_cmp): Declare.
18818         * tree-vn.c (vuses_compare): Remove.
18819         (sort_vuses): Use operand_build_cmp.
18820         (sort_vuses_heap): Likewise.
18821         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
18822         to re-use old VEC if available.  Do not sort already sorted VUSEs.
18823         (vdefs_to_vec): Do not sort already sorted VDEFs.
18824
18825 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18826
18827         PR middle-end/34694
18828         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
18829
18830 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
18831
18832         PR target/34702
18833         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
18834         limitations of reciprocal sequences on x86 targets.
18835
18836 2008-01-08  Richard Guenther  <rguenther@suse.de>
18837
18838         PR tree-optimization/34683
18839         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
18840
18841 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
18842
18843         PR target/34622
18844         * config/darwin.c (darwin_mergeable_string_section): Don't use
18845         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
18846
18847 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
18848
18849         PR target/34682
18850         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
18851         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
18852         predicates of op0 and op1 to register_operand.
18853         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
18854         expander using X87MODEF mode iterator.  Change predicates of
18855         op0 and op1 to register_operand.
18856         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
18857         corresponding patterns and macroize using MODEF macro.  Change
18858         predicates of op0 and op1 to register_operand and remove
18859         "m" constraint. Disparage "r" alternative with "!".
18860         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
18861         macroize using X87MODEF macro.  Change predicates of op0 and op1
18862         to register_operand and remove "m" constraint.  Disparage "r"
18863         alternative with "!".
18864         (absneg splitter with memory operands): Remove.
18865         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
18866         patterns and macroize using X87MODEF mode iterator.
18867         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
18868         Change predicate of op1 to register_operand.
18869         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
18870         for memory operands.
18871
18872 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
18873
18874         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
18875
18876 2008-01-07  Richard Guenther  <rguenther@suse.de>
18877
18878         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
18879         fields.
18880
18881 2008-01-07  Richard Guenther  <rguenther@suse.de>
18882
18883         PR tree-optimization/34683
18884         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
18885         VOPs of the needed size to save memory.  Use VEC_quick_push
18886         to save compile-time.
18887         (vdefs_to_vec): Likewise.
18888
18889 2008-01-07  Sa Liu  <saliu@de.ibm.com>
18890
18891         * config/spu/spu.md (divdf3): Genetate inline code for double
18892         division.  The implementation doesn't handle INF or NAN, therefore it
18893         only applies when -ffinite-math-only is given.
18894
18895 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
18896
18897         PR libstdc++/34680
18898         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
18899         * doc/cpp.texi ([Common Predefined Macros]): Document.
18900
18901 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
18902
18903         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
18904         order to use commutative addition instead of subtraction.
18905
18906 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18907             Mircea Namolaru  <namolaru@il.ibm.com>
18908             Vladimir Yanovsky  <yanov@il.ibm.com>
18909             Revital Eres  <eres@il.ibm.com>
18910
18911         PR tree-optimization/34263
18912         * tree-outof-ssa.c (process_single_block_loop_latch,
18913         contains_tree_r): New functions.
18914         (analyze_edges_for_bb): Call process_single_block_loop_latch
18915         function to empty single-basic-block latch block if possible.
18916
18917 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18918
18919         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
18920         for TARGET_RECIP.
18921         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
18922
18923 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
18924
18925         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
18926
18927 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
18928
18929         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
18930
18931 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
18932
18933         PR tree-optimization/34618
18934         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
18935         flag from T.
18936
18937 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18938
18939         PR target/34673
18940         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
18941         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
18942         Update copyright year.
18943
18944         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
18945         Update copyright year.
18946         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
18947         using NR fixup.
18948
18949 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
18950
18951         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
18952         edge does not point to current bb before changing need_assert.
18953
18954 2008-01-04  Richard Guenther  <rguenther@suse.de>
18955
18956         PR middle-end/34029
18957         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
18958         for verifying purposes if they are is_gimple_min_invariant.
18959
18960 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
18961
18962         PR tree-optimization/34448
18963         PR tree-optimization/34465
18964         * gimplify.c (gimplify_init_constructor): Add new parameter
18965         notify_temp_creation.  Use it.
18966         (gimplify_modify_expr_rhs): Take volatiles into account when
18967         optimizing constructors.
18968         Do not optimize constructors if gimplify_init_constructor will dump to
18969         memory.
18970         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
18971         * gcc.c-torture/compile/pr34448.c: New.
18972
18973 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
18974
18975         PR gcov-profile/34609
18976         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
18977         return_slot if result is TREE_ADDRESSABLE.
18978
18979 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
18980
18981         * config/mips/mips.md (sqrt_condition): Tweak comment.
18982         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
18983
18984 2008-01-03  Tom Tromey  <tromey@redhat.com>
18985
18986         PR c/34457
18987         * c-common.c (c_type_hash): Handle VLAs.
18988
18989 2008-01-03  Jan Hubicka  <jh@suse.cz>
18990
18991         PR tree-optimization/31081
18992         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
18993         0 when inlining and not inlining to first basic block.
18994         (remap_decl): When var is initialized to 0, don't set default_def.
18995         (expand_call_inline): Set entry_bb.
18996         * tree-inline.h (copy_body_data): Add entry_bb.
18997
18998 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
18999
19000         PR c++/34619
19001         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
19002         before returning.
19003
19004         PR tree-optimization/29484
19005         * tree-inline.c (inline_forbidden_p_2): New function.
19006         (inline_forbidden_p): Disallow inlining if some static var
19007         has an address of a local LABEL_DECL in its initializer.
19008         * doc/extend.texi (Labels as Values): Document &&foo behaviour
19009         vs. inlining.
19010
19011 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19012
19013         PR tree-optimization/34635
19014         * tree-data-ref.c (add_other_self_distances): Make sure that the
19015         evolution step is constant.
19016
19017 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
19018
19019         PR middle-end/34608
19020         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
19021
19022 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
19023
19024         * tree-sra.c (scalarize_init): Insert the generate_element_init
19025         statements after the generate_element_zero statements.
19026
19027 2008-01-02  Richard Guenther  <rguenther@suse.de>
19028
19029         PR middle-end/34093
19030         PR middle-end/31976
19031         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
19032         for very large number of operands instead of ICEing.
19033
19034 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
19035
19036         PR target/34013
19037         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
19038         while stack probing.
19039
19040 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
19041
19042         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
19043         in C++0x mode.
19044
19045 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
19046
19047         PR libmudflap/26442
19048         * tree-mudflap.c (mx_register_decls): Guard warning by
19049         !DECL_ARTIFICIAL check.
19050
19051 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
19052
19053         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
19054         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
19055         sse5_perm<mode>): Fix constraints.