2008-08-01 Doug Kwan <dougkwan@google.com>
[official-gcc.git] / gcc / ChangeLog
blob84ed11f5af0107a30b3c8e407f2af64bab088177
1 2008-08-01  Doug Kwan  <dougkwan@google.com>
3         * matrix-reorg.c: Re-enable all code.
4         (struct malloc_call_data): Change CALL_STMT to gimple type.
5         (collect_data_for_malloc_call): Tuplify.
6         (struct access_site_info): Change STMT to gimple type.
7         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
8         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
9         (struct free_info): Change STMT to gimple type.
10         (struct matrix_access_phi_node):  Change PHI to gimple type.
11         (get_inner_of_cast_expr): Remove.
12         (may_flatten_matrices_1): Tuplify.
13         (may_flatten_matrices): Ditto.
14         (mark_min_matrix_escape_level): Ditto.
15         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
16         (ssa_accessed_in_call_rhs): New
17         (ssa_accessed_in_assign_rhs): New
18         (record_access_alloc_site_info): Tuplify.
19         (add_allocation_site): Ditto.
20         (analyze_matrix_allocation_site): Ditto.
21         (analyze_transpose): Ditto.
22         (get_index_from_offset): Ditto.
23         (update_type_size): Ditto.
24         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
25         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
26         (analyze_accesses_for_phi_node): Tuplify.
27         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
28         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
29         (analyze_matrix_accesses): Tuplify.
30         (check_var_data): New call-back type for check_var_notmodified_p.
31         (check_var_notmodified_p): Tuplify and use call-back struct to
32         return statement found.
33         (can_calculate_expr_before_stmt): Factor out statement related code
34         into ...
35         (can_calculate_stmt_before_stmt): New.
36         (check_allocation_function): Tuplify.
37         (find_sites_in_func): Ditto.
38         (record_all_accesses_in_func): Ditto.
39         (transform_access_sites): Ditto.
40         (transform_allocation_sites): Ditto.
41         (matrix_reorg): Re-enable.
42         (gate_matrix_reorg): Re-enable.
44 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
46         PR tree-optimization/35252
47         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
48         REALPART_EXPR to be considered as same load operation.
50 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
52         PR tree-optimization/36830
53         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
54         (expressions_equal_p): Return false if only one operand is null.
56 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
58         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
59         version requirements.
61 2008-07-26  Olivier Hainque  <hainque@adacore.com>
63         * collect2.c (symkind): New enum.  Symbol kinds we care about.
64         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
65         code and head comment accordingly.
66         (scan_prog_file): Use symkind names instead of bare integers.
67         
68 2008-07-25  Jan Hubicka  <jh@suse.cz>
70         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
71         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
72         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
73         * dojump.c (clear_pending_stack_adjust): Likewise.
74         * print-tree.c (print_node): Ignore DECL_INLINE.
75         * tree-inline.c (inlinable_function_p): Likewise.
76         
77 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
79         * doc/extend.texi (hot attribute): Document that the hot attribute
80         turns on -O3 for some ports.
81         (cold attribute): Document that the cold attribute turns on -Os
82         for some ports
84         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
85         reflect function specific option support.
87         * target.h (struct target_option_hooks): Add fields to say whether
88         the cold attribute implies -Os and the hot attribute implies -O3.
90         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
91         By default, do not turn on -Os for cold functions.
92         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
93         not turn on -O3 for hot functions.
95         * c-common.c (handle_hot_attribute): Use target hook to determine
96         if hot functions should enable -O3.
97         (handle_cold_attribute): Use target hook to determine if cold
98         functions should enable -Os.
100         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
101         (override_options): Move disable scheduling to
102         optimization_options.
103         (optimization_options): Disable scheduling here, not
104         override_options.
105         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
106         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
108         * config/ia64/ia64.c (ia64_override_options): Move setting
109         scheduling flags to ia64_optimization_options.
110         (ia64_optimization_options): Disable scheduling options here, and
111         not in ia64_override_options.
112         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
113         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
115 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
117         PR target/36936
118         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
120 2008-07-25  Martin Jambor  <mjambor@suse.cz>
122         PR tree-optimization/36926
123         * ipa-prop.c (ipa_analyze_call_uses): Call
124         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
126 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
128         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
129         movv2si_internal): Add mem = reg alternative.
131 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
133         PR bootstrap/36918
134         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
135         DEFAULT_PCC_STRUCT_RETURN to 127.
137 2008-07-24  Jan Hubicka  <jh@suse.cz>
139         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
140         (build_cgraph_edges): Likewise.
141         * cgraph.c (cgraph_node): Do not update assembler hash.
142         (cgraph_remove_node): Drop non-unit-at-a-time code.
143         * tree-pass.h (pass_O0_always_inline): Remove.
144         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
145         * toplev.c (process_options): Flag unit-at-a-time does not imply
146         no section anchors.
147         * cgraphunit.c: Update comments.
148         (decide_is_function_needed): Drop non-unit-at-a-time mode.
149         (cgraph_assemble_pending_functions): Remove.
150         (cgraph_reset_node): Drop non-unit-at-a-time code.
151         (cgraph_finalize_function): Likewise.
152         (cgraph_analyze_function): Likewise.
153         (cgraph_finalize_compilation_unit): Likewise.
154         (cgraph_expand_function): Likewise.
155         (cgraph_optimize): Likesise.
156         (save_inline_function_body): Likewise.
157         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
158         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
159         * ipa-inline.c: Update comments.
160         (enum inlining_mode): remove INLINE_SPEED.
161         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
162         (cgraph_mark_inline_edge): Likewise.
163         (try_inline): Likewise.
164         (cgraph_decide_inlining_incrementally): Likewise.
165         (cgraph_gate_inlining): Remove.
166         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
167         (cgraph_gate_early_inlining): Likewise.
168         (gate_inline_passes): Remove.
169         (pass_inline_parameters, pass_ipa_inline): Remove gates.
170         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, 
171         pass_O0_always_inline): Remove.
172         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
173         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
174         * opts.c (no_unit_at_a_time_default): Remove.
175         (decode_options): Remove flag_unit_at_a_time reset and warning.
176         * opts.h (no_unit_at_a_time_default): Remove.
177         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
178         early in GNU dialect.
179         (merge_decls): Update comment; drop unit-at-a-time check.
180         (finish_decl): Likewise.
181         (grok_declaration): Remove flag_inline_trees code.
182         (finish_functions): Return on function returning non-void on all
183         statics.
184         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
185         * cfgexpand.c (expand_one_static_var): Remove.
186         (expand_one_var): Remove expand_one_static_var call.
187         (expand_used_vars_for_block): Remove flag_unit_a_time check.
188         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
189         and flag_unit_at_a-time compatibility checks.
190         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
191         * tree-inline.c (flag_inline_trees): Remove.
192         (inlinable_function_p): Don't check it.
193         (expand_call_inline): Remove non-unit-at-a-time code.
194         * tree-inline.h (flag_inline_trees): Remove.
195         * tree-optimize.c (execute_early_local_optimizations): Remove
196         unit-at-a-time checks.
197         (tree_rest_of_compilation): Likewise.
198         * combine.c (setup_incoming_promotions): Likewise.
199         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
200         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
201         * passes.c (pass_inline_parameters): Update comments; remove
202         O0_alwaysinline pass.
203         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
204         (execute_one_pass): Likewise.
205         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
206         (ix86_function_sseregparm): Likewise.
207         * arm.c (arm_function_in_section_p): Likewise.
208         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
209         * varpool.c: Update comments.
210         (decide_is_variable_needed): Remove unit-at-a-time checks.
211         (varpool_finalize_decl): Likewise.
213 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
215         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
216         to 2 instead of -1.
217         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
218         to 2.
220 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
222         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
223         imp symbol extension.
225         2008-07-23  Ian Lance Taylor  <iant@google.com>
227         * tree-vrp.c (infer_value_range): Ignore asm statements when
228         looking for memory accesses for -fdelete-null-pointer-checks.
230 2008-07-24  Ben Elliston  <bje@au.ibm.com>
232         * config/spu/spu-c.c (__vector_keyword): New variable.
233         (vector_keyword): Likewise.
234         (spu_categorize_keyword): New function.
235         (spu_macro_to_expand): Likewise.
236         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
237         compiling an ISO C dialect.
239 2008-07-24  Ben Elliston  <bje@au.ibm.com>
241         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
242         conventional usage.
244 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
246         * configure: Regenerate.
247         * configure.ac: Require texinfo 4.7.
248         * doc/install.texi: Document texinfo 4.7 requirement.
250 2008-07-23  Martin Jambor  <mjambor@suse.cz>
252         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
253         rather than for DECL_SAVED_TREE.
254         * ipa-prop.c: Include diagnostic.h.
255         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
256         thoroughly.
257         (ipa_detect_param_modifications): Function rewritten from scratch.
258         (ipa_compute_jump_functions): Changed accesses to modification flags.
259         (ipa_free_node_params_substructures): Update flags destruction.
260         (ipa_node_duplication_hook): Update flags duplication.
261         (ipa_print_all_params_modified): Updated flag access.
262         * ipa-prop.h (struct ipa_param_flags): New structure.
263         (struct ipa_node_params): New field modification_analysis_done,
264         modified_flags changed into param_flags.
265         (ipa_is_ith_param_modified): Changed to use new flags.
266         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
268         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
269         ipa-cp.c and split into two functions.
270         (ipa_print_node_jump_functions): New function.
271         (compute_scalar_jump_functions): New function.
272         (type_like_member_ptr_p): New function.
273         (compute_pass_through_member_ptrs): New function.
274         (fill_member_ptr_cst_jump_function): New function.
275         (determine_cst_member_ptr): New function.
276         (compute_cst_member_ptr_arguments): New function.
277         (ipa_compute_jump_functions): Complete rewrite.
278         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
279         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
280         (struct ipa_member_ptr_cst): New structure.
281         (union jump_func_value): New field member_cst.
282         * ipa-cp.c (ipcp_lat_is_insertable): New function.
283         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
284         jump function types.
285         (ipcp_print_all_lattices): Slight fprintf rearrangement.
286         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
287         instead of ipcp_print_all_jump_functions.
288         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
289         only for replacable scalars.
291         * doc/invoke.texi (Optimize options): Add description of
292         -findirect-inlining.
293         * common.opt (flag_indirect_inlining): New flag.
294         * opts.c (decode_options): Set flag_indirect_inlining when 
295         optimize >= 3.
297         * ipa-inline.c: Include ipa-prop.h.
298         (inline_indirect_intraprocedural_analysis): New function.
299         (inline_generate_summary): Allocate parameter and argument info
300         structures, call inline_indirect_intraprocedural_analysis on each
301         node when doing indirect inlining and deallocate indirect inlining 
302         data structures in the end.
303         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
304         (free_all_ipa_structures_after_iinln): New function.
305         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be 
306         done.
307         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
309         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
310         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
311         of computing the frequency separately.
312         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
313         of computing the frequency separately.
314         * ipa-cp.c (ipcp_print_all_structures): Replace a call to 
315         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
316         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
317         (ipa_get_stmt_member_ptr_load_param): New function.
318         (ipa_is_ssa_with_stmt_def): New function.
319         (ipa_note_param_call): New function.
320         (ipa_analyze_call_uses): New function.
321         (ipa_analyze_stmt_uses): New function.
322         (ipa_analyze_params_uses): New function.
323         (ipa_free_node_params_substructures): Also free the param_calls linked
324         list.
325         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
326         (ipa_print_node_param_flags): New function.
327         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
328         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
329         * ipa-prop.h (struct ipa_param_flags): New field called.
330         (struct ipa_param_call_note): New structure.
331         (struct ipa_node_params): New fields param_calls and
332         uses_analysis_done.
333         (ipa_is_ith_param_called): New function.
334         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
335         ipa_analyze_params_uses and dump parameter flags.
337         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
338         ipa_propagate_indirect_call_infos if performing indirect inlining,
339         pass a new parameter new_edges to it.
340         (add_new_edges_to_heap): New fucntion.
341         (cgraph_decide_inlining_of_small_functions): New vector
342         new_indirect_edges for newly found indirect edges , call
343         ipa_propagate_indirect_call_infos after inlining.
344         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
345         inlining if performing indirect inlining.  Call
346         free_all_ipa_structures_after_iinln when doing so too.
347         (inline_generate_summary): Do not call
348         free_all_ipa_structures_after_iinln here.
349         * ipa-prop.c (update_jump_functions_after_inlining): New function.
350         (print_edge_addition_message): New function.
351         (update_call_notes_after_inlining): New function.
352         (propagate_info_to_inlined_callees): New function.
353         (ipa_propagate_indirect_call_infos): New function.
354         * ipa-prop.h: Include cgraph.h
355         (struct ipa_param_call_note): Fields reordered, new field processed.
356         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
357         flag indirect_call.
358         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
359         rediscovered call statements.
360         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
361         (dump_cgraph_node): Dump also the indirect_call flag.
362         (cgraph_clone_edge): Copy also the indirect_call flag.
363         * tree-inline.c (copy_bb): Do not check for fndecls from call
364         expressions, check for edge availability when moving clones.
365         (get_indirect_callee_fndecl): New function.
366         (expand_call_inline): If callee declaration is not apprent from
367         the statement, try calling get_indirect_callee_fndecl.  Do not
368         issue warnings or call sorry when not inlinings an indirect edge.
369         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
371         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
372         bit more frandly to matching.
373         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
374         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
375         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
376         
377 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
379         PR 36907
380         * opth-gen.awk: Suppress function specific features when building
381         target libraries.
382         * optc-gen.awk: Ditto.
384 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
386         PR 35058
387         * diagnostic.c (pedwarn): Add opt parameter.
388         (pedwarn0): New.
389         * c-tree.h (pedwarn_init): Add opt parameter.
390         (pedwarn_c90): Likewise.
391         (pedwarn_c99): Likewise.
392         * c-errors.c (pedwarn_c99): Likewise.
393         (pedwarn_c90): Likewise.
394         * toplev.h (pedwarn): Update declaration.
395         (pedwarn0): Declare.
396         * c-lex.c: All calls to pedwarn changed.
397         * builtins.c: All calls to pedwarn changed.
398         * toplev.c: All calls to pedwarn changed.
399         * c-decl.c: All calls to pedwarn changed.
400         * c-typeck.c: All calls to pedwarn changed.
401         * c-common.c: All calls to pedwarn changed.
402         * c-parser.c: All calls to pedwarn changed.
403         
404 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
405             Karthik Kumar  <karthikkumar@gmail.com>
407         * attribs.c (file scope): Include c-common.h.
408         (decl_attributes): Add support for #pragma GCC optimize and
409         #pragma GCC option.
411         * targhooks.c (default_can_inline_p): New function that is the
412         default for the TARGET_CAN_INLINE_P target hook.
414         * targhooks.h (default_can_inline_p): Add declaration.
416         * tree.c (cl_optimization_node): New static tree for building
417         OPTIMIZATION_NODE tree.
418         (cl_target_option_node): New static tree for building
419         TARGET_OPTION_NODE tree.
420         (cl_option_hash_table): New hash table for hashing
421         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
422         (cl_option_hash_hash): New function to provide the hash value for
423         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
424         (cl_option_hash_eq): New function to provide an equality test for
425         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
426         (tree_code_size): Add support for OPTIMIZATION_NODE and
427         TARGET_OPTION_NODE trees.
428         (tree_code_structure): Add support for OPTIMIZATION_NODE and
429         TARGET_OPTION_NODE trees.
430         (build_optimization_node): Build a tree that has all of the
431         current optimization options.
432         (build_target_option_node): Build a tree that has the target
433         options that might be changed on a per function basis.
435         * tree.h (file scope): Include options.h.
436         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
437         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
438         (TREE_OPTIMIZATION): Ditto.
439         (TREE_TARGET_SPECIFIC): Ditto.
440         (struct tree_function_decl): Add fields for remembering the
441         current optimization options and target specific options.
442         (struct tree_optimization_option): New tree variant that remembers
443         the optimization options.
444         (struct tree_target_option): New tree variant that remembers the
445         target specific flags that might change for compiling a particular
446         function.
447         (union tree_node): Include tree_optimization_option and
448         tree_target_option fields.
449         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
450         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
451         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
452         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
453         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
454         optimization and target options.
455         (optimization_default_node): New macro to refer to global_trees
456         field.
457         (optimization_current_node): Ditto.
458         (optimization_cold_node): Ditto.
459         (optimization_hot_node): Ditto.
460         (target_option_default_node): Ditto.
461         (target_option_current_node): Ditto.
462         (current_option_pragma): Ditto.
463         (current_optimize_pragma): Ditto.
465         * target.h (struct gcc_target): Add valid_option_attribute_p,
466         target_option_save, target_option_restore, target_option_print,
467         target_option_pragma_parse, and can_inline_p hooks.
469         * toplev.h (parse_optimize_options): Add declaration.
470         (fast_math_flags_struct_set_p): Ditto.
472         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
473         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
474         optimize is used.
476         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
477         tree_can_inline_p hook to see if one function can inline another.
478         (cgraph_decide_inlining): Ditto.
479         (cgraph_decide_inlining_incrementally): Ditto.
481         * opts.c (decode_options): Add support for running multiple times
482         to allow functions with different target or optimization options
483         than was specified on the command line.
484         (fast_math_flags_struct_set_p): New function that is similar to
485         fast_math_flags_set_p, except it uses the values in the
486         cl_optimization structure instead of global variables.
488         * optc-gen.awk: Add support for TargetSave to allow a back end to
489         declare new fields that need to be saved when using function
490         specific options.  Include flags.h and target.h in the options.c
491         source.  Add support for Save to indicate which options can be set
492         for individual functions.  Generate cl_optimize_save,
493         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
494         cl_target_option_restore, cl_target_option_print functions to
495         allow functions to use different optimization or target options.
497         * opt-functions.awk (var_type_struct): Return the type used for
498         storing the field in a structure.
500         * opth-gen.awk: Add support for TargetSave to allow a back end to
501         declare new fields that need to be saved when using function
502         specific options.  Add support for Save to indicate which options
503         can be set for individual functions.  Only generate one extern for
504         Mask fields.  Generate cl_optimization and cl_target_option
505         structures to remember optimization and target options.
507         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
508         collecting new tree nodes.
509         (TS_TARGET_OPTION): Ditto.
511         * c-decl.c (merge_decls): Merge function specific target and
512         optimization options.
514         * function.c (invoke_set_current_function_hook): If the function
515         uses different optimization options, change the global variables
516         to reflect this.
518         * coretypes.h (struct cl_optimization): Add forward reference.
519         (struct cl_target_option): Ditto.
521         * c-pragma.c (option_stack): New static vector to remember the
522         current #pragma GCC option stack.
523         (handle_pragma_option): New function to support #pragma GCC option
524         to change target options.
525         (optimize_stack): New static vector to remember the current
526         #pragma GCC optimize stack.
527         (handle_pragma_optimize): New function to support #pragma GCC
528         optimize to change optimization options.
529         (init_pragma): Add support for #pragma GCC optimize and #pragma
530         GCC option.
532         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
533         optimization options.
534         (TARGET_OPTION_NODE): New tree code for remembering certain target
535         options.
537         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
538         TARGET_OPTION_NODE trees.
540         * common.opt (-O): Add Optimization flag.
541         (-Os): Ditto.
542         (-fmath-errno): Ditto.
543         (-falign-functions): Add UInteger flag to make sure flag gets full
544         int in cl_optimization structure.
545         (-falign-jumps): Ditto.
546         (-falign-labels): Ditto.
547         (-falign-loops): Ditto.
548         (-fsched-stalled-insns): Ditto.
549         (-fsched-stalled-insns-dep): Ditto.
551         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
552         definition.
553         (TARGET_OPTION_SAVE): Ditto.
554         (TARGET_OPTION_RESTORE): Ditto.
555         (TARGET_OPTION_PRINT): Ditto.
556         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
557         (TARGET_CAN_INLINE_P): Ditto.
558         (TARGET_INITIALIZER): Add new hooks.
560         * tree-inline.c (tree_can_inline_p): New function to determine
561         whether one function can inline another.  Check if the functions
562         use compatible optimization options, and also call the backend
563         can_inline_p hook.
565         * tree-inline.h (tree_can_inline_p): Add declaration.
567         * c-common.c (c_common_attribute): Add support for option and
568         optimize attributes.
569         (handle_option_attribute): Add support for the option attribute to
570         allow the user to specify different target options for compiling a
571         specific function.
572         (handle_optimize_attribute): Add support for the optimize
573         attribute to allow the user to specify different optimization
574         options for compiling a specific function.
575         (handle_hot_attribute): Turn on -O3 optimization for this one
576         function if it isn't the default optimization level.
577         (handle_cold_attribute): Turn on -Os optimization for this one
578         function if it insn't the default optimization.
579         (const_char_p): New const char * typedef.
580         (optimize_args): New static vector to remember the optimization
581         arguments.
582         (parse_optimize_options): New function to set up the optimization
583         arguments from either the optimize attribute or #pragma GCC
584         optimize.
586         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
587         (builtin_define_std): Ditto.
589         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
590         Add t-i386 Makefile fragment to add i386-c.o and i386.o
591         dependencies.
592         (x86_64-*-*): Ditto.
594         * Makefile.in (TREE_H): Add options.h.
595         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
597         * doc/extend.texi (option attribute): Document new attribute.
598         (optimize attribute): Ditto.
599         (hot attribute): Document hot attribute sets -O3.
600         (cold attribute): Document cold attribute sets -Os.
601         (#pragma GCC option): Document new pragma.
602         (#pragma GCC optimize): Ditto.
604         * doc/options.texi (TargetSave): Document TargetSave syntax.
605         (UInteger): Document UInteger must be used for certain flags.
606         (Save): Document Save option to create target specific options
607         that can be saved/restored on a function specific context.
609         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
610         macro.
611         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
613         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
614         hook.
615         (TARGET_OPTION_SAVE): Ditto.
616         (TARGET_OPTION_RESTORE): Ditto.
617         (TARGET_OPTION_PRINT): Ditto.
618         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
619         (TARGET_CAN_INLINE_P): Ditto.
621         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
622         -mfpmath=sse,387.
623         (-mfpmath=both): Ditto.
625 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
626             Karthik Kumar  <karthikkumar@gmail.com>
628         * config/i386/i386.h (TARGET_ABM): Move switch into
629         ix86_isa_flags.
630         (TARGET_POPCNT): Ditto.
631         (TARGET_SAHF): Ditto.
632         (TARGET_AES): Ditto.
633         (TARGET_PCLMUL): Ditto.
634         (TARGET_CMPXCHG16B): Ditto.
635         (TARGET_RECIP): Move switch into target_flags.
636         (TARGET_FUSED_MADD): Ditto.
637         (ix86_arch_features): Make an unsigned char type.
638         (ix86_tune_features): Ditto.
639         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
640         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
641         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
643         * config/i386/i386.opt (arch): New TargetSave field to define
644         fields that need to be saved for function specific option
645         support.
646         (tune): Ditto.
647         (fpmath): Ditto.
648         (branch_cost): Ditto.
649         (ix86_isa_flags_explicit): Ditto.
650         (tune_defaulted): Ditto.
651         (arch_specified): Ditto.
652         (-m128-long-double): Add Save flag to save option for target
653         specific option support.
654         (-m80387): Ditto.
655         (-maccumulate-outgoing-args): Ditto.
656         (-malign-double): Ditto.
657         (-malign-stringops): Ditto.
658         (-mfancy-math-387): Ditto.
659         (-mhard-float): Ditto.
660         (-mieee-fp): Ditto.
661         (-minline-all-stringops): Ditto.
662         (-minline-stringops-dynamically): Ditto.
663         (-mms-bitfields): Ditto.
664         (-mno-align-stringops): Ditto.
665         (-mno-fancy-math-387): Ditto.
666         (-mno-push-args): Ditto.
667         (-mno-red-zone): Ditto.
668         (-mpush-args): Ditto.
669         (-mred-zone): Ditto.
670         (-mrtd): Ditto.
671         (-msseregparm): Ditto.
672         (-mstack-arg-probe): Ditto.
673         (-m32): Ditto.
674         (-m64): Ditto.
675         (-mmmx): Ditto.
676         (-m3dnow): Ditto.
677         (-m3dnowa): Ditto.
678         (-msse): Ditto.
679         (-msse2): Ditto.
680         (-msse3): Ditto.
681         (-msse4.1): Ditto.
682         (-msse4.2): Ditto.
683         (-msse4): Ditto.
684         (-mno-sse4): Ditto.
685         (-msse4a): Ditto.
686         (-msse5): Ditto.
687         (-mrecip): Move flag into target_flags.
688         (-mcld): Ditto.
689         (-mno-fused-madd): Ditto.
690         (-mfused-madd): Ditto.
691         (-mabm): Move flag into ix86_isa_flags.
692         (-mcx16): Ditto.
693         (-mpopcnt): Ditto.
694         (-msahf): Ditto.
695         (-maes): Ditto.
696         (-mpclmul): Ditto.
698         * config/i386/i386-c.c: New file for #pragma support.
699         (ix86_target_macros_internal): New function to #define or #undef
700         target macros based when the user uses the #pragma GCC option to
701         change target options.
702         (ix86_pragma_option_parse): New function to add #pragma GCC option
703         support.
704         (ix86_target_macros): Move defining the target macros here from
705         TARGET_CPU_CPP_BUILTINS in i386.h.
706         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
707         defined, initialize any subtarget #pragmas.
709         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
710         REGISTER_TARGET_PRAGMAS.
712         * config/i386/t-i386: New file for x86 dependencies.
713         (i386.o): Make dependencies mirror the include files used.
714         (i386-c.o): New file, add dependencies.
716         * config/i386/i386-protos.h (override_options): Add bool
717         argument.
718         (ix86_valid_option_attribute_tree): Add declaration.
719         (ix86_target_macros): Ditto.
720         (ix86_register_macros): Ditto.
722         * config/i386/i386.c (ix86_tune_features): Move initialization of
723         the target masks to initial_ix86_tune_features to allow functions
724         to have different target options.  Make type unsigned char,
725         instead of unsigned int.
726         (initial_ix86_tune_features): New static vector to hold processor
727         masks for the tune variables.
728         (ix86_arch_features): Move initialization of the target masks to
729         initial_ix86_arch_features to allow functions to have different
730         target options.  Make type unsigned char, instead of unsigned
731         int.
732         (initial_ix86_arch_features): New static vector to hold processor
733         masks for the arch variables.
734         (enum ix86_function_specific_strings): New enum to describe the
735         string options used for attribute((option(...))).
736         (ix86_target_string): New function to return a string that
737         describes the target options.
738         (ix86_debug_options): New function to print the current options in
739         the debugger.
740         (ix86_function_specific_save): New function hook to save the
741         function specific global variables in the cl_target_option
742         structure.
743         (ix86_function_specific_restore): New function hook to restore the
744         function specific variables from the cl_target_option structure to
745         the global variables.
746         (ix86_function_specific_print): New function hook to print the
747         target specific options in the cl_target_option structure.
748         (ix86_valid_option_attribute_p): New function hook to validate
749         attribute((option(...))) arguments.
750         (ix86_valid_option_attribute_tree): New function that is common
751         code between attribute((option(...))) and #pragma GCC option
752         support that parses the options and returns a tree holding the
753         options.
754         (ix86_valid_option_attribute_inner_p): New helper function for
755         ix86_valid_option_attribute_tree.
756         (ix86_can_inline_p): New function hook to decide if one function
757         can inline another on a target specific basis.
758         (ix86_set_current_function); New function hook to switch target
759         options if the user used attribute((option(...))) or #pragma GCC
760         option.
761         (ix86_tune_defaulted): Move to static file scope from
762         override_options.
763         (ix86_arch_specified): Ditto.
764         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
765         ix86_isa_flags.
766         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
767         (OPTION_MASK_ISA_ABM_SET): Ditto.
768         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
769         (OPTION_MASK_ISA_CX16_SET): Ditto.
770         (OPTION_MASK_ISA_SAHF_SET): Ditto.
771         (OPTION_MASK_ISA_AES_UNSET): Ditto.
772         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
773         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
774         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
775         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
776         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
777         (struct ptt): Move to static file scope from override_options.
778         (processor_target_table): Ditto.
779         (cpu_names): Ditto.
780         (ix86_handle_option): Add support for options that are now isa
781         options.
782         (override_options): Add support for declaring functions that
783         support different target options than were specified on the
784         command line.  Move struct ptt, processor_target_table, cpu_names,
785         ix86_tune_defaulted, ix86_arch_specified to static file scope.
786         Add bool argument.  Fix up error messages so the appropriate error
787         is given for either command line or attribute.
788         (ix86_previous_fndecl): New static to remember previous function
789         declaration to see if we need to change target options.
790         (ix86_builtins_isa): New array to record the ISA of each builtin
791         function.
792         (def_builtin): Always create the builtin function, even if the
793         current ISA doesn't support it.
794         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
795         tests for those builtins.
796         (ix86_init_builtins): Remove TARGET_MMX test for calling
797         ix86_init_mmx_sse_builtins.
798         (ix86_expand_builtin): If the current ISA doesn't support a given
799         builtin, signal an error.
800         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
801         (TARGET_SET_CURRENT_FUNCTION): Ditto.
802         (TARGET_OPTION_SAVE): Ditto.
803         (TARGET_OPTION_RESTORE): Ditto.
804         (TARGET_OPTION_PRINT): Ditto.
805         (TARGET_CAN_INLINE_P): Ditto.
807 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
809        * c-typeck.c (build_external_ref): Don't call assemble_external.
810        * final.c (output_operand): Call assemble_external.
812 2008-07-21  DJ Delorie  <dj@redhat.com>
814         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
815         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
817 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
819         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
820         original insn and splitter contents into ...
821         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
822         flag_unsafe_math_optimizations.  Add dummy scratch register.
823         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
824         !flag_unsafe_math_optimizations.  Returns number with next
825         highest magnitude if this is still less or equal to the true
826         quotient in magnitude.
828 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
830         * Makefile.in: Replace toplev.h with TOPLEV_H.
831         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
832         * c-lex.c (fe_file_change): Don't set in_system_header.
833         * c-parser.c (c_token): Remove in_system_header.
834         (c_lex_one_token): Don't set in_system_header.
835         (c_parser_set_source_position_from_token): Don't set in_system_header.
836         * diagnostic.c (diagnostic_report_diagnostic): Use location from
837         diagnostic_info.
838         (warning_at): New.
839         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
840         * flags.h (in_system_header): Remove.
841         * function.c (saved_in_system_header): Remove.
842         (push_cfun): Don't set in_system_header.
843         (pop_cfun): Don't set in_system_header.
844         (push_struct_function): Don't set in_system_header.
845         * input.h (expanded_location): Add sysp.
846         (in_system_header_at): New.
847         (in_system_header): New.
848         * toplev.c (in_system_header): Remove.
849         * toplev.h: Include input.h
850         (warning_at): New.
851         * tree-cfg.c (execute_warn_function_return): Call warning_at.
852         * tree-ssa.c (warn_uninit): Call warning_at.
853         (warn_uninitialized_var): Update calls to warn_uninit.
854         (warn_uninitialized_phi): Update calls to warn_uninit.
855         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
856         (expand_location): Initialize xloc.sysp.
857         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
858         (tree_decl_with_vis): Remove in_system_header_flag.
860 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
862         PR target/36822
863         * recog.c (asm_operand_ok): Change the order of the extra
864         memory constraint checks.
866 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
868         PR tree-opt/36879
869         * tree-switch-conversion.c (build_one_array): Call
870         varpool_mark_needed_node and varpool_finalize_decl 
871         instead of assemble_variable.
873 2008-07-19  Jan Hubicka  <jh@suse.cz>
875         * cgraph.c (cgraph_add_new_function): Do early local passes.
876         * tree-nrv.c (gate_pass_return_slot): New gate.
877         (pass_nrv): Add the gate.
878         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
879         functions.
880         (coalesce_ssa_name): Coalesce SSA names.
881         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
882         not optimizing so unused user vars remains visible.
883         * common.opt (flag_tree_ter): Always enable by default.
884         * tree-ssa-ter.c: Include flags.h
885         (is_replaceable_p): Check that locations match; when aliasing is missing
886         be conservative about loads.
887         * tree-optimize.c (gate_init_datastructures): Remove.
888         (pass_init_datastructures): New.
889         * passes.c: Reorder passes so we always go into SSA.
891 2008-07-19  Jan Hubicka  <jh@suse.cz>
893         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
894         * doc/invoke.texi (--combine): Likewise.
895         (-finline-functions-called-once): Update levels when enabled.
896         (-funit-at-a-time): Document new behaviour.
897         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
898         -fno-section-anchors when disabled explicitly.
899         (inline params): They are not ignored now.
900         (precompiled headers): Remove unit-at-a-time as being incompatible.
901         * opts.c (decode_options): Handle unit-at-a-time as alias;
902         imply -fno-section-anchors when toplevel reorder is disabled
903         explicitly.
904         * common.opt (ftoplevel-reorder): Set default value to 2.
905         (funit-at-a-time): Set default value to 1.
906         * config/rs6000/rs6000.c (optimization_options): Set section anchors
907         to 2.
909 2008-07-19  Jan Hubicka  <jh@suse.cz>
911         * builtins.c (expand_builtin_int_roundingfn,
912         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
913         it is not useful.
915 2008-07-19  Richard Guenther  <rguenther@suse.de>
917         PR bootstrap/36864
918         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
919         * tree-ssa-sccvn.c (get_constant_value_id): New function.
920         * tree-ssa-pre.c (get_expr_value_id): For newly created
921         constant value-ids make sure to add the expression to its
922         expression-set.
924 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
926         PR middle-end/36877
927         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
928         return value of the builtin is ignored.
930 2008-07-19  Olivier Hainque  <hainque@adacore.com>
932         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
933         bits, a C conformant malloc implementation has to provide.
934         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
936 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
938         PR target/36780
939         PR target/36827
940         * reload.c (find_reloads_subreg_address): Only reload address if
941         reloaded == 0, not for reloaded != 1.
943         Revert:
944         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
945         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
946         (m32c_legitimate_address_p): Handle "++rii" addresses created by
947         m32c_legitimize_reload_address.
949         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
950         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
951         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
953 2008-07-19  Olivier Hainque  <hainque@adacore.com>
955         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
956         argument, saying whether nested array are to be collapsed
957         into a single array type DIE with multiple subscripts.
958         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
959         issues, centralize the nested array types collapsing control and
960         disable the transformation for Ada.
961         
962 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
964         PR target/36786
965         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
966         x86_64_shift_adj.
967         (x86_64_shift_adj_2): New expander.
968         (x86_64_shift_adj_3): Ditto.
969         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
970         to split TImode operands.
971         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
972         (ix86_split_lshr): Ditto.
974 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
976         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
977         and __CHAR32_TYPE__.
978         * c-typeck.c (digest_init): Support char16_t and char32_t.
979         (set_nonincremental_init_from_string): Idem.
981 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
983         PR middle-end/36859
984         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
985         PREFERRED_STACK_BOUNDARY.
986         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
988 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
990         PR middle-end/36858
991         * function.c (locate_and_pad_parm): Cap boundary earlier.
993 2008-07-17  Julian Brown  <julian@codesourcery.com>
995         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
996         no-op for targets which don't use DLLs.
998 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1000         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1001         that nodes are relevant by examining the node->analyzed flag.
1002         (ipcp_init_stage): Check which nodes are relevant, assert that the
1003         relevant ones are also required.
1004         (ipcp_propagate_stage): Check on the side arrays are properly
1005         allocated.
1006         (ipcp_print_all_jump_functions): Make sure not to touch any node
1007         that is not analyzed or an edge that does not have a corresponding
1008         entry in the on-the-side vectors.
1009         (ipcp_function_scale_print): Likewise.
1010         (ipcp_update_callgraph): Check that the node is relevant.
1011         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1012         an info for every node and edge.
1013         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1014         (ipa_print_all_tree_maps): Likewise and a new variable info.
1015         (ipa_print_all_params_modified): Likewise.
1016         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1018 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1020         PR target/25343
1021         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1023 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1025         PR rtl-optimization/36753
1026         * fwprop.c (use_killed_between): Don't shortcut
1027         single-definition global registers.
1029 2008-07-16  Jan Hubicka  <jh@suse.cz>
1031         * cgraph.h (varpool_empty_needed_queue): Declare.
1032         * cgraphunit.c (output_in_order): Mark all variables as needed;
1033         empty the queue.
1034         * varpool.c (varpool_assemble_node): Update debug queue.
1035         (varpool_assemble_pending_decls): Don't do it here.
1036         (varpool_empty_needed_queue):  New function.
1038 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1040         * recog.c (peephole2_optimize): Fix formatting.
1042 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1044         * c-pch.c (get_ident): Avoid C++ keywords.
1045         * combine-stack-adj.c (single_set_for_csa): Likewise.
1046         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1047         output_asm_insn): Likewise.
1048         * reload.c (push_secondary_reload, find_reusable_reload,
1049         push_reload, combine_reloads, find_reloads,
1050         debug_reload_to_stream): Likewise.
1051         * reload.h (struct reload): Likewise.
1052         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1053         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1054         emit_output_reload_insns): Likewise.
1055         * targhooks.c (default_secondary_reload): Likewise.
1056         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1058 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1060         * recog.c (validate_change_1, validate_change,
1061         validate_unshare_change, validate_replace_rtx_1, struct
1062         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1063         keywords.
1064         * reload.c (push_secondary_reload, secondary_reload_class,
1065         scratch_reload_class, find_valid_class, find_reusable_reload,
1066         push_reload, find_dummy_reload, find_reloads_address_1,
1067         find_reloads_address_part, find_equiv_reg): Likewise.
1068         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1069         choose_reload_regs): Likewise.
1070         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1071         Likewise.
1072         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1073         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1074         * sched-rgn.c (concat_INSN_LIST): Likewise.
1075         * stor-layout.c (mode_for_size, mode_for_size_tree,
1076         smallest_mode_for_size): Likewise.
1078 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1080         * cfg.c (dump_reg_info): Avoid C++ keywords.
1081         * dwarf2asm.c (dw2_force_const_mem,
1082         dw2_asm_output_encoded_addr_rtx): Likewise.
1083         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1084         * expmed.c (expand_shift): Likewise.
1085         * global.c (find_reg): Likewise.
1086         * graph.c (draw_edge): Likewise.
1087         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1088         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1089         widen_clz, widen_bswap, expand_parity, expand_unop,
1090         emit_cmp_and_jump_insn_1): Likewise.
1091         * postreload.c (reload_cse_simplify_operands): Likewise.
1092         * ra.h (add_neighbor): Likewise.
1093         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1094         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1095         record_reg_classes, copy_cost, record_address_regs,
1096         invalid_mode_change_p): Likewise.
1097         * regrename.c (regrename_optimize, scan_rtx_reg,
1098         dump_def_use_chain, find_oldest_value_reg,
1099         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1101 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1103         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1104         MASK_POWERPC64 for power4 in previous commit.
1106 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1108         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1109         instead of bare conversion to cast const-ness away.
1111 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1113         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1114         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1115         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1116         (TARGET_FUNCTION_VALUE): Define.
1118 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1120         * config/rs6000/rs6000.c (processor_target_table): Add
1121         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1123 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1125         PR target/36827
1126         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1127         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1128         m32c_legitimize_reload_address.
1130 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1132        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1133        DECL_IN_SYSTEM_HEADER in sync.
1135 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1137         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1138         * tree-ssa-pre.c (pre_expr_eq): Ditto
1139         (get_constant_for_value_id): Take a type as an argument.
1140         (fully_constant_expression): Pass in type.
1141         (find_or_generate_expression): Short circuit constant case.
1142         (create_expression_by_pieces): Remove special casing of
1143         pointer_plus.
1144         (do_regular_insertion): Short circuit constant case.
1145         (do_partial_partial_insertion): Ditto.
1147 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1149         PR target/36782
1150         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1152 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1153         
1154         * config/xtensa/libgcc-xtensa.ver: New file.
1155         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1156         
1157 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1159         * df-problems.c (df_set_note): Avoid C++ keywords.
1160         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1161         * dse.c (record_store, remove_useless_values): Likewise.
1162         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1163         gen_reg_rtx_offset, operand_subword, change_address_1,
1164         change_address, adjust_address_1, offset_address,
1165         widen_memory_access, emit_copy_of_insn_after): Likewise.
1166         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1167         * fwprop.c (should_replace_address, propagate_rtx_1,
1168         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1169         Likewise.
1170         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1171         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1172         * lcm.c (compute_insert_delete, pre_edge_lcm,
1173         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1174         * lower-subreg.c (resolve_reg_notes): Likewise.
1175         * mode-switching.c (optimize_mode_switching): Likewise.
1177 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1179         * bt-load.c (add_btr_def, migrate_btr_def,
1180         branch_target_load_optimize): Avoid C++ keywords.
1181         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1182         Likewise.
1183         * combine.c (subst, simplify_set, make_extraction,
1184         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1185         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1186         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1188 2008-07-15  Richard Guenther  <rguenther@suse.de>
1190         PR middle-end/36369
1191         * c-common.c (strict_aliasing_warning): Do not warn for
1192         TYPE_REF_CAN_ALIAS_ALL pointers.
1193         (c_common_get_alias_set): may_alias types are not special.
1194         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1195         attribute and set can_ref_all accordingly.
1196         (build_reference_type_for_mode): Likewise.
1197         * doc/extend.texi (may_alias): Clarify.
1199 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1201         PR target/36780
1202         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1203         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1205 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1207         PR target/31568
1208         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1209         gcc_assert, instead call output_operand_lossage.
1211 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1213         * builtins.c (std_canonical_va_list): Treat structure based
1214         va_list types.
1216 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1218         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1220 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1222         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1223         is set.
1225 2008-07-14  Jan Hubicka  <jh@suse.cz>
1227         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1228         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1229         fix predicates and constraints.
1230         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1231         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1233 2008-07-14  Doug Kwan  <dougkwan@google.com>
1235         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1236         additional option file arm/eabi.opt.
1237         * config/arm/eabi.h (File): New configuration file for EABI targets.
1238         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1239         SUBSUBTARGET_EXTRA_SPECS.
1240         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1241         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1242         from STARTFILE_SPEC so that it can be referenced in an override.
1243         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1244         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1245         can be referenced in an override.
1246         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1247         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1248         so that it can be referenced in an override.
1249         (LINK_SPEC): Use BPABI_LINK_SPEC.
1250         * config/arm/eabi.opt (File): New.
1252 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1254         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1255         (FIXED_VALUE_H): New variable.
1256         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1257         input.h, fixed-value.h.
1258         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1259         (BASIC_BLOCK_H): Use $(BITMAP_H).
1260         (FUNCTION_H): Add varray.h.
1261         (IPA_REFERENCE_H): Use $(BITMAP_H).
1262         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1263         (DF_H): Use $(BITMAP_H).
1264         (GGC_H): Add statistics.h.
1265         (INSN_ADDR_H): New.
1266         (INSN_ATTR_H): Use it.
1267         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1268         (INPUT_H): New.
1269         (SYMTAB_H): Add $(OBSTACK_H).
1270         (CPP_INTERNAL_H): New.
1271         (TREE_DUMP_H): Add tree-pass.h.
1272         (TREE_FLOW_H): Use $(BITMAP_H)
1273         (PRETTY_PRINT_H): Use $(INPUT_H).
1274         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1275         (GSTAB_H): New.
1276         (BITMAP_H): New.
1277         (many object files): Fix lots of header dependencies throughout.
1279 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1281         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1282         New macros.
1283         (s-gtyp-input): Use them to write tmp-gi.list.
1284         (echo_to_gi.list): Remove.
1286 2008-07-14  Richard Guenther  <rguenther@suse.de>
1288         * tree-ssa-sccvn.c (pre_info): Remove.
1289         (switch_to_PRE_table): Likewise.
1290         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1291         (set_hashtable_value_ids): Do not create value-ids for the
1292         optimistic tables.
1293         (run_scc_vn): Remove double test.  Remove bogus special-case
1294         in value-number printing.
1295         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1296         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1297         SSA_NAME_VALUE.
1298         * tree-flow-inline.h (get_value_handle): Remove.
1299         * tree-flow.h (get_value_handle): Remove.
1301 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1303         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1304         in which we generate arithmetics is not a subrange.
1306 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1308         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1310 2008-07-14  Richard Guenther  <rguenther@suse.de>
1312         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1314 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1316         PR target/36745
1317         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1318         reload for symbol refs moved to r0 with -fPIC.
1319         (legitimize_pic_address): Use the target register as temporary
1320         reg if possible.
1321         (emit_symbolic_move): Adjust comment.
1322         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1323         New expanders.
1325 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1327         * c-common.h (C_CPP_HASHNODE): New macro.
1328         * coretypes.h (struct cpp_token): Forward declare.
1329         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1330         the context-sensitive keyword method.
1331         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1332         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1333         expand_bool_pixel): New.
1334         (altivec_categorize_keyword): New function.
1335         (init_vector_keywords): New function.
1336         (rs6000_macro_to_expand): Likewise.
1337         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1338         compiling an ISO C dialect.
1340 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1342         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1343         (create_expression_by_pieces): Fix typo.
1344         (do_regular_insertion): Use debug counter here too.
1346 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1348         PR target/35492.
1349         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1350         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1351         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1352         implement Kp matching power-of-two.
1353         (CONSTRAINT_LEN): Define to match.
1354         * config/cris/cris.md: Replace all use of constraint K with Kc.
1355         ("*btst*): Use Kp for operand 0 of last alternative.
1357 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1359         PR testsuite/36440
1360         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1361         and quad formats.
1363 2008-07-13  Jan Hubicka  <jh@suse.cz>
1365         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1366         to be mangled too.
1368 2008-07-13  Richard Guenther  <rguenther@suse.de>
1370         PR middle-end/36811
1371         * langhooks.c (lhd_print_error_function): Deal with recursive
1372         BLOCK trees.
1374 2008-07-12  Jan Hubicka  <jh@suse.cz>
1376         * cgraph.c (assembler_name_hash): New static var.
1377         (hash_node_by_assembler_name, eq_assembler_name): New.
1378         (cgraph_node_for_asm): Use hashtable.
1379         (cgraph_remove_node): Maintain hashtable.
1380         (change_decl_assembler_name): Sanity check that names are not changing
1381         after aliasing was processed.
1382         * cgraph.h (varpoon_node): Add next GGC marker.
1383         * tree.c (decl_assembler_name_equal): Constify.
1384         (decl_assembler_name_hash): New.
1385         * tree.h (decl_assembler_name_equal): Constify.
1386         (decl_assembler_name_hash): Update.
1388 2008-07-12  David Daney  <ddaney@avtrex.com>
1390         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1391         sb1 and r5000 cpus.
1393 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1395         * doc/md.texi: Document the MIPS "v" constraint.
1396         * config/mips/mips.h (reg_class): Revert last change.
1397         (REG_CLASS_NAMES): Likewise.
1398         (REG_CLASS_CONTENTS): Likewise.
1399         * config/mips/mips.c (mips_regno_to_class): Likewise.
1400         * config/mips/constraints.md (v): Likewise, but add documentation.
1401         Add a comment to say that this constraint should not be used in
1402         gcc code.
1404 2008-07-11  DJ Delorie  <dj@redhat.com>
1406         * config/h8300/h8300.md (length): Fix branch offset limit.
1408 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
1410         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1411         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1412         (avr_hard_regno_scratch_ok): New function.
1413         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1414         * config/avr/avr.md (all peepholes that request a scratch register):
1415         Remove avr_peep2_scratch_safe use.
1417 2008-07-11  Tom Tromey  <tromey@redhat.com>
1418             Ian Lance Taylor  <iant@google.com>
1420         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1421         (struct c_common_resword): Define.
1422         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1423         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1424         (c_common_reswords, num_c_common_reswords): Declare.
1425         * c-common.c (c_common_reswords): New global const array.
1426         (num_c_common_reswords): New const int.
1427         * c-parser.c (struct resword, reswords): Don't define.
1428         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1429         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1430         than reswords.  If warning about C++ keywords, give them a special
1431         RID code.
1432         (c_lex_one_token): Warn about C++ keywords.  Call
1433         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1434         (c_parser_external_declaration): Look for RID_xxx rather than
1435         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1436         (c_parser_statement_after_labels): Likewise.
1437         (c_parser_objc_class_instance_variables): Likewise.
1438         (c_parser_objc_class_declaration): Likewise.
1439         (c_parser_objc_try_catch_statement): Likewise.
1440         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1441         (declspecs_add_type): Likewise.
1443 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1445         * ggc-page.c (alloc_page):
1446         Substituting xmalloc, xcalloc with
1447         XNEWVEC and XCNEWVAR macros which add the
1448         needed casts.
1450 2008-07-11  Richard Guenther  <rguenther@suse.de>
1452         PR tree-optimization/36765
1453         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1454         aliases from HEAP vars to SMTs.
1456 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1458         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1459         * configure.ac (loose_warn): Move -Wc++-compat from here...
1460         (strict_warn): ...to here.
1461         * configure: Regenerate.
1463 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
1465         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1466         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1467         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1468         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1469         excluding more specific h8300-*-* and sh-*-* targets.
1471 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
1473         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1474         (eliminate): Ditto.
1475         (execute_pre): Call loop_optimizer_finalize in early exit.
1477 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
1479         PR middle-end/36790
1480         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1481         uids in the bitmap, not just VAR_DECL uids.
1483         PR rtl-optimization/36419
1484         * combine-stack-adj.c (adjust_frame_related_expr): New function.
1485         (combine_stack_adjustments_for_block): Call it if needed.  Delete
1486         correct insn.
1487         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1488         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1489         prologue sp adjustment.
1491 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
1493         PR other/28322
1494         * opts.c (print_ignored_options): Report postponed diagnostics for
1495         unknown -Wno-* options as warnings, not errors.
1496         (postpone_unknown_option_error): Renamed to...
1497         (postpone_unknown_option_warning): ... this.
1499 2008-07-09  Doug Kwan  <dougkwan@google.com>
1501         Revert:
1502         2008-07-08  Doug Kwan  <dougkwan@google.com>
1504         * config/arm/arm.opt (mandroid): New option.
1505         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1506         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1507         (CC1_SPEC): Same.
1508         (CC1PLUS_SPEC): Same.
1509         (LIB_SPEC): Same.
1510         (STARTFILE_SPEC): Same.
1511         (ENDFILE_SPEC): Same.
1512         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1513         used.
1515 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
1517         PR target/35802
1518         * config/mips/mips.h (reg_class): Remove V1_REG.
1519         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1520         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1521         instead of V1_REGS.
1522         (mips_get_tp): New function.
1523         (mips_legitimize_tls_address): Use it.
1524         * config/mips/constraints.md (v): Delete.
1525         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1526         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1527         After reload, split into a move and ...
1528         (*tls_get_tp_<mode>_split): ...this new instruction.
1530 2008-07-09  David Daney  <ddaney@avtrex.com>
1532         * config/mips/driver-native.c: Include coretypes.h and tm.h.
1534 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
1536         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1537         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1538         Add c argument.
1539         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1540         htab_delete should be called.  Don't free c.
1541         (lookup_tmp_var): Create temp_htab lazily.
1542         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1543         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1544         callers.
1545         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1546         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1547         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
1548         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1549         * tree-sra.c (generate_element_init): Likewise.
1550         * tree-mudflap.c (execute_mudflap_function_ops,
1551         execute_mudflap_function_decls): Likewise.
1552         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1553         * tree-gimple.h (struct gimplify_ctx): New type.
1554         (push_gimplify_context): Adjust prototype.
1556 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
1558         * tree-ssa-pre.c (phi_translate_1): Update placement of
1559         add_to_value calls.
1561 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
1563         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1564         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1565         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1566         * targhooks.c (default_hard_regno_scratch_ok): New function.
1567         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1568         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1569         * recog.c:  Include "target.h".
1570         (peep2_find_free_register): Add check for global regs. Add target
1571         specific check.
1572         * Makefile.in (recog.o): Depend on target.h.
1574 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1576         * config/sh/sh.c (sh_canonical_va_list_type): New.
1577         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1579 2008-07-09  Raksit Ashok <raksit@google.com>
1581         * doc/invoke.texi (Option Summary): Mention new option
1582         -Wdisallowed-function-list=...
1583         (Warning Options): Document -Wdisallowed-function-list=...
1584         * common.opt (Wdisallowed-function-list=): New flag.
1585         * flags.h (warn_disallowed_functions): External definition of new
1586         boolean warning flag.
1587         (warn_if_disallowed_function_p): Declare new function.
1588         * opts.c (warning_disallowed_functions): New static variable.
1589         (warn_disallowed_functions): New boolean warning flag.
1590         (warn_if_disallowed_function_p): New function.
1591         (add_comma_separated_to_vector): Rename
1592         add_instrument_functions_exclude_list to this.
1593         (common_handle_option): Handle new option. Rename calls to
1594         add_instrument_functions_exclude_list into calls to
1595         add_comma_separated_to_vector.
1596         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1597         based on flag warn_disallowed_functions.
1599 2008-07-09  Christian Bruel  <christian.bruel@st.com>
1601         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1602          instead of get_attr_length.
1604 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1606         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1607         keywords.
1608         * genemit.c (gen_insn): Likewise.
1609         * gengtype.c (note_def_vec): Likewise.
1610         * gengtype.h (note_def_vec): Likewise.
1611         * genoutput.c (struct data, output_insn_data, process_template,
1612         gen_expand, gen_split, note_constraint): Likewise.
1613         * genrecog.c (new_decision, add_to_sequence, factor_tests,
1614         make_insn_sequence): Likewise.
1615         * gensupport.c (record_insn_name): Likewise.
1617 2008-07-08  Doug Kwan  <dougkwan@google.com>
1619         * config/arm/arm.opt (mandroid): New option.
1620         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1621         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1622         (CC1_SPEC): Same.
1623         (CC1PLUS_SPEC): Same.
1624         (LIB_SPEC): Same.
1625         (STARTFILE_SPEC): Same.
1626         (ENDFILE_SPEC): Same.
1627         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1628         used.
1630 2008-07-08  Raksit Ashok  <raksit@google.com>
1632         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1633         (set_storage_via_setmem): Fix expected_align parameter.
1634         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1635         missing from the list.
1636         * doc/md.texi (movmem): Explicitly state that expected alignment is
1637         to be expressed in bytes.
1638         (setmem): Explicitly state that expected alignment is to be expressed
1639         in bytes.
1641 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
1643         * reload.c (find_reloads_subreg_address): Do not require validity
1644         of address in original mode before reloading address.
1646 2008-07-07  Tianwei Sheng  <tianweis@google.com>
1648         * df-core.c (df_remove_problem): Adjust the access to avoid out of
1649         bounds array access.
1651 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
1653         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1655 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
1656         
1657         Fix PR tree-optimization/23455
1658         Fix PR tree-optimization/35286
1659         Fix PR tree-optimization/35287
1660         * Makefile.in (OBJS-common): Remove tree-vn.o.
1661         (tree-vn.o): Remove.
1662         * dbgcnt.def: Add treepre_insert debug counter.
1663         * gcc/tree-flow.h (add_to_value): Updated for other changes.
1664         (debug_value_expressions): Ditto.
1665         (print_value_expressions): Ditto.
1666         * tree-pretty-print.c (dump_generic_node): Updated for
1667         VALUE_HANDLE removal.
1668         * tree-ssa-dom.c (record_equality): Ditto.
1669         (cprop_operand): Ditto.
1670         (lookup_avail_expr): Ditto.
1671         * tree-ssa-threadedge.c
1672         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1673         (simplify_control_stmt_condition): Ditto.
1674         * tree.c (tree_code_size): Ditto.
1675         (tree_node_structure): Ditto.
1676         (iterative_hash_expr): Ditto.
1677         * tree.def: Ditto.
1678         * tree.h (VALUE_HANDLE_ID): Ditto.
1679         (VALUE_HANDLE_EXPR_SET): Ditto.
1680         (struct tree_value_handle): Ditto.
1681         (union tree_node): Ditto.
1682         * treestruct.def: Ditto.
1683         * tree-vn.c: Removed.
1684         * tree-ssa-pre.c: Rewritten entirely.
1685         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1686         (constant_value_ids): Ditto.
1687         (vn_nary_op_t): Moved to header.
1688         (vn_phi_t): Ditto.
1689         (vn_reference_op_t): Ditto
1690         (vn_reference_t): Ditto.
1691         (next_value_id): New variable.
1692         (VN_INFO): Add an assert.
1693         (vn_constant_eq): New function.
1694         (vn_constant_hash): Ditto.
1695         (get_or_alloc_constant_value_id): Ditto.
1696         (value_id_constant_p): Ditto.
1697         (vn_reference_compute_hash): De-staticify.
1698         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1699         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
1700         (valueize_refs): Update opcode if it changes from ssa name to constant.
1701         (vn_reference_lookup_1): Add new argument.
1702         (vn_reference_lookup):  Ditto.
1703         (vn_reference_lookup_pieces): New function.
1704         (vn_reference_insert): Add return type. Modify to deal with value ids.
1705         (vn_reference_insert_pieces):  New function.
1706         (vn_nary_op_compute_hash): De-staticify.
1707         (vn_nary_op_eq): Ditto.
1708         (vn_nary_op_lookup_pieces): New function.
1709         (vn_nary_op_lookup): Add new argument.  
1710         (vn_nary_op_insert_pieces): New function.
1711         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1712         (vn_phi_insert): Ditto.
1713         (visit_unary_op): Update for callee changes.
1714         (visit_binary_op): Ditto.
1715         (visit_reference_op_load): Ditto.
1716         (visit_reference_op_store): Ditto.
1717         (init_scc_vn): Init next_value_id, constant_to_value_id and
1718         constant_value_ids. 
1719         (free_scc_vn): Free them.
1720         (set_hashtable_value_ids): New function.
1721         (run_scc_vn): Use it.
1722         (get_max_value_id): New function.
1723         (get_next_value_id): Ditto.
1724         (expressions_equal_p): Moved from tree-vn.c
1725         (sort_vuses): Ditto.
1726         (sort_vuses_heap): Ditto.
1727         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1728         above).
1729         * tree.c (iterative_hash_hashval_t): Made non-static
1730         * tree.h (iterative_hash_hashval_t): Declare it.
1731         
1732 2008-07-08  Martin Jambor  <mjambor@suse.cz>
1734         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1735         instead of ipa_create_node_params.
1736         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1737         ipa_check_create_edge_args, free them with
1738         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1740         * ipa-prop.c: Include flags.h and tree-inline.h.
1741         (ipa_node_params_vector): New variable.
1742         (ipa_edge_args_vector): New variable.
1743         (edge_removal_hook_holder): New variable.
1744         (node_removal_hook_holder): New variable.
1745         (edge_duplication_hook_holder): New variable.
1746         (node_duplication_hook_holder): New variable.
1747         (ipa_detect_param_modifications): Check for presence of modified flags.
1748         (ipa_compute_jump_functions): Check for presence of jump functions.
1749         (ipa_free_edge_args_substructures): New function.
1750         (ipa_create_node_params): Removed.
1751         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1752         (ipa_free_node_params_substructures): New function.
1753         (ipa_free_all_node_params): Changed to deallocate the on-the-side
1754         vector.
1755         (ipa_edge_removal_hook): New function.
1756         (ipa_node_removal_hook): New function.
1757         (duplicate_array): New function.
1758         (ipa_edge_duplication_hook): New function.
1759         (ipa_node_duplication_hook): New function.
1760         (ipa_register_cgraph_hooks): New function.
1761         (ipa_unregister_cgraph_hooks): New function.
1762         (free_all_ipa_structures_after_ipa_cp): New function.
1763         
1764         * ipa-prop.h: Include vec.h.
1765         (ipa_node_params_t): New typedef with vector types for it.
1766         (ipa_edge_args_t):  New typedef with vector types for it.
1767         (IPA_NODE_REF): Changed to access an on-the-side vector.
1768         (IPA_EDGE_REF): Changed to access an on-the-side vector.
1769         (ipa_check_create_node_params): New function.
1770         (ipa_check_create_edge_args): New function.
1771         
1772         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
1773         all users.
1774         
1775 2008-07-07  Tom Tromey  <tromey@redhat.com>
1777         * configure, config.in: Rebuilt.
1778         * configure.ac: Don't check for scandir or alphasort.
1780 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1782         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1783         types immediately after creating them.
1785 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1787         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1789 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
1791         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1792         dump_constraint_graph.
1793         (dump_constraint_edge): New function.
1794         (dump_constraint_graph): New function.
1795         (debug_constraint_graph): New function.
1796         (dump_constraint): Removed useless comparison.
1797         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1798         (dump_constraint_graph): Declare.
1799         (debug_constraint_graph): Declare.
1800         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1802 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
1804         * config/i386/i386.c (is_va_list_char_pointer): New.
1805         (ix86_va_start): Replace compare with ms_va_list_type_node
1806         by is_va_list_char_pointer.
1807         (ix86_gimplify_va_arg): Likewise.
1809 2008-07-07  Martin Jambor  <mjambor@suse.cz>
1811         * cgraph.c (cgraph_edge_max_uid): New variable.
1812         (struct cgraph_edge_hook_list): New type.
1813         (struct cgraph_node_hook_list): New type.
1814         (struct cgraph_2edge_hook_list): New type.
1815         (struct cgraph_2node_hook_list): New type.
1816         (first_cgraph_edge_removal_hook): New variable.
1817         (first_cgraph_node_removal_hook): New variable.
1818         (first_cgraph_edge_duplicated_hook): New variable.
1819         (first_cgraph_node_duplicated_hook): New variable.
1820         (cgraph_add_edge_removal_hook): New function.
1821         (cgraph_remove_edge_removal_hook): New function.
1822         (cgraph_call_edge_removal_hooks):  New function.
1823         (cgraph_add_node_removal_hook):  New function.
1824         (cgraph_remove_node_removal_hook):  New function.
1825         (cgraph_call_node_removal_hooks):  New function.
1826         (cgraph_add_edge_duplication_hook):  New function.
1827         (cgraph_remove_edge_duplication_hook):  New function.
1828         (cgraph_call_edge_duplication_hooks):  New function.
1829         (cgraph_add_node_duplication_hook):  New function.
1830         (cgraph_remove_node_duplication_hook):  New function.
1831         (cgraph_call_node_duplication_hooks):  New function.
1832         (cgraph_create_edge): Assign to edge uid.
1833         (cgraph_remove_edge): Call edge removal hooks.
1834         (cgraph_node_remove_callees): Call edge removal hooks.
1835         (cgraph_node_remove_callers): Call edge removal hooks.
1836         (cgraph_remove_node): Call node removal hooks.
1837         (cgraph_clone_edge): Call edge duplication hooks.
1838         (cgraph_clone_node): Call node duplication hooks.
1840         * cgraph.h (cgraph_edge): New field uid.
1841         (cgraph_edge_hook): New type.
1842         (cgraph_node_hook): New type.
1843         (cgraph_2edge_hook): New type.
1844         (cgraph_2node_hook): New type.
1846 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
1848         * config.in: Regenerate.
1850 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
1852         * gcc.c (print_sysroot): New.
1853         (option_map, display_help, process_command): Handle the
1854         -print-sysroot option.
1855         (main): Print the sysroot if requested.
1856         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
1857         
1858 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1860         PR target/34780
1861         * unwind-pe.h (size_of_encoded_value): add attribute unused.
1863 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
1865         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1866         (assign_parm_setup_block_p): Also check mode of entry_parm.
1868 2008-07-07  Richard Guenther  <rguenther@suse.de>
1870         * tree-ssa-structalias.h (set_used_smts): Remove.
1871         * tree-ssa-structalias.c (used_smts): Likewise.
1872         (set_used_smts): Likewise.
1873         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1874         call to set_used_smts.
1876 2008-07-07  Richard Guenther  <rguenther@suse.de>
1878         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1879         (new_var_info): Set it to false.
1880         (solution_set_add): Correctly handle pointers outside a var and
1881         inside a field.
1882         (type_safe): Treat variables with is_full_var properly.
1883         (do_sd_constraint): Likewise.
1884         (do_ds_constraint): Likewise.
1885         (process_constraint): Remove zeroing offset for !use_field_sensitive.
1886         (get_constraint_for_ptr_offset): New function.
1887         (get_constraint_for_component_ref): For addresses at least include
1888         the last field of the variable.  Handle is_full_vars properly.
1889         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1890         (handle_ptr_arith): Remove.
1891         (find_func_aliases): Simplify assignment handling.
1892         (create_function_info_for): For parameter and result varinfos set
1893         is_full_var flag.
1894         (create_variable_info_for): Set is_full_var flag whenever we
1895         just created a single varinfo for a decl.
1896         (init_alias_vars): Initialize use_field_sensitive from
1897         max-fields-for-field-sensitive parameter.
1899 2008-07-07  Richard Guenther  <rguenther@suse.de>
1901         PR tree-optimization/36713
1902         * tree-flow-inline.h (is_call_used): New function.
1903         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1904         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1905         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1907 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1909         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1910         
1911 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
1913         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1915 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1916             Nathan Sidwell  <nathan@codesourcery.com>
1918         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
1919         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1920         tmake_file.
1921         * config/m68k/t-linux: New.
1922         * doc/install.texi: Document m68k-*-linux is now multilibbed by
1923         default.
1925 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1927         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1928         * config/m68k/m68k-devices.def: Remove multilibs that only differ
1929         by MAC/EMAC.
1931 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1933         * gcc.c (execute): Fix -Wc++-compat warning.
1935 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
1937         PR target/36720
1938         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1939         constant for little endian.
1941 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
1943         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1944         mips_base_mips16 instead of TARGET_MIPS16.
1945         (mips_base_mips16): Declare.
1946         * config/mips/mips.c (mips_base_mips16): Make global.
1947         (was_mips16_p): Remove GTY marker.
1948         (was_mips16_pch_p): New variable.
1949         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1950         (mips_override_options): Force to non-MIPS16 mode initially.
1951         Do not complain about MIPS16 PIC incompatibilities here.
1952         Only allow -mgpopt if -mexplicit-relocs is in force for
1953         non-MIPS16 code.
1955 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
1957         * configure.ac: Check for caddr_t, define to char * if not defined.
1958         * configure: Regenerate.
1959         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1960         (mmap_gt_pch_use_address): Likewise.
1961         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1963 2008-07-06  Richard Guenther  <rguenther@suse.de>
1965         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1966         (new_var_info): Deal with it.
1967         (solution_set_add): Likewise.
1968         (bitpos_of_field): Make signed, fix.
1969         (struct fieldoff): Remove type and decl fields.  Make size field
1970         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
1971         flags.
1972         (fieldoff_compare): Deal with it.
1973         (push_fields_onto_fieldstack): Remove has_union argument, glob
1974         adjacent non-pointer fields together.
1975         (create_function_info_for): Do not set has_union.
1976         (create_variable_info_for): Simplify.
1978 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
1980         * config.gcc (extra_headers): Add cross-stdarg.h for target
1981         x86_64-*-* and i?86-*-*.
1982         * config/i386/cross-stdarg.h: New.
1983         * builtins.c (std_fn_abi_va_list): New.
1984         (std_canonical_va_list_type): New.
1985         (stabilize_va_list): Replace va_list_type_node use by
1986         mtarget.canonical_va_list_type.
1987         (gimplify_va_arg_expr): Likewise.
1988         (expand_builtin_va_copy): Replace va_list_type_node use by
1989         mtarget.fn_abi_va_list.
1990         * tree-sra.c (is_va_list_type): New helper.
1991         (decl_can_be_decomposed_p): Replace
1992         va_list_type_node use by is_va_list_type.
1993         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1994         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1995         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1996         * config/i386/i386-protos.h (ix86_get_valist_type): New.
1997         (ix86_enum_va_list): New.
1998         * config/i386/i386.c (sysv_va_list_type_node): New.
1999         (ms_va_list_type_node): New.
2000         (ix86_function_type_abi): Remove sorry.
2001         (ix86_build_builtin_va_list_abi): New.
2002         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2003         for 64-bit targets.
2004         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2005         (ix86_init_builtins_va_builtins_abi): New.
2006         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2007         for 64-bit targets.
2008         (ix86_handle_abi_attribute): New.
2009         (attribute_spec): Add sysv_abi and ms_abi.
2010         (ix86_fn_abi_va_list): New.
2011         (ix86_canonical_va_list_type): New.
2012         (ix86_enum_va_list): New.
2013         (TARGET_FN_ABI_VA_LIST): New.
2014         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2015         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2016         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2017         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2018         (TARGET_ENUM_VA_LIST): New.
2019         * expr.h (std_fn_abi_va_list): New.
2020         (std_canonical_va_list_type): New.
2021         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2022         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2023         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2024         TARGET_CANONICAL_VA_LIST_TYPE.
2025         * target.h (struct gcc_target): Add fn_abi_va_list hook
2026         and canonical_va_list_type hook.
2028 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2030         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2031         integral and pointer types.
2033 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2035         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2036         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2038 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2040         PR target/36684
2041         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2043 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2045         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2046         build_gimple_modify_stmt.
2047         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2048         gimple operand.  Use fold_build* instead of build*.
2050 2008-07-04  Richard Guenther  <rguenther@suse.de>
2052         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2053         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2054         properly to compute the reachability set if we do field-sensitive PTA.
2055         * invoke.texi (max-fields-for-field-sensitive): Document default.
2056         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2057         100 for optimize >= 2.
2059 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2061         * ggc-zone.c (lookup_page_table_if_allocated,
2062         set_page_table_entry, zone_find_object_size, alloc_small_page,
2063         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2064         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2065         -Wc++-compat and/or -Wcast-qual warnings.
2067 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2069         PR target/36634
2070         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2071         pic_offset_table_rtx to be marked as used here.
2072         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2073         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2074         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2075         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2076         !TARGET_SECURE_PLT.
2078 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2080         * alloc-pool.c (hash_descriptor, eq_descriptor,
2081         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2082         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2083         Likewise.
2084         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2085         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2086         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2087         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2088         Likewise.
2090 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2092         * tree-flow.h (loop_only_exit_p): Declare.
2093         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2094         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2095         the number of iterations if it is constant.  Otherwise, if this is the
2096         only possible exit of the loop, use the conservative estimate on the
2097         number of iterations of the entire loop if available.
2099 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2101         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2102         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2103         Add synchronization functions.
2104         * config/sync.c: New file.
2105         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2106         (LIBGCC_SYNC_CFLAGS): Likewise.
2108 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2110         PR target/36710
2111         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2112         (*pushtf_sse): New insn pattern.
2113         (pushtf splitters): New splitters.
2115 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2117         PR middle-end/35736
2118         * predict.c (build_predict_expr): Use void_type_node for the tree
2119         type, instead of NULL_TREE.
2121 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2123         * config/i386/i386.c (contains_aligned_value_p): Return true
2124         for TCmode.
2125         (ix86_data_alignment): Align TCmode to 128bits.
2126         (ix86_local_alignment): Likewise.
2128 2008-07-03  Andrew Haley  <aph@redhat.com>
2130         PR bootstrap/33304
2131         * vec.h (VEC_TA): New.
2132         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2133         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2134         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2135         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2136         (C_COMMON_FIXED_TYPES): Remove first arg.
2137         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2138         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2139         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2140         not to use empty macro arguments.
2142 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2144         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2145         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2146         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2147         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2148         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2149         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2150         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2151         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2152         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2153         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2154         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2155         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2156         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2157         config/rs6000/e500crtres64gpr.asm,
2158         config/rs6000/e500crtres64gprctr.asm,
2159         config/rs6000/e500crtrest32gpr.asm,
2160         config/rs6000/e500crtrest64gpr.asm,
2161         config/rs6000/e500crtresx32gpr.asm,
2162         config/rs6000/e500crtresx64gpr.asm,
2163         config/rs6000/e500crtsav32gpr.asm,
2164         config/rs6000/e500crtsav64gpr.asm,
2165         config/rs6000/e500crtsav64gprctr.asm,
2166         config/rs6000/e500crtsavg32gpr.asm,
2167         config/rs6000/e500crtsavg64gpr.asm,
2168         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2169         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2170         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2171         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2172         config/sparc/sol2-cn.asm: Remove .file directives.
2174 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2176         * resource.c (mark_referenced_resources): Look inside
2177         UNSPEC_VOLATILEs and ASM_INPUTs.
2179 2008-07-02  Ian Lance Taylor  <iant@google.com>
2181         * rtlanal.c (add_reg_note): New function.
2182         * rtl.h (add_reg_note): Declare.
2183         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2184         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2185         * builtins.c (expand_builtin_longjmp): Likewise.
2186         (expand_builtin_nonlocal_goto): Likewise.
2187         * calls.c (emit_call_1, expand_call): Likewise.
2188         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2189         * cfglayout.c (fixup_reorder_chain): Likewise.
2190         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2191         (commit_one_edge_insertion): Likewise.
2192         * combine.c (move_deaths, distribute_notes): Likewise.
2193         * df-problems.c (df_set_note): Likewise.
2194         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2195         (set_unique_reg_note): Likewise.
2196         (emit_copy_of_insn_after): Likewise.
2197         * expr.c (expand_expr_real): Likewise.
2198         * gcse.c (add_label_notes): Likewise.
2199         * haifa-sched.c (create_check_block_twin): Likewise.
2200         * jump.c (mark_jump_label_1): Likewise.
2201         * loop-doloop.c (add_test, doloop_modify): Likewise.
2202         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2203         * lower-subreg.c (move_eh_region_note): Likewise.
2204         * optabs.c (emit_libcall_block): Likewise.
2205         * predict.c (predict_insn): Likewise.
2206         (combine_predictions_for_insn): Likewise.
2207         * recog.c (peephole2_optimize): Likewise.
2208         * regmove.c (try_auto_increment): Likewise.
2209         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2210         * reload.c (find_reloads): Likewise.
2211         * reload1.c (fixup_eh_region_note): Likewise.
2212         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2213         * reorg.c (delete_prior_computation): Likewise.
2214         (delete_computation, dbr_schedule): Likewise.
2215         * config/pa/pa.c (legitimize_pic_address): Likewise.
2216         * config/sh/sh.c (sh_reorg): Likewise.
2218 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2220         PR target/36669
2221         * config/libgcc-glibc.ver: Add %exclude.
2222         * config/m32r/libgcc-glibc.ver: Likwise.
2223         * config/s390/libgcc-glibc.ver: Likwise.
2224         * config/sh/libgcc-glibc.ver: Likwise.
2225         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2227         * config/i386/libgcc-glibc.ver: New.
2229         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2231 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2233         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2234         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2235         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2236         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2237         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2238         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2239         i[34567]86-*-linux*, x86_64-*-linux*.
2241         * libgcc-std.ver: Add empty GCC_4.4.0.
2243         * mkmap-symver.awk: Support multiple versions per symbol.
2245         * config/i386/i386.c (ix86_init_builtins): Always define
2246         __builtin_fabsq and __builtin_copysignq with fallbacks.
2247         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2248         and __builtin_copysignq if SSE2 isn't available.
2250         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2251         (LIBGCC2_TF_CEXT): Likwise.
2252         (TF_SIZE): Likwise.
2254         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2256         * config/i386/sfp-machine.h: Moved to libgcc.
2258         * config/i386/sfp-machine.h: New.
2259         * config/i386/t-linux: Likwise.
2261         * config/i386/t-darwin: Remove softfp_wrap_start and
2262         softfp_wrap_end.
2263         * config/i386/t-darwin64: Likewise.
2265         * config/i386/t-fprules-softfp64: Renamed to ...
2266         * config/i386/t-fprules-softfp: This.
2268         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2269         and softfp_wrap_end.
2271 2008-07-02  Jason Merrill  <jason@redhat.com>
2273         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2275         * tree.c (ctor_to_list): New fn.
2276         * tree.h: Declare it.
2277         (CONSTRUCTOR_ELT): New macro.
2278         (CONSTRUCTOR_NELTS): New macro.
2280 2008-07-02  Richard Guenther  <rguenther@suse.de>
2282         * tree-ssa-structalias.c (struct variable_info): Reorder
2283         to fill padding on 64bit hosts.  Make collapsed_to an int.
2284         (get_varinfo_fc): Deal with that.
2285         (new_var_info): Likewise.
2286         (collapse_rest_of_var): Likewise.
2288 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2290         * doc/install.texi (--enable-java-home): Document.
2291         (--enable-aot-compile-rpm): Likewise.
2292         (--with-arch-directory): Likewise.
2293         (--with-os-directory): Likewise.
2294         (--with-origin-name): Likewise.
2295         (--with-arch-suffix): Likewise.
2296         (--with-jvm-root-dir): Likewise.
2297         (--with-jvm-jar-dir): Likewise.
2298         (--with-python-dir): Likewise.
2300 2008-07-02  Richard Guenther  <rguenther@suse.de>
2302         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2303         from decls explicitly.  Merge operand checking from tuples.
2305 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2307         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2308         
2309 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2311         * tree-switch-conversion.c: Included timevar.h
2312         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2314         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2316 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2318         * tree-switch-conversion.c: Corrected various comments and
2319         whitespace issues
2320         (build_constructors): Fixed minor formatting mistakes.
2322         * invoke.texi (Optimize Options): Corrected the
2323         switch-conversion-max-branch-ratio parameter.
2325 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2327         * final.c (asm_insn_count): Return zero for an empty asm body.
2329 2008-07-02  Richard Guenther  <rguenther@suse.de>
2331         * bitmap.h (bitmap_set_bit): Return bool.
2332         (bitmap_clear_bit): Likewise.
2333         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2334         write to the bitmap if it would.
2335         (bitmap_clear_bit): Likewise.
2336         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2337         bitmap_set_bit return value.
2338         (add_pred_graph_edge): Likewise.
2339         (add_graph_edge): Likewise.
2340         (do_sd_constraint): Likewise.
2341         (do_ds_constraint): Likewise.
2343 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2345         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2346         Fix -Wc++-compat and/or -Wcast-qual warnings.
2347         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2348         gen_regparm_prefix): Likewise.
2349         * vmsdbgout.c (write_modbeg, lookup_filename,
2350         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2352 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2354         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2355         defaults.h definition apply.
2357 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2359         * function.c (assign_parm_remove_parallels): New.
2360         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2361         PARALLELs.
2362         (assign_parm_setup_block): Do not handle them.
2363         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2364         assign_parm_remove_parallels.
2366 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2368         * c-typeck.c (convert_for_assignment): Use
2369         vector_targets_convertible_p.
2370         * c-common.c (vector_targets_convertible_p): New.
2371         * c-common.h (vector_targets_convertible_p): New prototype.
2372         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2373         opaque_p_V2SI_type_node.
2375 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2377         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2378         RFmode constants.
2380 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2382         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2383         TFmode constants via two element DImode vector for hosts with
2384         HOST_BITS_PER_WIDE_INT < 64.
2385         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2386         also for HOST_BITS_PER_WIDE_INT < 64.
2388 2008-07-01  Richard Guenther  <rguenther@suse.de>
2390         PR tree-optimization/36666
2391         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2392         (get_constraint_exp_from_ssa_var): Split into ...
2393         (get_constraint_exp_for_temp): ... this ...
2394         (get_constraint_for_ssa_var): ... and that.
2395         Return constraint expressions for all touched sub-fields
2396         if the results address is not taken.
2397         (process_constraint): Remove assertion that aggregate
2398         assignments do not happen at this place.
2399         (get_constraint_for_component_ref): Add address_p argument.
2400         Return constraint expressions for all touched sub-fields
2401         if the results address is not taken.
2402         (do_deref): Use get_constraint_exp_for_temp.
2403         (get_constraint_for_1): Rename from ...
2404         (get_constraint_for): ... this.  Add the old function as wrapper.
2405         (do_structure_copy): Use get_constraint_for_1.
2407 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2409         * Makefile.in (tree-switch-conversion.o): Add.
2410         (OBJS-common): Add tree-swtch-conversion.o.
2411         * passes.c (init_optimization_passes): Add pass_convert_switch.
2412         * tree-pass.h: (pass_convert_switch): Add.
2413         * tree-switch-conversion.c: New file.
2414         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2415         * common.opt (ftree-cswtch): New option.
2416         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2417         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2418         * opts.c (decode_options): Set flag_tree_switch_conversion when
2419         optimization level is >= 2.
2420         * doc/invoke.texi (Optimize Options): Added description of
2421         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2423 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2425         * config/darwin-driver.c (darwin_default_min_version): Fix
2426         -Wc++-compat warnings.
2428 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2430         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2431         of operand 0.
2433 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2435         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2436         
2437 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2439         PR rtl-optimization/34744
2440         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2441         (df_scan_free_internal): Free data structures not
2442         allocated in storage pools.
2443         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2444         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2445         df_scan_free_mws_vec.
2446         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2447         unconditionally.
2449 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2451         * config/i386/i386.c (contains_aligned_value_p): Return true
2452         for __float128.
2453         (ix86_function_arg_boundary): Return its natural boundary
2454         for __float128.
2455         (return_in_memory_32): Don't check TDmode.
2456         (ix86_split_to_parts): Support splitting into 4 parts and
2457         support TFmode for 32bit target.
2458         (ix86_split_long_move): Support splitting into 4 parts.
2459         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2460         for SSE2.
2461         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2462         (ix86_init_builtins): Here.
2463         (ix86_scalar_mode_supported_p): Always return true for TFmode.
2464         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2465         'q' and 'w', respectively. 
2467         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2468         TARGET_64BIT.
2469         (movtf_internal): Likewise.
2470         (<code>tf2): Likewise.
2471         (*absnegtf2_sse): Likewise.
2472         (copysign<mode>3): Likewise.
2473         (copysign<mode>3_const): Likewise.
2474         (copysign<mode>3_var): Likewise.
2475         (define_split UNSPEC_COPYSIGN): Likewise.
2476         * config/i386/sse.md (*nandtf3): Likewise.
2477         (<code>tf3): Likewise.
2478         (*<code>tf3): Likewise.
2480 2008-06-30  Joey Ye  <joey.ye@intel.com>
2481             H.J. Lu  <hongjiu.lu@intel.com>
2483         * global.c (compute_regsets): Set frame_pointer_needed here.
2484         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2486 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2488         * doc/install.texi (specific): Expand Windows build notes.
2490 2008-06-30  Ira Rosen  <irar@il.ibm.com>
2492         PR tree-optimization/36648
2493         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2494         number of prolog iterations by step. Fix the comment.
2496 2008-06-30  Richard Guenther  <rguenther@suse.de>
2498         PR middle-end/36671
2499         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2500         handle calls from ECF_MALLOC functions.
2501         (handle_pure_call): ECF_MALLOC functions do not return
2502         call-used memory.
2503         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2505 2008-06-29  Andreas Schwab  <schwab@suse.de>
2507         * config/m68k/m68k.c (print_operand): Always print a float
2508         constant in hex.
2509         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2510         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2511         Remove macros.
2513         * config/rs6000/x-linux64: Remove never used file.
2515 2008-06-29  Richard Guenther  <rguenther@suse.de>
2517         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2518         prototype.
2519         (struct alias_info): Move ...
2520         * tree-ssa-alias.c: ... here.
2521         (update_alias_info): Declare.
2522         (compute_may_aliases): Call it.
2523         (update_alias_info): New function.
2524         * tree-ssa-structalias.c (update_alias_info): Move ...
2525         * tree-ssa-alias.c (update_alias_info_1): ... here.
2526         * tree-ssa-structalias.c (process_constraint_1): Remove
2527         unused from_call argument.  Rename to ...
2528         (process_constraint): ... this.  Delete old wrapper.
2529         (make_constraint_to): Adjust callers.
2530         (handle_const_call): Likewise.
2531         (handle_pure_call): Likewise.
2532         (init_base_vars): Likewise.
2533         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
2534         (find_func_aliases): We don't need structure copies for
2535         complex types.
2536         (make_constraint_from_anything): Remove.
2537         (create_variable_info_for): For globals make constraints
2538         from escaped, not from anything.
2539         (compute_points_to_sets): Do not call update_alias_info.
2540         (ipa_pta_execute): Use make_constraint_from.
2542 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2544         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2545         (bitmap.o-warn, dominance.o-warn): New.
2546         * configure.ac (cxx_compat_warn): Delete.
2547         (loose_warn): Add -Wcast-qual and -Wc++-compat.
2548         * system.h: Remove #pragma diagnostic for -Wcast-qual and
2549         -Wc++-compat.
2550         * configure: Regenerate.
2552         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2553         warnings.
2555 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2557         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2558         * df-scan.c (df_notes_rescan): Likewise.
2559         * ggc-page.c (set_page_table_entry): Likewise.
2560         * intl.c (gcc_gettext_width): Likewise.
2561         * varasm.c (get_unnamed_section, get_noswitch_section,
2562         get_section): Likewise.
2564 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
2566         * regrename.c (build_def_use): Don't copy RTX.
2568 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
2570         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2571         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
2572         punctuation.  Use @ref instead of @xref.
2573         (Function Names): Remove stray @display/@end display.
2574         (C++ Attributes): Use @ref instead of @xref.
2575         (Deprecated Features): Fix punctuation around @xref.
2576         (Backwards Compatibility): Likewise.
2577         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2579 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
2581         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2582         constants for E500 double.
2584 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2586         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2587         element type of const_vector.
2589 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
2591         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2592         Remove FLAGS_REG clobber from expander pattern.
2593         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2594         (anddi3, andsi3, andhi3, andqi3): Ditto.
2595         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2596         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2597         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2598         (ashlsi3, ashlhi3, ashlqi3): Ditto.
2599         (ashrsi3, ashrhi3, ashrqi3): Ditto.
2600         (lshrsi3, lshrhi3, lshrqi3): Ditto.
2601         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2602         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2604 2008-06-28  Richard Guenther  <rguenther@suse.de>
2606         * tree-ssa-structalias.c (callused_id, var_callused,
2607         callused_tree): Add.
2608         (handle_pure_call): New function.
2609         (find_func_aliases): Call it.
2610         (find_what_p_points_to): Handle the call-used set.
2611         (clobber_what_escaped): Likewise.
2612         (compute_call_used_vars): New function.
2613         (init_base_vars): Init the call-used variable.
2614         (do_sd_constraint): Do not propagate the solution from CALLUSED
2615         but use CALLUSED as a placeholder.
2616         (solve_graph): Likewise.
2617         * tree-flow-inline.h (gimple_call_used_vars): New function.
2618         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2619         (compute_call_used_vars): Declare.
2620         * tree-ssa-alias.c (set_initial_properties): Call
2621         compute_call_used_vars.
2622         (reset_alias_info): Clear call-used variables.
2623         (add_call_clobber_ops): Assert we are not called for const/pure
2624         functions.  Remove handling of them.
2625         (add_call_read_ops): Handle pure functions by adding the
2626         call-used set of variables as VUSEs.
2627         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2628         (delete_tree_ssa): Free it.
2629         * tree-dfa.c (remove_referenced_var): Clear the var from the
2630         call-used bitmap.
2632 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
2634         * tree.c (build_varargs_function_type_list): New.
2635         (build_function_type_list_1): New.
2636         (build_function_type_list): Use build_function_type_list_1.
2637         * tree.h (build_varargs_function_type_list): New.
2639 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2641         PR target/34856
2642         * config/spu/spu.c (spu_builtin_splats): Do not generate
2643         invalid CONST_VECTOR expressions.
2644         (spu_expand_vector_init): Likewise.
2646 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
2648         * optabs.c (libfunc_decls): New variable.
2649         (libfunc_decl_hash, libfunc_decl_eq): New functions.
2650         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2651         for the same function twice.
2653 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
2655         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2656         ix86_expand_binary_operator directly.
2657         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
2658         for operand 2.
2659         (*ashrti3_1): Ditto.
2660         (*lshrti3_1): Ditto.
2661         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2662         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2663         using only one splitter.  Conditionaly execute splitter before or
2664         after peephole2 pass.
2665         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2666         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
2667         Use only one alternative in asm template.
2668         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2669         in asm template.
2670         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2671         "J" operand constraint for operand 2.
2672         (*ashldi3_cconly_rex64): Ditto.
2673         (*ashrdi3_cmp_rex64): Ditto.
2674         (*ashrdi3_cconly_rex64): Ditto.
2675         (*lshrdi3_cmp_rex64): Ditto.
2676         (*lshrdi3_cconly_rex64): Ditto.
2677         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2678         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2679         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2680         gen_x86_shrd_1.
2682 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2684         * gimplify.c (omp_is_private): Don't return true if decl is not
2685         already private on #pragma omp for or #pragma omp parallel for.
2687         PR debug/36617
2688         * tree-cfg.c (struct move_stmt_d): Replace block field with
2689         orig_block and new_block fields.
2690         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2691         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2692         (move_block_to_fn): Replace vars_map and new_label_map arguments
2693         with struct move_stmt_d pointer.
2694         (replace_block_vars_by_duplicates): New function.
2695         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
2696         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
2697         all subblocks of ORIG_BLOCK to the new function.  Call
2698         replace_block_vars_by_duplicates.
2699         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2700         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2701         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
2702         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2703         (expand_omp): Temporarily set input_location to the location of
2704         region's controlling stmt.
2705         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2706         BIND_EXPR, push ctx->block_vars and gimplification vars into
2707         the BIND_EXPR and its block's BLOCK_VARS instead of directly
2708         into dest function.
2709         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2710         there are any BLOCK_VARS.
2711         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2712         OMP_PARALLEL or OMP_TASK stmt.
2713         (lower_omp): Save and restore input_location around the lower_omp_1
2714         call.
2716 2008-06-27  Richard Guenther  <rguenther@suse.de>
2718         PR tree-optimization/36400
2719         PR tree-optimization/36373
2720         PR tree-optimization/36344
2721         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2722         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2723         (update_alias_info): Remove call clobbering code.
2724         (make_constraint_to): New helper function.
2725         (make_escape_constraint): Likewise.
2726         (handle_rhs_call): Use it on all pointer containing arguments.
2727         Also mark the static chain escaped.
2728         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2729         instead of ANYTHING.
2730         (make_constraint_from): New helper split out from ...
2731         (make_constraint_from_anything): ... here.
2732         (find_func_aliases): Add constraints for escape sites.
2733         (intra_create_variable_infos): Make constraints from NONLOCAL
2734         for parameters.
2735         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2736         as ANYTHING.
2737         (clobber_what_p_points_to): Remove.
2738         (clobber_what_escaped): New function.
2739         (init_base_vars): Init NONLOCAL and ESCAPED.
2740         (do_sd_constraint): Do not propagate the solution from ESCAPED
2741         but use ESCAPED as a placeholder.
2742         (solve_graph): Likewise.
2743         * tree-flow.h (clobber_what_p_points_to): Remove.
2744         (clobber_what_escaped): Declare.
2745         * tree-ssa-alias.c (set_initial_properties): Call it.
2746         Remove code clobbering escaped pointers.
2748 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2750         * function.c (allocate_struct_function): Only allocate a unique
2751         funcdef_no if the decl is nonzero.
2753 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2755         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2756         * config/mips/mips.c (mips_split_const_insns): New function.
2757         * config/mips/mips.md (move_type): New attribute.
2758         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
2759         (dword_mode): New attribute.
2760         (type): Avoid long line.  Map "move_type"s to "type"s,
2761         choosing "multi" for doubleword moves if appropriate.
2762         Swap MTC/MFC comments to match their declaration order.
2763         (extended_mips16): Default to "yes" if "move_type" is "sll0",
2764         "type" is "branch" or "jal" is "direct".
2765         (length): Handle "extended_mips16" first.  Make the default
2766         "0" for "ghost" instructions.  Set the length from "move_type".
2767         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2768         of "type", with "sll0" for the register alternative.  Remove the
2769         "extended_mips16" attribute.
2770         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2771         of "type", with "shift_shift" for the register alternative.
2772         Remove the "length" attribute.
2773         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2774         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2775         of "type", with "andi" for the register alternative.
2776         (*zero_extendqihi2): Likewise.
2777         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2778         of "andi" instead of a "type" of "arith".
2779         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2780         instead of "type".
2781         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2782         (mov_<store>r, *mov<mode>_ra): Likewise.
2783         (extendsidi2): Use "move_type" instead of "type", with "move"
2784         for the register alternative.
2785         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2786         of "type", with "signext" for the register alternative.
2787         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2788         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2789         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2790         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2791         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2792         (unnamed branch insn): Likewise.
2793         (*movdi_gp32_fp64): Fold into...
2794         (*movdi_32bit): ...here.
2795         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2796         (*movdf_hardfloat): ...this new pattern.
2797         (*movdf_softfloat): Remove redundant FPR alternatives.
2798         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2799         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2800         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
2801         the "move" attribute.
2802         (*movdi_32bit): Use "move_type" instead of "type" and remove the
2803         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
2804         and "store" for COP loads and stores.
2805         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2806         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2807         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2808         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2809         (*movtf_mips16, *movv2sf): Likewise.
2810         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2811         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2812         (mfhc1<mode>): Use "move_type" instead of "move".
2813         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2814         (loadgp_blockage): Remove the "length" attribute.
2815         (blockage, set_got_version, update_got_version): Likewise.
2816         (call_internal): Remove the "extended_mips16" attribute.
2817         (call_value_internal, call_value_multiple_internal): Likewise.
2818         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
2819         instead of "move".
2820         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
2821         the "length" attribute.
2823 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2825         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
2826         -Wcast-qual warnings.
2827         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
2828         handle_pragma_pop_macro): Likewise.
2829         * collect2.c (resolve_lib_name): Likewise.
2830         * config/arc/arc.c (arc_init): Likewise.
2831         * config/arm/arm.c (neon_builtin_compare,
2832         locate_neon_builtin_icode): Likewise.
2833         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
2834         * config/bfin/bfin.c (bfin_init_machine_status,
2835         bfin_optimize_loop): Likewise.
2836         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2837         * config/cris/cris.c (cris_init_expanders): Likewise.
2838         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
2839         * config/darwin.c (machopic_indirection_eq,
2840         machopic_indirection_name, machopic_output_indirection): Likewise.
2841         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
2842         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
2843         frv_optimize_membar): Likewise.
2844         * config/i386/cygwin.h (mingw_scan,
2845         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
2846         * config/i386/cygwin1.c (mingw_scan): Likewise.
2847         * config/i386/i386.c (machopic_output_stub): Likewise.
2848         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
2849         i386_pe_unique_section): Likewise.
2850         * config/ia64/ia64.c (ia64_init_machine_status,
2851         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
2852         Likewise.
2853         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
2854         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
2855         * config/m68k/m68k.c (m68k_handle_option,
2856         m68k_sched_md_init_global): Likewise.
2857         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
2858         mcore_unique_section): Likewise.
2859         * config/mips/mips.c (mips_block_move_straight,
2860         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2861         Likewise.
2862         * config/mmix/mmix.c (mmix_init_machine_status,
2863         mmix_encode_section_info): Likewise.
2864         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2865         * config/rs6000/rs6000.c (rs6000_init_machine_status,
2866         print_operand_address, output_toc, redefine_groups,
2867         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2868         * config/s390/s390.c (s390_init_machine_status): Likewise.
2869         * config/score/score.c (score_block_move_straight,
2870         score_block_move_loop_body): Likewise.
2871         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2872         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2873         * emit-rtl.c (find_auto_inc): Likewise.
2874         * gcc.c (translate_options, process_command): Likewise.
2875         * reorg.c (dbr_schedule): Likewise.
2876         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2877         * xcoffout.c (xcoffout_declare_function): Likewise.
2879 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
2881         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2882         ipa-pta working again.
2884 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
2886         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2887         genautomata.
2889 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
2891         * config.gcc (powerpc*-*-*): Add new core e500mc.
2892         * config/rs6000/e500mc.md: New file.
2893         * config/rs6000/rs6000.c (processor_costs): Add new costs for
2894         e500mc.
2895         (rs6000_override_options): Add e500mc case to
2896         processor_target_table. Altivec and Spe options not allowed
2897         with e500mc. Add isel instruction to e500mc by
2898         default. Initialize rs6000_cost for e500mc.
2899         (rs6000_issue_rate): Set issue rate for e500mc.
2900         * config/rs6000/rs6000.h (processor_type): Add
2901         PROCESSOR_PPCE500MC.
2902         (ASM_CPU_SPEC): Add e500mc.
2903         Set TARGET_ISEL to rs6000_isel.
2904         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2905         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2906         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2907         Include e500mc.md.
2908         * doc/invoke.texi: Add e500mc to list of cpus.
2910 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2912         PR c/34867
2913         * c-lex.c (lex_charconst): Initialize unsignedp.
2915 2008-06-27  Olivier Hainque  <hainque@adacore.com>
2917         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2918         documented assumptions.
2920 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2922         * dwarf2out.c: Remove trailing white spaces.  Break long line
2923         in comments.
2925 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
2927         * libfuncs.h (LTI_synchronize): New libfunc_index.
2928         (synchronize_libfunc): Declare.
2929         * builtins.c (expand_builtin_synchronize): Consider using
2930         synchronize_libfunc before falling back on an asm blockage.
2931         * config/mips/mips.c: Include libfuncs.h
2932         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2934 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
2936         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2937         parameter.  Copy stack_reg to r11 where appropriate.
2938         (no_global_regs_above): Add gpr parameter.
2939         (rs6000_stack_info): Only add padding for SPE save area if we
2940         are saving SPE GPRs and CR.
2941         (saveres_routine_syms): New variable.
2942         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2943         Define.
2944         (rs6000_savres_routine_sym): New function.
2945         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2946         split out of...
2947         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
2948         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
2949         Tweak FPR out-of-line saving.
2950         (rs6000_make_savres_rtx): New function.
2951         (rs6000_use_multiple_p): New function.
2952         (rs6000_savres_strategy): New function.
2953         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
2954         out-of-line if appropriate.
2955         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2956         if we are optimizing for size.
2957         (GP_SAVE_INLINE): Define.
2958         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2959         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2960         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2961         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2962         (*save_fpregs_<mode>): Add use of r11.
2963         (*restore_gpregs_<mode>): New insn.
2964         (*return_and_restore_gpregs_<mode>): New insn.
2965         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2966         use r11.
2967         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2968         (*restore_gpregs_spe): New insn.
2969         (*return_and_restore_gpregs_spe): New insn.
2970         * config/rs6000/predicates.md (save_world_operation): Fix check.
2972 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2974         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2975         this point, so assert that.
2977 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
2979         * cfganal.c: Include vec.h and vecprim.h.
2980         (compute_idf): Import from...
2981         * tree-into-ssa (compute_idf): ...here.
2982         * basic-block.h (compute_idf): Export.
2984 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
2986         * c-decl.c (merge_decls): Use !current_function_decl to check for
2987         extern declaration of C99 inline function being at file scope.
2989 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
2991         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2993 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2995         * alias.c (record_alias_subset, init_alias_analysis): Fix
2996         -Wc++-compat and/or -Wcast-qual warnings.
2997         * attribs.c (lookup_attribute_spec): Likewise.
2998         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2999         copy_bb, connect_traces,
3000         find_rarely_executed_basic_blocks_and_cr): Likewise.
3001         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3002         note_btr_set, migrate_btr_defs): Likewise.
3003         * builtins.c (result_vector, expand_builtin_memcpy,
3004         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3005         builtin_memset_read_str, expand_builtin_printf,
3006         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3007         Likewise.
3008         * caller-save.c (mark_set_regs): Likewise.
3009         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3010         * cgraph.c (cgraph_edge): Likewise.
3011         * combine.c (likely_spilled_retval_1): Likewise.
3012         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3013         htab_counts_entry_del, get_coverage_counts): Likewise.
3014         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3015         new_cselib_val): Likewise.
3016         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3017         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3018         Likewise.
3019         * df-core.c (df_compact_blocks): Likewise.
3020         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3021         * df-scan.c (df_grow_reg_info, df_ref_create,
3022         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3023         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3024         df_record_entry_block_defs, df_record_exit_block_uses,
3025         df_bb_verify): Likewise.
3026         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3027         DF_REF_EXTRACT_MODE_CONST): New.
3028         * dominance.c (get_immediate_dominator, get_dominated_by,
3029         nearest_common_dominator, root_of_dom_tree,
3030         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3031         -Wc++-compat and/or -Wcast-qual warnings.
3032         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3033         record_store, replace_read, check_mem_read_rtx, scan_insn,
3034         dse_step1, dse_record_singleton_alias_set): Likewise.
3035         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3037 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3039         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3040         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3041         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3042         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3043         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3044         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3045         file_name_acquire, output_file_names, add_const_value_attribute,
3046         premark_used_types_helper, file_table_eq, file_table_hash,
3047         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3048         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3049         -Wcast-qual warnings.
3050         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3051         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3052         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3053         gen_reg_rtx, start_sequence, init_emit): Likewise.
3054         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3055         * except.c (init_eh_for_function, gen_eh_region,
3056         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3057         arh_to_landing_pad, arh_to_label, add_action_record,
3058         add_call_site, switch_to_exception_section): Likewise.
3059         * expmed.c (synth_mult): Likewise.
3060         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3061         store_expr): Likewise.
3062         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3063         Likewise.
3064         * function.c (assign_stack_temp_for_type,
3065         allocate_struct_function, match_asm_constraints_1): Likewise.
3066         * gcov-io.c (gcov_allocate): Likewise.
3067         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3068         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3069         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3070         record_one_set, insert_expr_in_table, insert_set_in_table,
3071         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3072         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3073         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3074         -Wcast-qual warnings.
3076 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3078         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3079         -Wcast-qual warnings.
3080         * gcc.c (process_command): Likewise.
3081         * genattrtab.c (oballoc): Use XOBNEW.
3082         (oballocvec): Define.
3083         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3084         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3085         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3086         -Wc++-compat and/or -Wcast-qual warnings.
3087         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3088         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3089         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3090         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3091         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3092         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3093         add_excls, process_presence_absence_names,
3094         process_presence_absence_patterns, add_presence_absence,
3095         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3096         get_free_state, add_arc, get_free_automata_list_el,
3097         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3098         transform_3, cache_presence, create_ainsns, create_automata,
3099         create_state_ainsn_table, dfa_insn_code_enlarge,
3100         output_trans_func, output_min_issue_delay_func,
3101         output_dead_lock_func, output_reset_func,
3102         output_get_cpu_unit_code_func, output_dfa_start_func,
3103         expand_automata): Likewise.
3104         * genextract.c (gen_insn): Likewise.
3105         * gengtype-lex.l: Likewise.
3106         * gengtype.c (read_input_list, adjust_field_type,
3107         process_gc_options): Likewise.
3108         * genoutput.c (note_constraint): Likewise.
3109         * genpreds.c (mangle, add_constraint): Likewise.
3110         * genrecog.c (process_define_predicate, new_decision,
3111         add_to_sequence): Likewise.
3112         * gensupport.c (record_insn_name): Likewise.
3114 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3116         * config/i386/driver-i386.c (detect_caches_amd,
3117         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3118         and/or -Wcast-qual warnings.
3119         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3120         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3121         gt_pch_save): Likewise.
3122         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3123         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3124         * global.c (compute_regsets): Likewise.
3125         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3126         finish_graph_dump_file): Likewise.
3127         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3128         unlink_bb_notes): Likewise.
3129         * integrate.c (get_hard_reg_initial_val): Likewise.
3130         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3131         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3132         * local-alloc.c (update_equiv_regs): Likewise.
3133         * loop-invariant.c (check_invariant_table_size,
3134         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3135         Likewise.
3136         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3137         altered_reg_used, mark_altered): Likewise.
3138         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3139         insert_var_expansion_initialization,
3140         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3141         release_var_copies): Likewise.
3142         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3143         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3144         analyze_accesses_for_phi_node, check_var_notmodified_p,
3145         check_allocation_function, find_sites_in_func,
3146         record_all_accesses_in_func, transform_access_sites,
3147         transform_allocation_sites): Likewise.
3148         * omp-low.c (new_omp_region, create_omp_child_function_name,
3149         check_omp_nesting_restrictions, check_combined_parallel,
3150         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3151         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3152         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3153         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3154         Likewise.
3155         * opts-common.c (prune_options): Likewise.
3156         * opts.c (add_input_filename, print_filtered_help,
3157         get_option_state): Likewise.
3158         * params.c (add_params): Likewise.
3159         * passes.c (set_pass_for_id, next_pass_1,
3160         do_per_function_toporder, pass_fini_dump_file): Likewise.
3161         * postreload.c (reload_cse_simplify_operands): Likewise.
3162         * predict.c (tree_predicted_by_p, tree_predict_edge,
3163         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3165 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3167         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3168         warnings.
3169         * recog.c (check_asm_operands, validate_change_1): Likewise.
3170         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3171         subst_asm_stack_regs): Likewise.
3172         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3173         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3174         * regmove.c (reg_is_remote_constant_p): Likewise.
3175         * regrename.c (regrename_optimize, scan_rtx_reg,
3176         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3177         Likewise.
3178         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3179         regstat_compute_calls_crossed): Likewise.
3180         * reload1.c (init_reload, new_insn_chain,
3181         has_nonexceptional_receiver, reload, copy_reloads,
3182         calculate_needs_all_insns, init_elim_table): Likewise.
3183         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3184         * rtl.c (shallow_copy_rtx_stat): Likewise.
3185         * rtlanal.c (parms_set): Likewise.
3186         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3187         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3188         * sched-ebb.c (earliest_block_with_similiar_load,
3189         add_deps_for_risky_insns): Likewise.
3190         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3191         schedule_region): Likewise.
3192         * see.c (eq_descriptor_pre_extension,
3193         hash_descriptor_pre_extension, hash_del_pre_extension,
3194         eq_descriptor_properties, hash_descriptor_properties,
3195         hash_del_properties, see_seek_pre_extension_expr,
3196         see_initialize_data_structures, see_print_register_properties,
3197         see_print_pre_extension_expr, see_delete_merged_def_extension,
3198         see_delete_unmerged_def_extension, see_emit_use_extension,
3199         see_pre_delete_extension, see_map_extension, see_commit_changes,
3200         see_analyze_merged_def_local_prop,
3201         see_analyze_merged_def_local_prop,
3202         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3203         see_set_prop_merged_def, see_set_prop_unmerged_def,
3204         see_set_prop_unmerged_use, see_print_one_extension,
3205         see_merge_one_use_extension, see_merge_one_def_extension,
3206         see_store_reference_and_extension, see_update_uses_relevancy,
3207         see_update_defs_relevancy): Likewise.
3208         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3209         hash_statistics_free, curr_statistics_hash): Likewise.
3210         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3211         expand_asm_operands, expand_return, case_bit_test_cmp,
3212         expand_case): Likewise.
3213         * stor-layout.c (start_record_layout): Likewise.
3214         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3215         gt_pch_save_stringpool): Likewise.
3216         * tree-data-ref.c (hash_stmt_vertex_info,
3217         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3218         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3220 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3222         PR target/36627
3223         * config/i386/i386.md : Change constraints of HImode and QImode
3224         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3225         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3226         from const0_operand and const1_operand predicated operands.
3227         (i): Change QImode and HImode attribute from "i" to "n".
3228         (*subqi_2): Change HImode operands to QImode.
3229         (*subqi_3): Ditto.
3231 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3233         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3234         sed substitutions.
3236 2008-06-25  Richard Guenther  <rguenther@suse.de>
3238         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3239         not overflow the result type.
3241 2008-06-25  Richard Guenther  <rguenther@suse.de>
3243         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3244         (vn_lookup): Likewise.
3246 2008-06-25  Richard Guenther  <rguenther@suse.de>
3248         PR tree-optimization/35518
3249         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3250         * tree-sra.c (instantiate_element): Use fold_build3 to build
3251         BIT_FIELD_REFs.
3252         (try_instantiate_multiple_fields): Likewise.
3254 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3256         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3257         be early clobbers.
3259 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3261         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3262         use_backchain_to_restore_sp to true
3263         if the offset of the link register save area would go over the 32k - 1
3264         offset limit of the load
3265         instructions.
3267 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3269         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3270         anchor for the type-punning blurb.  Cross-reference "Structures
3271         unions enumerations and bit-fields implementation".  Provide a
3272         cast-through-pointer example.  Make final sentence self-contained.
3273         * doc/implement-c.texi (Structures unions enumerations and
3274         bit-fields implementation): Cross-reference the type-punning blurb
3275         in the -fstrict-aliasing documentation.
3277 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3279         PR middle-end/36594
3280         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3281         the memory instead of the memory itself for the save area.
3283 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3284             Nicolas Roche  <roche@adacore.com>
3286         * gengtype.c (srcdir_len): size_t instead of int.
3287         (get_file_realbasename): New function.  For F a filename, the real
3288         basename of F, with all the path components stripped.
3289         (get_file_srcdir_relative_path): New function.  For F a filename, the
3290         relative path to F from $(srcdir).
3291         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3292         get_file_realbasename.  Adjust the head comment.
3293         (get_prefix_langdir_index): New function. For F a filename, return the
3294         lang_dir_names[] relative index of the language directory that is
3295         a prefix in F.
3296         (get_file_langdir): For F a filename, return the name of the language
3297         directory where F is located.
3298         (get_file_gtfilename): New function. The gt- output file name for an
3299         input filename F.
3300         (get_output_file_with_visibility): Replace in-line computations with
3301         uses of get_file_gtfilename and get_prefix_langdir_index.
3302         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3304 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3306         PR tree-optimization/36504
3307         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3308         references without base address.
3310 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3312         PR middle-end/36584
3313         * calls.c (expand_call): Increase alignment for recursive functions.
3315 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3317         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3318         (TARGET_FUNCTION_VALUE): New define.
3319         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3320         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3322 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3324         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3325         (fmod<mode>3): Ditto.
3326         (remainderxf3): Ditto.
3327         (remainder<mode>3): Ditto.
3329 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3331         PR target/36533
3332         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3333         REG is a hard register.
3335         PR tree-optimization/36508
3336         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3337         499, don't check it at all in release compilers.
3339 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3341         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3342         together with SSE_TARGET_MATH to disable insn pattern.
3343         (*fop_<MODEF:mode>_2_i387): Ditto.
3344         (*fop_<MODEF:mode>_3_i387): Ditto.
3346 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3348         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3349         
3350 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3352         PR middle-end/34906
3353         * gimplify.c (gimplify_asm_expr): Check the return code of
3354         parse_output_constraint call, set function return and is_inout
3355         value if it failed.
3357 2008-06-22  Ian Lance Taylor  <iant@google.com>
3359         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3360         (narrowest_signed_type): Likewise.
3361         * c-typeck.c (c_common_type): Change local variable mclass to enum
3362         mode_class, twice.
3363         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3364         tcc_comparison, not the tree code itself.
3365         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3366         (c_expand_expr): Cast modifier to enum expand_modifier.
3367         * c-common.h (C_RID_CODE): Add casts.
3368         (C_SET_RID_CODE): Define.
3369         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3370         (c_lex_one_token): Add cast to avoid warning.
3371         (c_parser_objc_type_name): Rename local typename to type_name.
3372         (check_no_duplicate_clause): Change code parameter to enum
3373         omp_clause_code.
3374         (c_parser_omp_var_list_parens): Change kind parameter to enum
3375         omp_clause_code.
3376         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3377         c_parser_omp_list_var_parens.
3378         (c_parser_omp_threadprivate): Likewise.
3379         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3380         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3381         * c-format.c (NO_FMT): Define.
3382         (printf_length_specs): Use NO_FMT.
3383         (asm_fprintf_length_specs): Likewise.
3384         (gcc_diag_length_specs): Likewise.
3385         (scanf_length_specs): Likewise.
3386         (strfmon_length_specs): Likewise.
3387         (gcc_gfc_length_specs): Likewise.
3388         (printf_flag_specs): Change 0 to STD_C89.
3389         (asm_fprintf_flag_specs): Likewise.
3390         (gcc_diag_flag_specs): Likewise.
3391         (gcc_cxxdiag_flag_specs): Likewise.
3392         (scanf_flag_specs): Likewise.
3393         (strftime_flag_specs): Likewise.
3394         (strfmon_flag_specs): Likewise.
3395         (print_char_table): Likewise.
3396         (asm_fprintf_char_table): Likewise.
3397         (gcc_diag_char_table): Likewise.
3398         (gcc_tdiag_char_table): Likewise.
3399         (gcc_cdiag_char_table): Likewise.
3400         (gcc_cxxdiag_char_table): Likewise.
3401         (gcc_gfc_char_table): Likewise.
3402         (scan_char_table): Likewise.
3403         (time_char_table): Likewis.
3404         (monetary_char_table): Likewise.
3405         * c-format.h (BADLEN): Likewise.
3407 2008-06-21  Ian Lance Taylor  <iant@google.com>
3409         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3410         Define END_OF_BASE_TREE_CODES around inclusion.
3411         * tree.c (tree_code_type): New global array.
3412         (tree_code_length, tree_code_name): Likewise.
3413         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3414         $(lang_tree_files).
3415         (all-tree.def, s-alltree): New targets.
3416         (gencheck.h, s-gencheck): Remove.
3417         (tree.o): Depend upon all-tree.def.
3418         (build/gencheck.o): Remove gencheck.h dependency.
3419         (mostlyclean): Don't remove gencheck.h.
3420         * c-common.h (enum c_tree_code): Remove.
3421         * c-lang.c (tree_code_type): Remove.
3422         (tree_code_length, tree_code_name): Remove.
3423         * gencheck.c (tree_codes): Include all-tree.def, rather than
3424         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3425         after it is used.
3426         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3427         than tree.def.
3428         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3429         (operator_name_info): Size to MAX_TREE_CODES.
3430         (assignment_operator_name_info): Likewise.
3431         * cp/cp-lang.c (tree_code_type): Remove.
3432         (tree_code_length, tree_code_name): Remove.
3433         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3434         (assignment_operator_name_info): Likewise.
3435         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3436         MAX_TREE_CODES.
3437         * cp/mangle.c (write_expression): Likewise.
3438         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3439         * fortran/f95-lang.c (tree_code_type): Remove.
3440         (tree_code_length, tree_code_name): Remove.
3441         * java/java-tree.h (enum java_tree_code): Remove.
3442         * java/lang.c (tree_code_type): Remove.
3443         (tree_code_length, tree_code_name): Remove.
3444         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3445         * objc/objc-act.h (enum objc_tree_code): Remove.
3446         * objc/objc-lang.c (tree_code_type): Remove.
3447         (tree_code_length, tree_code_name): Remove.
3448         * objcp/objcp-lang.c (tree_code_type): Remove.
3449         (tree_code_length, tree_code_name): Remove.
3450         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3451         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3452         * ada/misc.c (tree_code_type): Remove.
3453         (tree_code_length, tree_code_name): Remove.
3455 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3457         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3458         the grand_bitmap_obstack.
3460 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3462         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3463         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3464         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3465         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3466         move_stmt_r, new_label_mapper): Likewise.
3467         * tree-complex.c (cvc_lookup): Likewise.
3468         * tree-dfa.c (create_function_ann): Likewise.
3469         * tree-dump.c (dump_register): Likewise.
3470         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3471         find_phi_replacement_condition): Likewise.
3472         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3473         tree_function_versioning): Likewise.
3474         * tree-into-ssa.c (cmp_dfsnum): Likewise.
3475         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3476         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3477         get_nonlocal_debug_decl, convert_nonlocal_reference,
3478         convert_nonlocal_omp_clauses, get_local_debug_decl,
3479         convert_local_reference, convert_local_omp_clauses,
3480         convert_nl_goto_reference, convert_nl_goto_receiver,
3481         convert_tramp_reference, convert_call_expr): Likewise.
3482         * tree-outof-ssa.c (contains_tree_r): Likewise.
3483         * tree-parloops.c (reduction_phi, initialize_reductions,
3484         eliminate_local_variables_1, add_field_for_reduction,
3485         add_field_for_name, create_phi_for_local_result,
3486         create_call_for_reduction_1, create_loads_for_reductions,
3487         create_stores_for_reduction, create_loads_and_stores_for_name):
3488         Likewise.
3489         * tree-phinodes.c (allocate_phi_node): Likewise.
3490         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3491         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3492         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3493         * tree-ssa-coalesce.c (compare_pairs): Likewise.
3494         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3495         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3496         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3497         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
3498         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3499         vn_nary_op_insert): Likewise.
3500         * tree-ssa.c (redirect_edge_var_map_add,
3501         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3502         * tree-vectorizer.c (vectorize_loops): Likewise.
3503         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3504         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3505         tree_cons_stat, build1_stat, build_variant_type_copy,
3506         decl_init_priority_lookup, decl_fini_priority_lookup,
3507         decl_priority_info, decl_restrict_base_lookup,
3508         decl_restrict_base_insert, decl_debug_expr_lookup,
3509         decl_debug_expr_insert, decl_value_expr_lookup,
3510         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3511         type_hash_add, get_file_function_name, tree_check_failed,
3512         tree_not_check_failed, tree_range_check_failed,
3513         omp_clause_range_check_failed, build_omp_clause,
3514         build_vl_exp_stat): Likewise.
3515         * value-prof.c (gimple_histogram_value,
3516         gimple_duplicate_stmt_histograms): Likewise.
3517         * var-tracking.c (attrs_list_insert, attrs_list_copy,
3518         unshare_variable, variable_union_info_cmp_pos, variable_union,
3519         dataflow_set_different_1, dataflow_set_different_2,
3520         vt_find_locations, variable_was_changed, set_variable_part,
3521         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3522         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3523         section_entry_hash, object_block_entry_eq,
3524         object_block_entry_hash, create_block_symbol,
3525         initialize_cold_section_name, default_function_rodata_section,
3526         strip_reg_name, set_user_assembler_name, const_desc_eq,
3527         build_constant_desc, output_constant_def, lookup_constant_def,
3528         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3529         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3530         default_internal_label): Likewise.
3531         * varray.c (varray_init, varray_grow): Likewise.
3532         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3534 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
3536         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3537         operators for "test" insn.  Macroize insn using SWI mode macro.
3538         (*jcc_fused_2): Ditto.
3539         (*jcc_fused_3): Macroize insn using SWI mode macro.
3540         (*jcc_fused_4): Ditto.
3542 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
3544         * tree-ssa-pre.c: Fix typo in comment.
3545         (init_antic, fini_antic): Add explicit funtions for
3546         initializing and deinitializing ANTIC and AVAIL sets.
3547         (create_expression_by_pieces): Fix typo in comment.
3548         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3549         (execute_pre): Eventually dump details about ANTIC_IN.
3551 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3553         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3554         * gcc.c (translate_options, init_spec, store_arg, read_specs,
3555         add_to_obstack, file_at_path, find_a_file, execute,
3556         add_preprocessor_option, add_assembler_option, add_linker_option,
3557         process_command, insert_wrapper, do_option_spec, do_self_spec,
3558         spec_path, do_spec_1, is_directory, main, used_arg,
3559         getenv_spec_function): Likewise.
3560         * tlink.c (symbol_hash_lookup, file_hash_lookup,
3561         demangled_hash_lookup, symbol_push, file_push, frob_extension):
3562         Likewise.
3564 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3566         * doc/rtl.texi: Updated subreg section.
3568 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3570         PR c++/36523
3571         * cgraphunit.c (cgraph_process_new_functions): Don't clear
3572         node->needed and node->reachable.
3573         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3574         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3575         (expand_task_call): Don't call expand_task_copyfn.
3576         (expand_task_copyfn): Renamed to...
3577         (finalize_task_copyfn): ... this.
3579 2008-06-19  Jan Hubicka  <jh@suse.cz>
3581         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3582         clobbering framepointer.
3584 2008-06-19  Jan Hubicka  <jh@suse.cz>
3586         * tree-optimize.c (execute_early_local_optimizations): Set
3587         cgraph_state only at first invocation.
3589 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3591         * system.h (-Wc++-compat): Activate as a warning, no an error.
3593 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3595         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3596         instead of "#" in insn asm template.
3597         (*jcc_fused_2): Ditto.
3599 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3601         * config/i386/i386.h (ix86_tune_indices)
3602         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3603         (TARGET_FUSE_CMP_AND_BRANCH): New define.
3604         * config/i386/i386.md (*jcc_fused_1): New insn pattern
3605         (*jcc_fused_2): Ditto.
3606         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3607         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3608         (print operand): Handle 'E' and 'e' code.
3610 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
3612         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3613         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3614         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3616 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
3618         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3619         node->decl.
3620         (cgraph_expand_function): Use local copy of decl.
3621         (cgraph_expand_all_functions): Remove redundant initialization of
3622         order_pos.
3623         (cgraph_optimize): Reword internal_error message.
3625 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
3627         * arm-protos.h (arm_return_in_memory): Remove public
3628         arm_return_in_memory() prototype.
3629         * arm.c (arm_return_in_memory): Add static prototype, add target
3630         hook macro, change definition and comments.
3631         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3633 2008-06-19  Ben Elliston  <bje@au.ibm.com>
3635         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3636         real.c: Remove references to IEEE 754R.
3637         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3638         * doc/libgcc.texi (Decimal float library routines): Likewise.
3640 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3642         * targhooks.h (struct gcc_target): New member unwind_word_mode.
3643         (default_unwind_word_mode): Add prototype.
3644         * targhooks.c (default_unwind_word_mode): New function.
3645         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3646         instead of word_mode.
3647         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3648         (TARGET_INITIALIZER): Use it.
3650         * c-common.c (handle_mode_attribute): Support "unwind_word"
3651         mode attribute.
3652         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3654         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3655         word_mode to access SjLj_Function_Context member "data".
3656         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
3657         conversion from targetm.eh_return_filter_mode () to
3658         targetm.unwind_word_mode () if they differ.
3660         * builtin-types.def (BT_UNWINDWORD): New primitive type.
3661         (BT_FN_UNWINDWORD_PTR): New function type.
3662         (BT_FN_WORD_PTR): Remove.
3663         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3664         * except.c (expand_builtin_extend_pointer): Convert pointer to
3665         targetm.unwind_word_mode () instead of word_mode.
3667         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3668         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3669         (spu_unwind_word_mode): New function.
3670         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3671         (TARGET_UNWIND_WORD_MODE): Define.
3672         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3674 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3676         * config/spu/spu.c (reg_align): Remove.
3677         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3678         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3679         (spu_split_store): Likewise.
3681 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
3683         * gcc/tree-vn.c: Fix typo in comment.
3685 2008-06-18  Jan Hubicka  <jh@suse.cz>
3687         * cgraphunit.c (cgraph_optimize): Output debug info when doing
3688         toplevel reorder too.
3690 2008-06-18  Jan Hubicka  <jh@suse.cz>
3692         * c-opts.c (c_common_post_options): PCH is not compatible with
3693         no-unit-at-a-time.
3694         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3695         -fno-toplevel-reorder by default now.
3697 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3699         PR documentation/30739
3700         * doc/install.texi (Prerequisites): Document dependency on awk.
3702 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
3703             Ian Lance Taylor  <iant@google.com>
3705         PR rtl-optimization/35604
3706         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3707         only want to change jump destinations, not eventual label comparisons.
3709 2008-06-16  Jan Hubicka  <jh@suse.cz>
3711         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3712         syntax errors.
3713         (cgraph_analyze_function): Likewise.
3715 2008-06-16  Jan Hubicka  <jh@suse.cz>
3717         * cgraph.h (cgraph_mark_if_needed): New function.
3718         * cgraphunit.c (cgraph_mark_if_needed): New function.
3719         * c-decl.c (duplicate_decl): Use it.
3721 2008-06-16  Jan Hubicka  <jh@suse.cz>
3723         * cgraph.c (cgraph_add_new_function): When in expansion state, do
3724         lowering.
3726 2008-06-16  Jan Hubicka  <jh@suse.cz>
3728         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3730 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
3731             Kazu Hirata  <kazu@codesourcery.com>
3732             Maxim Kuvyrkov  <maxim@codesourcery.com
3734         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3735         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3736         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3737         EXTRA_SPEC_FUNCTIONS.
3738         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3739         (DRIVER_SELF_SPECS): Adjust.
3740         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3741         * config/mips/st.h, config/mips/t-st: New.
3742         * config/mips/driver-native.c, config/mips/x-native: New.
3743         * doc/invoke.texi (MIPS): Document 'native' value for -march and
3744         -mtune options.
3746 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3748         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3749         from it.
3750         (ISA_HAS_FP_CONDMOVE): New macro.
3751         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3752         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3753         (ISA_HAS_NMADD3_NMSUB3): New macro.
3754         * config/mips/mips.c (mips_rtx_costs): Update.
3755         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3756         compiling for ST Loongson 2E/2F.
3757         (madd<mode>): Rename to madd4<mode>.  Update.
3758         (madd3<mode>): New pattern.
3759         (msub<mode>): Rename to msub4<mode>.  Update.
3760         (msub3<mode>): New pattern.
3761         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
3762         (nmadd3<mode>): New pattern.
3763         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
3764         (nmadd3<mode>_fastmath): New pattern.
3765         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
3766         (nmsub3<mode>): New pattern.
3767         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
3768         (nmsub3<mode>_fastmath): New pattern.
3769         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3771 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
3773         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3774         (DF_REF_INSN_INFO): New.
3775         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3776         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3777         with a NULL DF_REF_INSN_INFO.
3778         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3779         DF_INSN_SET.
3780         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3781         DF_INSN_INFO_EQ_USES): New.
3782         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3783         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3784         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3785         * df-core.c: Update comment for above changes.
3786         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3787         DF_INSN_UID_* macros.
3788         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3789         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3790         insn rtx.  Update all callers.
3791         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3792         df_ref_create_structure, df_insn_refs_collect): Likewise.
3793         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3794         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3795         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3796         macros to access the insn refs.
3797         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3798         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3799         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3800         for accessing the refs.
3801         (try_fwprop_subst): Likewise.
3802         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3803         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3804         for accessing the refs.
3805         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3806         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3807         to look at the insn refs.
3808         (record_uses): Likewise.
3809         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3810         function anymore.
3811         (mark_artificial_uses): Don't mark_insn for artificial refs.
3812         (mark_reg_rependencies): Likewise.
3814         * doc/rtl.texi: Remove documentation of ADDRESSOF.
3816 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3818         * configure: Regenerate.
3820 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
3822         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
3823         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
3824         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
3826 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
3828         * config/avr/avr.c (avr_mcu_t): Add attiny167.
3829         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
3830         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
3832 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
3834         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
3835         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
3836         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
3838 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
3840         * tree-ssa-sccvn.c: Fix format of comments.
3842 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
3844         * cgraph.c: Remove unneeded forward declarations of eq_node()
3845         and hash_node().
3847 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
3849         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
3850         REG_RETVAL notes.
3851         (see_update_relevancy): Likewise.
3852         * fwprop.c (try_fwprop_subst): Likewise.
3853         * rtlanal.c (noop_move_p): Likewise.
3854         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
3855         notes to non-existing libcall blocks.
3856         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
3857         Remove orig_set.
3858         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3859         (dead_libcall_p): Remove.
3860         (delete_trivially_dead_insns): Don't use it.
3861         * web.c (union_defs): Remove comment about keeping nops.
3862         * gcse.c (hash_scan_insn): Don't take libcall pointers.
3863         (compute_hash_table_work): Don't track libcall notes.
3864         (do_local_cprop): Don't take libcall pointers.  Don't update
3865         libcall notes.
3866         (adjust_libcall_notes): Deleted.
3867         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3868         ever have existed in the first place).
3869         (replace_store_insn): Don't try to remove libcall notes.
3870         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3871         (resolve_reg_notes): Don't call them.
3872         (resolve_simple_move): Likewise.
3873         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3874         Don't remove REG_RETVAL notes.
3875         * emit-rtl.c (try_split): Don't update libcall notes.
3876         (emit_copy_of_insn_after): Dito.
3877         * cselib.c (cselib_current_insn_in_libcall): Remove.
3878         (cselib_process_insn): Don't set/clear it.
3879         (new_elt_loc_list): Don't record it.
3880         (cselib_init): Don't initialize it.
3881         * cselib.c (struct elt_loc_list): Remove in_libcall field.
3882         * loop-invariant.c (find_invariant_insn): Don't look for libcall
3883         notes.
3884         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3885         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3886         (init_deps): Don't initialize it.
3887         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3888         * combine.c (delete_noop_moves): Don't update libcall notes.
3889         (can_combine_p): Remove now pointless #if 0 block.
3890         (try_combine): Remove another obsolete #if 0 block.
3891         (distribute_notes): Don't distribute libcall notes.
3892         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3893         * dce.c (libcall_dead_p): Remove.
3894         (delete_unmarked_insns): Don't handle libcall blocks.
3895         (preserve_libcall_for_dce): Remove.
3896         (prescan_insns_for_dce): Don't special-case libcall block insns.
3897         * reload1 (reload): Don't handle libcall notes. 
3898         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3899         documentation.
3901 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
3903         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3904         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3905         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3907 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
3909         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3910         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3911         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
3913 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3915         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3917 2008-06-16  Ira Rosen  <irar@il.ibm.com>
3919         PR tree-optimization/36493
3920         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3921         the arguments list. Use VECTYPE to create vector pointer.
3922         (vectorizable_store): Fail if accesses through a pointer to vectype
3923         do not alias the original memory reference operands.
3924         Call vect_create_data_ref_ptr without the removed argument.
3925         (vectorizable_load): Likewise.
3926         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3927         removed argument.
3929 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
3931         PR target/36336
3932         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
3933         reg_equiv_constant.
3935 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3937         * config/mips/loongson2ef.md: New file.
3938         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3939         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3940         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3941         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3942         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3943         and loongson_2f.
3944         (loongson2ef.md): New include.
3945         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3946         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3947         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3948         (loongson_gt_<mode>, loongson_extract_halfword)
3949         (loongson_insert_halfword_0, loongson_insert_halfword_2)
3950         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3951         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3952         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3953         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3954         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3955         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3956         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3957         (vec_interleave_low<mode>): Define type attribute.
3958         * config/mips/mips.c (mips_ls2): New static variable.
3959         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3960         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3961         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3962         Implement target scheduling hooks.
3963         (mips_multipass_dfa_lookahead): Update to handle tuning for
3964         Loongson 2E/2F.
3965         (mips_sched_init): Initialize data for Loongson scheduling.
3966         (mips_ls2_variable_issue): New static function.
3967         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3968         Add sanity check.
3969         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3970         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3971         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3972         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3973         Handle ST Loongson 2E/2F cores.
3974         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3976 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3978         * omp-low.c (extract_omp_for_data): Fix comment typo.
3979         * c.opt: Fix typo.
3981 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3983         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3984         FIXME note about gcc/config.guess.
3985         * doc/options.texi (Option file format): Remove non-ASCII bytes.
3986         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3987         * doc/cppopts.texi: Likewise.
3988         * doc/extend.texi: Likewise.
3989         * doc/gcc.texi: Likewise.
3990         * doc/gccint.texi: Likewise.
3991         * doc/gcov.texi: Likewise.
3992         * doc/gty.texi: Likewise.
3993         * doc/hostconfig.texi: Likewise.
3994         * doc/install.texi: Likewise.
3995         * doc/invoke.texi: Likewise.
3996         * doc/loop.texi: Likewise.
3997         * doc/makefile.texi: Likewise.
3998         * doc/md.texi: Likewise.
3999         * doc/passes.texi: Likewise.
4000         * doc/tm.texi: Likewise.
4001         * doc/tree-ssa.texi: Likewise.
4002         * doc/trouble.texi: Likewise.
4004 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4005             Nathan Sidwell  <nathan@codesourcery.com>
4006             Maxim Kuvyrkov  <maxim@codesourcery.com>
4007             Richard Sandiford  <rdsandiford@googlemail.com>
4008         
4009         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4010         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4011         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4012         builtins.
4013         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4014         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4015         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4016         V8QImode cases.
4017         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4018         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4019         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4020         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4021         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4022         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4023         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4024         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4025         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4026         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4027         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4028         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4029         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4030         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4031         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4032         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4033         (mips_builtins): Add Loongson builtins.
4034         (mips_loongson_2ef_bdesc): New.
4035         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4036         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4037         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4038         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4039         New.
4040         (mips_expand_vector_init): New.
4041         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4042         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4043         if appropriate.
4044         * config/mips/mips.md: Add unspec numbers for Loongson
4045         builtins.  Include loongson.md.
4046         (MOVE64): Include Loongson vector modes.
4047         (SPLITF): Include Loongson vector modes.
4048         (HALFMODE): Handle Loongson vector modes.
4049         * config/mips/loongson.md: New.
4050         * config/mips/loongson.h: New.
4051         * config.gcc: Add loongson.h header for mips*-*-* targets.
4052         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4054 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4056         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4057         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4058         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4059         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4060         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4061         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4062         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4063         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4064         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4065         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4066         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4067         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4068         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4069         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4070         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4071         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4072         Remove use_fixproto=yes.
4073         (ia64*-*-hpux*): Remove comment about using fixproto.
4074         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4076 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4078         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4079         library rebuilds.
4080         * configure: Regenerate.
4082 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4084         PR middle-end/36520
4085         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4086         before evaluating it.
4088 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4090         PR c/36507
4091         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4092         nested inline functions.
4093         (start_decl, start_function): Don't invert DECL_EXTERNAL
4094         for nested inline functions.
4096 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4098         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4099         splits that must be made for correctness.
4101 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4103         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4104         (AVAIL_NON_MIPS16): Likewise.
4105         (mips_builtin_description): Replace target_flags with a predicate.
4106         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4107         (dspr2_32): New availability predicates.
4108         (MIPS_BUILTIN): New macro.
4109         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4110         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4111         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4112         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4113         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4114         (mips_dsp_32only_bdesc): Merge into...
4115         (mips_builtins): ...this new array.
4116         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4117         (mips_init_builtins): Update after above changes.
4118         (mips_expand_builtin_1): Merge into...
4119         (mips_expand_builtin): ...here and update after above changes.
4121 2008-06-12  Paul Brook  <paul@codesourcery.com>
4123         * longlong.h (__arm__): Define count_leading_zeros.
4124         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4125         (clzsi2, clzdi2): New functions.
4126         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4127         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4128         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4129         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4130         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4131         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4132         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4133         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4134         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4135         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4137 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4139         * config/m68k/m68k.c (m68k_tune_flags): New.
4140         (override_options): Compute m68k_tune_flags.
4141         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4142         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4144 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4146         PR middle-end/36506
4147         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4149 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4151         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4152         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4154 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4156         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4157         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4159 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4161         PR middle-end/36506
4162         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4163         reductions.
4165 2008-06-12  Richard Guenther  <rguenther@suse.de>
4167         PR tree-optimization/36345
4168         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4169         add memory_tag_needed flag.
4170         (may_alias_p): Declare.
4171         * tree-ssa-alias.c (may_alias_p): Export.
4172         (set_initial_properties): Use memory_tag_needed flag.
4173         (update_reference_counts): Likewise.
4174         (reset_alias_info): Reset memory_tag_needed flag.
4175         (create_name_tags): Check memory_tag_needed flag.
4176         (dump_points_to_info_for): Dump it.
4177         * tree-ssa-structalias.c (struct variable_info): Remove
4178         directly_dereferenced flag.
4179         (new_var_info): Do not initialize it.
4180         (process_constraint_1): Do not set it.
4181         (update_alias_info): Set is_dereferenced flag.
4182         (set_uids_in_ptset): Use may_alias_p.
4183         (set_used_smts): Check memory_tag_needed flag.
4184         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4185         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4186         memory_tag_needed flag.
4187         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4188         from broken design.
4190 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4192         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4193         red zone for w64 abi.
4194         (ix86_expand_prologue): Likewise.
4195         (ix86_force_to_memory): Likewise.
4196         (ix86_free_from_memory): Likewise.
4198 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4200         PR target/36425
4201         * config/rs6000/rs6000.c (rs6000_override_options): Set
4202         rs6000_isel conditionally to the absence of comand line override.
4203         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4204         Remove duplicate rs6000_isel setting.
4205         * config/rs6000/eabispe.h: Ditto.
4207 2008-06-11  Richard Guenther  <rguenther@suse.de>
4209         * alias.c (get_alias_set): Use the element alias-set for arrays.
4210         (record_component_aliases): For arrays and vectors do nothing.
4211         * c-common.c (strict_aliasing_warning): Handle the cases
4212         of alias set zero explicitly.
4213         * Makefile.in (dfp.o-warn): Add -Wno-error.
4215 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4217         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4218         tune_32 tune_64.
4219         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4220         tune_32 tune_64 to supported_defaults.  Allow values not
4221         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4222         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4223         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4224         with_cpu_64 to generic for 64-bit-supporting configurations, not
4225         with_cpu.  Remove FIXMEs.
4226         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4227         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4228         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4229         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4230         arch_32 and arch_64.
4232 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4233             Olivier Hainque  <hainque@adacore.com>
4235         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4236         Use DECL_SIZE_UNIT to retrieve the size of the field.
4238 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4240         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4241         with function calls after declarations.  Lay out
4242         neon_float_type_node before further use.
4244 2008-06-11  Richard Guenther  <rguenther@suse.de>
4246         * tree-flow.h (may_point_to_global_var): Declare.
4247         * tree-ssa-alias.c (may_point_to_global_var): New function.
4248         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4250 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4252         * configure.ac: Teach that fido supports .debug_line.
4253         * configure: Regenerate.
4255 2008-06-10  Tom Tromey  <tromey@redhat.com>
4257         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4258         debug hook.
4260 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4262         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4263         (encode_decimal64, decode_decimal64, encode_decimal128,
4264         decode_decimal128): Reverse order of 32-bit parts of value if host
4265         and target endianness differ.
4267 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4269         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4270         Avoid division by 0.
4271         (tree_mod_pow2_value_transform): Likewise.
4272         (tree_ic_transform): Likewise.
4273         (tree_stringops_transform): Likewise.
4274         (tree_mod_subtract_transform): Likewise.
4275         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4276         (copy_edges_for_bb): Likewise.
4277         (initialize_cfun): Likewise.
4279 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4281         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4282         nonmemory_operand. Add "N" operand constraint.
4283         (*btsi): Ditto.
4284         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4285         (*jcc_btsi_mask): Ditto.
4286         (*jcc_btsi_mask_1): Ditto.
4288 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4290         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4291         TYPE_CANONICAL for copied element type.
4293 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4295         PR target/36473
4296         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4297         Add m_CORE2 and m_GENERIC.
4298         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4299         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4300         (*btsi): Ditto.
4301         (*jcc_btdi_rex64): New instruction and split pattern.
4302         (*jcc_btsi): Ditto.
4303         (*jcc_btsi_1): Ditto.
4304         (*btsq): Fix Intel asm dialect operand order.
4305         (*btrq): Ditto.
4306         (*btcq): Ditto.
4308 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4310         PR middle-end/36447
4311         * simplify-rtx.c (simplify_subreg): Add check for shift count 
4312         greater than size.
4314 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4316         * doc/md.texi: Synchronize with later constraints.md change.
4317         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4318         with a C implementation.
4319         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4320         MFLO handling.
4321         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4322         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4323         when moving to and from MD_REGNUM.
4324         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4325         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4326         Handle byte and halfword moves.
4327         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4328         separately.
4329         * config/mips/constraints.md (h): Turn into NO_REGS.
4330         (l, x): Update documentation.
4331         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4332         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4333         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4334         (HILO): New mode iterator.
4335         (MOVE128): Add TI.
4336         (any_div): New code iterator.
4337         (u): Extend code attribute to div and udiv.
4338         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4339         d_operand in the splitters.  Remove redundant CONST_INT checks.
4340         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4341         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4342         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4343         accordingly, using normal moves instead of unspecs to move LO into
4344         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4345         (<u>mulsidi3): Handle expansion in C code.
4346         (<u>mulsidi3_32bit_internal): Rename to...
4347         (<u>mulsidi3_32bit): ...this.
4348         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4349         (*<u>mulsidi3_64bit): Rename to...
4350         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4351         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4352         to set LO and HI to the multiplication result.  Use a normal move
4353         for MFLO and an unspec for MFHI.
4354         (*<u>mulsidi3_64bit_parts): Replace with...
4355         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4356         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4357         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4358         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4359         instead of HI.  Split the instruction into a separate multiplication
4360         and MFHI if !TARGET_FIX_R4000.
4361         (<su>muldi3_highpart): Likewise.
4362         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4363         and the "=h" clobber.
4364         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4365         (<u>mulditi3): New expander.
4366         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4367         (madsi): Remove "=h" clobber.
4368         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4369         Force the modulus result to be a GPR and split the instruction into
4370         a division followed by an MFHI after reload.
4371         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4372         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4373         the MIPS16 HIGH define_split.
4374         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4375         of acc<->gpr moves to "multi".
4376         (*movdi_64bit): Replace the single "x" alternative with
4377         alternatives for moving into and out of "a".
4378         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4379         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4380         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4381         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4382         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4383         (movti): New expander.
4384         (*movti, *movti_mips16): New insns.
4385         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4386         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4387         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4388         * config/mips/predicates.md (fpr_operand): Delete.
4389         (d_operand): New predicate.
4391 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4393         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4394         failure on some Bourne shells.
4395         (x86_64-*-*): Ditto.
4397 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4399         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4401 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4403         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4404         (sparc-sun-solaris2*): Likewise.
4406 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4408         * doc/install.texi: Update requirements to build the Ada compiler.
4410 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4412         * df-scan.c (struct df_scan_problem_data): Remove the
4413         mw_link_pool alloc pool.
4414         (df_scan_free_internal): Don't free it.
4415         (df_scan_alloc): Don't allocate it.
4416         * df.h (struct df_link): Update comment.
4418 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4420         * except.h: Correct checks for when SJLJ exceptions must be used.
4422 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4424         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4425         default.
4426         
4427 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4429         PR tree-optimization/36218
4430         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4431         configure for the build system.
4432         (BUILD_LDFLAGS): Define.
4433         * configure: Regenerate.
4434         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4436 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4438         PR target/36424
4439         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4440         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
4441         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
4443 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4445         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4447 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4449         * config.gcc (Obsolete configurations): Remove list of
4450         configurations.
4451         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4452         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4453         targets matched by those patterns.
4454         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4455         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4456         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4457         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4458         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4459         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4460         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4461         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4462         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4463         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4464         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4465         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4466         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4467         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4468         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4469         Make code for Solaris 7 and greater unconditional for Solaris.
4470         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4471         Remove --with-* handling.
4472         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4473         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4474         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4475         LINK_OS_WINDISS_SPEC): Remove.
4476         * config/rs6000/sysv4.opt (mwindiss): Remove.
4477         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4478         * configure: Regenerate.
4479         * doc/cpp.texi: Don't mention BeOS.
4480         * doc/extend.texi (interrupt): Don't mention MS1.
4481         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4482         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4483         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4484         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4485         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4486         Remove.
4487         * doc/invoke.texi (MT Options): Remove.
4488         (-mwindiss): Remove.
4489         (CRIS Options): Remove cris-axis-aout references.
4490         (HPPA Options): Don't mention hppa1.1-*-pro.
4491         * doc/md.texi: (MorphoTech family): Remove.
4492         * libgcc2.c: Don't handle UWIN.
4493         * config/alpha/t-unicosmk: Remove.
4494         * config/alpha/unicosmk.h: Remove.
4495         * config/arm/kaos-arm.h: Remove.
4496         * config/arm/kaos-strongarm.h: Remove.
4497         * config/arm/strongarm-coff.h: Remove.
4498         * config/arm/strongarm-elf.h: Remove.
4499         * config/arm/strongarm-pe.h: Remove.
4500         * config/arm/t-strongarm-pe: Remove.
4501         * config/arm/t-xscale-coff: Remove.
4502         * config/arm/t-xscale-elf: Remove.
4503         * config/arm/xscale-coff.h: Remove.
4504         * config/arm/xscale-elf.h: Remove.
4505         * config/chorus.h: Remove.
4506         * config/cris/aout.h: Remove.
4507         * config/cris/aout.opt: Remove.
4508         * config/cris/t-aout: Remove.
4509         * config/i386/beos-elf.h: Remove.
4510         * config/i386/kaos-i386.h: Remove.
4511         * config/i386/ptx4-i.h: Remove.
4512         * config/i386/sco5.h: Remove.
4513         * config/i386/sco5.opt: Remove.
4514         * config/i386/sysv4-cpp.h: Remove.
4515         * config/i386/sysv5.h: Remove.
4516         * config/i386/t-beos: Remove.
4517         * config/i386/t-sco5: Remove.
4518         * config/i386/t-uwin: Remove.
4519         * config/i386/uwin.asm: Remove.
4520         * config/i386/uwin.h: Remove.
4521         * config/kaos.h: Remove.
4522         * config/mips/windiss.h: Remove.
4523         * config/mt: Remove directory.
4524         * config/pa/pa-osf.h: Remove.
4525         * config/pa/pa-pro-end.h: Remove.
4526         * config/pa/t-pro: Remove.
4527         * config/ptx4.h: Remove.
4528         * config/rs6000/beos.h: Remove.
4529         * config/rs6000/kaos-ppc.h: Remove.
4530         * config/rs6000/t-beos: Remove.
4531         * config/rs6000/windiss.h: Remove.
4532         * config/sh/kaos-sh.h: Remove.
4533         * config/sol2-6.h: Remove.
4534         * config/sparc/sol26-sld.h: Remove.
4535         * config/sparc/sysv4-only.h: Remove.
4536         * config/vax/bsd.h: Remove.
4537         * config/vax/t-memfuncs: Remove.
4538         * config/vax/ultrix.h: Remove.
4539         * config/vax/vaxv.h: Remove.
4540         * config/windiss.h: Remove.
4542 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
4544         PR rtl-optimization/36438
4545         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4546         for vector shifts with constant scalar shift operands.
4548 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
4550         * doc/invoke.texi: Document -march=xlr.
4551         * config/mips/xlr.md: New file.
4552         * config/mips/mips.md: Include it.
4553         (cpu): Add "xlr".
4554         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4555         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4556         (mips_rtx_cost_data): Likewise.
4558 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
4560         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4561         PRE_INC and PRE_DEC cases.
4563 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4565         PR rtl-optimization/36419
4566         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4567         the emitting jump insn.
4569         PR target/36362
4570         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4571         is not bool, boolify the whole *expr_p and convert to the desired type.
4573 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4575         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4576         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4577         Add omp_private_outer_ref hook, add another argument to
4578         omp_clause_default_ctor hook.
4579         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4580         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4581         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4582         hook_tree_tree_tree_tree_null.
4583         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4584         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4585         * hooks.c (hook_tree_tree_tree_tree_null): New function.
4586         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4587         * tree.def (OMP_TASK): New tree code.
4588         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4589         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4590         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4591         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4592         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4593         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4594         OMP_CLAUSE_COLLAPSE_EXPR): Define.
4595         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4596         (OMP_DIRECTIVE_P): Add OMP_TASK.
4597         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4598         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4599         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4600         and OMP_CLAUSE_UNTIED entries.
4601         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
4602         num_ops to 2.
4603         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4604         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4605         * tree-pretty-print.c (dump_omp_clause): Handle
4606         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4607         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4608         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4609         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
4610         warning about unsigned iterators.  Change decl/init/cond/incr
4611         arguments to TREE_VECs, check arguments for all collapsed loops.
4612         (c_finish_omp_taskwait): New function.
4613         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4614         ws_clauses.
4615         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
4616         default_function_array_conversion on init.  Add par_clauses argument.
4617         If decl is present in parallel's lastprivate clause, change it to
4618         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4619         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
4620         collapse count in clauses.
4621         (c_parser_omp_for, c_parser_omp_parallel): Adjust
4622         c_parser_omp_for_loop callers.
4623         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4624         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4625         (c_parser_omp_clause_name): Handle collapse and untied clauses.
4626         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4627         functions.
4628         (c_parser_omp_clause_schedule): Handle schedule(auto).
4629         Include correct location in the error message.
4630         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4631         and PRAGMA_OMP_CLAUSE_UNTIED.
4632         (OMP_TASK_CLAUSE_MASK): Define.
4633         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4634         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4635         * tree-nested.c (convert_nonlocal_omp_clauses,
4636         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4637         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4638         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4639         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4640         OMP_CLAUSE_DECL.
4641         (conver_nonlocal_reference, convert_local_reference,
4642         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
4643         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4644         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4645         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4646         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4647         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4648         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4649         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4650         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4651         OMP_CLAUSE_UNTIED.
4652         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4653         * c-common.h (c_finish_omp_taskwait): New prototype.
4654         * gimple-low.c (lower_stmt): Handle OMP_TASK.
4655         * tree-parloops.c (create_parallel_loop): Create 1 entry
4656         vectors for OMP_FOR_{INIT,COND,INCR}.
4657         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4658         (make_edges): Handle OMP_TASK.
4659         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4660         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4661         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4662         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4663         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4664         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4665         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4666         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4667         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4668         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4669         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4670         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4671         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4672         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4673         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4674         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4675         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4676         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4677         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4678         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4679         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4680         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4681         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4682         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4683         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4684         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4685         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
4686         original iterator is present in lastprivate clause or if
4687         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
4688         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4689         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4690         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4691         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4692         if it is set, lookup var in outer contexts too.  Handle
4693         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
4694         to be implicitly determined firstprivate for task regions.
4695         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4696         if it is set, lookup var in outer contexts too.  Set
4697         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4698         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4699         OMP_CLAUSE_UNTIED.  Take region_type as last argument
4700         instead of in_parallel and in_combined_parallel.
4701         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4702         Adjust callers.
4703         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4704         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
4705         (new_omp_context): Set default_kind to
4706         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4707         (omp_region_type): New enum.
4708         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4709         fields, add region_type.
4710         (new_omp_context): Take region_type as argument instead of is_parallel
4711         and is_combined_parallel.
4712         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4713         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4714         ctx->is_combined_parallel checks.
4715         (gimplify_omp_task): New function.
4716         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4717         OMP_CLAUSE_UNTIED.
4718         * omp-low.c (extract_omp_for_data): Use schedule(static)
4719         for schedule(auto).  Handle pointer and unsigned iterators.
4720         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
4721         Add loops argument.  Extract data for collapsed OMP_FOR loops.
4722         (expand_parallel_call): Assert sched_kind isn't auto,
4723         map runtime schedule to index 3.
4724         (struct omp_for_data_loop): New type.
4725         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4726         Add loop, loops, collapse and iter_type fields.
4727         (workshare_safe_to_combine_p): Disallow combined for if
4728         iter_type is unsigned long long.  Don't combine collapse > 1 loops
4729         unless all bounds and steps are constant.  Adjust extract_omp_for_data
4730         caller.
4731         (expand_omp_for_generic): Handle pointer, unsigned and long long
4732         iterators.  Handle collapsed OMP_FOR loops.  Adjust
4733         for struct omp_for_data changes.  If libgomp function doesn't return
4734         boolean_type_node, add comparison of the return value with 0.
4735         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4736         pointer, unsigned and long long iterators.  Adjust for struct
4737         omp_for_data changes.
4738         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4739         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
4740         unsigned long long.  Allocate loops array, pass it to
4741         extract_omp_for_data.  For collapse > 1 loops use always
4742         expand_omp_for_generic.
4743         (omp_context): Add sfield_map and srecord_type fields.
4744         (is_task_ctx, lookup_sfield): New functions.
4745         (use_pointer_for_field): Use is_task_ctx helper.  Change first
4746         argument's type from const_tree to tree.  Clarify comment.
4747         In OMP_TASK disallow copy-in/out sharing.
4748         (build_sender_ref): Call lookup_sfield instead of lookup_field.
4749         (install_var_field): Add mask argument.  Populate both record_type
4750         and srecord_type if needed.
4751         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4752         in srecord_type.
4753         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4754         and DECL_FIELD_OFFSET.
4755         (scan_sharing_clauses): Adjust install_var_field callers.  For
4756         firstprivate clauses on explicit tasks allocate the var by value in
4757         record_type unconditionally, rather than by reference.
4758         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4759         Use is_taskreg_ctx instead of is_parallel_ctx.
4760         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4761         (create_omp_child_function_name): Add task_copy argument, use
4762         *_omp_cpyfn* names if it is true.
4763         (create_omp_child_function): Add task_copy argument, if true create
4764         *_omp_cpyfn* helper function.
4765         (scan_omp_parallel): Adjust create_omp_child_function callers.
4766         Rename parallel_nesting_level to taskreg_nesting_level.
4767         (scan_omp_task): New function.
4768         (lower_rec_input_clauses): Don't run constructors for firstprivate
4769         explicit task vars which are initialized by *_omp_cpyfn*.  
4770         Pass outer var ref to omp_clause_default_ctor hook if
4771         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4772         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4773         OMP_CLAUSE_REDUCTION_INIT.
4774         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4775         avoid duplicate setting of fields.  Handle
4776         OMP_CLAUSE_PRIVATE_OUTER_REF.
4777         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
4778         copy-out if TREE_READONLY, only copy-in.
4779         (expand_task_copyfn): New function.
4780         (expand_task_call): New function.
4781         (struct omp_taskcopy_context): New type.
4782         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4783         New functions.
4784         (lower_omp_parallel): Rename to...
4785         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
4786         Call create_task_copyfn if srecord_type is needed.  Adjust
4787         sender_decl type.
4788         (task_shared_vars): New variable.
4789         (check_omp_nesting_restrictions): Warn if work-sharing,
4790         barrier, master or ordered region is closely nested inside OMP_TASK.
4791         Add warnings for barrier if closely nested inside of work-sharing,
4792         ordered, or master region.
4793         (scan_omp_1): Call check_omp_nesting_restrictions even for
4794         GOMP_barrier calls.  Rename parallel_nesting_level to
4795         taskreg_nesting_level.  Handle OMP_TASK.
4796         (lower_lastprivate_clauses): Even if some lastprivate is found on a
4797         work-sharing construct, continue looking for them on parent parallel
4798         construct.
4799         (lower_omp_for_lastprivate): Add lastprivate clauses
4800         to the beginning of dlist rather than end.  Adjust for struct
4801         omp_for_data changes.
4802         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4803         not after it.  Handle collapsed OMP_FOR loops, adjust for
4804         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4805         (get_ws_args_for): Adjust extract_omp_for_data caller.
4806         (scan_omp_for): Handle collapsed OMP_FOR
4807         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4808         (lower_omp_single_simple): If libgomp function doesn't return
4809         boolean_type_node, add comparison of the return value with 0.
4810         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4811         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
4812         (parallel_nesting_level): Rename to...
4813         (taskreg_nesting_level): ... this.
4814         (is_taskreg_ctx): New function.
4815         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4816         of is_parallel_ctx.
4817         (execute_lower_omp): Rename parallel_nesting_level to
4818         taskreg_nesting_level.
4819         (expand_omp_parallel): Rename to...
4820         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
4821         Call omp_task_call for OMP_TASK regions.
4822         (expand_omp): Adjust caller, handle OMP_TASK.
4823         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
4825         * bitmap.c (bitmap_default_obstack_depth): New variable.
4826         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
4827         if argument is NULL and bitmap_default_obstack is already initialized.
4828         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
4829         at the end.
4830         * matrix-reorg.c (matrix_reorg): Likewise.
4832 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
4834         * config/i386/i386.md (*indirect_jump): Macroize using P
4835         mode iterator.  Remove !TARGET_64BIT from insn constraints.
4836         (*tablejump_1): Ditto.
4837         (*indirect_jump_rex64): Remove insn pattern.
4838         (*tablejump_1_rex64): Ditto.
4839         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
4840         and eh_return_si insn patterns.
4842 2008-06-06  Richard Guenther  <rguenther@suse.de>
4844         * tree-ssa-structalias.c (merge_smts_into): Remove.
4845         (find_what_p_points_to): Do not bother to compute the
4846         points-to set for pt_anything pointers.
4847         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
4848         for pt_anything pointers is ok.
4850 2008-06-06  Jan Hubicka  <jh@suse.cz>
4852         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
4854 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4856         * cgraph.c: Fix typos in comments.
4857         (cgraph_availability_names): Fix string typo.
4858         * fold-const.c: Fix typos in comments.
4859         (fold_binary): Fix typo in warning.
4860         * genautomata.c: Fix typos in comments.
4861         (check_presence_pattern_sets): Fix typo in local variable.
4862         (output_description): Fix typo in output.
4863         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4864         * hwint.h: Likewise.
4865         * matrix-reorg.c (check_allocation_function): Likewise.
4866         * omega.c (smooth_weird_equations): Likewise.
4867         * auto-inc-dec.c: Fix typos in comments.
4868         * bb-reorder.c: Likewise.
4869         * builtins.c: Likewise.
4870         * c-common.c: Likewise.
4871         * c-cppbuiltin.c: Likewise.
4872         * c-parser.c: Likewise.
4873         * c-pretty-print.c: Likewise.
4874         * cfgcleanup.c: Likewise.
4875         * cfgexpand.c: Likewise.
4876         * cfghooks.c: Likewise.
4877         * cfglayout.c: Likewise.
4878         * cfgloopmanip.c: Likewise.
4879         * cgraphunit.c: Likewise.
4880         * coverage.c: Likewise.
4881         * dbxout.c: Likewise.
4882         * df-byte-scan.c: Likewise.
4883         * df-core.c: Likewise.
4884         * df-problems.c: Likewise.
4885         * df-scan.c: Likewise.
4886         * dfp.c: Likewise.
4887         * dominance.c: Likewise.
4888         * domwalk.c: Likewise.
4889         * dse.c: Likewise.
4890         * dwarf2out.c: Likewise.
4891         * emit-rtl.c: Likewise.
4892         * et-forest.c: Likewise.
4893         * function.c: Likewise.
4894         * function.h: Likewise.
4895         * gcc.c: Likewise.
4896         * gcov-io.c: Likewise.
4897         * gcov.c: Likewise.
4898         * gcse.c: Likewise.
4899         * genattrtab.c: Likewise.
4900         * ggc-page.c: Likewise.
4901         * gimplify.c: Likewise.
4902         * gthr-lynx.h: Likewise.
4903         * haifa-sched.c: Likewise.
4904         * ipa-cp.c: Likewise.
4905         * ipa-inline.c: Likewise.
4906         * ipa-prop.h: Likewise.
4907         * ipa-pure-const.c: Likewise.
4908         * ipa-struct-reorg.c: Likewise.
4909         * ipa-struct-reorg.h: Likewise.
4910         * ipa-type-escape.c: Likewise.
4911         * ipa.c: Likewise.
4912         * loop-doloop.c: Likewise.
4913         * mips-tfile.c: Likewise.
4914         * mkmap-flat.awk: Likewise.
4915         * mkmap-symver.awk: Likewise.
4916         * modulo-sched.c: Likewise.
4917         * omp-low.c: Likewise.
4918         * optabs.c: Likewise.
4919         * optabs.h: Likewise.
4920         * opts.c: Likewise.
4921         * passes.c: Likewise.
4922         * postreload-gcse.c: Likewise.
4923         * postreload.c: Likewise.
4924         * predict.c: Likewise.
4925         * pretty-print.h: Likewise.
4926         * profile.c: Likewise.
4927         * protoize.c: Likewise.
4928         * ra-conflict.c: Likewise.
4929         * real.c: Likewise.
4930         * recog.c: Likewise.
4931         * regclass.c: Likewise.
4932         * regs.h: Likewise.
4933         * reload.c: Likewise.
4934         * rtl-error.c: Likewise.
4935         * rtlanal.c: Likewise.
4936         * scan.h: Likewise.
4937         * sched-rgn.c: Likewise.
4938         * see.c: Likewise.
4939         * stmt.c: Likewise.
4940         * target.h: Likewise.
4941         * tree-dfa.c: Likewise.
4942         * tree-eh.c: Likewise.
4943         * tree-flow-inline.h: Likewise.
4944         * tree-inline.c: Likewise.
4945         * tree-into-ssa.c: Likewise.
4946         * tree-loop-distribution.c: Likewise.
4947         * tree-nested.c: Likewise.
4948         * tree-parloops.c: Likewise.
4949         * tree-pass.h: Likewise.
4950         * tree-pretty-print.c: Likewise.
4951         * tree-profile.c: Likewise.
4952         * tree-scalar-evolution.c: Likewise.
4953         * tree-sra.c: Likewise.
4954         * tree-ssa-alias-warnings.c: Likewise.
4955         * tree-ssa-ccp.c: Likewise.
4956         * tree-ssa-coalesce.c: Likewise.
4957         * tree-ssa-dom.c: Likewise.
4958         * tree-ssa-dse.c: Likewise.
4959         * tree-ssa-forwprop.c: Likewise.
4960         * tree-ssa-live.c: Likewise.
4961         * tree-ssa-live.h: Likewise.
4962         * tree-ssa-loop-im.c: Likewise.
4963         * tree-ssa-loop-ivopts.c: Likewise.
4964         * tree-ssa-loop-niter.c: Likewise.
4965         * tree-ssa-loop-prefetch.c: Likewise.
4966         * tree-ssa-phiopt.c: Likewise.
4967         * tree-ssa-phiprop.c: Likewise.
4968         * tree-ssa-sccvn.c: Likewise.
4969         * tree-ssa-ter.c: Likewise.
4970         * tree-ssa-threadupdate.c: Likewise.
4971         * tree-ssa.c: Likewise.
4972         * tree-vect-analyze.c: Likewise.
4973         * tree-vect-transform.c: Likewise.
4974         * tree-vectorizer.c: Likewise.
4975         * tree-vn.c: Likewise.
4976         * tree-vrp.c: Likewise.
4977         * tree.c: Likewise.
4978         * tree.def: Likewise.
4979         * tree.h: Likewise.
4980         * unwind-dw2-fde.c: Likewise.
4981         * unwind.inc: Likewise.
4982         * value-prof.c: Likewise.
4983         * vmsdbgout.c: Likewise.
4985 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
4987         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4988         always place FP constants in the TOC for TARGET_POWERPC64.
4989         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4991 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
4993         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4994         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4995         enable for TARGET_E500_DOUBLE.
4996         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4997         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4998         floating-point modes like integer modes for E500 double.
4999         (rs6000_legitimate_offset_address_p): Likewise.
5000         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5001         addressing for DDmode for E500 double.
5002         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5003         modes as using 64-bits of registers for E500 double.
5004         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5005         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5006         specially for E500 double.
5007         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5008         TDmode for E500 double.
5009         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5010         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5011         (rs6000_split_multireg_move): Do not handle TDmode specially for
5012         E500 double.
5013         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5014         using 64-bit registers for E500 double.
5015         (emit_frame_save): Do not handle DDmode specially for E500 double.
5016         (gen_frame_mem_offset): Likewise.
5017         (rs6000_function_value): Do not call spe_build_register_parallel
5018         for DDmode or TDmode.
5019         (rs6000_libcall_value): Likewise.
5020         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5021         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5022         for E500 double.
5024 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5026         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5027         in comments.
5029 2008-06-04  Junjie Gu <jgu@tensilica.com>
5031         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5032         comparison for frame pointers.
5034 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5036         PR target/27386
5037         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5039 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5041         PR target/30243
5042         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5043         register is already smaller or equal to required mode. 
5045 2008-06-04  Xinliang David Li  <davidxl@google.com>
5047         * tree-call-cdce.c: New file. 
5048         (cond_dead_built_in_calls): New static variable.
5049         (input_domain): New struct.
5050         (check_pow): New function.
5051         (check_builtin_call): Ditto.
5052         (check_target_format): Ditto.
5053         (is_call_dce_candidate): Ditto.
5054         (gen_one_condition): Ditto.
5055         (gen_conditions_for_domain): Ditto.
5056         (get_domain): Ditto.
5057         (gen_conditions_for_pow_cst_base): Ditto.
5058         (gen_conditions_for_pow_int_base): Ditto.
5059         (gen_conditions_for_pow): Ditto.
5060         (get_no_error_domain): Ditto.
5061         (gen_shrink_wrap_conditions): Ditto.
5062         (shrink_wrap_one_built_in_call): Ditto.
5063         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5064         (tree_call_cdce): Ditto.
5065         (gate_call_cdce): Ditto.
5066         (pass_call_cdce): New gimple pass.
5067         * passes.c: (init_optimization_passes): New pass.
5068         * tree-pass.h: New pass declaration.
5069         * opts.c (decode_options): New flag setting.
5070         * common.opt: Add -ftree-builtin-call-dce flag.
5071         * Makefile.in: Add new source file.
5072         * tempvar.def: New tv_id.
5073         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5075 2008-06-04  Richard Guenther  <rguenther@suse.de>
5077         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5078         (is_call_clobbered): Always check var_ann->call_clobbered.
5079         (mark_call_clobbered): Always set var_ann->call_clobbered.
5080         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5081         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5082         (reset_alias_info): Clear call clobbering info on MTAGs and
5083         globals as well.
5084         (set_pt_anything): Set pt_global_mem.
5085         (create_tag_raw): Adjust comment.
5086         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5088 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5089             Maxim Kuvyrkov  <maxim@codesourcery.com>
5091         * config/m68k/m68k.opt (mxgot): New option.
5092         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5093         (m68k_output_addr_const_extra): New.
5094         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5095         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5096         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5097         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5099 2008-06-04  Richard Guenther  <rguenther@suse.de>
5101         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5102         negative or non-representable offsets.
5104 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5106         * config/i386/i386.c (ix86_gen_leave): New.
5107         (ix86_gen_pop1): Likewise.
5108         (ix86_gen_add3): Likewise.
5109         (ix86_gen_sub3): Likewise.
5110         (ix86_gen_sub3_carry): Likewise.
5111         (ix86_gen_one_cmpl2): Likewise.
5112         (ix86_gen_monitor): Likewise.
5113         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5114         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5115         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5116         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5117         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5118         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5119         (ix86_expand_epilogue): Updated.
5120         (print_operand): Handle integer register operand for 'z'.
5121         (ix86_expand_strlensi_unroll_1): Likewise.
5122         (ix86_expand_strlen): Likewise.
5123         (ix86_expand_builtin): Likewise.
5124         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5125         mov{q}/mov{l} and add{q}/add{l}.
5127 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5129         * config/i386/i386.md (P): New mode iterator.
5130         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5131         using P mode iterator.
5132         (DFmode push_operand splitter): Ditto.
5133         (XFmode push_operand splitter): Ditto.
5134         (DFmode float_extend SFmode push_operand splitter): Ditto.
5135         (XFmode float_extend SFmode push_operand splitter): Do not generate
5136         SImode pushes for 64bit target.  Macroize Dimode and SImode
5137         pushes using P mode iterator.
5138         (XFmode float_extend DFmode push_operand splitter): Ditto.
5140 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5142         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5143         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5144         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5145         return type to int.
5146         (ix86_call_abi_override): Remove check for call_used_regs.
5148 2008-06-03  Richard Guenther  <rguenther@suse.de>
5150         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5151         for the lhs of calls if the return type contains pointers.
5153 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5155         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5156         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5157         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5158         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5159         of cfun and DEFAULT_ABI to deceide abi mode.
5160         (DEFAULT_ABI): New.
5161         (REG_PARM_STACK_SPACE): Removed.
5162         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5163         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5164         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5165         (ix86_function_abi): Likewise.
5166         (ix86_function_type_abi): Likewise.
5167         (ix86_call_abi_override): Likewise.
5168         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5169         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5170         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5171         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5172         specific defines.
5173         (X86_64_REGPARM_MAX): New.
5174         (X86_64_SSE_REGPARM_MAX): New.
5175         (X64_REGPARM_MAX): New.
5176         (X64_SSE_REGPARM_MAX): New.
5177         (X86_32_REGPARM_MAX): New.
5178         (X86_32_SSE_REGPARM_MAX): New.
5179         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5180         (ix86_function_regparm): Handle user calling abi.
5181         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5182         by DEFAULT_ABI versus SYSV_ABI check.
5183         (ix86_reg_parm_stack_space): New.
5184         (ix86_function_type_abi): New.
5185         (ix86_call_abi_override): New.
5186         (ix86_function_abi): New.
5187         (ix86_cfun_abi): New.
5188         (init_cumulative_args): Call abi specific initialization.
5189         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5190         (function_arg_64): Extend SSE_REGPARM_MAX check.
5191         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5192         (ix86_pass_by_reference): Likewise.
5193         (ix86_function_value_regno_p): Likewise.
5194         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5195         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5196         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5197         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5198         (setup_incoming_varargs_64): Adjust regparm for call abi.
5199         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5200         (ix86_va_start): Likewise.
5201         (ix86_gimplify_va_arg): Likewise.
5202         (ix86_expand_prologue): Likewise.
5203         (output_pic_addr_const): Likewise.
5204         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5205         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5206         (x86_output_mi_thunk): Likewise.
5207         (x86_function_profiler): Likewise.
5208         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5209         (SYSV_ABI, MS_ABI): New constants.
5210         (DEFAULT_ABI): New.
5211         (init_regs): Add prototype of function in regclass.c file.
5212         (OVERRIDE_ABI_FORMAT): New.
5213         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5214         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5215         (OUTGOING_REG_PARM_STACK_SPACE): New.
5216         (ix86_reg_parm_stack_space): New prototype.
5217         (CUMULATIVE_ARGS): Add call_abi member.
5218         (machine_function): Add call_abi member.
5219         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5220         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5222 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
5224         PR target/34879
5225         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5226         (avr_builtin_setjmp_frame_value): New function.
5227         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5228         (nonlocal_goto): Define.
5230 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5232         * config/mips/mips.c (mips_emit_loadgp): Return early if
5233         there is nothing do to, otherwise emit a blockage if
5234         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5235         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5237 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5239         * configure.ac: Drop unneeded backslash ending up in config.in.
5240         * acinclude.m4: Likewise.
5241         * config.in: Regenerate.
5243 2008-05-26  Jan Hubicka  <jh@suse.cz>
5245         * predict.c (maybe_hot_frequency_p): Break out of...
5246         (maybe_hot_bb_p): ... here.
5247         (maybe_hot_edge_p): New.
5248         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5249         * basic-block.h (maybe_hot_edge_p): Declare.
5251 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5253         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5254         (*cmpfp_<mode>_cc): Ditto.
5255         (*fp_jcc_8<mode>_387): Ditto.
5256         (*fop_<MODEF:mode>_2_i387): Ditto.
5257         (*fop_<MODEF:mode>_3_i387): Ditto.
5258         (*fop_xf_2_i387): Ditto.
5259         (*fop_xf_3_i387): Ditto.
5261 2008-06-02  Tomas Bily  <tbily@suse.cz>
5263         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5265 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5267         * config/mips/mips.c (mips_valid_offset_p): New function.
5268         (mips_valid_lo_sum_p): Likewise.
5269         (mips_classify_address): Use them.
5270         (mips_force_address): New function.
5271         (mips_legitimize_address): Use it.
5272         * config/mips/mips.md (MOVE128): New mode iterator.
5273         (movtf): Require TARGET_64BIT.  Remove empty strings.
5274         (*movtf_internal): Rename to...
5275         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5276         of "R" and use {,fp}{load,store} attributes instead of "multi".
5277         Use a separate define_split.
5278         (*movtf_mips16): New pattern.
5280 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5282         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5283         * config/mips/mips.c (mips_expand_before_return): New function.
5284         (mips_expand_epilogue): Call it.
5285         * config/mips/mips.md (return): Turn into a define_expand.
5286         (*return): New insn.
5288 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5290         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5291         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5292         functions.  Do not emit uses and clobbers of CONCATs; individually
5293         use and clobber their operands.
5294         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5295         gen_clobber, emit_use and gen_use.
5296         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5297         (expand_builtin_return): Likewise.
5298         * cfgbuild.c (count_basic_blocks): Likewise.
5299         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5300         * explow.c (emit_stack_restore): Likewise.
5301         * expmed.c (extract_bit_field_1): Likewise.
5302         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5303         (emit_move_multi_word, store_constructor): Likewise.
5304         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5305         (thread_prologue_and_epilogue_insns): Likewise.
5306         * lower-subreg.c (resolve_simple_move): Likewise.
5307         * optabs.c (widen_operand, expand_binop): Likewise.
5308         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5309         * reload.c (find_reloads): Likewise.
5310         * reload1.c (eliminate_regs_in_insn): Likewise.
5311         * stmt.c (expand_nl_goto_receiver): Likewise.
5312         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5313         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5314         * config/arm/arm.c (arm_load_pic_register): Likewise.
5315         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5316         * config/arm/arm.md (untyped_return): Likewise.
5317         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5318         * config/avr/avr.c (expand_prologue): Likewise.
5319         * config/bfin/bfin.c (do_unlink): Likewise.
5320         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5321         * config/cris/cris.c (cris_expand_prologue): Likewise.
5322         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5323         (machopic_legitimize_pic_address): Likewise.
5324         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5325         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5326         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5327         (ix86_expand_convert_uns_didf_sse): Likewise.
5328         (ix86_expand_vector_init_general): Likewise.
5329         * config/ia64/ia64.md (eh_epilogue): Likewise.
5330         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5331         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5332         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5333         (config/iq2000/iq2000.c): Likewise.
5334         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5335         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5336         (builtin_longjmp): Likewise.
5337         * config/mn10300/mn10300.md (call, call_value): Likewise.
5338         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5339         * config/pdp11/pdp11.md (abshi2): Likewise.
5340         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5341         * config/s390/s390.c (s390_emit_prologue): Likewise.
5342         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5343         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5344         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5345         * config/sh/sh.c (prepare_move_operands): Likewise.
5346         (output_stack_adjust, sh_expand_epilogue): Likewise.
5347         (sh_set_return_address, sh_expand_t_scc): Likewise.
5348         * config/sparc/sparc.c (load_pic_register): Likewise.
5349         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5350         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5351         * config/v850/v850.c (expand_epilogue): Likewise.
5353 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5355         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5356         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5357         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5358         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
5359         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
5360         stack pointer register.
5361         (output_movhi): Remove code for interrupt specific writing to the 
5362         stack pointer register.
5364 2008-05-31  Richard Guenther  <rguenther@suse.de>
5366         PR tree-optimization/34244
5367         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5368         (tree_expr_nonzero_warnv_p): Likewise.
5369         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5370         ssa_name_nonnegative_p.
5371         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5372         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5373         not tree_expr_nonzero_warnv_p.
5375         PR tree-optimization/36262
5376         Revert
5377         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5379         PR tree-optimization/34244
5380         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5381         (record_numbers_of_iterations): New function.
5382         (execute_vrp): Cache the numbers of iterations of loops.
5383         * tree-scalar-evolution.c (scev_reset_except_niters):
5384         New function.
5385         (scev_reset): Use scev_reset_except_niters.
5386         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5388 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5390         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5391         __WORKAROUND_RETS when appropriate.
5393 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5395         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5396         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5397         mode iterator.
5398         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5399         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5400         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5401         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5402         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5403         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5404         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5405         *fop_df_1_sse insn patterns using MODEF mode iterator.
5406         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5407         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5408         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5409         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5410         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5411         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5412         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5413         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5414         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5415         (*fop_xf_5_i387): Ditto.
5416         (*fop_xf_6_i387): Ditto.
5418 2008-05-30  Richard Guenther  <rguenther@suse.de>
5420         * builtins.c (build_string_literal): Avoid generating
5421         a non-gimple_val result.
5423 2008-05-30  DJ Delorie  <dj@redhat.com>
5425         * exec-tool.in: Use an environment variable (private) instead of a
5426         file (shared) as a semaphore, so as to not break parallel builds.
5428 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5430         * optabs.c (maybe_encapsulate_block): Remove.
5431         (emit_libcall_block): Adjust accordingly.
5432         * optabs.h (maybe_encapsulate_block): Remove prototype.
5434         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5435         Don't use maybe_encapsulate_block.
5437 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5439         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5440         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5441         rtx is a SYMBOL_REF before calling get_pool_constant.
5443 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5445         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5447 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5449         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5450         rather than OS names to choose INO_T_EQ definition.
5451         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5452         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5454 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5456         PR target/36348
5457         * config/darwin-f.c: New.
5458         * config/t-darwin: Added rule to build darwin-f.o.
5459         * config.gcc: Defined new variable, fortran_target_objs.
5460         (*-*-darwin*): Set fortran_target_objs.
5461         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5462         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5463         * configure: Regenerated.
5465 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5467         PR target/35771
5468         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5469         canonical type if needed.
5471 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
5473         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5475 2008-05-29  Richard Guenther  <rguenther@suse.de>
5477         PR tree-optimization/36343
5478         PR tree-optimization/36346
5479         PR tree-optimization/36347
5480         * tree-flow.h (clobber_what_p_points_to): Declare.
5481         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5482         pointed-to variable is dereferenced is irrelevant to whether
5483         the pointer can access the pointed-to variable.
5484         (clobber_what_p_points_to): New function.
5485         * tree-ssa-alias.c (set_initial_properties): Use it.
5486         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5487         call clobber check for NMTs.
5489 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5490         
5491         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5492         for printing gcov_type.
5494 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5496         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5497         and the eh region information.
5498         * value-prof.c (gimple_move_stmt_histograms): New function.
5499         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5501 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
5503         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5505 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
5507         * value-prof.c (tree_ic_transform): Print counts.
5508         * tree-profile.c (tree_gen_ic_func_profiler):
5509         Clear __gcov_indreict_call_callee variable to avoid misattribution
5510         of the profile.
5512 2008-05-28  Rafael Espindola  <espindola@google.com>
5514         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5515         invalid sharing.
5517 2008-05-28  Richard Guenther  <rguenther@suse.de>
5519         PR tree-optimization/36339
5520         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5521         and clobbering code out of the loop.
5523 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5525         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5526         letters defined.
5528         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5529         s390_contiguous_bitmask_p, s390_symref_operand_p,
5530         s390_check_symref_alignment, s390_reload_larl_operand,
5531         s390_reload_symref_address): New functions.
5532         (s390_branch_condition_mnemonic): Support compare and branch
5533         instructions.
5534         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5535         and 'W' constraints.
5536         (s390_secondary_reload): Add secondary reloads for unaligned
5537         symbol refs or symbol refs to floating point or QI/TI mode
5538         integer values.
5539         (legitimate_address_p): Accept symbol references as addresses.
5540         (s390_expand_insv): Use rotate and insert selected bits
5541         instruction for insv when building for z10.
5542         (print_operand_address): Handle symbol ref addresses.
5543         (print_operand): Output modifier 'c' added for signed byte values.
5544         (s390_encode_section_info): Mark symbol refs with
5545         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5547         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5548         (length attribute): RRF, RRR have 4 byte length.
5549         (FPALL, INTALL): New mode iterators added.
5550         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5551         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5552         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5553         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5554         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5555         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5556         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5557         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5558         instructions.
5559         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5560         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5561         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5562         reload<INTALL:mode><P:mode>_toreg_z10,
5563         reload<FPALL:mode><P:mode>_tomem_z10,
5564         reload<FPALL:mode><P:mode>_toreg_z10,
5565         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5566         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5567         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5568         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5569         definition.
5570         (movmem, clrmem, cmpmem): New splitters added.
5572         * config/s390/predicates.md (larl_operand): Use
5573         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5574         SYMBOL_REF_ALIGN1_P.
5575         (s390_signed_integer_comparison,
5576         s390_unsigned_integer_comparison): New predicates.
5578         * config/s390/s390-protos.h (s390_check_symref_alignment,
5579         s390_contiguous_bitmask_p, s390_reload_larl_operand,
5580         s390_reload_symref_address,
5581         s390_compare_and_branch_condition_mask): Prototypes added.
5583         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5584         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5585         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5587 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5589         * config/s390/s390.c (z10_cost): New cost function for z10.
5590         (s390_handle_arch_option, override_options): Support -march=z10 switch.
5591         (s390_issue_rate): Adjust issue rate for z10.
5592         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5593         (processor_flags): Add PF_Z10.
5594         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5595         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5596         * gcc/config.gcc: Add z10.
5598 2008-05-28  Richard Guenther  <rguenther@suse.de>
5600         PR tree-optimization/36291
5601         * tree-flow. h (struct gimple_df): Remove var_anns member.
5602         * tree-flow-inline.h (gimple_var_anns): Remove.
5603         (var_ann): Simplify.
5604         * tree-dfa.c (create_var_ann): Simplify.
5605         (remove_referenced_var): Clear alias info from var_anns of globals.
5606         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5607         (delete_tree_ssa): Clear alias info from var_anns of globals.
5608         Do not free var_anns.
5609         (var_ann_eq): Remove.
5610         (var_ann_hash): Likewise.
5612 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
5614         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5615         and loongson2f entries.
5616         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5617         * config/mips/mips.h (processor_type): Add Loongson-2E
5618         and Loongson-2F entries.
5619         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5620         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5621         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5622         * doc/invoke.texi (MIPS Options): Document loongson2e
5623         and loongson2f processor names.
5625 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5627         PR target/35767
5628         PR target/35771
5629         * config/i386/i386.c (ix86_function_arg_boundary): Use
5630         alignment of canonical type.
5631         (ix86_expand_vector_move): Check unaligned memory access for
5632         all SSE modes.
5634 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5636         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5637         Moved to the front of file.
5639 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
5640             H.J. Lu  <hongjiu.lu@intel.com>
5642         * dwarf2out.c (current_fde): New.
5643         (add_cfi): Use it.
5644         (lookup_cfa:): Likewise.
5645         (dwarf2out_end_epilogue): Likewise.
5646         (dwarf2out_note_section_used): Likewise.
5648 2008-05-27  Michael Matz  <matz@suse.de>
5650         PR c++/27975
5651         * c.opt (Wenum-compare): New warning option.
5652         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
5654 2008-05-27  Michael Matz  <matz@suse.de>
5656         PR middle-end/36326
5657         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5658         non-BLKmode types.
5659         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5660         into memory as tail calls.
5662 2008-05-27  Richard Guenther  <rguenther@suse.de>
5664         PR tree-optimization/36339
5665         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5666         pointers cause all addressable variables to be call clobbered.
5668 2008-05-27  Richard Guenther  <rguenther@suse.de>
5670         PR tree-optimization/36245
5671         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5673 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5675         * config/s390/s390.md: Replace all occurences of the 'm'
5676         constraint with 'RT'.
5678 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5680         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5681         definitions added.
5682         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5683         "*movdi_64".
5684         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5685         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5686         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5688 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5690         * reload.c: (find_reloads): Skip alternatives according to the
5691         "enabled" attribute. Constify the constraint variable.
5692         * recog.c (get_attr_enabled): Add default implementation.
5693         (extract_insn): Set the alternative_enabled_p array
5694         in the recog_data struct.
5695         (preprocess_constraints, constrain_operands): Skip
5696         alternatives according to the "enabled" attribute
5697         * recog.h (struct recog_data): New field alternative_enabled_p.
5698         (skip_alternative): New inline function.
5699         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5700         (record_reg_classes): Skip alternative according to the
5701         "enabled" attribute.
5703         * doc/md.texi: Add documention for the "enabled" attribute.
5705 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5707         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5708         * postreload.c (reload_cse_simplify_operands): Replace 'm'
5709         constraint with TARGET_MEM_CONSTRAINT.
5710         * recog.c (asm_operand_ok, preprocess_constraints,
5711         constrain_operands): Likewise.
5712         * regclass.c (record_reg_classes): Likewise.
5713         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5714         * reload1.c (maybe_fix_stack_asms): Likewise.
5715         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5716         * recog.h: Adjust comment.
5717         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5718         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5719         * doc/md.texi: Add a note to description of 'm' constraint.
5720         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5722 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5724         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5725         that the bitfield is of integral type before testing its precision.
5727 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5728             Sa Liu  <saliu@de.ibm.com> 
5730         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
5731         __modti3, __udivti3, __umodti3 and __udivmodti4.
5732         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5733         that implement TImode mul and div functions.
5734         * config/spu/multi3.c: New. Implement __multi3.
5735         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5736         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5737         functions on SPU.
5739 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
5741         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5742         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5743         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5744         tls_sysv_suffix): New mode and mode attribute iterators.
5745         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5746         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5747         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5748         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5749         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5750         iterators.
5752 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5754         PR tree-optimization/36329
5755         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5756         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5757         * cgraphbuild.c (initialize_inline_failed): Use the latter
5758         macro in lieu of the former.
5759         * ipa-inline.c (cgraph_mark_inline): Likewise.
5760         (cgraph_decide_inlining_of_small_function): Likewise.
5761         (cgraph_decide_inlining): Likewise.
5762         (cgraph_decide_inlining_incrementally): Likewise.
5764 2008-05-26  Tristan Gingold  <gingold@adacore.com>
5765             Anatoly Sokolov  <aesok@post.ru>
5767         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5768         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5769         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
5770         optimization for 'avr6' architecture.
5772 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
5774         PR target/34932
5775         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5777 2008-05-26  Richard Guenther  <rguenther@suse.de>
5779         * tree-ssa-sccvn.c (expr_has_constants): Declare.
5780         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5782 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
5784         PR middle-end/36253
5785         * caller-save.c (insert_restore): Verify alignment of spill space.
5786         (insert_save): Likewise.
5787         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5788         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5789         (STACK_SLOT_ALIGNMENT): Likewise.
5790         * function.c (LOCAL_ALIGNMENT): Removed.
5791         (get_stack_local_alignment): New.
5792         (assign_stack_local): Use it.  Set alignment on stack slot.
5793         (assign_stack_temp_for_type): Use get_stack_local_alignment.
5794         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5795         (STACK_SLOT_ALIGNMENT): New.
5796         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5797         stack slot in XFmode.
5799         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5801 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
5803         PR/36321
5804         * config/i386/i386.md (allocate_stack_worker_64): Make sure
5805         argument operand in rax isn't removed.
5807 2008-05-26  Richard Guenther  <rguenther@suse.de>
5809         PR middle-end/36300
5810         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5811         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
5813 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
5815         PR bootstrap/36331
5816         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5818 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
5820         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5821         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5823 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5825         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5826         build a trampoline if we don't want one.
5827         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5828         return zero for nested functions if we don't want a trampoline.
5830 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
5832         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5834 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
5836         PR fortran/18428
5837         * c.opt: Removed undocumented option '-lang-fortran'.
5838         * c-common.h: Removed global variable 'lang_fortran'.
5839         * c-opts.c (c_common_handle_option): Removed code to handle
5840         option '-lang-fortran'. Updated includes.
5841         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5842         definition of '__GFORTRAN__'.
5843         (define__GNUC__): Reimplemented to use BASEVER and
5844         cpp_define_formatted.
5845         (builtin_define_with_value_n): Removed.
5846         * c-incpath.h: Renamed to ...
5847         * incpath.h: ... this.
5848         * c-incpath.c: Renamed to ...
5849         * incpath.c: ... this. Updated includes.
5850         * fix-header.c: Updated includes.
5851         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5852         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5853         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5855 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5857         * tree.h: Update the table of flags used on tree nodes.
5858         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5859         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5860         (FORCED_LABEL): Add access check.
5861         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5862         (ASM_INPUT_P): Likewise.
5863         (ASM_VOLATILE_P): Likewise.
5864         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5865         (OMP_SECTION_LAST): Access private_flag directly.
5866         (OMP_RETURN_NOWAIT): Likewise.
5867         (OMP_PARALLEL_COMBINED): Likewise.
5868         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5869         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5870         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5871         deprecated_flag directly.
5873 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5875         * final.c (frame_pointer_needed): Removed.
5876         * flags.h (frame_pointer_needed): Likewise.
5878         * function.h (rtl_data): Add frame_pointer_needed.
5879         (frame_pointer_needed): New.
5881 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
5883         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5885 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
5887         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5888         SRC is a REG.
5890 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
5892         * c-common.c (strip_array_types): Move function to..
5893         * tree.c: ..here.
5894         (get_inner_array_type): Delete.
5895         * c-common.h (strip_array_types): Move declaration to..
5896         * tree.h: ..here.
5897         (get_inner_array_type): Delete.
5898         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5899         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5900         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5901         * config/pa/pa.c (emit_move_sequence): Likewise.
5903 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5905         * config/i386/i386.md (*sse_prologue_save_insn): Set length
5906         attribute to 34.
5908 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
5910         * function.c: Include target hook for nonlocal_goto frame value.
5912 2008-05-24  Richard Guenther  <rguenther@suse.de>
5914         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5915         variable can be only accessed through a pointer or a union.
5917 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5919         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5920         * doc/extend.texi: Likewise.
5922 2008-05-23  DJ Delorie  <dj@redhat.com>
5924         * config/m32c/jump.md (untyped_call): Add.
5926         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5927         for A24 to PSImode.
5928         (m32c_address_cost): Detail costs for indirect offsets.
5930 2008-05-23  Rafael Espindola  <espindola@google.com>
5932         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5933         if a node is a SUBREG.
5934         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5935         is a SUBREG.
5937 2008-05-23  Paul Brook  <paul@codesourcery.com>
5938             Carlos O'Donell  <carlos@codesourcery.com>
5940         * doc/extend.texi: Clarify use of __attribute__((naked)).
5941         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5942         * target.h (gcc_target): Add allocate_stack_slots_for_args.
5943         * function.c (use_register_for_decl): Use
5944         targetm.calls.allocate_stack_slots_for_args.
5945         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5946         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5947         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5949 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5951         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5953 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
5955         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5956         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5957         is only rounded once.
5959 2008-05-23  Richard Guenther  <rguenther@suse.de>
5961         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5963 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
5964             Jakub Jelinek  <jakub@redhat.com>
5966         PR target/36079
5967         * configure.ac: Handle --enable-cld.
5968         * configure: Regenerated.
5969         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5970         * config/i386/i386.h (struct machine_function): Add needs_cld field.
5971         (ix86_current_function_needs_cld): New define.
5972         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5973         (cld): New isns pattern.
5974         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5975         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5976         * config/i386/i386.opt (mcld): New option.
5977         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5978         TARGET_CLD and ix86_current_function_needs_cld.
5979         (override_options): Use -mcld by default for 32-bit code if
5980         USE_IX86_CLD.
5982         * doc/install.texi (Options specification): Document --enable-cld.
5983         * doc/invoke.texi (Machine Dependent Options)
5984         [i386 and x86-64 Options]: Add -mcld option.
5985         (Intel 386 and AMD x86-64 Options): Document -mcld option.
5987 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
5988         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5989         (return_in_memory_64): Likewise.
5990         (return_in_memory_ms_64): Likewise.
5992 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5994         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5995         * builtins.c (fold_builtin_fpclassify): New.
5996         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5997         * builtins.def (BUILT_IN_FPCLASSIFY): New.
5998         * c-common.c (handle_type_generic_attribute): Adjust to accept
5999         fixed arguments before an elipsis.
6000         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6001         * doc/extend.texi: Document __builtin_fpclassify.
6003 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6005         * omp-low.c (gate_expand_omp_ssa): Remove.
6006         (pass_expand_omp_ssa): Remove.
6007         (gate_expand_omp): Do not check for flag_openmp_ssa.
6008         * common.opt (-fopenmp-ssa): Remove.
6009         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6011 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6013         * config/sh/sh.opt (mfixed-range): New option.
6014         * config/sh/sh-protos.h (sh_fix_range): Declare.
6015         * config/sh/sh.c (sh_fix_range): New function.
6016         * config/sh/sh.h (sh_fixed_range_str): Declare.
6017         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6018         is not empty.
6019         * doc/invoke.texi (SH Options): Document -mfixed-range.
6021 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6023         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6024         it before the redeclaration.
6026 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6028         * config/avr/avr.c (get_sequence_length): Add new function.
6029         (expand_prologue, expand_epilogue): Remove duplicate code.
6031 2008-05-22  Rafael Espindola  <espindola@google.com>
6033         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6034         sharing.
6036 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6038         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6039         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6041         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6042         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6043         (vect_update_misalignment_for_peel): Likewise.
6044         (vector_alignment_reachable_p): Likewise.
6045         * tree-vect-transform.c (vectorizable_load): Likewise.
6046         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6047         (get_vectype_for_scalar_type): Pass mode of scalar_type
6048         to UNITS_PER_SIMD_WORD.
6050         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6051         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6052         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6053         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6054         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6056 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6058         PR tree-optimization/36293
6059         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6060         if the first load must be skipped because of a gap.
6062 2008-05-22  Richard Guenther  <rguenther@suse.de>
6064         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6065         more cases of offset disambiguation that is possible if
6066         strict-aliasing rules apply.
6067         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6068         for basic offset and type-based disambiguation.
6070 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6072         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6073         ix86_expand_vector_set on V16QImode for SSE4.1.
6075 2008-05-21  Tom Tromey  <tromey@redhat.com>
6077         * c.opt (Wimport): Mark as undocumented.
6078         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6079         -Wno-import.
6080         (Warning Options): Likewise.
6081         * doc/cppopts.texi: Don't mention -Wimport.
6083 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6085         PR tree-optimization/36287
6086         PR tree-optimization/36286
6087         * lambda-code.c (build_access_matrix): Do not use the loop->num
6088         for computing the number of induction variables: use the loop depth
6089         instead.
6091 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6093         PR/36280
6094         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6095         option -f(no-)leading-underscore.
6097 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6099         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6100         GET_MODE_NUNITS (mode).
6102 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6104         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6105         (-mmulhw): Add 464 to description.
6106         (-mdlmzb): Likewise.
6107         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6108         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6109         464fp entries.
6110         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6111         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6112         * config/rs6000/rs6000.md: Update comments for 464.
6114 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6116         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6118 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6120         * config/i386/sse.md (vec_extractv4sf): Removed.
6121         (vec_extractv2df): Likewise.
6122         (vec_extractv2di): Likewise.
6123         (vec_extractv4si): Likewise.
6124         (vec_extractv8hi): Likewise.
6125         (vec_extractv16qi): Likewise.
6126         (vec_extract<mode>): New.
6128 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6130         * config/i386/sse.md (vec_setv4sf): Removed.
6131         (vec_setv2df): Likewise.
6132         (vec_setv2di): Likewise.
6133         (vec_setv4si): Likewise.
6134         (vec_setv8hi): Likewise.
6135         (vec_setv16qi): Likewise.
6136         (vec_set<mode>): New.
6138 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6140         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6141         goto for vec_concat and vec_interleave.
6143 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6145         * config/i386/sse.md (vec_initv4sf): Removed.
6146         (vec_initv2df): Likewise.
6147         (vec_initv2di): Likewise.
6148         (vec_initv4si): Likewise.
6149         (vec_initv8hi): Likewise.
6150         (vec_initv16qi): Likewise.
6151         (vec_init<mode>): New.
6153 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6155         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6157 2008-05-21  Tom Tromey  <tromey@redhat.com>
6159         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6160         (zone_find_object_offset): Likewise.
6161         (gt_ggc_m_S): Likewise.
6162         (highest_bit): Likewise.
6163         * ggc-page.c (gt_ggc_m_S): New function.
6164         * stringpool.c (string_stack): Remove.
6165         (init_stringpool): Update.
6166         (ggc_alloc_string): Use ggc_alloc.
6167         (maybe_delete_ident): New function.
6168         (ggc_purge_stringpool): Likewise.
6169         (gt_ggc_m_S): Remove.
6170         * ggc-common.c (ggc_protect_identifiers): New global.
6171         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6172         ggc_protect_identifiers.
6173         * ggc.h (ggc_protect_identifiers): Declare.
6174         (gt_ggc_m_S): Update.
6175         (ggc_purge_stringpool): Declare.
6176         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6177         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6178         special case.
6179         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6181 2008-05-21  David S. Miller  <davem@davemloft.net>
6183         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6184         tmake_file.
6186 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6188         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6189         once finished.
6191 2008-05-20  David Daney  <ddaney@avtrex.com>
6193         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6194         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6195         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6196         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6197         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6198         (atomic_hiqi_op): New define_code_iterator.
6199         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6200         mips_expand_compare_and_swap_12.
6201         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6202         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6203         (sync_<optab><mode>, sync_old_<optab><mode>,
6204         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6205         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6206         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6207         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6208         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6209         (test_and_set_12): New insn.
6210         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6211         sync_new_<optab><mode>, sync_old_nand<mode>,
6212         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6213         clobber to operand 0 for SI and DI mode insns.
6214         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6215         mips_gen_fn_4): New typedefs.
6216         (mips_gen_fn_ptrs): Define new union type.
6217         (mips_expand_compare_and_swap_12): Remove declaration.
6218         (mips_expand_atomic_qihi): Declare function.
6219         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6220         (mips_expand_atomic_qihi): ... this.  Use new generator function
6221         parameter.
6222         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6223         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6224         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6225         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6226         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6227         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6228         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6229         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6230         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6231         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6232         New macros.
6234 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6236         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6237         the missing break.
6239 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6241         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6242         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6243         (avr_attribute_table): Add 'OS_main' function attribute.
6244         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6245         functions with 'OS_main' attribute.
6247 2008-05-20  Richard Guenther  <rguenther@suse.de>
6249         PR tree-optimization/35204
6250         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6251         helper, split out from ...
6252         (DFS): ... here.  Make the DFS walk non-recursive.
6254 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6255             Jan Sjodin  <jan.sjodin@amd.com>
6257         PR tree-optimization/36181
6258         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6259         (parallelize_loops): Don't parallelize when the loop has vector
6260         phi nodes.
6262 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6263             Sebastian Pop  <sebastian.pop@amd.com>
6265         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6266         matrix, and never look at the tree representation of the memory
6267         accesses.
6268         (linear_transform_loops): Computes parameters and access matrices.
6269         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6270         when fails.
6271         (access_matrix_get_index_for_parameter): New.
6272         * tree-data-ref.h (struct access_matrix): New.
6273         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6274         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6275         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6276         am_vector_index_for_loop): New.
6277         (struct data_reference): Add field access_matrix.
6278         (DR_ACCESS_MATRIX): New.
6279         (compute_data_dependences_for_loop): Update declaration.
6280         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6281         * lambda.h (lambda_vector_vec_p): Declared.
6282         * lambda-code.c: Depend on pointer-set.h.
6283         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6284         av_for_af_base, av_for_af, build_access_matrix,
6285         lambda_compute_access_matrices): New.
6286         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6288 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6290         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6291         $SOURCEDIR/include.
6293 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6294             Sebastian Pop  <sebastian.pop@amd.com>
6296         PR tree-optimization/36206
6297         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6298         FOLD_CONVERSIONS.
6299         (instantiate_scev_1): Rename flags to fold_conversions.
6300         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6301         outeside instantiation_loop.
6302         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6303         (evolution_function_is_affine_or_constant_p): Removed.
6304         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6305         instantiate_scev.
6306         (analyze_siv_subscript): Pass in the loop nest number.
6307         Call evolution_function_is_affine_in_loop instead of 
6308         evolution_function_is_affine_p.
6309         (analyze_overlapping_iterations): Pass in the loop nest number.
6311 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6312             Sebastian Pop  <sebastian.pop@amd.com>
6314         PR tree-optimization/36206
6315         * tree-chrec.h (chrec_fold_op): New.
6316         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6317         and other trees.
6319 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6321         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6322         (DIRS_EQ): New.
6323         (remove_duplicates): Do not set inode on non-inode systems.
6324         Use DIRS_EQ.
6326 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6328         * config.gcc (tm_file): Update comments about relative pathnames.
6330 2008-05-20  Richard Guenther  <rguenther@suse.de>
6332         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6333         * tree-ssa-sccvn.c (process_scc): Likewise.
6334         * tree-ssa-sink.c (execute_sink_code): Likewise.
6335         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6336         * tree-vrp.c (process_assert_insertions): Likewise.
6337         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6338         (perform_tree_ssa_dce): Likewise.
6339         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6340         (dump_dominator_optimization_stats): Likewise.
6341         * tree-vectorizer.c (vectorize_loops): Likewise.
6343 2008-05-20  Richard Guenther  <rguenther@suse.de>
6345         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6347 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6349         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6350         (ix86_i386elf_return_in_memory): Likewise.
6351         (ix86_i386interix_return_in_memory): Likewise.
6352         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6353         (SUBTARGET_RETURN_IN_MEMORY): New.
6354         * config/i386/i386elf.h: Likewise.
6355         * config/i386/ptx4-i.h: Likewise.
6356         * config/i386/sol2-10.h: Likewise.
6357         * config/i386/sysv4.h: Likewise.
6358         * config/i386/vx-common.h: Likewise.
6359         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6360         * config/i386/i386.c (ix86_return_in_memory): Made static and
6361         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6362         (ix86_i386elf_return_in_memory): Removed.
6363         (ix86_i386interix_return_in_memory): Removed.
6364         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6365         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6367 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6369         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6371 2008-05-19  Xinliang David Li  <davidxl@google.com>
6373         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
6374         * opts.c: Ditto.
6375         * common.opt: Ditto.
6376         * doc/invoke.texi: Ditto.
6378 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6380         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6381         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6383 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6385         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6386         sizes of operand array from 8/4 to 4/2.
6387         (ix86_expand_vector_init_general): Change size of operand array
6388         from 32 to 16.  Remove op0, op1 and half_mode.
6390 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6392         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6393         (ix86_expand_vector_init_interleave): Likewise.
6394         (ix86_expand_vector_init_general): Use them.  Assert
6395         word_mode == SImode when n_words == 4.
6397 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6399         * config/i386/i386.c (ix86_secondary_reload): New static function.
6400         (TARGET_SECONDARY_RELOAD): New define.
6401         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6402         * config/i386/i386.md (reload_outqi): Remove.
6404 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6406         PR middle-end/35509
6407         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6408         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6409         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6410         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6411         (fold_builtin_1): Likewise.
6412         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6413         c-common.c (check_builtin_function_arguments): Handle
6414         BUILT_IN_ISINF_SIGN.
6415         * doc/extend.texi: Document __builtin_isinf_sign.
6416         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6418 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6420         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6421         EH cleanup at the end of the pass, search for those that have been
6422         turned into forwarder blocks and do the cleanup on their successor.
6424 2008-05-18  Richard Guenther  <rguenther@suse.de>
6426         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6427         pointers to sizetype and vice versa.
6429 2008-05-18 Xinliang David Li   <davidxl@google.com>
6431         * gcc/tree-ssa-dce.c: Coding style fix.
6432         (check_pow): Documentation comment. 
6433         (check_log): Documenation comment. Coding style fix.
6434         (is_unnecessary_except_errno_call): Ditto.
6435         (gen_conditions_for_pow): Ditto.
6436         (gen_conditions_for_log): Ditto.
6437         (gen_shrink_wrap_conditions): Ditto.
6438         (shrink_wrap_one_built_in_calls): Ditto.
6439         * gcc/doc/invoke.texi: Better documentation string.
6440         * ChangeLog: Fix wrong change log entries from 
6441         May 17 checkin on function call DCE.
6443 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6445         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6447 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6449         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6450         * df-problems.c (simulation routines): Fixed block comment to
6451         properly say how to add forwards scanning functions.
6452         
6453 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6455         * tree-inline.c (setup_one_parameter): Remove dead code.
6457 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6459         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6460         a BIT_AND_EXPR only for an INTEGER_TYPE.
6462 2008-05-17 Xinliang David Li   <davidxl@google.com>
6464         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6465         (check_pow, check_log, is_unnecessary_except_errno_call): New 
6466         functions to check for eliminating math functions that are pure 
6467         except for setting errno.
6468         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6469         general condition expressions for shrink-wrapping pow/log calls.
6470         (gen_shrink_wrap_conditions): Ditto.
6471         (shrink_wrap_one_built_in_call): Ditto.
6472         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6473         (mark_operand_necessary): If debugging, output if OP is necessary.
6474         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6475         unnecessary.
6476         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6477         opt level >= 2.
6478         * gcc/common.opt: New user flag -ftree-builtin-dce.
6479         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6481 2008-05-16  David S. Miller  <davem@davemloft.net>
6483         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6484         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6486 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
6488         PR target/36246
6489         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6491 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6493         * ifcvt.c (dead_or_predicable): Rename
6494         df_simulate_one_insn_backwards to df_simulate_one_insn.
6495         * recog.c (peephole2_optimize): Ditto.
6496         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6497         Ditto.
6498         * df.h: Rename df_simulate_one_insn_backwards to
6499         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
6500         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6501         scanning of defs and uses.
6502         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6503         (df_simulate_one_insn_forwards): Removed.
6505 2008-05-16  Doug Kwan  <dougkwan@google.com>
6507         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6508         QNaN & SNaN.
6509         (real_from_string): Handle NaNs and Inf as approriate.
6511 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6513         * doc/gty.texi (Source Files Containing Type Information): Note
6514         that headers should appear first in the gtfiles list.
6516 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6518         * tree.def (COND_EXEC): Properly documented this code.
6520 2008-05-16  Diego Novillo  <dnovillo@google.com>
6522         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6523         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6524         the new field.
6526 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6528         * tree-ssa-dse (max_stmt_uid): Removed.
6529         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
6530         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6531         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6532         * function.h (cfun.last_stmt_uid): New field.
6533         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6534         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6535         New functions.
6536         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6537         (create_stmt_ann): Initialize the ann->uid field.
6538         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6539         with new calls.
6540         * tree-flow.h (renumber_gimple_stmt_uids): New function.
6542 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6544         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6545         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6546         (init_empty_tree_cfg): Call it.
6548 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6550         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
6551         Update all users.
6553 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6555         * doc/invoke.text (-fdump-tree-*-verbose): New option.
6556         * tree-dump.c (dump_options): New verbose option.
6557         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6558         Add verbose dump.
6559         * tree-pass.h (TDF_VERBOSE): New dump flag.
6560         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6561         (tree-flow.h): Added include.
6562         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
6564 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
6566         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6568         From Jie Zhang  <jie.zhang@analog.com>
6569         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6570         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6571         mcpu=bf561-none and mcpu=bf561-0.2.
6572         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6573         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6574         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6575         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6576         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6577         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6578         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
6579         option.
6580         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6581         (cputype_selected): Remove.
6582         (bfin_handle_option): Don't use cputype_selected.
6583         (override_options): When no mcpu option, enable all workarounds.
6584         Don't use bfin_workarounds.
6585         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6586         processor type.
6587         (DEFAULT_CPU_TYPE): Don't define.
6589 2008-05-16  Richard Guenther  <rguenther@suse.de>
6591         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6592         on deletion of the last stmt.
6594 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6596         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6597         V8HImode for SSE2 and V16QImode for SSE4.1.
6599 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6601         * cgraph.h (compute_inline_parameters): Made public.
6602         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6603         variable_generate_summary, function_write_summary,
6604         variable_write_summary, variable_read_summary.  Added generate_summary,
6605         write_summary, read_summary.
6606         * cgraphunit.c (cgraph_process_new_functions): Changed call from
6607         pass_ipa_inline.function_generate_summary, to
6608         compute_inline_parameters. 
6609         * ipa-inline.c (compute_inline_parameters): Made public and added
6610         node parameter.
6611         (compute_inline_parameters_for_current): New function.
6612         (pass_inline_param): Now calls compute_inline_parameters_for_current.
6613         (inline_generate_summary): Removed parameter and made to loop over
6614         all cgraph nodes.
6615         (pass_ipa_inline): Updated for new IPA_PASS structure.
6616         * passes.c (execute_ipa_summary_passes): Now is called once per
6617         pass rather than once per node*pass.
6618         
6619 2008-05-15  Anatoly Sokolov <aesok@post.ru>
6621         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
6622         avr_have_mul_p, avr_asm_only_p): Remove variables.
6623         (avr_override_options): Remove initialization of removed variables.
6624         (avr_file_start):  Convert removed variables to fields of 
6625         'struct base_arch_s *avr_current_arch'. 
6626         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6627         (AVR_HAVE_MUL): (Ditto.).
6628         (AVR_HAVE_MOVW): (Ditto.).
6629         (AVR_HAVE_LPMX): (Ditto.). 
6630         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
6631         avr_asm_only_p): Remove declaration.
6633 2008-05-15  Diego Novillo  <dnovillo@google.com>
6635         * config/arm/arm.c (arm_return_in_memory): Fix return type.
6636         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6638 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
6640         PR middle-end/36194
6641         * combine.c (check_conversion): Rename back to check_promoted_subreg.
6642         Don't call record_truncated_value from here.
6643         (record_truncated_value): Turn it into a for_each_rtx callback.
6644         (record_truncated_values): New function.
6645         (combine_instructions): Call note_uses with record_truncated_values.
6646         Change name of check_conversion to check_promoted_subreg. 
6648 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
6650         * doc/sourcebuild.texi: Document support for torture tests.
6652 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6654         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6655         to alternative 4 of operand 2.
6657 2008-05-15  Richard Guenther  <rguenther@suse.de>
6659         * tree-pass.h (current_pass): Declare.
6660         (get_pass_for_id): Likewise.
6661         * passes.c (passes_by_id, passes_by_id_size): New globals.
6662         (set_pass_for_id): New function.
6663         (get_pass_for_id): Likewise.
6664         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6665         (execute_function_todo): Flush per function statistics.
6666         * toplev.c (compile_file): Init statistics.
6667         (general_init): Do early statistics initialization.
6668         (finalize): Finish statistics.
6669         * statistics.h (statistics_early_init): Declare.
6670         (statistics_init): Likewise.
6671         (statistics_fini): Likewise.
6672         (statistics_fini_pass): Likewise.
6673         (statistics_counter_event): Likewise.
6674         (statistics_histogram_event): Likewise.
6675         * statistics.c: New file.
6676         * Makefile.in (OBJS-common): Add statistics.o.
6677         (statistics.o): Add dependencies.
6678         * doc/invoke.texi (-fdump-statistics): Document.
6680         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6681         (insert): Likewise.
6682         (execute_pre): Use statistics_counter_event.
6683         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6684         (substitute_and_fold): Increment it.  Use statistics_counter_event.
6686 2008-05-15  Diego Novillo  <dnovillo@google.com>
6688         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6690         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6691         * tree-ssa-alias.c (new_type_alias): Remove references to
6692         sub-variables from comment.
6693         * tree-ssa-operands.c (swap_tree_operands): Likewise.
6695 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6697         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6698         attribute to 1 only for insertps alternative.
6700 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6702         * config/bfin/bfin.md (loadbytes): New pattern.
6703         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6704         (bfin_init_builtins): Initialize it.
6705         (bdesc_1arg): Add it.
6707 2008-05-15  Sa Liu  <saliu@de.ibm.com>
6709         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6710         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6711         * testsuite/lib/target-supports.exp: Add
6712         check_effective_target_fortran_integer_16.
6714 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6716         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6717         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6718         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
6719         (TARGET_RETURN_IN_MEMORY): Define.
6721 2008-05-15  Richard Guenther  <rguenther@suse.de>
6723         PR middle-end/36244
6724         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6725         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6726         represent unmodifiable vars.
6728 2008-05-15  Richard Guenther  <rguenther@suse.de>
6730         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6731         INDIRECT_REF and TARGET_MEM_REF.
6732         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6733         TARGET_MEM_REF.
6735 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6736             H.J. Lu  <hongjiu.lu@intel.com>
6738         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6739         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6740         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
6741         insn alternatives.  Add missing alternatives.
6742         (*vec_concatv2di_rex64_sse4_1): Likewise.
6743         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6744         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6745         Require TARGET_SSE.
6747 2008-05-15  Richard Guenther  <rguenther@suse.de>
6749         PR tree-optimization/36009
6750         PR tree-optimization/36204
6751         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6752         (determine_invariantness_stmt): Record the loop a store is
6753         always executed in.
6754         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6755         dependency.
6757 2008-05-15  Richard Guenther  <rguenther@suse.de>
6759         PR tree-optimization/34330
6760         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6761         through the pointer will alias the SMT.
6763 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
6765         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6767 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6769         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6771 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6772             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6774         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6775         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6776         (vashl_optab): New optab for vector/vector shifts.
6777         (vashr_optab): Ditto.
6778         (vlshr_optab): Ditto.
6779         (vrotl_optab): Ditto.
6780         (vrotr_optab): Ditto.
6781         (optab_subtype): New enum for optab_for_tree_code call.
6782         (optab_for_tree_code): Add enum optab_subtype argument.
6784         * optabs.c (optab_for_tree_code): Take an additional argument to
6785         distinguish between a vector shift by a scalar and vector shift by
6786         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
6787         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
6788         vector shift by a vector.
6789         (expand_widen_pattern_expr): Pass additional argument to
6790         optab_for_tree_code.
6792         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6793         vrotl_optab, vrotr_optab.
6795         * expr.c (expand_expr_real_1): Update calls to
6796         optab_for_tree_code to distinguish between vector shifted by a
6797         scalar and vector shifted by a vector.
6798         * tree-vectorizer.c (supportable_widening_operation): Ditto.
6799         (supportable_narrowing_operation): Ditto.
6800         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6801         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6802         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6803         (vect_create_epilog_for_reduction): Ditto.
6804         (vectorizable_reduction): Ditto.
6805         (vectorizable_operation): Ditto.
6806         (vect_strided_store_supported): Ditto.
6807         (vect_strided_load_supported): Ditto.
6808         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6809         * expmed.c (expand_shift): Ditto.
6811         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6812         scalar type.
6813         (ashr@var{m}3): Ditto.
6814         (vashl@var{m}3): Document new vector/vector shift standard name.
6815         (vashr@var{m}3): Ditto.
6816         (vlshr@var{m}3): Ditto.
6817         (vrotl@var{m}3): Ditto.
6818         (vrotr@var{m}3): Ditto.
6820         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6821         (PPERM_INVERT): Ditto.
6822         (PPERM_REVERSE): Ditto.
6823         (PPERM_REV_INV): Ditto.
6824         (PPERM_ZERO): Ditto.
6825         (PPERM_ONES): Ditto.
6826         (PPERM_SIGN): Ditto.
6827         (PPERM_INV_SIGN): Ditto.
6828         (PPERM_SRC1): Ditto.
6829         (PPERM_SRC2): Ditto.
6831         * config/i386/sse.md (mulv2di3): Add SSE5 support.
6832         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6833         allows a memory operand to be the value being added, and split it
6834         to improve vectorization.
6835         (sse5_pmacsdqh_mem): Ditto.
6836         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6837         (sse5_mulv2div2di3_high): Ditto.
6838         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6839         (vec_pack_trunc_v4si): Ditto.
6840         (vec_pack_trunc_v2di): Ditto.
6841         (sse5_pcmov_<mode>): Remove code that tried to use use
6842         andps/andnps instead of pcmov.
6843         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6844         pmacsdqh instructions.
6845         (vec_widen_smult_lo_v4si): Ditto.
6847         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6848         (PPERM_INVERT): Ditto.
6849         (PPERM_REVERSE): Ditto.
6850         (PPERM_REV_INV): Ditto.
6851         (PPERM_ZERO): Ditto.
6852         (PPERM_ONES): Ditto.
6853         (PPERM_SIGN): Ditto.
6854         (PPERM_INV_SIGN): Ditto.
6855         (PPERM_SRC1): Ditto.
6856         (PPERM_SRC2): Ditto.
6857         (ix86_expand_sse_movcc): Move the SSE5 test after the if
6858         true/false tests.
6859         (ix86_expand_int_vcond): If SSE5 generate all possible integer
6860         comparisons.
6861         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6862         says ignore whether the last reference is a memory operand.
6864 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6865             Paolo Bonzini <bonzini at gnu dot org>
6867         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6868         shift patterns.
6870         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6871         (vlshr<mode>3): Rename from vlshr<mode>3.
6872         (vashr<mode>3): Rename from vashr<mode>3.
6873         (mulv4sf3): Change the names of vector shift patterns.
6874         (mulv4si3): Ditto.
6875         (negv4sf2): Ditt.
6877         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6878         shift insns.
6880         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6881         (SI_SHLHI): Ditto.
6882         (SI_SHL): Ditto.
6883         (SI_SHLI): Ditto.
6884         (SI_ROTH): Ditto.
6885         (SI_ROTHI): Ditto.
6886         (SI_ROT): Ditto.
6887         (SI_ROTI): Ditto.
6888         (SPU_RL_0): Ditto.
6889         (SPU_RL_1): Ditto.
6890         (SPU_RL_2): Ditto.
6891         (SPU_RL_3): Ditto.
6892         (SPU_RL_4): Ditto.
6893         (SPU_RL_5): Ditto.
6894         (SPU_RL_6): Ditto.
6895         (SPU_RL_7): Ditto.
6896         (SPU_SL_0): Ditto.
6897         (SPU_SL_1): Ditto.
6898         (SPU_SL_2): Ditto.
6899         (SPU_SL_3): Ditto.
6900         (SPU_SL_4): Ditto.
6901         (SPU_SL_5): Ditto.
6902         (SPU_SL_6): Ditto.
6903         (SPU_SL_7): Ditto.
6905         * config/spu/spu.md (v): New iterator macro to add v for vector types.
6906         (floatunssidf2_internal): Change vector/vector shift names.
6907         (floatunsdidf2_internal): Ditto.
6908         (mulv8hi3): Ditto.
6909         (ashrdi3): Ditto.
6910         (ashrti3): Ditto.
6911         (cgt_df): Ditto.
6912         (cgt_v2df): Ditto.
6913         (dftsv): Ditto.
6914         (vashl<mode>3): Rename from ashl<mode>3.
6915         (vashr<mode>3): Rename from ashr<mode>3.
6916         (vlshr<mode>3): Rename from lshr<mode>3.
6917         (vrotl<mode>3): Rename from rotl<mode>3.
6919 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6921         PR target/36224
6922         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6923         multiply gives the wrong value when doing widening multiplies.
6924         (vec_widen_smult_lo_v4si): Ditto.
6926 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6928         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6929         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6930         emit_library_call_value. 
6931         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6932         * tree.h (ECF_LIBCALL_BLOCK): Removed.
6933         * calls.c (initialize_argument_information, precompute_arguments, 
6934         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6935         (precompute_arguments): Removed flags parameter.
6936         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6937         
6938 2008-05-14  Richard Guenther  <rguenther@suse.de>
6940         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6941         Make sure to register the store if the use is a PHI_NODE.
6943 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6945         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6946         memory if the component is to be referenced in BLKmode according
6947         to get_inner_reference.
6949 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
6951         * calls.c (emit_library_call_value_1): Restore code clearing
6952         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6954 2008-05-14  Olivier Hainque  <hainque@adacore.com>
6955             Nicolas Roche  <roche@adacore.com>
6957         * configure.ac: Add support for a "gcc_subdir" variable in
6958         config-lang.in, to denote a subdirectory where the language/GCC
6959         integration files are to be found.
6960         * configure: Regenerate.
6962 2008-05-14  Ira Rosen  <irar@il.ibm.com>
6964         PR tree-optimization/36098
6965         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6966         value for the first load in the group in case of a gap.
6967         (vect_build_slp_tree): Check that there are no gaps in loads.
6969 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
6971         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6972         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6973         expand_copysign_bit, ): Change call to emit_no_conflict_block to
6974         emit_insn and remove unneeded code to construct extra args.
6975         (emit_no_conflict_block): Removed.
6976         * optabls.h: (emit_no_conflict_block): Removed.
6977         * cse.c (cse_extended_basic_block): Remove search for
6978         REG_NO_CONFLICT note.
6979         * global.c: Removed incorrect comment added in revision 117.
6980         * expr.c (convert_move): Change call to emit_no_conflict_block to
6981         emit_insn.
6982         * recog.c: Change comments so that they do not mention
6983         REG_NO_CONFLICT.
6984         * local_alloc.c (combine_regs): Removed last parameter.
6985         (no_conflict_p): Removed.
6986         (block_alloc): Removed note, no_conflict_combined_regno and set
6987         local vars. Removed all code to process REG_NO_CONFLICT blocks.
6988         (combine_regs): Removed already_dead and code to look for
6989         REG_NO_CONFLICT notes.
6990         * lower_subreg (remove_retval_note): Removed code to look for
6991         REG_NO_CONFLICT block.
6992         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6993         (resolve_clobber): Remove code to process libcalls that have
6994         REG_NO_CONFLICT notes.
6995         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6996         case.
6997         * combine.c (can_combine_p, distribute_notes):  Removed
6998         REG_NO_CONFLICT case.
6999         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7000         to emit_insns.
7001         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7002         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7003         Ditto.
7004         * reg-notes.def (NO_CONFLICT): Removed.
7006 2008-05-14  David S. Miller  <davem@davemloft.net>
7008         * config/sparc/sparc.c (sparc_profile_hook): If
7009         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7010         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7011         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7013 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7015         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7017 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7019         PR target/36222
7020         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7021         and op1 expansion before vector concat to have less live pseudos.
7023 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7025         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7026         ix86_expand_vector_set if supported.
7028 2008-05-13  Diego Novillo  <dnovillo@google.com>
7029             Kenneth Zadeck  <zadeck@naturalbridge.com>
7031         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7033         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7034         phinodes_print_statistics, init_ssanames, fini_ssanames,
7035         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7036         release_ssa_name, release_defs, replace_ssa_name_symbol,
7037         ssanames_print_statistics): Move ...
7038         * tree-flow.h: ... here.
7039         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7040         Use FN instead of cfun.
7041         (make_ssa_name_fn): Rename from make_ssa_name.
7042         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7043         * tree-flow-inline.h (make_ssa_name): Move from
7044         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7045         * omp-low.c (expand_omp_parallel):
7046         * tree-flow-inline.h (redirect_edge_var_map_result):
7047         * tree-ssa.c (init_tree_ssa): Add argument FN.
7048         Use it instead of cfun.  Update all users.
7050 2008-05-13  Tom Tromey  <tromey@redhat.com>
7052         PR preprocessor/22168:
7053         * doc/cpp.texi (Top): Update menu.
7054         (Alternatives to Wrapper #ifndef): New node.
7055         (Other Directives): Document deprecation.
7056         (Obsolete Features): Remove menu.
7057         (Assertions): Merge node into Obsolete Features.
7058         (Obsolete once-only headers): Move earlier; rename to Alternatives
7059         to Wrapper #ifndef.
7060         * doc/cppopts.texi: Update.
7061         * c.opt (Wdeprecated): Enable for C and ObjC.
7062         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7063         (C++ Dialect Options): Move -Wno-deprecated from here to...
7064         (Warning Options): ... here.
7066 2008-05-13  Richard Guenther  <rguenther@suse.de>
7068         PR middle-end/36227
7069         * fold-const.c (fold_sign_changed_comparison): Do not allow
7070         changes in pointer-ness.
7072 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7074         PR target/24713
7075         * config/sh/sh.c (sh_expand_prologue): Don't clear
7076         RTX_FRAME_RELATED_P for push insns.
7078 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7080         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7082 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7084         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7085         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7086         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7088 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7090         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7091         (*vec_concatv4sf_sse): This.
7092         (*sse2_concatv2si): Renamed to ...
7093         (*vec_concatv2si_sse2): This.
7094         (*sse1_concatv2si): Renamed to ...
7095         (*vec_concatv2si_sse): This.
7096         (*vec_concatv2di_rex): Renamed to ...
7097         (*vec_concatv2di_rex64): This.
7098         (*vec_concatv2si_sse4_1): New.
7099         (*vec_concatv2di_rex64_sse4_1): Likewise.
7101 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7103         PR rtl-optimization/36111
7104         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7105         that was created for swappable operands.
7107 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7109         PR ada/36001
7110         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7111         * configure.ac: Add call to ACX_PROG_GNAT.
7113 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7115         * optc-gen.awk: Fix comment typo.
7117 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7119         * pretty-print.c (pp_integer_with_precision): Use
7120         HOST_LONG_LONG_FORMAT.
7122 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7124         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7125                 
7126 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7128         * config/i386/i386.c (bdesc_ptest): Removed.
7129         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7130         (bdesc_args): Add __builtin_ia32_ptestz128,
7131         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7132         (ix86_init_mmx_sse_builtins): Updated.
7133         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7134         (ix86_expand_builtin): Updated.
7136 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7138         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7139         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7141 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7143         * value-prof.c (interesting_stringop_to_profile): Do not
7144         return early for BUILT_IN_MEMPCPY.
7146 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7148         * calls.c (expand_call): Don't use callgraph to increase
7149         preferred_stack_boundary.
7151         * cgraph.h (cgraph_rtl_info): Use unsigned on
7152         preferred_incoming_stack_boundary.
7154         * final.c (rest_of_clean_state): Use unsigned on
7155         preferred_stack_boundary.
7157 2008-05-09  Tom Tromey  <tromey@redhat.com>
7159         PR preprocessor/22231:
7160         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7161         proceeding.
7163 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7165         PR tree-optimization/36129
7166         * tree-ssa-ccp.c: Include value-prof.h.
7167         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7168         built-in function was folded to a constant.
7169         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7171 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7172             Sebastian Pop  <sebastian.pop@amd.com>
7174         * tree-scalar-evolution.c: Document instantiate_scev.
7175         (instantiate_parameters_1): Renamed instantiate_scev_1.
7176         Don't use the same loop for instantiation_loop and evolution_loop.
7177         (instantiate_scev): New.
7178         (instantiate_parameters): Moved...
7179         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7180         same loop twice.  Maintains the semantics for this function.
7181         * tree-scalar-evolution.h (instantiate_scev): Declare.
7182         (instantiate_parameters): ...here.  Now static inline.
7183         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7184         instead of resolve_mixers.
7186 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7188         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7190 2008-05-09  Tomas Bily  <tbily@suse.cz>
7192         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7193         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7194         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7195         * c-common.c (c_common_truthvalue_conversion): Likewise.
7196         * tree-object-size.c (compute_object_offset): Likewise.
7197         * tree-inline.c (estimate_num_insns_1): Likewise.
7198         * varasm.c (const_hash_1, compare_constant, copy_constant)
7199         (compute_reloc_for_constant, output_addressed_constants)
7200         (initializer_constant_valid_p): Likewise.
7201         * c-omp.c (check_omp_for_incr_expr): Likewise.
7202         * gimplify.c (gimplify_expr): Likewise.
7203         * c-typeck.c (c_finish_return): Likewise.
7204         * tree-vectorizer.c (supportable_widening_operation)
7205         (supportable_narrowing_operation): Likewise.
7206         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7207         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7208         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7209         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7210         (descr_info_loc): Likewise.
7211         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7212         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7213         (fold_unary): Likewise.
7214         * builtins.c (get_pointer_alignment): Likewise.
7215         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7216         (instantiate_parameters_1): Likewise.
7217         * tree.c (expr_align, stabilize_reference): Likewise.
7218         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7219         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7220         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7221         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7222         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7223         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7224         Likewise.
7225         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7226         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7227         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7228         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7229         (forward_propagate_comparison)
7230         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7231         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7232         * emit-rtl.c (component_ref_for_mem_expr)
7233         (set_mem_attributes_minus_bitpos): Likewise.
7234         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7235         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7236         Likewise.
7237         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7238         (build_function_call, pointer_diff, build_compound_expr)
7239         (c_finish_return): Likewise.
7240         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7241         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7242         Likewise.
7243         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7244         * expr.c (is_aligning_offset): Likewise.
7245         * tree-ssa-alias.c (is_escape_site): Likewise.
7246         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7247         (check_all_va_list_escapes): Likewise.
7248         * tree-ssa-loop-ivopts.c (determine_base_object)
7249         (determine_common_wider_type): Likewise.
7250         * dojump.c (do_jump): Likewise.
7251         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7252         * tree-gimple.c (is_gimple_cast): Likewise.
7253         * fold-const.c (decode_field_reference, )
7254         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7255         (fold_binary): Likewise.
7256         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7257         (already_warned_in_frontend_p): Likewise.
7258         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7259         * tree.c (really_constant_p, get_unwidened): Likewise.
7260         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7261         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7262         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7263         Likewise.
7264         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7265         CONVERT_EXPR_P.
7266         (CONVERT_EXPR_P): Define.
7267         (CASE_CONVERT): Define.
7268         
7269 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7271         PR middle-end/36117
7272         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7273         (delete_unmarked_insns): When deleting a call, call
7274         delete_unreachable_blocks.
7275         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7276         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7278 2008-05-08  Richard Guenther  <rguenther@suse.de>
7280         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7281         (-ftree-salias): Likewise.
7282         (salias-max-implicit-fields): Remove param documentation.
7283         (salias-max-array-elements): Likewise.
7284         * tree-pass.h (pass_create_structure_vars): Remove.
7285         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7286         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7287         * tree-ssa-alias.c (create_structure_vars): Remove.
7288         (gate_structure_vars): Likewise.
7289         (pass_create_structure_vars): Likewise.
7290         (gate_build_alias): Likewise.
7291         (pass_build_alias): Adjust to run always and dump the function.
7292         * common.opt (ftree-salias): Hide.
7293         * passes.c (init_optimization_passes): Remove
7294         pass_create_structure_vars, adjust comment.
7295         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7296         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7297         * opts.c (decode_options): Do not set flag_tree_salias.
7298         (common_handle_option): Add OPT_ftree_salias to the backward
7299         compatibility section.
7301 2008-05-08  Richard Guenther  <rguenther@suse.de>
7303         * tree-flow-inline.h (var_can_have_subvars): Move ...
7304         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7305         * tree-flow.h (var_can_have_subvars): Remove.
7306         (push_fields_onto_fieldstack): Remove.
7307         (sort_fieldstack): Likewise.
7308         (struct fieldoff): Move ...
7309         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7310         alias_set and base_for_components fields.
7311         (sort_fieldstack): Make static.
7312         (push_fields_onto_fieldstack): Likewise.  Remove code that
7313         handles anything but RECORD_TYPEs.  Remove alias_set and
7314         base_for_components handling.
7315         (create_variable_info_for): Adjust.
7317 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7319         * common.opt (Wframe-larger-than=): Shorten the help message
7320         to one line.
7321         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7323 2008-05-08  Rafael Espindola  <espindola@google.com>
7325         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7326         trap.
7327         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7328         trap and that both operands are gimple values.
7329         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7330         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7331         is a fp operation.
7333 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7335         * read-rtl.c (join_c_conditions): Return the first string if the
7336         two strings are equal.
7338 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7340         * gensupport.h (pred_data): Add a "num_codes" field.
7341         (add_predicate_code): Declare.
7342         * gensupport.c (add_predicate_code): New function.
7343         (std_pred_table): Add an "allows_const_p" field.
7344         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7345         Remove the (incomplete) list of such codes from the codes field.
7346         (init_predicate_table): Use add_predicate_code.  Add all
7347         RTX_CONST_OBJs if allows_const_p is true.
7348         * genrecog.c (process_define_predicate): Use add_predicate_code.
7350 2008-05-08  David Daney  <ddaney@avtrex.com>
7351             Richard Sandiford  <rsandifo@nildram.co.uk>
7352         
7353         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7354         special case of constant zero operands.
7355         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7356         old and new values.  Special case constant zero values.
7357         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7358         fails.
7359         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7360         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7362 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7364         PR target/36090
7365         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7366         similar RTX_CONST_OBJ before CONST_INT.
7368 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7370         * stmt.c (expand_stack_restore): Change sa mode if needed.
7372 2008-05-08  Richard Guenther  <rguenther@suse.de>
7374         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7375         return type to bool.
7376         (ix86_sol10_return_in_memory): Likewise.
7377         (ix86_i386elf_return_in_memory): Likewise.
7378         (ix86_i386interix_return_in_memory): Likewise.
7379         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7380         (ix86_sol10_return_in_memory): Likewise.
7381         (ix86_i386elf_return_in_memory): Likewise.
7382         (ix86_i386interix_return_in_memory): Likewise.
7384 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7386         PR bootstrap/36180
7387         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7388         fndecl argument.
7389         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7390         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7391         declared in front.
7393 2008-05-08  Richard Guenther  <rguenther@suse.de>
7395         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7396         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7397         (DR_SUBVARS): Remove.
7398         * tree-dfa.c (dump_subvars_for): Remove.
7399         (debug_subvars_for): Likewise.
7400         (dump_variable): Do not dump subvars.
7401         (remove_referenced_var): Do not remove subvars.
7402         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7403         (lookup_subvars_for_var): Remove.
7404         (get_subvars_for_var): Likewise.
7405         (get_subvars_at): Likewise.
7406         (get_first_overlapping_subvar): Likewise.
7407         (overlap_subvar): Likewise.
7408         * tree-flow.h (subvar_t): Remove.
7409         (struct var_ann_d): Remove subvars field.
7410         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7411         argument.  Remove special handling of SFTs.
7412         (compute_tag_properties): Likewise.
7413         (set_initial_properties): Likewise.
7414         (compute_call_clobbered): Likewise.
7415         (count_mem_refs): Likewise.
7416         (compute_memory_partitions): Likewise.
7417         (compute_flow_insensitive_aliasing): Likewise.
7418         (setup_pointers_and_addressables): Likewise.
7419         (new_type_alias): Likewise.
7420         (struct used_part): Remove.
7421         (used_portions): Likewise.
7422         (struct used_part_map): Likewise.
7423         (used_part_map_eq): Likewise.
7424         (used_part_map_hash): Likewise.
7425         (free_used_part_map): Likewise.
7426         (up_lookup): Likewise.
7427         (up_insert): Likewise.
7428         (get_or_create_used_part_for): Likewise.
7429         (create_sft): Likewise.
7430         (create_overlap_variables_for): Likewise.
7431         (find_used_portions): Likewise.
7432         (create_structure_vars): Likewise.
7433         * tree.def (STRUCT_FIELD_TAG): Remove.
7434         * tree.h (MTAG_P): Adjust.
7435         (struct tree_memory_tag): Remove base_for_components and
7436         unpartitionable flags.
7437         (struct tree_struct_field_tag): Remove.
7438         (SFT_PARENT_VAR): Likewise.
7439         (SFT_OFFSET): Likewise.
7440         (SFT_SIZE): Likewise.
7441         (SFT_NONADDRESSABLE_P): Likewise.
7442         (SFT_ALIAS_SET): Likewise.
7443         (SFT_UNPARTITIONABLE_P): Likewise.
7444         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7445         (union tree_node): Remove sft field.
7446         * alias.c (get_alias_set): Remove special handling of SFTs.
7447         * print-tree.c (print_node): Remove handling of SFTs.
7448         * tree-dump.c (dequeue_and_dump): Likewise.
7449         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7450         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7451         * tree-predcom.c (set_alias_info): Do not set subvars.
7452         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7453         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7454         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7455         (add_vars_for_offset): Remove.
7456         (add_virtual_operand): Remove special handling of SFTs.
7457         (add_call_clobber_ops): Likewise.
7458         (add_call_read_ops): Likewise.
7459         (get_asm_expr_operands): Likewise.
7460         (get_modify_stmt_operands): Likewise.
7461         (get_expr_operands): Likewise.
7462         (add_to_addressable_set): Likewise.
7463         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7464         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7465         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7466         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7467         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7468         (tree_node_structure): Likewise.
7469         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7470         handling of SFTs.
7471         (find_what_p_points_to): Likewise.
7473 2008-05-08  Sa Liu  <saliu@de.ibm.com>
7475         * config/spu/spu.md: Fixed subti3 pattern.
7477 2008-05-08  Richard Guenther  <rguenther@suse.de>
7479         PR middle-end/36154
7480         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7481         sure to create a representative for trailing arrays for PTA.
7483 2008-05-08  Richard Guenther  <rguenther@suse.de>
7485         PR middle-end/36172
7486         * fold-const.c (operand_equal_p): Two objects which types
7487         differ in pointerness are not equal.
7489 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7491         * calls.c (compute_argument_block_size): Add argument tree fndecl.
7492         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7493         (emit_library_call_value_1): Add new variable fndecl initialized by
7494         NULL_TREE. It should be the decl type of orgfun, but this information
7495         seems not to be available here, so it uses the default calling abi.
7496         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7497         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7498         by TARGET_RETURN_IN_MEMORY.
7499         * config/i386/i386-interix.h: Likewise.
7500         * config/i386/i386.h: Likewise.
7501         * config/i386/i386elf.h: Likewise.
7502         * config/i386/ptx4-i.h: Likewise.
7503         * config/i386/sol2-10.h: Likewise.
7504         * config/i386/sysv4.h: Likewise.
7505         * config/i386/vx-common.h: Likewise.
7506         * config/cris/cris.h: Removed #if 0 clause.
7507         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7508         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7509         argument.
7510         (ix86_sol10_return_in_memory): Likewise.
7511         (ix86_i386elf_return_in_memory): New.
7512         (ix86_i386interix_return_in_memory): New.
7513         * config/mt/mt-protos.h (mt_return_in_memory): New.
7514         * config/mt/mt.c: Likewise.
7515         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7516         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
7517         * config/bfin/bfin.h: Likewise.
7518         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7519         argument.
7520         * config/bfin/bfin.c: Likewise.
7521         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7522         * config/alpha/unicosmk.h: Likewise.
7523         * config/i386/cygming.h: Likewise.
7524         * config/iq2000/iq2000.h: Likewise.
7525         * config/mips/mips.h: Likewise.
7526         * config/mn10300/mn10300.h: Likewise.
7527         * config/rs6000/rs6000.h: Likewise.
7528         * config/score/score.h: Likewise.
7529         * config/spu/spu.h: Likewise.
7530         * config/v850/v850.h: Likewise.
7531         * defaults.h: Likewise.
7532         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7533         * expr.c (emit_block_move): Adjust use of
7534         OUTGOING_REG_PARM_STACK_SPACE.
7535         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7536         OUTGOING_REG_PARM_STACK_SPACE.
7537         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7539 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
7541         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7542         on OMP_RETURN for OMP_FOR.
7544         PR debug/35896
7545         * dwarf2out.c (dw_expand_expr, common_check): Removed.
7546         (fortran_common): New function.
7547         (gen_variable_die): Call fortran_common instead of common_check,
7548         adjust for it returning tree instead of rtx.  Formatting.
7550 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7552         PR rtl/7335
7553         PR rtl/33826
7554         * see.c (see_copy_insn): Copy new pure const attributes for new call.
7555         * c-decl.c (merge_decls): Ditto.
7556         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7557         to RTL_CONST_OR_PURE_CALL_P.
7558         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7559         Initialized DECL_LOOPING_CONST_PURE.
7560         (process_call_operands): Set tree_side_effects properly.
7561         * tree.h (TREE_READONLY_DECL_P): Removed.
7562         (DECL_IS_PURE): Renamed to DECL_PURE_P.
7563         (DECL_LOOPING_OR_CONST_P): New macro.
7564         (struct tree_function_decl): Added looping_const_or_pure_p.
7565         (ECF_*) Renumbered.
7566         (ECF_LOOPING_OR_CONST_P): New macro.
7567         * rtlanal.c (pure_const_p): Removed.
7568         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7569         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7570         to RTL_CONST_CALL_P.
7571         * ipa-pure-const.c (pure_const_state_e): Added looping field.
7572         (check_decl, check_tree, check_call, scan_function): Initialize
7573         looping.
7574         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7575         (static_execute): Set looping true for recursive functions.
7576         Undo setting state to IPA_NEITHER for recursive functions.
7577         * cse.c (cse_insn): 
7578         * ifcvt.c (noce_can_store_speculate_p): Changed
7579         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
7580         RTL_CONST_OR_PURE_CALL_P.
7581         * dse.c (scan_insn): Ditto.
7582         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7583         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7584         RTL_CONST_OR_PURE_CALL_P.
7585         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7586         pure_call_p to RTL_CONST_CALL_P.
7587         * gimplify.c (gimplify_call_expr): Clear side effects for
7588         non-looping pure and constant calls.
7589         * calls.c (emit_call_1): Set rtl flags from ecf flags.
7590         (flags_from_decl_or_type): Set ecf flags from decl flags.
7591         (initialize_argument_information): Turn off
7592         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7593         Change const to pure if callee_copies is true rather than just
7594         turning off const.
7595         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7596         way of marking pure calls.
7597         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7598         Remove hack that was supposed to fix pr7335 and remove old
7599         way of marking pure calls.
7600         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7601         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7602         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7603         RTL_CONST_OR_PURE_CALL_P.
7604         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7605         * loop-invariant.c (find_exits, find_invariant_bb): Changed
7606         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7607         * sched-deps.c (schedule_analyze): Ditto.
7608         * rtl.h (struct rtx_def): Use call field, unchanging field, and
7609         return_val field of calls to represent pure and const function info.
7610         (CONST_OR_PURE_CALL_P): Deleted macro.
7611         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7612         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7613         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7614         TREE_READONLY.
7615         * tree-optimize.c (execute_fixup_cfg): Added test for
7616         ECF_LOOPING_CONST_OR_PURE.
7617         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7618         DECL_PURE_P.
7619         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7620         effects for looping pure or const calls.
7621         (verify_gimple_expr): Added verification code. 
7622         * config/alpha/alpha.c (alpha_legitimize_address,
7623         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7624         RTL_CONST_CALL_P.
7625         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7626         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7627         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7628         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7629         RTL_CONST_OR_PURE_CALL_P.
7630         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7631         and const calls to be deleted.
7633 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7635         PR target/35714
7636         * config/i386/mmx.md (mmx_subv2sf3): New expander.
7637         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7638         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7639         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7640         to handle nonimmediate operands.
7641         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7642         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
7643         to handle nonimmediate operands.
7644         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7645         (mmx_pmulhrwv4hi3): New expander.  Use
7646         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7647         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7648         (sse2_umulv1siv1di3): New expander.  Use
7649         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7650         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7651         (mmx_eq<mode>3): New expander.  Use
7652         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7653         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7654         (mmx_uavgv8qi3): New expander.  Use
7655         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7656         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7657         (mmx_uavgv4hi3): New expander.  Use
7658         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7660         * config/i386/sse.md
7661         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
7662         to handle nonimmediate operands.
7663         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
7664         to handle nonimmediate operands.
7665         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
7666         to handle nonimmediate operands.
7667         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
7668         to handle nonimmediate operands.
7669         (sse2_unpckhpd_exp): New expander.  Use
7670         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7671         (sse2_unpcklpd_exp): New expander.  Use
7672         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7673         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
7674         to handle nonimmediate operands.
7675         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
7676         to handle nonimmediate operands.
7677         (*sse2_<plusminus_insn><mode>3): Rename from
7678         sse2_<plusminus_insn><mode>3 insn pattern.
7679         (sse2_<plusminus_insn><mode>3): New expander.  Use
7680         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7681         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7682         (sse2_umulv2siv2di3): New expander.  Use
7683         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7684         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7685         (sse4_1_mulv2siv2di3): New expander.  Use
7686         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7687         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7688         (sse2_pmaddwd): New expander.  Use
7689         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7690         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7691         (sse2_eq<mode>3): New expander.  Use
7692         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7693         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7694         (sse4_1_eqv2di3): New expander.  Use
7695         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7696         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7697         (sse2_uavgv16qi3): New expander.  Use
7698         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7699         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7700         (sse2_uavgv16qi3): New expander.  Use
7701         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7702         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7703         (sse2_uavgv8hi3): New expander.  Use
7704         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7705         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7706         (ssse3_pmulhrswv8hi3): New expander.  Use
7707         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7708         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7709         (ssse3_pmulhrswv4hi3): New expander.  Use
7710         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7712         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7713         (<sse>_vmmul<mode>3): Ditto.
7714         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7715         (divv2df3): Ditto.
7716         (ssse3_pmaddubsw128): Use register_operand for operand 1.
7717         (ssse3_pmaddubsw): Ditto.
7719         * config/i386/i386.c (struct_builtin_description)
7720         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7721         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7722         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7723         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7724         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7725         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7726         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7727         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7728         (ix86_fixup_binary_operands): Assert that src1
7729         and src2 must have the same mode when swapped.
7730         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7731         and ix86_binary_operator_ok.  Do not force operands in registers
7732         when optimizing.
7734 2008-05-07  Jan Hubicka  <jh@suse.cz>
7736         * cgraph.c (dump_cgraph_node): Update.
7737         * cgraph.h (cgraph_local_info): Break out inline summary.
7738         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7739         hook.
7740         * ipa-inline (inline_summary): New accestor function.
7741         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7742         cgraph_decide_inlining, compute_inline_parameters): Update.
7743         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7745 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7747         Cleanup ColdFire scheduling support and add V4 pipeline model.
7749         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7750         (define_attr cpu): Add cfv4 value.
7751         (define_attr type, define_attr type1): Merge into a single 'type'
7752         attribute.  Update all uses.
7753         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7754         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
7755         Update all uses.
7756         (define_attr opx_mem, define_attr opy_mem): Remove.
7757         (define_attr op_mem): Clean up, update comment.
7758         (define_attr size): Use specific values instead of general int.
7759         (define_attr guess, define_attr split): Remove.  Update all uses.
7760         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7761         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7762         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7763         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7764         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7765         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7766         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7767         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7768         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7769         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7770         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7771         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7772         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7773         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7774         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7775         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7776         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7777         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7778         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7779         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7780         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7781         Update or set attributes.
7782         (stack_tie): New fake instruction.
7784         * config/m68k/m68k.h (TUNE_CFV4): New macro.
7785         (m68k_sched_attr_size): Update declaration.
7786         (m68k_sched_attr_type2): Remove.
7787         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7788         Declare new bypass predicates.
7790         * config/m68k/m68k.c (m68k_sched_issue_rate,
7791         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7792         implementations.
7793         (TARGET_SCHED_ISSUE_RATE,
7794         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7795         (override_options): Handle scheduling for ColdFire V4 core.
7796         (m68k_expand_prologue): Emit stack_tie.
7797         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7798         'OP_TYPE_FPN'.  Update all uses.
7799         (sched_guess_p): Remove.
7800         (sched_address_type): Handle symbolic addresses.
7801         (sched_get_operand): New static function.
7802         (sched_operand_type): Merge into sched_attr_op_type.
7803         (sched_attr_op_type): Handle FP registers, handle quick constants,
7804         update.
7805         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7806         (m68k_sched_attr_size): Update.  Move logic to ...
7807         (sched_get_attr_size_int): New static function.
7808         (sched_get_opxy_mem_type): New static function.
7809         (m68k_sched_attr_op_mem): Update.
7810         (m68k_sched_attr_type2): Remove.
7811         (sched_cfv4_bypass_data): New static variable.
7812         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7813         (m68k_sched_issue_rate): Implement scheduler hook.
7814         (struct _sched_ib: enabled_p): New field.
7815         (m68k_sched_variable_issue): Update.  Handle V4.
7816         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7817         sched_dump_class_func_t, sched_dump_split_class,
7818         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7819         sched_dump_dfa_class, m68k_sched_dump): Remove.
7820         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7821         hook.
7822         (m68k_sched_init_global): Remove statisctics dumping, introduce
7823         sanity check that all instructions have pipeline reservations.  Handle
7824         ColdFire V4 core.
7825         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7826         Handle ColdFire V4 core.
7827         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7828         New static functions.
7829         (m68k_sched_address_bypass_p): New bypass predicate.
7830         (sched_get_indexed_address_scale): New static function.
7831         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7833         * cf.md: Update comments.
7834         (define_attr type2): Remove.  Use 'type' attribute instead.
7835         Update all uses.
7836         (cf_ib): Rename to cfv123_ib.  Update all uses.
7837         (cf_oep): Rename to cfv123_oep.  Update all uses.
7838         (cf_chr): Rename to cfv123_chr.  Update all uses.
7839         (cf_mem): Rename to cfv123_mem.  Update all uses.
7840         (cf_mac): Move to more appropriate place.
7841         (cfv123_guess): New automaton and cpu_unit.
7842         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7843         Update uses of 'size' attribute.  Handle before reload scheduling.
7844         (cfv123_guess): New dummy reservation for unhandled instructions.
7845         (cfv4_*): Pipeline description of ColdFire V4 core.
7846         (ignore): New reservation to handle 'ignore' type.
7848 2008-05-07  Ian Lance Taylor  <iant@google.com>
7850         PR middle-end/36013
7851         * gimplify.c (find_single_pointer_decl_1): Don't look through
7852         indirections.
7853         (find_single_pointer_decl): Adjust comments.
7855 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
7857         PR middle-end/36137
7858         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7859         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7861         PR middle-end/36106
7862         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7863         integral type rather than floating point, then VIEW_CONVERT_EXPR
7864         to the floating point type.
7866 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7868         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7869         TFmode op0 to register.
7871 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
7873         * c-decl.c (grokdeclarator): Comment typo.
7875 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
7877         * tree-flow.h: Remove prototype for computed_goto_p.
7878         * tree-cfg.c (computed_goto_p): Make static.
7880 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
7882         PR target/35657
7883         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7884         (contains_aligned_value_p): This.  Handle _Decimal128.
7885         (ix86_function_arg_boundary): Only align _Decimal128 to its
7886         natural boundary and handle it properly.
7888 2008-05-06  Martin Jambor  <mjambor@suse.cz>
7890         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7891         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7892         (ipcp_method_set_orig_node): Removed.
7893         (ipcp_cval_get_cvalue_type): Removed.
7894         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7895         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7896         (ipcp_cval_set_cvalue_type): Removed.
7897         (ipcp_cval_get_cvalue): Removed.
7898         (ipcp_cval_set_cvalue): Removed.
7899         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7900         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7901         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7902         (ipcp_cval_meet): Renamed to ipa_lattice_meet
7903         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7904         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7905         (ipcp_get_ith_lattice): Changed parameters.
7906         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7907         (ipcp_lattice_from_jfunc): Changed parameters.
7908         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7909         (ipcp_method_cval_print): Added temporary variable info.
7910         (ipcp_redirect): Removed already unused local variable caller.
7911         (ipcp_redirect): New temporary variable orig_callee_info
7912         (ipcp_redirect): Removed newly unused local variable callee.
7913         (ipcp_redirect): Removed (a bit confusing) local variable type.
7914         (ipcp_insert_stage): Added local variable info.
7915         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
7916         renamed too
7917         (ipcp_formal_create): Removed.
7918         (ipcp_method_cval_set): Removed.
7919         (ipcp_propagate_stage): Renamed lattice variables.
7920         (ipcp_method_cval_set_cvalue_type): Removed.
7921         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7922         (ipcp_print_all_lattices): Changed printed strings to refer to 
7923         lattices rather than cvals.
7924         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7925         (ipcp_propagate_const): Changed formal parameters.
7926         (build_const_val): Changed formal parameters.
7927         (ipcp_insert_stage): Removed useless variable cvalue
7928         (build_const_val): Changed formal parameters.
7929         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7930         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7931         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7932         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7933         (ipcp_print_func_profile_counts): Changed string from "method" to 
7934         "function"
7935         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7936         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7937         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7938         (ipcp_structures_print): Renamed to ipcp_print_all_structures
7939         (ipcp_profile_print): Renamed to ipcp_print_profile_data
7940         (ipcp_lat_is_const): Changed parameters and made inline.
7941         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7942         (ipcp_redirect): Renamed to ipcp_need_redirect_p
7943         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
7944         the predicate condition directly
7945         (ipcp_propagate_stage): Added local variable args. Removed local
7946         variable callee.  (Both are mere code simplifications.)
7947         (ipcp_method_dont_insert_const): Renamed to
7948         ipcp_node_not_modifiable_p.
7949         (ipcp_node_not_modifiable_p): Made inline.
7950         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7951         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7952         (ipcp_print_all_lattices): Removed variable cvalue
7953         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7954         Updated comments.
7956 2008-05-06  Olivier Hainque  <hainque@adacore.com>
7958         * tree-sra.c (try_instantiate_multiple_fields): Early return
7959         if field has POINTER_TYPE.
7961 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
7963         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7964         by using 'q' specifier for instruction.
7965         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7967 2008-05-06  Anatoly Sokolov <aesok@post.ru>
7969         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7970         Change mode of zero_extract from QImode to HImode.
7971         (sign bit tests peepholes): (Ditto.).
7973 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
7975         * config/i386/mmx.md: Remove double backslashes from asm templates.
7976         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7977         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7978         to handle nonimmediate operands.
7979         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7980         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7981         to handle nonimmediate operands.
7982         (*mmx_<code>v2sf3_finite): New insn pattern.
7983         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7984         (mmx_<code>v2sf3): New expander.  Use
7985         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7986         (mmx_<plusminus_insn><mode>3): New expander.  Use
7987         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7988         (*mmx_<plusminus_insn><mode>3): New insn pattern.
7989         (mmx_add<mode>3): Removed.
7990         (mmx_ssadd<mode>3): Ditto.
7991         (mmx_usadd<mode>3): Ditto.
7992         (mmx_sub<mode>3): Ditto.
7993         (mmx_sssub<mode>3): Ditto.
7994         (mmx_ussub<mode>3): Ditto.
7995         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7996         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
7997         to handle nonimmediate operands.
7998         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7999         insn pattern.
8000         (mmx_smulv4hi3_highpart): New expander.  Use
8001         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8002         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8003         insn pattern.
8004         (mmx_umulv4hi3_highpart): New expander.  Use
8005         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8006         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8007         (mmx_<code>v4hi3): New expander.  Use
8008         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8009         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8010         (mmx_<code>v8qi3): New expander.  Use
8011         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8012         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8013         (mmx_<code><mode>3): New expander.  Use
8014         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8016 2008-05-05  Jan Hubicka  <jh@suse.cz>
8018         PR tree-optimization/36118
8019         * passes.c (pass_init_dump_file): Fix dump header.
8021 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8023         PR middle-end/36141
8024         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8025         VCE for function decls.
8027 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8029         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8031 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8033         * config/i386/i386.md (sat_plusminus): New.
8034         (plusminus_insn): Likewise.
8035         (plusminus_mnemonic): Likewise.
8036         (addsub): Removed.
8037         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8038         (*<addsub><mode>3_cc_overflow): Renamed to ...
8039         (*<plusminus_insn><mode>3_cc_overflow): This.
8040         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8041         (*<plusminus_insn>si3_zext_cc_overflow): This.
8043         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8044         (<plusminus_insn><mode>3): This.
8045         (*<addsub><mode>3): Renamed to ...
8046         (*<plusminus_insn><mode>3): This.
8047         (<sse>_vm<addsub><mode>3): Renamed to ...
8048         (<sse>_vm<plusminus_insn><mode>3): This.
8049         (sse3_h<addsub>v4sf3): Renamed to ...
8050         (sse3_h<plusminus_insn>v4sf3): This.
8051         (sse3_h<addsub>v2df3): Renamed to ...
8052         (sse3_h<plusminus_insn>v2df3): This.
8053         (<plusminus_insn><mode>3): New.
8054         (*<plusminus_insn><mode>3): Likewise.
8055         (sse2_<plusminus_insn><mode>3): Likewise.
8056         (add<mode>): Removed.
8057         (*add<mode>3): Likewise.
8058         (sse2_ssadd<mode>3): Likewise.
8059         (sse2_usadd<mode>3): Likewise.
8060         (sub<mode>3): Likewise.
8061         (*sub<mode>3): Likewise.
8062         (sse2_sssub<mode>3): Likewise.
8063         (sse2_ussub<mode>3): Likewise.
8065 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8067         * gthr-single.h: Add in required interface elements as per gthr.h.
8068         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8069         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8070         Generalize UNUSED macro. 
8071         (__gthread_once): Add.
8072         (__gthread_key_create): Add.
8073         (__gthread_key_delete): Add.
8074         (__gthread_getspecific): Add.
8075         (__gthread_setspecific): Add.
8076         
8077 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8079         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8080         the same size types for the indirect reference on the rhs, then
8081         create a VCE.
8083 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8085         * config/i386/i386.md
8086         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8087         one insn template instead of template series.
8088         (*xordi_1_rex64): Ditto.
8089         (*xordi_2_rex64): Ditto.
8091 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8093         PR tree-optimization/36119
8094         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8095         in case of SLP.
8097 2008-06-04  Jan Hubicka  <jh@suse.cz>
8099         tree-optimization/36100
8100         * tree-pass.h (pass_O0_always_inline): Declare.
8101         * ipa-inline.c (inline_transform): Remove dead code.
8102         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8103         pass_O0_always_inline): New.
8104         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8106 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8108         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8109         mnemonic in this_param move for TARGET_64BIT.
8111 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8113         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8114         (*strmovsi_rex_1): Ditto.
8115         (*strsetsi_1): Ditto.
8116         (*strsetsi_rex_1): Ditto.
8118         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8119         adddicc expanders using SWI mode iterator.
8121 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8123         PR target/36121
8124         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8125         argument handling.
8127 2008-05-04  David S. Miller  <davem@davemloft.net>
8129         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8130         (sparc*-*-linux*): Use linux.h in tm_file.
8131         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8132         compiler defaulting to 32-bit.
8133         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8134         no longer needed.
8135         * config/sparc/linux.h: Remove definitions now obtained
8136         properly from linux.h
8137         * config/sparc/linux64.h: Likewise.
8138         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8139         don't want this setting for 32-bit builds in a biarch compiler.
8140         * doc/install.texi: Add sparc-linux to list of targets
8141         supporting --enable-targets=all.
8143 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8145         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8147 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8149         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8150         after V4SI_FTYPE_V8HI.
8151         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8152         case V4SI_FTYPE_V2DF.
8154 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8156         * doc/invoke.texi (max-flow-memory-locations): Removed.
8157         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8158         
8159 2008-05-03  Richard Guenther  <rguenther@suse.de>
8161         PR middle-end/34973
8162         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8164 2008-05-02  David S. Miller  <davem@davemloft.net>
8166         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8168 2008-05-02  Simon Baldwin <simonb@google.com>
8170         PR bootstrap/36108
8171         * c-common.h (warn_array_subscript_range): Removed.
8172         * c-common.c (warn_array_subscript_range): Ditto.
8173         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8174         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8176 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8178         * config/i386/i386.c (ix86_special_builtin_type): New.
8179         (bdesc_special_args): Likewise.
8180         (ix86_expand_special_args_builtin): Likewise.
8181         (ix86_init_mmx_sse_builtins): Updated.
8182         (ix86_expand_builtin): Updated.
8183         (ix86_expand_store_builtin): Removed.
8184         (ix86_expand_unop_builtin): Likewise.
8186         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8187         * config/i386/mmintrin.h (__v2sf): Here.
8189         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8190         const __v2sf.
8191         (_mm_loadl_pi): Likewise.
8192         (_mm_storeh_pi): Replace __v2si with __v2sf.
8193         (_mm_storel_pi): Likewise.
8195         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8196         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8197         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8198         __builtin_ia32_loadlpd.
8200 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8202         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8203         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8204         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8205         (ix86_init_mmx_sse_builtins): Updated.
8206         (ix86_expand_args_builtin): Likewise.
8207         (ix86_expand_builtin): Likewise.
8208         (ix86_expand_unop1_builtin): Renamed to ...
8209         (ix86_expand_unop_vec_merge_builtin): This.
8211 2008-05-01  Jan Hubicka  <jh@suse.cz>
8213         PR bootstrap/36100
8214         * ipa-inline.c (inline_generate_summary): Make static.
8215         (inline_transform): Do not call inlining at -O0; make static.
8216         * passes.c (execute_todo): Add sanity check.
8217         (execute_one_ipa_transform_pass): Execute proper flags.
8219 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8221         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8222         (DECL_NONADDRESSABLE_P): Likewise.
8223         * alias.c (record_component_aliases): Fix comment.
8225 2008-05-01  Simon Baldwin <simonb@google.com>
8227         * c-common.h (warn_array_subscript_range): New function.
8228         * c-common.c (warn_array_subscript_range): Ditto.
8229         * tree-vrp.c (check_array_ref): Corrected code to agree with
8230         comment, ignoring only arrays of size 0 or size 1.
8231         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8233 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8235         * config/i386/i386.c (ix86_builtin_type): Replace
8236         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8237         (bdesc_args): Updated.
8238         (ix86_init_mmx_sse_builtins): Likewise.
8239         (ix86_expand_args_builtin): Likewise.
8241         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8242         with __v1di.
8244         * doc/extend.texi: Correct __builtin_ia32_palignr.
8246 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8248         PR target/36095
8249         * config/i386/i386.c (bdesc_crc32): Removed.
8250         (ix86_expand_crc32): Likewise.
8251         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8252         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8253         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8254         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8255         UINT_FTYPE_UINT_UCHAR.
8256         (bdesc_args): Updated. Add crc32 builtins.
8257         (ix86_init_mmx_sse_builtins): Updated.
8258         (ix86_expand_args_builtin): Updated to support subreg.
8260         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8262 2008-05-01  Jan Hubicka  <jh@suse.cz>
8264         * tree-pass.h (opt_pass): Add IPA_PASS.
8265         (varpool_node, cgraph_node): Forward declare.
8266         (ipa_opt_pass): Define.
8267         (pass_ipa_inline): Turn into ipa_opt_pass.
8268         (pass_apply_inline): Remove.
8269         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8270         (apply_inline): Turn into ....
8271         (inline_transform): ... this one.
8272         (inline_generate_summary): New function.
8273         (pass_apply_inline): Remove.
8274         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8275         vector.
8276         (struct function): Add ipa_transforms_to_apply.
8277         * passes.c (register_one_dump_file): Work on IPA_PASS.
8278         (init_optimization_passes): Remove pass_inline_parameters and
8279         pass_apply_inline.
8280         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8281         (execute_one_pass) ... here; apply transforms when possible.
8282         (add_ipa_transform_pass, execute_ipa_summary_asses,
8283         execute_one_ipa_transform_pass): New.
8284         (execute_ipa_pass_list): Update for IPA_PASS type.
8286 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8288         * config/i386/i386.c (ix86_builtin_type): Add
8289         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8290         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8291         (bdesc_args): Add SSE4a builtins.
8292         (ix86_init_mmx_sse_builtins): Updated.
8293         (ix86_expand_args_builtin): Likewise.
8294         (ix86_expand_builtin): Likewise.
8296 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8298         * config/i386/i386.c (ix86_builtin_type): Add
8299         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8300         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8301         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8302         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8303         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8304         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8305         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8306         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8307         and DI_FTYPE_DI_DI_INT.
8308         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8309         (ix86_init_mmx_sse_builtins): Updated.
8310         (ix86_expand_args_builtin): Likewise.
8311         (ix86_expand_builtin): Likewise.
8312         (ix86_expand_binop_imm_builtin): Removed.
8314         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8316 2008-04-30  Richard Guenther  <rguenther@suse.de>
8318         PR tree-optimization/32921
8319         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8321 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8323         * config/arm/arm.c (arm_unwind_emit): Use
8324         crtl->all_throwers_are_sibcalls instead of
8325         cfun->all_throwers_are_sibcalls.
8326         (arm_output_fn_unwind): Likewise.
8327         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8328         instead of cfun->uses_pic_offset_table.
8329         (frv_expand_prologue): Likewise.
8330         (frv_frame_pointer_required): Likewise.
8331         (frv_expand_fdpic_call): Likewise.
8332         (frv_emit_movsi): Likewise.
8333         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8334         cfun->returns_pcc_struct instead of
8335         current_function_returns_pcc_struct.
8336         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8337         instead of cfun->calls_eh_return.
8338         (m32c_pushm_popm): Likewise.
8339         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8340         "extern" declaration.
8342 2008-04-30  Richard Guenther  <rguenther@suse.de>
8344         PR tree-optimization/21636
8345         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8346         constant address.
8347         (evaluate_stmt): Print the likely value.
8348         (ccp_visit_stmt): Avoid excessive vertical spacing.
8350 2008-04-30  Rafael Espindola  <espindola@google.com>
8352         * builtins.c (fold_call_expr): Return realret.
8353         * tree-ssa-threadedge.c
8354         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8355         __builtin_object_size.
8357 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8359         * gcc.c (wrapper_string): New variable.
8360         (insert_wrapper): New function.
8361         (execute): New option -wrapper.
8362         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8364 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8366         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8367         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8368         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8369         from...
8370         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8371         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8372         config/rs6000/e500crtres64gprctr.asm,
8373         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8374         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8375         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8376         config/rs6000/e500crtsav64gprctr.asm,
8377         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8378         config/rs6000/e500crtsavg64gprctr.asm: New files.
8379         * config/rs6000/t-ppccomm: Add build rules for new files.
8380         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8381         * config/rs6000/t-netbsd: Add build rules for new files.
8382         (LIB2FUNCS_STATIC_EXTRA): New variable.
8383         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8384         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8385         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8387 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8389         * config/i386/i386.c (ix86_builtin_type): Add
8390         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8391         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8392         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8393         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8394         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8395         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8396         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8397         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8398         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8399         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8400         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8401         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8402         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8403         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8404         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8405         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8406         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8407         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8408         V1DI_FTYPE_V2SI_V2SI.
8409         (bdesc_2arg): Moved to ...
8410         (bdesc_args): Here.
8411         (ix86_init_mmx_sse_builtins): Updated.
8412         (ix86_expand_args_builtin): Updated.  Take a pointer
8413         to const struct builtin_description.  Handle comparison
8414         builtin functions.
8415         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8416         (ix86_expand_builtin): Updated.
8418         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8419         (ssse3_pmaddubsw128): This.
8420         (ssse3_pmaddubswv4hi3): Renamed to ...
8421         (ssse3_pmaddubsw): This.
8423         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8424         (__builtin_ia32_packssdw128): Likewise.
8425         (__builtin_ia32_packuswb128): Likewise.
8426         (__builtin_ia32_pmaddubsw): Likewise.
8427         (__builtin_ia32_pmaddubsw128): Likewise.
8429 2008-04-30  Richard Guenther  <rguenther@suse.de>
8431         PR tree-optimization/14847
8432         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8433         (recognize_bits_test): Use it.
8434         (recognize_single_bit_test): Likewise.
8436 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8438         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8439         instead of setting number of formal parameters to zero.
8440         (ipcp_init_stage): Do not set the number of actual parameters to zero 
8441         either.
8442         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8443         which are called with variable number of arguments.
8444         (ipcp_insert_stage): Explicitely skipping all nodes which are
8445         called with variable number of arguments.
8446         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
8447         number of parameters.
8449         * ipa-prop.h (struct ipa_node_params): Added flag
8450         called_with_var_arguments
8451         (ipa_set_param_count): Added.  Changed sole setter to use it.
8452         (ipa_get_param_count): Added.  All readers of param_count
8453         converted to use it instead.
8454         (ipa_set_called_with_variable_arg): Added.
8455         (ipa_is_called_with_var_arguments): Added.
8456         (ipa_get_ith_param): Added.  All readers of param_decls converted
8457         to use it instead.
8458         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
8459         changed to use it. 
8460         (ipa_get_cs_argument_count): Added, all readers of argument_count
8461         changed to cal it.
8462         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
8463         to use it.
8464         
8465         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8466         (struct ipcp_lattice): Renamed cval_type to type
8467         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8469         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8470         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8471         (ipcp_insert_stage): Changed the type of variable cvalue to tree
8472         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8473         (build_const_val): Changed the type of parameter cvalue to tree
8474         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8475         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8476         
8477         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
8478         constant 
8480         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8481         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8482         (ipa_add_method): Renamed to ipa_push_func_to_list
8483         (ipa_remove_method): Renamed to ipa_pop_func_from_list
8484         (ipa_callsite_param_count): Removed.
8485         (ipa_callsite_param_count_set): Removed.
8486         (ipa_callsite_param): Removed.
8487         (ipa_callsite_callee): Removed.
8488         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8489         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8490         (ipa_method_formal_count): Removed.
8491         (ipa_method_formal_count_set): Removed.
8492         (ipa_method_get_tree): Removed.
8493         (ipa_method_tree_map_create): Removed.
8494         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8495         (ipa_create_param_decls_array): Creates the array itself
8496         (ipa_create_param_decls_array): Temporary variable info instead of 
8497         a few dereferences.
8498         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8499         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8500         (get_type): Removed.
8501         (ipa_jf_get_info_type): Removed.
8502         (ipa_node_create): Renamed to ipa_create_node_params
8503         (ipa_free): Renamed to ipa_free_all_node_params
8504         (ipa_nodes_create): Renamed to ipa_create_all_node_params
8505         (ipa_edges_create): Renamed to ipa_create_all_edge_args
8506         (ipa_edges_free): Renamed to ipa_free_all_edge_args
8507         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8508         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
8509         ipa_free_all_edge_args
8510         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8511         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8512         (ipa_create_methodlist_node): Removed.
8513         (ipa_methodlist_method): Removed.
8514         (ipa_methodlist_method_set): Removed.
8515         (ipa_methodlist_next_method): Removed.
8516         (ipa_methodlist_next_method_set): Removed.
8517         (ipa_method_is_modified): Removed.
8518         (ipa_method_modify_create): Removed.
8519         (ipa_method_modify_init): Temporary variable info instead of a few 
8520         dereferences.
8521         (ipa_detect_param_modifications): Temporary variable info instead of 
8522         a few dereferences.
8523         (ipa_compute_jump_functions): Temporary variable info instead of 
8524         a few dereferences.
8525         (ipa_method_modify_set): Removed.
8526         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8527         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
8528         than craph_node as the first parameter.
8529         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8530         (ipa_method_modify_init): Removed.
8531         (ipa_compute_jump_functions): Added a temp variable instead of 
8532         repeatadly dereferencing the cgraph_edge.aux pointer
8533         (ipa_callsite_param_set_type): Removed.
8534         (ipa_compute_jump_functions): i renamed to index and moved to 
8535         an inner block
8536         (ipa_callsite_param_set_info_type_formal): Removed.
8537         (ipa_callsite_param_set_info_type): Removed.
8538         (ipa_callsite_param_map_create): Removed.
8539         (ipa_callsite_tree): Removed.
8540         (ipa_callsite_caller): Removed.
8541         (ipa_pop_func_from_list): return_method removed to return_func
8543         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8544         prefixed all values with IPA_. Changed all users.
8545         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
8546         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
8547         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
8548         (union parameter_info): Renamed to jump_func_value.
8549         (union jump_func_value): Renamed value to constant
8550         (struct ipa_jump_func): Renamed info_type to value
8551         (struct ipa_node): Renamed to ipa_node_params
8552         (struct ipa_node_params): Renamed ipa_arg_num to param_count
8553         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8554         (struct ipa_node_params): Renamed ipa_mod to modified_flags
8555         (struct ipa_edge): Renamed to ipa_edge_args
8556         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8557         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8558         (struct ipa_methodlist): Renamed to ipa_func_list
8559         (struct ipa_func_list): method_p renamed to node, next_method
8560         renamed to next
8561         (ipa_methodlist_p): Removed, switched all users to struct pointer
8562         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8564 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
8566         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8567         (rs6000_emit_epilogue): Use backchain to restore only when we
8568         have a large frame.  Make use of frame pointer to restore if we
8569         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8571 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
8573         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8574         Add mode to zero_extract.
8575         (sign bit tests peepholes): (Ditto.).
8577 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8579         * config/i386/i386.c (ix86_builtins): Replace Prescott New
8580         Instructions in comments with SSE3.
8581         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
8582         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8583         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8584         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8585         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8586         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8587         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8588         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8589         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8590         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8591         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8592         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8593         (bdesc_sse_args): Renamed to ...
8594         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8595         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8596         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8597         IX86_BUILTIN_FABSQ.
8598         (bdesc_1arg): Moved to ...
8599         (bdesc_args): Here.
8600         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
8601         Instructions in comments with SSE3.
8602         (ix86_expand_sse_operands_builtin): Renamed to ...
8603         (ix86_expand_args_builtin): This.  Updated.
8604         (ix86_expand_unop1_builtin): Update comments.
8605         (ix86_expand_builtin): Updated.
8607 2008-04-29  Richard Guenther  <rguenther@suse.de>
8609         PR tree-optimization/36078
8610         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8611         Update virtual SSA form after cleaning up the CFG.
8613 2008-04-29  Richard Guenther  <rguenther@suse.de>
8615         PR middle-end/15255
8616         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8618 2008-04-29  Richard Guenther  <rguenther@suse.de>
8620         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8621         (compute_may_aliases): Do not call finalize_ref_all_pointers.
8622         (compute_flow_insensitive_aliasing): Do not treat
8623         PTR_IS_REF_ALL pointers special.
8624         (get_smt_for): Likewise.
8625         (may_alias_p): Re-structure.
8626         (is_escape_site): A ref-all pointer conversion is not an escape site.
8627         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8628         PTR_IS_REF_ALL pointers special.
8629         * tree-ssa-structalias.h (struct alias_info): Remove
8630         ref_all_symbol_mem_tag field.
8631         (PTR_IS_REF_ALL): Remove.
8633 2008-04-29  Richard Guenther  <rguenther@suse.de>
8635         PR middle-end/36077
8636         * fold-const.c (extract_muldiv_1): In combining division constants
8637         make sure to never overflow.
8639 2008-04-29  Nick Clifton  <nickc@redhat.com>
8641         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8643 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8645         PR bootstrap/35169
8646         * optc-gen.awk: Work around HP-UX/IA awk bug.
8648 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
8650         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8651         2008-04-25 commit.
8653 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8655         PR target/36073
8656         * config/i386/i386.md
8657         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8658         Change operand 1 predicate to nonimmediate_operand.
8660 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
8662         PR debug/36060
8663         * dwarf2out.c (struct die_struct): Mark as chain_circular through
8664         die_sub field.
8665         * gengtype.c (walk_type, write_func_for_structure): Handle
8666         chain_circular.
8667         * doc/gty.texi: Document chain_circular.
8669 2008-04-28  Richard Guenther  <rguenther@suse.de>
8671         PR tree-optimization/36066
8672         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8673         SCEV and loop.
8675 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8677         PR target/36064
8678         * config/i386/i386.md
8679         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8680         Use match_scratch instead of match_operand for operands 3 and 4.
8682 2008-04-27  Richard Guenther  <rguenther@suse.de>
8684         PR tree-optimization/18754
8685         PR tree-optimization/34223
8686         * tree-pass.h (pass_complete_unrolli): Declare.
8687         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8688         loop size before and after unconditionally of UL_NO_GROWTH in effect.
8689         Rewrite loop into loop closed SSA form if it is not already.
8690         (tree_unroll_loops_completely): Re-structure to iterate over
8691         innermost loops with intermediate CFG cleanups.
8692         Unroll outermost loops only if requested or the code does not grow
8693         doing so.
8694         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8695         loops are available.
8696         (tree_vectorize): Instead do so here.
8697         (tree_complete_unroll): Also unroll outermost loops.
8698         (tree_complete_unroll_inner): New function.
8699         (gate_tree_complete_unroll_inner): Likewise.
8700         (pass_complete_unrolli): New pass.
8701         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8702         uses outside of the loop.
8703         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8704         form if it is available.  
8705         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8706         * passes.c (init_optimization_passes): Schedule complete inner
8707         loop unrolling pass before the first CCP pass after final inlining.
8709 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8711         * targhooks.h (default_emutls_var_fields,
8712         default_emutls_var_init): Declare.
8713         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8714         * target.h (struct gcc_target): Add struct emutls member.
8715         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8716         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8717         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8718         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8719         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8720         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8721         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8722         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8723         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8724         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8725         emit debug information.
8726         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8727         * varasm.c: Include targhooks.h.
8728         (emutls_object_section, emutls_tmpl_section): New.
8729         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8730         (EMUTLS_SEPARATOR): New.
8731         (prefix_name): New.
8732         (get_emutls_object_name): New.
8733         (default_emutls_var_fields): New, broken out of ...
8734         (get_emutls_object_type): ... here.  Adjust to use target hooks.
8735         (get_emutls_init_templ_addr): Adjust to use target hooks.
8736         (emutls_decl): Adjust to use target hooks.
8737         (emutls_finish): Likewise.
8738         (default_emutls_var_init): New, broken out of ...
8739         (assemble_variable): ... here.  Adjust to use target hooks.
8740         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8741         SECCAT_EMUTLS_TMPL.
8742         * c-common.c (handle_section_attribute): Prevent overriding
8743         sections for emulated tls with special sections.
8744         * config/i386/i386.c (x86_64_elf_select_section): Add
8745         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8746         (x86_64_elf_unique_section): Likewise.
8747         * config/vxworks.c: Include tree.h.
8748         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8749         (vxworks_override_options): Set TLS scheme.
8750         * doc/tm.texi (Emulated TLS): New node.
8752 2008-04-26  Simon Baldwin <simonb@google.com>
8754         PR c/35652
8755         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8756         with propagated string constants.
8758 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
8760         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8761         constraint for operand 2 when operand 0 is memory operand.
8762         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8763         operand 0 is memory operand.
8764         (fix_trunc<mode>_i387_with_temp): Ditto.
8765         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8766         operand 2 when operand 1 is memory operand.
8767         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8768         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8769         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8770         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8771         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8772         operands 2,3 and 4 when operand 1 is memory operand.
8773         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8774         is memory operand.
8775         (fistdi2_floor_with_temp): Ditto.
8776         (fist<mode>2_floor_with_temp): Ditto.
8777         (fistdi2_ceil_with_temp): Ditto.
8778         (fist<mode>2_ceil_with_temp): Ditto.
8779         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8781 2008-04-26  David Daney  <ddaney@avtrex.com>
8783         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8784         unspec_volitile.
8785         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8786         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8787         UNSPEC_UPDATE_GOT_VERSION): Renumber.
8788         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8789         (compare_and_swap_12): New insn.
8790         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8791         * config/mips/mips.c (mips_force_binary): New function.
8792         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8793         (mips_expand_compare_and_swap_12): New function.
8794         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8796 2008-04-25  Jan Hubicka  <jh@suse.cz>
8798         PR testsuite/35843
8799         * cfgexpand.c (pass_expand): Turn into RTL pass.
8800         * passes.c (execute_one_pass): Do pass typechecking after execution.
8801         * tree-pass.h (pass_expand): Turn into RTL pass.
8803         * function.h (struct rtl_data): Move here fields
8804         accesses_prior_frames, calls_eh_return, saves_all_registers,
8805         has_nonlocal_goto, has_asm_statement, is_thunk,
8806         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8807         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8808         arg_pointer_save_area_init from struct function; turn into bool.
8809         (struct function): Move
8810         calls_eh_return, saves_all_registers, has_nonlocal_goto,
8811         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8812         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8813         tail_call_emit, arg_pointer_save_area_init
8814         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
8815         (current_function_returns_struct, current_function_returns_pcc_struct,
8816         current_function_calls_setjmp, current_function_calls_alloca,
8817         current_function_accesses_prior_frames,
8818         current_function_calls_eh_return, current_function_is_thunk,
8819         current_function_stdarg, current_function_profile,
8820         current_function_limit_stack, current_function_uses_pic_offset_table,
8821         current_function_uses_const_pool, current_function_has_nonlocal_label,
8822         current_function_saves_all_registers,
8823         current_function_has_nonlocal_goto,
8824         current_function_has_asm_statement): Remove accesor macros.
8825         * ra-conflict.c (global_conflicts): Update.
8826         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8827         (suitable_for_tail_call_opt_p): Update.
8828         * builtins.c (expand_builtin_return_addr): Update.
8829         (expand_builtin_setjmp_setup): Update.
8830         (expand_builtin_nonlocal_goto): Update.
8831         * final.c (final_start_function): Update.
8832         (profile_function): Update.
8833         (leaf_function_p): Update.
8834         (only_leaf_regs_used): Update.
8835         * df-scan.c (df_get_exit_block_use_set): Update.
8836         * dojump.c (clear_pending_stack_adjust): Update.
8837         * tree-stdarg.c (gate_optimize_stdarg): Update.
8838         * gimple-low.c (lower_function_body): Update.
8839         * global.c (compute_regsets): Update.
8840         (global_alloc): Update.
8841         * dwarf2out.c (dwarf2out_begin_prologue): Update.
8842         * expr.c (expand_assignment): Update.
8843         * dse.c (dse_step0): Update.
8844         (dse_step1): Update.
8845         * c-decl.c (store_parm_decls): Update.
8846         * local-alloc.c (combine_regs): Update.
8847         (find_free_reg): Update.
8848         * function.c (assign_parms_augmented_arg_list): Update.
8849         (assign_parm_find_data_types): Update.
8850         (assign_parms): Update.
8851         (allocate_struct_function): Update.
8852         (expand_function_start): Update.
8853         (expand_function_end): Update.
8854         (get_arg_pointer_save_area): Update.
8855         (thread_prologue_and_epilogue_insns): Update.
8856         (rest_of_match_asm_constraints): Update.
8857         * stor-layout.c (variable_size): Update.
8858         * gcse.c (gcse_main): Update.
8859         (bypass_jumps): Update.
8860         * gimplify.c (gimplify_function_tree): Update.
8861         * calls.c (emit_call_1): Update.
8862         (expand_call): Update.
8863         * bt-load.c (compute_defs_uses_and_gen): Update.
8864         * except.c (sjlj_assign_call_site_values): Update.
8865         (sjlj_emit_function_enter): Update.
8866         (can_throw_external): Update.
8867         (set_nothrow_function_flags): Update.
8868         (expand_builtin_unwind_init): Update.
8869         (expand_eh_return): Update.
8870         (convert_to_eh_region_ranges): Update.
8871         (output_function_exception_table): Update.
8872         * emit-rtl.c (gen_tmp_stack_mem): Update.
8873         * cfgexpand.c (expand_used_vars): Update.
8874         (tree_expand_cfg): Update.
8875         * cfgcleanup.c (rest_of_handle_jump): Update.
8876         * explow.c (allocate_dynamic_stack_space): Update.
8877         * varasm.c (assemble_start_function): Update.
8878         (force_const_mem): Update.
8879         (mark_constant_pool): Update.
8880         * tree-optimize.c (tree_rest_of_compilation): Update.
8881         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8882         * tree-cfg.c (notice_special_calls): Update.
8883         (is_ctrl_altering_stmt): Update.
8884         (tree_can_make_abnormal_goto): Update.
8885         (tree_purge_dead_abnormal_call_edges): Update.
8886         * config/alpha/predicates.md: Update.
8887         * config/alpha/alpha.c (alpha_sa_mask): Update.
8888         (alpha_sa_size): Update.
8889         (alpha_does_function_need_gp): Update.
8890         (alpha_expand_prologue): Update.
8891         (alpha_start_function): Update.
8892         (alpha_output_function_end_prologue): Update.
8893         (alpha_expand_epilogue): Update.
8894         * config/frv/frv.c (frv_stack_info): Update.
8895         (frv_expand_epilogue): Update.
8896         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8897         (s390_register_info): Update.
8898         (s390_frame_info): Update.
8899         (s390_init_frame_layout): Update.
8900         (s390_can_eliminate): Update.
8901         (save_gprs): Update.
8902         * config/spu/spu.c (spu_split_immediate): Update.
8903         (need_to_save_reg): Update.
8904         (spu_expand_prologue): Update.
8905         (spu_expand_epilogue): Update.
8906         * config/sparc/sparc.md: Update.
8907         * config/sparc/sparc.c (eligible_for_return_delay): Update.
8908         (sparc_tls_got): Update.
8909         (legitimize_pic_address): Update.
8910         (sparc_emit_call_insn): Update.
8911         (sparc_expand_prologue): Update.
8912         (output_return): Update.
8913         (print_operand): Update.
8914         (sparc_function_ok_for_sibcall): Update.
8915         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8916         * config/m32r/m32r.md: Update.
8917         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8918         (m32r_compute_frame_size): Update.
8919         (m32r_expand_prologue): Update.
8920         (m32r_expand_epilogue): Update.
8921         (m32r_legitimize_pic_address): Update.
8922         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8923         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8924         * config/i386/i386.c (ix86_frame_pointer_required): Update.
8925         (gen_push): Update.
8926         (ix86_save_reg): Update.
8927         (ix86_compute_frame_layout): Update.
8928         (ix86_expand_prologue): Update.
8929         (ix86_expand_epilogue): Update.
8930         * config/sh/sh.c (output_stack_adjust): Update.
8931         (calc_live_regs): Update.
8932         (sh5_schedule_saves): Update.
8933         (sh_expand_prologue): Update.
8934         (sh_expand_epilogue): Update.
8935         (sh_setup_incoming_varargs): Update.
8936         (sh_allocate_initial_value): Update.
8937         (sh_get_pr_initial_val): Update.
8938         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8939         * config/sh/sh.md (label:): Update.
8940         * config/avr/avr.c (out_movhi_mr_r): Update.
8941         * config/crx/crx.h (enum): Update.
8942         * config/xtensa/xtensa.h (along): Update.
8943         * config/stormy16/stormy16.c Update.
8944         (xstormy16_compute_stack_layout): Update.
8945         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8946         (fr30_expand_prologue): Update.
8947         * config/cris/cris.c (cris_conditional_register_usage): Update.
8948         (cris_reg_saved_in_regsave_area): Update.
8949         (cris_initial_frame_pointer_offset): Update.
8950         (cris_simple_epilogue): Update.
8951         (cris_expand_prologue): Update.
8952         (cris_expand_epilogue): Update.
8953         (cris_expand_pic_call_address): Update.
8954         (cris_asm_output_symbol_ref): Update.
8955         (cris_asm_output_label_ref): Update.
8956         * config/cris/cris.md Update.
8957         * config/iq2000/iq2000.c (compute_frame_size): Update.
8958         (iq2000_expand_epilogue): Update.
8959         * config/mt/mt.h (save_direction): Update.
8960         * config/mn10300/mn10300.c (mn10300_function_value): Update.
8961         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8962         (ia64_secondary_reload_class): Update.
8963         * config/m68k/m68k.c (m68k_save_reg): Update.
8964         (m68k_expand_prologue): Update.
8965         (m68k_expand_epilogue): Update.
8966         (legitimize_pic_address): Update.
8967         * config/rs6000/rs6000.c (rs6000_got_register): Update.
8968         (first_reg_to_save): Update.
8969         (first_altivec_reg_to_save): Update.
8970         (compute_vrsave_mask): Update.
8971         (compute_save_world_info): Update.
8972         (rs6000_stack_info): Update.
8973         (spe_func_has_64bit_regs_p): Update.
8974         (rs6000_ra_ever_killed): Update.
8975         (rs6000_emit_eh_reg_restore): Update.
8976         (rs6000_emit_allocate_stack): Update.
8977         (rs6000_emit_prologue): Update.
8978         (rs6000_emit_epilogue): Update.
8979         (rs6000_output_function_epilogue): Update.
8980         (output_profile_hook): Update.
8981         (rs6000_elf_declare_function_name): Update.
8982         * config/rs6000/rs6000.h (rs6000_args): Update.
8983         * config/rs6000/rs6000.md: Update.
8984         * config/mcore/mcore.c (mcore_expand_prolog): Update.
8985         * config/arc/arc.c (arc_output_function_epilogue): Update.
8986         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8987         * config/darwin.c (machopic_function_base_name): Update.
8988         * config/score/score3.c (score3_compute_frame_size): Update.
8989         (rpush): Update.
8990         (rpop): Update.
8991         (score3_epilogue): Update.
8992         * config/score/score7.c (score7_compute_frame_size): Update.
8993         (score7_prologue): Update.
8994         (score7_epilogue): Update.
8995         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8996         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8997         * config/arm/arm.c (use_return_insn): Update.
8998         (require_pic_register): Update.
8999         (arm_load_pic_register): Update.
9000         (arm_compute_save_reg0_reg12_mask): Update.
9001         (arm_compute_save_reg_mask): Update.
9002         (thumb1_compute_save_reg_mask): Update.
9003         (output_return_instruction): Update.
9004         (arm_output_function_prologue): Update.
9005         (arm_output_epilogue): Update.
9006         (arm_get_frame_offsets): Update.
9007         (arm_expand_prologue): Update.
9008         (thumb_pushpop): Update.
9009         (thumb_exit): Update.
9010         (thumb1_expand_prologue): Update.
9011         (thumb1_expand_epilogue): Update.
9012         (arm_unwind_emit): Update.
9013         (arm_output_fn_unwind): Update.
9014         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9015         * config/arm/arm.md: Update.
9016         * config/pa/pa.md: Update.
9017         * config/pa/pa.c (legitimize_pic_address): Update.
9018         (compute_frame_size): Update.
9019         (hppa_expand_prologue): Update.
9020         (hppa_expand_epilogue): Update.
9021         (borx_reg_operand): Update.
9022         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9023         (HARD_REGNO_RENAME_OK): Update.
9024         * config/mips/mips.c (mips_global_pointer): Update.
9025         (mips_save_reg_p): Update.
9026         (mips_compute_frame_info): Update.
9027         (mips_frame_pointer_required): Update.
9028         (mips_expand_prologue): Update.
9029         (mips_expand_epilogue): Update.
9030         (mips_can_use_return_insn): Update.
9031         (mips_reorg_process_insns): Update.
9032         * config/v850/v850.c (compute_register_save_size): Update.
9033         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9034         * config/mmix/mmix.c (along): Update.
9035         (mmix_expand_epilogue): Update.
9036         * config/bfin/bfin.c (legitimize_pic_address): Update.
9037         (must_save_p): Update.
9038         (stack_frame_needed_p): Update.
9039         (add_to_reg): Update.
9040         (bfin_expand_prologue): Update.
9041         * stmt.c (expand_asm_operands): Update.
9042         * reload1.c (reload): Update.
9043         (init_elim_table): Update.
9045 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9046         
9047         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9048         
9049 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9051         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9052         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9053         (mov<mode>): Removed.
9054         (*movv4sf_internal): Likewise.
9055         (*movv2df_internal): Likewise.
9057 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9059         * config.gcc (crx-*-elf): Remove deprecation.
9061 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9063         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9064         __gcc_deregister_frame with atexit.
9065         (deregister_frame_dtor): Remove.
9067 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9068             Nathan Sidwell  <nathan@codesourcery.com>
9070         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9071         (misel): Likewise.
9072         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9073         (rs6000_isel): Likewise.
9074         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9075         (rs6000_isel): New variable.
9076         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9078 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9080         PR c++/35758
9081         * c-common.c (handle_vector_size_attribute): Call
9082         lang_hooks.types.reconstruct_complex_type instead of
9083         reconstruct_complex_type.
9084         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9085         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9086         * langhooks.h (struct lang_hooks_for_types): Add
9087         reconstruct_complex_type hook.
9088         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9089         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9091 2008-04-24  Richard Guenther  <rguenther@suse.de>
9093         * c-common.h (check_builtin_function_arguments): Declare.
9094         * c-common.c (validate_nargs): New function.
9095         (check_builtin_function_arguments): Likewise.
9096         * c-typeck.c (build_function_call): Call
9097         check_builtin_function_arguments.
9098         * builtins.c (fold_builtin_classify): Remove error reporting code.
9099         (fold_builtin_unordered_cmp): Likewise.
9100         (fold_builtin_1): Likewise.
9101         (fold_builtin_n): Likewise.
9103 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9105         PR tree-optimization/36008
9106         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9107         the original op1, rather than delta by step.
9109 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9110             Sebastian Pop  <sebastian.pop@amd.com>
9112         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9113         eliminate_local_variables_stmt, eliminate_local_variables,
9114         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9115         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9116         of code delimited by two edges in the CFG.
9117         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9118         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9119         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
9120         the case of parallelisation of reductions.
9121         (expr_invariant_in_region_p): New.
9123         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9124         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9126 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9127             Richard Guenther  <rguenther@suse.de>
9129         PR tree-optimization/36034
9130         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9131         incapable of dealing with loads with gaps.
9133 2008-04-24  Rafael Espindola  <espindola@google.com>
9135         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9136         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9137         vrp_evaluate_conditional.
9138         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9139         (vrp_evaluate_conditional): Split the cond argument.
9140         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9141         (simplify_stmt_for_jump_threading): Update call to
9142         vrp_evaluate_conditional.
9144 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9146         PR tree-optimization/35982
9147         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9148         interleaved data-refs are of the same type.
9150 2008-04-24  Danny Smith  <dannysmith@users.net>
9152         * c-format.c (check_format_info_main): Use strncmp rather than a
9153         magic prefix to handle multichar length specs.
9154         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9155         Don't prefix "I64" and "I32" with '\0'.
9157 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9159         PR target/36015
9160         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9161         in registers for -m32 only if stdarg_p (fntype).
9163 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9165         PR rtl-optimization/36006
9166         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9167         temp to op0 in order to avoid invalid rtx sharing.
9169 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9171         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9172         check TREE_INVARIANT.
9173         * tree-gimple.c (is_gimple_address): New.
9174         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9175         * tree-gimple.h (is_gimple_address): New.
9176         * tree.h (decl_address_invariant_p): New.
9177         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9178         (build_string): Likewise.
9179         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9180         (tree_invariant_p_1): Likewise.
9181         (save_expr): Use it.
9182         (tree_invariant_p): New.
9183         (skip_simple_arithmetic): Use it.
9184         (stabilize_reference_1): Use it.
9185         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9186         simplify.
9187         (build1_stat): Drop code to compute TREE_INVARIANT.
9188         (build2_stat): Drop code to compute TREE_INVARIANT.
9189         (build3_stat): Drop code to compute TREE_INVARIANT.
9190         (build4_stat): Drop code to compute TREE_INVARIANT.
9191         (build5_stat): Drop code to compute TREE_INVARIANT.
9192         (build7_stat): Drop code to compute TREE_INVARIANT.
9193         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9194         * tree.h (struct tree_base): Remove invariant_flag.
9195         (TREE_INVARIANT): Remove.
9196         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9197         (fold_builtin_expect): Check TREE_CONSTANT.
9198         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9199         * c-tree.h (c_expr_to_decl): Drop third parameter.
9200         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9201         (build_c_cast): Don't set TREE_INVARIANT.
9202         (pop_init_level): Don't set TREE_INVARIANT.
9203         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9204         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9205         TREE_CONSTANT.
9206         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9207         (gimplify_addr_expr): Adjust comment.
9208         * tree-mudflap.c (mf_build_string):
9209         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9210         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9211         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9212         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9213         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9214         * langhooks.h (struct lang_hooks): Drop third parameter from
9215         expr_to_decl.
9217 2008-04-23  Richard Guenther  <rguenther@suse.de>
9219         PR tree-optimization/27799
9220         PR tree-optimization/32921
9221         PR tree-optimization/32624
9222         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9223         SMTs aliases and the tag itself into the solution.
9224         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9225         merge the points-to solution back into the SMT aliases.
9226         (may_alias_p): Use alias_set_subset_of instead of
9227         aliases_conflict_p.  A pointer which points to
9228         memory with alias set zero may access any variable.
9230 2008-04-23  Richard Guenther  <rguenther@suse.de>
9232         * alias.c (alias_set_subset_of): Correctly handle asking
9233         if zero is a subset of an alias set with zero child.
9234         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9235         (compute_flow_insensitive_aliasing): Correctly walk all
9236         pointers.  Do not unnecessarily union sets.
9238 2008-04-23  Richard Guenther  <rguenther@suse.de>
9240         PR middle-end/36021
9241         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9243 2008-04-22  Tomas Bily  <tbily@suse.cz>
9245         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9246         unreachable case.
9247         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9248         NON_LVALUE_EXPR.
9249         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9250         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9251         * tree-inline.c (estimate_num_insns_1): Likewise.
9252         * varasm.c (const_hash_1, compare_constant, copy_constant)
9253         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9254         * emit-rtl.c (component_ref_for_mem_expr)
9255         (set_mem_attributes_minus_bitpos): Likewise.
9256         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9257         (is_aligning_offset): Likewise.
9258         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9259         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9260         * dojump.c (do_jump): Likewise.
9261         * builtins.c (get_pointer_alignment, get_memory_rtx)
9262         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9263         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9265 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9267         PR rtl-optimization/36017
9268         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9269         expanding the library call.
9271 2008-04-22  Ian Lance Taylor  <iant@google.com>
9273         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9274         than size_in_bytes.
9276 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9278         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9279         of LR/CTR moves for Power6.
9281 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9283         PR middle-end/36003
9284         * passes.c (init_optimization_passes): Remove
9285         pass_fast_rtl_byte_dce.
9286         
9287 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9289         PR target/29096
9290         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9291         builtin functions to generate faster code.
9292         (_mm_cvtpu16_ps): Ditto.
9293         (_mm_cvtpi32x2_ps): Ditto.
9295 2008-04-22  Nick Clifton  <nickc@redhat.com>
9297         * common.opt (ftree-loop-distribution): Add Optimization
9298         attribute.
9300         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9301         (frv_expand_builtin_va_start): Likewise.
9303         * config/arm/arm.c (thumb_find_work_register): Fix location of
9304         argument register count.
9306 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9308         Support scheduling for ColdFire V1 and V3 microarchitecture.
9309         Improve scheduling of multiplication instructions.
9311         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9312         (mac): New instruction attribute.
9313         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9314         (m68k_sched_mac): New variable.
9315         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9316         Handle cfv1 and cfv3.
9317         (max_insn_size): New static variable.
9318         (struct _sched_ib): New type.
9319         (sched_ib): New static variable.
9320         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9321         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9322         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9323         Update.
9324         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9325         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9326         new variables.  Update.
9327         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9328         Add modeling of cfv3 instruction buffer.  Update.
9329         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9330         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9331         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9332         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9333         a particular reservation applies to.
9334         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9335         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9336         to mul_l and mul_w.
9337         (cf_ib_*): Simplify description of instruction buffer.
9338         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9339         (cf_mem): Split into cf_mem1 and cf_mem2.
9340         (cf_v2_move_??): Rename to cfv12_alu_??.
9341         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9342         (cf_v2_mul_??): Remove reservations.
9343         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9344         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9345         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9346         appropriate place.
9347         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9348         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9349         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9350         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9351         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9352         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9353         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9354         expansions of the above reservations for instructions of sizes
9355         1, 2 and 3 words.
9357 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9359         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9361 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9363         * coverage.c: Include tree-pass.h.
9364         (coverage_counter_alloc): Print da_file_name to the dump file.
9366 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9368         * sbitmap.c (sbitmap_range_empty_p): New function.
9369         * sbitmap.h (sbitmap_range_empty_p): New function.
9370         * bitmap.h: Now includes obstack.h.
9372 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9373             Kenneth Zadeck  <zadeck@naturalbridge.com>
9375         * dbgcnt.def (ra_byte_scan): Added.
9376         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9377         when the last hit happens for a counter.  
9378         * timevar.def (TV_DF_BYTE_LR): New variable.
9379         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9380         * passes.c (pass_fast_rtl_byte_dce): New pass.
9381         * fwprop.c (update_df): Added mode to call df_ref_create.
9382         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9383         DF_REF_EXTRACT_OFFSET.
9384         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
9385         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9386         (df_mm): New enum.
9387         (df_ref_extract): Added mode field.
9388         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9389         DF_REF_EXTRACT_OFFSET.
9390         (DF_REF_EXTRACT_MODE): New macro.
9391         (df_byte_lr_bb_info): New structure.
9392         (df_print_byte_regset, df_compute_accessed_bytes, 
9393         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9394         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9395         df_byte_lr_simulate_uses,
9396         df_byte_lr_simulate_artificial_refs_at_top,
9397         df_byte_lr_simulate_artificial_refs_at_end,
9398         df_compute_accessed_bytes): New function.
9399         (df_ref_create): Add parameter.
9400         (df_byte_lr_get_bb_info): New inline function.
9401         * df-scan.c (df_ref_record, df_uses_record,
9402         df_ref_create_structure): Added mode parameter.
9403         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
9404         df_defs_record, df_uses_record, df_get_conditional_uses,
9405         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
9406         df_entry_block_defs_collect, df_exit_block_uses_collect):
9407         Added mode parameter to calls to df_ref_record, df_uses_record,
9408         df_ref_create_structure.
9409         (df_ref_equal_p, df_ref_compare): Added test for modes.
9410         (df_ref_create_structure): Added code to set mode.  Renamed
9411         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9412         DF_REF_EXTRACT_OFFSET.
9413         * df-core.c (df_print_byte_regset): New function.
9414         * df-byte-scan.c: New file.
9415         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9416         calls to BITMAP_FREE.  
9417         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9418         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9419         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
9420         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
9421         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9422         df_byte_lr_local_compute, df_byte_lr_init,
9423         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
9424         df_byte_lr_transfer_function, df_byte_lr_free, 
9425         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9426         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
9427         df_byte_lr_simulate_uses,
9428         df_byte_lr_simulate_artificial_refs_at_top,
9429         df_byte_lr_simulate_artificial_refs_at_end): New function.
9430         * dce.c (byte_dce_process_block): New function.
9431         (dce_process_block): au is now passed in rather than computed
9432         locally.  Changed loops that look at artificial defs to not look
9433         for conditional or partial ones, because there never are any.  
9434         (fast_dce): Now is able to drive byte_dce_process_block or 
9435         dce_process_block depending on the kind of dce being done.
9436         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9437         (rest_of_handle_fast_byte_dce): New function.
9438         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9439         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9441 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9443         PR fortran/35019
9444         * gcc.h: Added fortran options that take arguments to
9445         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9446         macros.
9448 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9450         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9451         scalarization if on the LHS and not a full access.
9453 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9455         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9457 2008-04-18  Rafael Espindola  <espindola@google.com>
9459         * tree-vrp.c (find_case_label_index): Fix the binary search.
9460         (find_case_label_range): New.
9461         (vrp_visit_switch_stmt): Use find_case_label_range.
9462         (simplify_switch_using_ranges): Use find_case_label_range.
9464 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9466         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9467         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9469 2008-04-18  Tom Tromey  <tromey@redhat.com>
9471         PR libcpp/15500:
9472         * doc/cpp.texi (Implementation-defined behavior): Mention
9473         -finput-charset.
9475 2008-04-18  Ian Lance Taylor  <iant@google.com>
9477         * fold-const.c (pointer_may_wrap_p): New static function.
9478         (fold_comparison): Add another test for pointer overflow.  Use
9479         pointer_may_wrap_p to disable some false positives.
9481 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
9482           
9483         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9484         (fname_as_string): Match updated cpp_interpret_string prototype.
9485         (fix_string_type): Support char16_t* and char32_t*.
9486         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9487         derivative) nodes.  Register as builtin if C++0x.
9488         (c_parse_error): Support CPP_CHAR{16,32}.
9489         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
9490         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9491         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9492         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9493         CTI_CHAR32_ARRAY_TYPE>: New elements.
9494         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9495         char32_type_node, signed_char32_type_node, char16_array_type_node,
9496         char32_array_type_node): New defines.
9497         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9498         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9499         (lex_string): Support CPP_STRING{16,32}, match updated
9500         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9501         (lex_charconst): Support CPP_CHAR{16,32}.
9502         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9503         and CPP_STRING{16,32}.
9505 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9507         PR bootstrap/35457
9508         * aclocal.m4: Regenerate.
9509         * configure: Regenerate.
9511 2008-04-18  Jan Hubicka  <jh@suse.cz>
9513         * except.c (dw2_size_of_call_site_table,
9514         sjlj_size_of_call_site_table): Use vector API for call_site_record.
9516         * cgraphbuild.c (build_cgraph_edges): Update.
9517         * tree-pass.h: Update comment.
9518         * final.c (leaf_function_p): Update.
9519         (leaf_renumber_regs): Update.
9520         (rest_of_clean_state): Update.
9521         * omp-low.c (expand_omp_parallel): Update.
9522         * ipa-reference.c (analyze_function): Update.
9523         * reorg.c (find_end_label): Update.
9524         (optimize_skip): Update.
9525         (fill_simple_delay_slots): Update.
9526         (fill_simple_delay_slots): Update.
9527         (make_return_insns): Update.
9528         (dbr_schedule): Update.
9529         * gimple-low.c (record_vars_into): Update.
9530         * cfgbuild.c (make_edges): Update.
9531         * function.c (assign_stack_local): Update.
9532         (assign_parm_adjust_stack_rtl): Update.
9533         (locate_and_pad_parm): Update.
9534         (allocate_struct_function): Do not initialize stack_alignment_needed
9535         and preferred_stack_boundary here.
9536         (stack_protect_prologue): Update.
9537         (stack_protect_epilogue): Update.
9538         (expand_function_start): Initialize stack_alignment_needed,
9539         preferred_stack_boundary and max_jumptable_ents.
9540         (expand_function_end): Update.
9541         (free_after_compilation): Do not NULLify epilogue_delay_list.
9542         * function.h (struct rtl_data): Add stack_protect_guard,
9543         stack_alignment_needed,
9544         preferred_stack_boundary, epilogue_delay_list.
9545         (struct function): Remove value_histograms, stack_alignment_needed,
9546         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9547         last_label_uid,
9548         unexpanded_var_list, stack_protect_guard.
9549         (current_function_epilogue_delay_list): Remove.
9550         * ipa-type-escape.c (analyze_function): Update.
9551         * gimplify.c (pop_gimplify_context): Update comment.
9552         * calls.c (expand_call): Update.
9553         (emit_library_call_value_1): Update.
9554         * except.c (set_nothrow_function_flags): Update.
9555         * cfgexpand.c (get_decl_align_unit): Update.
9556         (create_stack_guard): Update.
9557         (estimated_stack_frame_size): Update.
9558         (expand_used_vars): Update.
9559         (tree_expand_cfg): Free histogram earliers, init expansion variables.
9560         * explow.c (allocate_dynamic_stack_space): Update.
9561         * tree-ssa-live.c (remove_unused_locals): Update.
9562         * varasm.c (mark_constant_pool): Update.
9563         * tree-inline.c (remap_decls): Update.
9564         (initialize_cfun): Update.
9565         (declare_return_variable): Update.
9566         (inline_forbidden_p): Update.
9567         (expand_call_inline): Update.
9568         (declare_inline_vars): Update.
9569         (tree_function_versioning): Update.
9570         * tree-flow.h (value_histograms): New.
9571         (VALUE_HISTOGRAMS): New macro.
9572         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9573         last_label_uid.
9574         * tree-cfg.c (set_bb_for_stmt): Update.
9575         (replace_by_duplicate_decl): Update.
9576         (move_block_to_fn): Update.
9577         (new_label_mapper): Update.
9578         (dump_function_to_file): Update.
9579         * ipa-struct-reorg.c (build_data_structure): Update.
9580         * cfgrtl.c (print_rtl_with_bb): Update.
9581         * reload1.c (reload): Update.
9582         (reload): Update.
9583         * config/i386/i386.c (setup_incoming_varargs_64,
9584         ix86_compute_frame_layout): Update.
9585         * config/arc/arc.c (arc_output_function_epilogue): Update.
9587 2008-04-18  Marius Strobl <marius@FreeBSD.org>
9589         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9590         for FreeBSD as well.
9591         * gthr-posix95.h: Likewise.
9593 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
9595         PR rtl-optimization/35838
9596         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9597         out the byte offset of the first subreg.
9599 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
9601         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9602         to split_ti instead of three separate calls with single member arrays.
9603         (subti3 splitter): Ditto.
9604         (adddi3 splitter): Ditto with split_di.
9605         (subdi3 splitter): Ditto.
9606         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9607         two separate calls with single member arrays.  Swap match_dup
9608         operands 1 and 2 to better fit into the array.
9609         (negdi2 splitter): Ditto with split_di.
9610         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
9611         two separate calls with single member arrays.  Swap match_dup operands
9612         6 and 7 to better fit into the array.
9614 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9616         * config/i386/i386.c (sse_builtin_type): New.
9617         (bdesc_sse_args): Likewise.
9618         (bdesc_sse_3arg): Removed.
9619         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9620         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9621         IX86_BUILTIN_ROUNDPS.
9622         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
9623         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
9624         IX86_BUILTIN_ROUNDPS.
9625         (ix86_expand_sse_4_operands_builtin): Removed.
9626         (ix86_expand_sse_operands_builtin): New.
9627         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9628         and CODE_FOR_sse4_1_roundps.
9629         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9630         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
9632 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
9634         PR target/35907
9635         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9636         regs before frame pop when needed.  If use_backchain_to_restore_sp
9637         then load backchain into a temp reg to restore vr and vrsave.  Add
9638         code to restore vr after frame pop if possible.
9640 2008-04-17  Richard Guenther  <rguenther@suse.de>
9642         * tree-vn.c (expressions_equal_p): Do not check type
9643         equality or compatibility before calling operand_equal_p.
9644         * fold-const.c (operand_equal_p): Check equivalence of
9645         integer constants before bailing out due to signedness or
9646         precision differences.
9647         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9648         spurious differences in type qualification.  Ignore types
9649         for COMPONENT_REFs at all.
9651 2008-04-17  Christian Bruel  <christian.bruel@st.com>
9653         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9654         msw_skip comparison.
9655         
9656 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
9658         PR c/35739
9659         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9660         reg type.
9662         PR tree-optimization/35899
9663         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9664         rather than TREE_OPERAND.
9666 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
9668         PR target/35944
9669         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9670         temporary registers.  Change operand predicate to general_operand.
9671         (remainderxf3): Ditto.
9673 2008-04-16  Richard Guenther  <rguenther@suse.de>
9675         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9676         * tree-affine.c (aff_combination_expand): Look through some
9677         conversions.
9679 2008-04-15  Doug Kwan  <dougkwan@google.com>
9681         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9682         for hex printing.
9683         * tree-pretty-print.c (dump_generic_node): Ditto.
9684         * final.c (output_addr_const): Ditto.
9685         * dwarf2out.c (output_cfi): Ditto.
9686         * c-pretty-print.c (pp_c_integer_constant): Ditto.
9687         * print-rtl.c (print_rtx): Ditto.
9688         * print-tree.c (print_node_brief, print_node): Ditto.
9689         * c-common.c (match_case_to_enum_1): Ditto.
9690         * sched-vis.c (print_value): Ditto.
9691         * config/i386/i386.c (print_operand): Cast to long unsigned int
9692         for hex printing.
9694 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
9695         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
9696         MS Windows VirtualProtect function.
9698 2008-04-15  Jan Hubicka  <jh@suse.cz>
9700         * gengtype.c (write_root): Param_is argument is OK.
9701         * expr.c (expand_expr_real_1): Update call of get_exception_*.
9702         * function.h: Include varray.h
9703         (rtl_eh): New stucture based on except.c one.
9704         (call_site_record): New forward declaration and vector type.
9705         * calls.c (emit_call_1): Do not call
9706         note_current_region_may_contain_throw.
9707         * except.c (eh_status): Remove cur_region, try_region since they are
9708         unused.
9709         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9710         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9711         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
9712         Remove call_site_data_used, call_site_data_size.
9713         Turn call_site_record into vector in function.h.
9714         (note_current_region_may_contain_throw): Remove.
9715         (get_exception_pointer, get_exception_filter): Do not take struct
9716         function argument; update.
9717         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9718         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9719         build_post_landing_pads, dw2_build_landing_pads,
9720         sjlj_assign_call_site_values, sjlj_mark_call_sites,
9721         sjlj_emit_function_enter, sjlj_emit_function_enter, 
9722         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9723         sjlj_build_landing_pads, finish_eh_generation,
9724         remove_exception_handler_label, remove_eh_handler,
9725         maybe_remove_eh_handler, add_reachable_handler,
9726         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9727         add_action_record, collect_one_action_chain, add_call_site,
9728         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9729         sjlj_output_call_site_table, output_function_exception_table,
9730         * except.h (note_current_region_may_contain_throw): Remove
9731         (get_exception_pointer, get_exception_filter): Do not take struct
9732         function argument.
9733         * Makefile.in (GTFILES): Put varargs before struct function.
9735 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9737         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9738         punt for STRING_CST.
9739         (get_constraint_for): Deal with STRING_CST here instead.
9741 2008-04-15  Richard Guenther  <rguenther@suse.de>
9743         * tree-ssa-propagate.c (substitute_and_fold): Substitute
9744         statements in a basic-block with a backward walk.  Do not
9745         substitute into dead statements but instead remove those.
9747 2008-04-15  Richard Guenther  <rguenther@suse.de>
9749         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9750         to zero, thus disable creation of SFTs.
9752 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9754         * tree-predcom.c (suitable_reference_p): Return false if the
9755         reference can throw.
9757 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
9759         PR c/35751
9760         * c-decl.c (finish_decl): If extern or static var has variable
9761         size, set TREE_TYPE (decl) to error_mark_node.
9763 2008-04-15  Rafael Espindola  <espindola@google.com>
9765         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9766         variable arg1.
9768 2008-04-15  Richard Guenther  <rguenther@suse.de>
9770         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9771         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9772         (visit_reference_op_load): Do walk vuse-vdef chains on
9773         vn_reference_lookup.
9774         (visit_reference_op_store): But do not here.
9775         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9776         vn_reference_lookup.
9777         (vn_lookup_with_vuses): But do so here.
9779 2008-04-14  Ian Lance Taylor  <iant@google.com>
9781         * fold-const.c (fold_overflow_warning): Remove assertion.
9783 2008-04-15  Ben Elliston  <bje@au.ibm.com>
9785         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9786         temp1 local variables.
9788 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
9790         PR target/35661
9791         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9792         ".text.unlikely" section as executable.
9794 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
9796         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9797         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9798         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9799         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9800         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9801         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9802         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9804 2008-04-14  Ian Lance Taylor  <iant@google.com>
9806         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9807         * fold-const.c (fold_comparison): If appropriate, test
9808         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9809         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9810         reassociating a pointer type.
9811         * doc/invoke.texi (Optimize Options): Document that
9812         -fstrict-overflow applies to pointer wraparound.
9814 2008-04-13  Jan Hubicka  <jh@suse.cz>
9816         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9818 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
9820         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9821         we are going to "save the world".
9823 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
9825         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9826         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9827         operand 0 constraint, not "=".
9829 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
9831         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9833 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
9835         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9836         of size of positions_needed * CHAR_BIT.
9838 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
9840         PR middle-end/35897
9841         * dse.c (store_info): Change positions_needed to unsigned
9842         HOST_WIDE_INT.
9843         (lowpart_bitmask): New.
9844         (record_store): Cast to unsigned HOST_WIDE_INT for
9845         positions_needed.  Assert width <= size of positions_needed *
9846         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
9847         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
9848         lowpart_bitmask to set mask.
9850 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9852         * config/bfin/constraints.md: New file.
9853         * config/bfin/bfin.md: Include it.
9854         (adddi3): Use satisfies_constraint functions instead of the old macros.
9855         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9856         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9857         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9858         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9859         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9860         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9861         EXTRA_CONSTRAINT): Delete.
9862         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9863         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9864         of the old macros.
9865         * config/bfin/bfin.c: Include "tm-constrs.h".
9866         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9867         Use satisfies_constraint functions instead of the old macros.
9868         * doc/md.texi (Blackfin Constraints): Update file name reference.
9870 2008-04-11  Richard Guenther  <rguenther@suse.de>
9872         PR tree-optimization/35869
9873         * tree-vrp.c (execute_vrp): Move switch statement update after
9874         jump threading.  Schedule another cfg cleanup run.
9876 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
9878         PR c/35744
9879         * attribs.c (decl_attributes): Return early on errorneous node.
9881 2008-04-10  Oleg Ryjkov  <olegr@google.com>
9883         * tree.h (struct tree_base): Added a new flag default_def_flag.
9884         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9886 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9888         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9890 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9892         PR target/35768
9893         * pa.md: Define mode iterator P.  Define mode attribute dwc.
9894         (dcacheflush): Update pattern to use iterator P and attribute dwc.
9895         (icacheflush): Likewise.
9896         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9897         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9899 2008-04-11  Ben Elliston  <bje@au.ibm.com>
9901         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9903 2008-04-10  Rafael Espindola  <espindola@google.com>
9905         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9906         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9907         (extract_range_from_expr): The same.
9909 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
9911         * config/mips/mips.md (GPR2): New mode iterator.
9912         (seq): Add comment.
9913         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9914         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9915         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9916         Rewrite these to take two modes, the mode of comparison and the
9917         mode of the destination.
9918         * config/mips/mips.c (mips_expand_scc): Instead of having
9919         paradoxical subreg as destination, expand "narrowing" scc if mode
9920         of comparison is SI and target is requested in DI mode.
9921         (mips_emit_int_order_test): Update comment.  Make mode of
9922         comparison match CMP0 rather than TARGET.  When creating inverse
9923         target use mode of TARGET.
9925 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
9927         * gcov-dump.c (tag_summary): Only print summaries for the first
9928         GCOV_COUNTERS_SUMMABLE counters.
9930 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
9932         * config/i386/i386.md (absneg): New code iterator.
9933         (absnegprefix): New code attribute.
9934         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9935         patterns using absneg code iterator.
9936         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9937         using absneg code iterator.
9938         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9939         *neg<mode>2 patterns using absneg code iterator.
9940         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9941         *negextendsfdf2 patterns using absneg code iterator.
9942         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9943         *negextendsfxf2 patterns using absneg code iterator.
9944         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9945         *negextendsfdf2 patterns using absneg code iterator.
9946         * config/i386/sse.md (<code><mode>2): Macroize expander from
9947         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
9949 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9951         * config/s390/s390.h: Remove the remains of the recent search
9952         & replace action of current_function_outgoing_args_size.
9954 2008-04-10  Ira Rosen  <irar@il.ibm.com>
9956         PR tree-optimization/35821
9957         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9958         NEW_STMT_LIST is not NULL.
9960 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
9962         PR libstdc++/35597
9963         * toplev.c (process_options): Remove -ffunction-sections debugging
9964         warning.
9966 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
9968         PR middle-end/PR28690
9969         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9970         than gen_rtx_fmt_ee to perform more canonicalizations.
9972 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9974         PR driver/35665
9975         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9977 2008-04-09  Richard Guenther  <rguenther@suse.de>
9979         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9980         (dump_function_to_file): Dump function arguments with types.
9982 2008-04-08  Richard Guenther  <rguenther@suse.de>
9984         * fold-const.c (fold_widened_comparison): Do not allow
9985         sign-changes that change the result.
9987 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
9989         PR target/35839
9990         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9991         kinds of indirect references.
9993 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
9995         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9996         GNU Fortran language string.
9998 2008-04-08  Rafael Espindola  <espindola@google.com>
10000         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10001         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10002         * tree.h (tree_call_nonnegative_warnv_p): New.
10004 2008-04-08  Jan Hubicka  <jh@suse.cz>
10006         * function.c (free_after_compilation): Clear out regno_reg_rtx
10007         pointer.
10009 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10011         Revert
10012         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10014         PR middle-end/PR28690
10015         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10016         same precedence as REG_POINTER and MEM_POINTER operands.
10018 2008-04-08  Richard Guenther  <rguenther@suse.de>
10020         PR middle-end/35834
10021         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10022         for adding index to base.
10024 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10026         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10027         (MINGW_ENABLE_EXECUTE_STACK): New.
10028         (IN_LIBGCC2): For libgcc include windows.h file for
10029         function declarations.
10031 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10033         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10034         and tem2 if tem1 is not a REG or MULT.
10036 2008-04-08  Jan Hubicka  <jh@suse.cz>
10038         * function.h (incomming_args): Break out of struct function.
10039         (function_subsections): Break out of struct function.
10040         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10041         return_rtx and hard_reg_initial_vals from struct function.
10042         Kill inl_max_label_num.
10043         (current_function_pops_args, current_function_args_info,
10044         current_function_args_size, current_function_args_size,
10045         current_function_pretend_args_size,
10046         current_function_outgoing_args_size,
10047         current_function_internal_arg_pointer, current_function_return_rtx):
10048         Kill compatibility accestor macros.
10049         * builtins.c (expand_builtin_apply_args_1): Update.
10050         (expand_builtin_next_arg): Update.
10051         * df-scan.c (df_get_call_refs): Update.
10052         * dbxout.c (dbxout_function_end): Update.
10053         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10054         (output_line_info): Update.
10055         (secname_for_decl): Update.
10056         (dwarf2out_var_location): Update.
10057         * function.c (free_after_compilation): Update.
10058         (assign_parm_find_stack_rtl): Update.
10059         (assign_parms): Update.
10060         (expand_dummy_function_end): Update.
10061         (expand_function_end): Update.
10062         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10063         (expand_call): Update.
10064         (emit_library_call_value_1): Update.
10065         (store_one_arg): Update.
10066         * varasm.c (initialize_cold_section_name): Update.
10067         (unlikely_text_section): Update.
10068         (unlikely_text_section_p): Update.
10069         (assemble_start_function): Update.
10070         (assemble_end_function): Update.
10071         (default_section_type_flags): Update.
10072         (switch_to_section): Update.
10073         * integrate.c (set_decl_abstract_flags): Update.
10074         (get_hard_reg_initial_val): Update.
10075         (has_hard_reg_initial_val): Update.
10076         (allocate_initial_values): Update.
10077         * resource.c (init_resource_info): Update.
10078         * config/alpha/alpha.c (NUM_ARGS): Update.
10079         (direct_return): Update.
10080         (alpha_va_start): Update.
10081         (alpha_sa_size): Update.
10082         (alpha_initial_elimination_offset): Update.
10083         (alpha_expand_prologue): Update.
10084         (alpha_start_function): Update.
10085         (alpha_expand_epilogue): Update.
10086         (unicosmk_initial_elimination_offset):
10087         * config/alpha/alpha.md (call expander): Update.
10088         * config/s390/s390.c (s390_register_info): Update.
10089         (s390_register_info): Update.
10090         (s390_frame_info): Update.
10091         (s390_initial_elimination_offset): Update.
10092         (s390_build_builtin_va_list): Update.
10093         (s390_va_start): Update.
10094         * config/spu/spu.c (direct_return): Update.
10095         (spu_expand_prologue): Update.
10096         (spu_initial_elimination_offset): Update.
10097         (spu_build_builtin_va_list): Update.
10098         (spu_va_start): Update.
10099         * config/sparc/sparc.c (sparc_init_modes): Update.
10100         (sparc_compute_frame_size): Update.
10101         (function_value): Update.
10102         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10103         * config/i386/i386.md (return expander): Update.
10104         * config/i386/i386.c (ix86_va_start): Update.
10105         (ix86_can_use_return_insn_p): Update.
10106         (ix86_compute_frame_layout): Update.
10107         (ix86_expand_epilogue): Update.
10108         * config/sh/sh.c (output_stack_adjust): Update.
10109         (calc_live_regs): Update.
10110         (sh_expand_prologue): Update.
10111         (sh_builtin_saveregs): Update.
10112         (sh_va_start): Update.
10113         (initial_elimination_offset): Update.
10114         (sh_allocate_initial_value): Update.
10115         (sh_function_ok_for_sibcall): Update.
10116         (sh_get_pr_initial_val): Update.
10117         * config/sh/sh.md (return expander): Update.
10118         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10119         * config/crx/crx.c (crx_compute_frame): UPdate.
10120         (crx_initial_elimination_offset): UPdate.
10121         * config/xtensa/xtensa.c (compute_frame_size): Update
10122         (xtensa_builtin_saveregs): Update.
10123         (xtensa_va_start): Update.
10124         (order_regs_for_local_alloc): Update.
10125         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10126         (xstormy16_expand_builtin_va_start): Update.
10127         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10128         * config/m68hc11/m68hc11.md (return expanders): Update.
10129         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10130         (expand_epilogue): Update.
10131         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10132         (cris_simple_epilogue): Update.
10133         (cris_expand_prologue): Update.
10134         (cris_expand_epilogue): Update.
10135         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10136         (compute_frame_size): Update.
10137         * config/mt/mt.c (mt_compute_frame_size): Update.
10138         * config/mn10300/mn10300.c (expand_prologue): Update.
10139         (expand_epilogue): Update.
10140         (initial_offset): Update.
10141         (mn10300_builtin_saveregs):
10142         * config/mn10300/mn10300.md (return expander): Update.
10143         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10144         (ia64_initial_elimination_offset): Update.
10145         (ia64_initial_elimination_offset): Update.
10146         (ia64_expand_prologue): Update.
10147         * config/m68k/m68k.md (return expander): Update.
10148         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10149         (rs6000_stack_info): Update.
10150         * config/mcore/mcore.c (layout_mcore_frame): Update.
10151         (mcore_expand_prolog): Update.
10152         * config/arc/arc.c (arc_compute_frame_size): Update.
10153         * config/score/score3.c (score3_compute_frame_size): Update.
10154         * config/score/score7.c (score7_compute_frame_size): Update.
10155         * config/arm/arm.c (use_return_insn): Update.
10156         (thumb_find_work_register): Update.
10157         (arm_compute_save_reg_mask): Update.
10158         (arm_output_function_prologue): Update.
10159         (arm_output_epilogue): Update.
10160         (arm_size_return_regs): Update.
10161         (arm_get_frame_offsets): Update.
10162         (arm_expand_prologue): Update.
10163         (thumb_exit): Update.
10164         (thumb_unexpanded_epilogue): Update.
10165         (thumb1_output_function_prologue): Update.
10166         * config/pa/pa.md (return expander): Update.
10167         * config/pa/pa.c (compute_frame_size): Update.
10168         (hppa_builtin_saveregs): Update.
10169         * config/mips/mips.c (mips_va_start): Update.
10170         (mips16_build_function_stub): Update.
10171         (mips_compute_frame_info): Update.
10172         (mips_restore_gp): Update.
10173         (mips_output_function_prologue): Update.
10174         (mips_expand_prologue): Update.
10175         * config/v850/v850.c (compute_frame_size): Update.
10176         (expand_prologue): * config/mmix/mmix.c (along): update.
10177         (mmix_initial_elimination_offset): update.
10178         (mmix_reorg): update.
10179         (mmix_use_simple_return): update.
10180         (mmix_expand_prologue): update.
10181         (mmix_expand_epilogue): Update.
10182         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10183         (emit_link_insn): Update.
10185 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10187         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
10188         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
10189         instructions.
10190         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
10191         atmega103 device.
10193 2008-04-07  Jan Hubicka  <jh@suse.cz>
10195         * function.h (rtl): Rename to x_rtl.
10196         (crtl): New define.
10197         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10198         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10199         used_temp_slots avail_temp_slots, temp_slot_level,
10200         nonlocal_goto_handler_labels): Update accesstors.
10201         (rtl): New global variable.
10202         (struct function): Move some fileds to rtl_data.
10203         (get_arg_pointer_save_area): Update prototype.
10204         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10205         get_arg_pointer_save_area.
10206         * expr.c (init_expr): Update
10207         * function.c (get_frame_size): Update
10208         (assign_stack_local): Update
10209         (expand_function_end): Update.
10210         (get_art_pointer_save_area): Update
10211         * function.h 
10212         * emit-rtl.c (rtl): Declare.
10213         (regno_reg_rtx): Declare.
10214         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10215         Update.
10216         (gen_reg_rtx): Update.
10217         * varasm.c (n_deferred_constatns): Update accestor.
10218         (init_varasm_status): Do not allocate varasm_status.
10219         (force_const_mem, get_pool_size, output_constant_pool): Update.
10220         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10221         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10222         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10223         * sparc/sparc.h (INIT_EXPANDERS): Update.
10224         * ia64/ia64.h (INIT_EXPANDERS): Update.
10226 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10228         * reload.c (push_secondary_reload): Add missing break to for loop.
10230 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10232         PR middle-end/PR28690
10233         * rtlanal.c: Update copyright years.
10234         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10235         as REG_POINTER and MEM_POINTER operands.
10236         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10237         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10238         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10239         * gcse.c: Update copyright years.
10240         (pre_delete): Call gen_reg_rtx_and_attrs.
10241         (hoist_code): Likewise.
10242         (build_store_vectors): Likewise.
10243         (delete_store): Likewise.
10244         * loop-invariant.c (move_invariant_reg): Likewise.
10245         Update copyright years.
10247 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10249         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10250         control string instead of quoted.
10252 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10254         * doc/rtl.texi: Rewrite of subreg section.
10256 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10258         PR/35842
10259         * config/i386/i386.c (legitimize_pic_address): Add treating
10260         of dllimport SYM_REF's.
10261         (legitimize_dllimport_symbol): Add prototype.
10263 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10265         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10266         reference in constructor with non self-referential type.
10268 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10270         Removal of Return with Depressed Stack Pointer support
10271         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10272         (ECF_SP_DEPRESSED): Likewise.
10273         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10274         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10275         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10276         (expand_call): Do not test ECF_SP_DEPRESSED.
10277         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10278         * function.c (keep_stack_depressed): Delete.
10279         (handle_epilogue_set): Likewise.
10280         (update_epilogue_consts): Likewise.
10281         (emit_equiv_load): Likewise.
10282         (thread_prologue_and_epilogue_insns): Remove support for Return with
10283         Depressed Stack Pointer.
10284         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10286 2008-04-06  Richard Guenther  <rguenther@suse.de>
10288         PR tree-optimization/35400
10289         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10290         information from SSA_NAMEs.
10292 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10294         * config/avr/avr.h (avr_mega_p): Remove declaration.
10295         (AVR_MEGA): Remove macro.
10296         * config/avr/avr.c (avr_mega_p): Remove variable.
10297         (avr_override_options): Remove inicializion of avr_mega_p.
10298         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10299         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10300         (avr_jump_mode): (Ditto.).
10301         (avr_output_progmem_section_asm_op): (Ditto.).
10302         (avr_asm_init_sections): (Ditto.).
10303         (avr_asm_init_sections): (Ditto.).
10304         (avr_rtx_costs): (Ditto.).
10305         * config/avr/avr.md: (Ditto.).
10306         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
10307         '__AVR_MEGA__'.
10309 2008-04-06  Richard Guenther  <rguenther@suse.de>
10311         PR tree-optimization/35842
10312         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10313         is_gimple_invariant_address.
10315 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10317         * gcc.c (default_compilers): Sync Fortran extensions list with
10318         that in fortran/lang-specs.h.
10319         * doc/invoke.texi: Likewise.
10320         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10321         * dwarf2out.c (gen_compile_unit_die): Likewise.
10323 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10325         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10327 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10329         PR target/12329
10330         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10331         attribute is used for nested functions.
10333 2008-04-05  Jan Hubicka  <jh@suse.cz>
10335         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10337         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10338         letter argument.
10339         (dump_files): Update.
10340         (enable_rtl_dump_file): Do not accept letter argument.
10341         * tree-pass.h (dump_file_info): Remove letter argument.
10342         * toplev.c (decode_d_option): Update -da handling.
10343         * toplev.h (enable_rtl_dump_file): Update prototype.
10344         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10345         it out based on pass type.
10346         (register_dump_files_1): Likewise.
10347         (init_optimization_passes): Update register_one_dump_file calls.
10348         (execute_one_pass): Sanity check that IPA passes are called at IPA
10349         level and RTL passes at RTL level.
10350         (execute_pass_list): IPA pass can not be after or subpass of
10351         GIMPLE/RTL pass.
10352         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10353         disallov RTL subpasses of IPA subpasses.
10355 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10357         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10358         builtins that return exactly once and do not throw. Cache call to
10359         call_expr_flags.
10361 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10363         PR rtl-optimization/34916
10364         PR middle-end/35519
10365         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10366         between instruction pairs.
10368 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10370         * doc/invoke.texi: Document -mbitops for SH.
10371         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10372         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10373         * config/sh/sh.c (print_operand): Add %t operand code.
10374         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10375         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10376         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10377         (extendqihi2): Likewise.
10378         (movqi_i): Likewise.
10379         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10380         (extv): Use bld instruction for SH2A if possible.
10381         (extzv): Likewise.
10382         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10383         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10384         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10385         (bset.b, bclr.b): Define peepholes.
10386         * config/sh/sh.opt (mbitops): New option.
10388 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10390         PR target/35620
10391         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10392         and view convert expression.
10394 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10396         PR target/35364
10397         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10399 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10401         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10403         * config/i386/cpuid.h (bit_AES): New.
10404         (bit_PCLMUL): Likewise.
10406         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10407         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10408         SSE2 if AES or PCLMUL is enabled.
10409         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10410         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10411         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10412         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10413         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10414         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10415         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10416         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10417         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10418         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10419         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10420         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10421         __builtin_ia32_aeskeygenassist128 and
10422         __builtin_ia32_pclmulqdq128.
10423         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10424         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10425         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10427         * config/i386/i386.h (TARGET_AES): New.
10428         (TARGET_PCLMUL): Likewise.
10429         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10431         * config/i386/i386.md (UNSPEC_AESENC): New.
10432         (UNSPEC_AESENCLAST): Likewise.
10433         (UNSPEC_AESDEC): Likewise.
10434         (UNSPEC_AESDECLAST): Likewise.
10435         (UNSPEC_AESIMC): Likewise.
10436         (UNSPEC_AESKEYGENASSIST): Likewise.
10437         (UNSPEC_PCLMUL): Likewise.
10439         * config/i386/i386.opt (maes): New.
10440         (mpclmul): Likewise.
10442         * config/i386/sse.md (aesenc): New pattern.
10443         (aesenclast): Likewise.
10444         (aesdec): Likewise.
10445         (aesdeclast): Likewise.
10446         (aesimc): Likewise.
10447         (aeskeygenassist): Likewise.
10448         (pclmulqdq): Likewise.
10450         * config/i386/wmmintrin.h: New.
10452         * doc/extend.texi: Document AES and PCLMUL built-in function.
10454         * doc/invoke.texi: Document -maes and -mpclmul.
10456 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10458         * function.c (free_after_parsing): Replace with
10459         cxx_push_function_context from C++ front-end.
10460         (allocate_struct_function): Don't call langhook.
10461         * langhooks.h (struct lang_hooks_for_functions): Delete.
10462         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10463         member "function".
10464         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10465         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10466         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10467         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10468         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10469         remove LANG_HOOKS_FUNCTION_INITIALIZER.
10470         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10472         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10473         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10474         
10475 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10477         PR c/35440
10478         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10479         for all types.
10481 2008-04-04  Richard Guenther  <rguenther@suse.de>
10483         PR middle-end/35823
10484         * fold-const.c (optimize_minmax_comparison): Use the correct
10485         type for the constant in the simplified comparison.
10487 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
10489         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10490         Pass L2 size as "--param l2-cache-size" to the compiler.
10491         (decode_l2_cache): New function to decode L2 cache parameters using
10492         0x8000006 extended cpuid function.
10493         (detect_caches_amd): Determine parameters of L2 cache using
10494         decode_l2_caches function.
10495         (decode_caches_intel): Decode L2 cache parameters.
10496         (detect_caches_intel): Determine L2 cache parameters using
10497         decode_caches_intel and decode_l2_caches functions.
10499 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
10501         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10502         secondary input reload for subword loads from the constant pool.
10504 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
10506         PR target/35713
10507         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10508           constants of the appropriate size for runtime calculations.
10510         PR c/35712
10511         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10512           decimal-float literal constant zero.
10514 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
10516         PR c/35738
10517         * c-parser.c (c_parser_omp_atomic): Call
10518         default_function_array_conversion on the RHS.
10520         PR middle-end/35818
10521         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10522         call is_variable_sized if decl has incomplete type.
10524 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
10526         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10528 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
10530         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10531         iterators.
10532         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10533         (sgt<u>): Merge sgt and sgtu into new expander.
10534         (sgt, sgtu): Remove expanders.
10535         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10536         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10537         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10538         *sgtu_<mode>_mips16 into new pattern.
10539         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10540         (sge<u>): Merge sge and sgeu into new expander.
10541         (sge, sgeu): Remove expanders.
10542         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10543         new pattern.
10544         (*sge_<mode>, second *sge_<mode>): Remove patterns.
10545         (slt<u>): Merge slt and sltu into new expander.
10546         (slt, sltu): Remove expanders.
10547         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10548         (*slt_<mode>, *sltu_<mode>): Remove patterns.
10549         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10550         *sltu_<mode>_mips16 into new pattern.
10551         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10552         (sle<u>): Merge sle and sleu into new expander.
10553         (sle, sleu): Remove expanders.
10554         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10555         (*sle_<mode>, *sleu_<mode>): Remove patterns.
10556         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10557         *sleu_<mode>_mips16 into new pattern.
10558         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10560 2008-04-03  Jan Hubicka  <jh@suse.cz>
10562         PR tree-optimization/35795
10563         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10564         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10565         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10566         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10567         * score/score3.c (score3_output_mi_thunk): Likewise.
10568         * score/score7.c (score7_output_mi_thunk): Likewise.
10569         * mips/mips.c (mips_output_mi_thunk): Likewise.
10571 2008-04-03  Richard Guenther  <rguenther@suse.de>
10573         * tree-vrp.c (extract_range_from_unary_expr): Handle all
10574         conversions.  Simplify code.
10576 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10578         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10580 2008-04-03  Tom Tromey  <tromey@redhat.com>
10581             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10583         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10584         * config/bfin/t-bfin-linux (generated_files): Add
10585         linux-sysroot-suffix.h.
10586         * doc/install.texi (Prerequisites): Require make 3.80.
10587         * doc/sourcebuild.texi (Front End Directory): Document new
10588         variable.
10589         * Makefile.in (generated_files): New variable.
10590         (ALL_HOST_OBJS): New variable.
10591         ($(ALL_HOST_OBJS)): New target.
10593 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10595         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10596         (remap_block): Call id->transform_lang_insert_block instead
10597         of langhook.
10598         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10599         Set id.transform_lang_insert_block to NULL.
10600         (clone_body): Move to cp/optimize.c
10601         * tree-inline.h (struct copy_body_data): Change
10602         transform_lang_insert_block to function pointer.
10603         (copy_generic_body, copy_decl_no_change): Export.
10604         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10605         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10606         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10608         * c-tree.h (insert_block): Kill.
10609         * c-decl.c (insert_block): Kill.
10611 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10613         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10614         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10615         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10616         argument.
10617         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10618         argument, call {push,pop}_function_context from here.
10619         * c-parser.c: Use c_{push,pop}_function_context.
10621         * function.c (push_function_context_to): Move meat ...
10622         (push_function_context): ... here.  Simplify.
10623         * function.c (pop_function_context_from): Move meat ...
10624         (pop_function_context): ... here.  Simplify.
10625         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10626         leave_nested).
10627         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10628         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10629         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10630         * tree.h (push_function_context_to, pop_function_context_from): Remove.
10632 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10634         * expmed.c (extract_force_align_mem_bit_field): Remove.
10636 2008-04-03  Richard Guenther  <rguenther@suse.de>
10638         PR middle-end/35800
10639         * expr.h (try_casesi): Adjust prototype.
10640         * expr.c (try_casesi): Take fallback label as extra parameter.
10641         Use that for gen_casesi if default_label is NULL.
10642         * stmt.c (expand_case): Pass fallback label to try_casesi,
10643         make sure to fill gaps with a fallback label if default_label
10644         is not present.
10646 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
10648         PR target/35801
10649         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10651 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10653         * expmed.c (extract_split_bit_field): Remove if (0) code.
10654         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10655         (do_ds_constraint): Likewise.
10657 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
10659         * doc/cppopts.texi (-dU): Document.
10660         * c-common.h (flag_dump_macros): Update comment.
10661         * c-opts.c (handle_OPT_d): Handle -dU.
10662         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10663         dump_queued_macros, cb_used_define, cb_used_undef): New.
10664         (init_pp_output): Handle -dU.
10665         (cb_line_change): Call dump_queued_macros.
10666         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10668 2008-04-02  Anatoly Sokolov <aesok@post.ru>
10670         * config/avr/predicates.md (io_address_operand): New predicate. 
10671         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10672         * config/avr/avr.c (avr_io_address_p): Remove function.
10673         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
10674         'avr_io_address_p' function.
10675         (out_movhi_r_mr): (Ditto.).
10676         (out_movqi_mr_r): (Ditto.).
10677         (out_movhi_mr_r): (Ditto.).
10678         (avr_address_cost): (Ditto.).
10680 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
10682         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10683         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10684         in 32bit mode when XMM registers are available to avoid store
10685         forwarding stalls.
10686         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10687         corresponding post-reload splitters.
10689 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10691         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10692         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
10693         __builtin_ia32_roundss.
10694         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10695         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10696         __builtin_ia32_roundss.
10697         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10698         IX86_BUILTIN_SHUFPD here.
10700 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10702         * config/i386/i386.md (plogic): New.
10703         (plogicprefix): Likewise.
10705         * config/i386/mmx.md (mmx_<code><mode>3): New.
10706         (mmx_and<mode>3): Removed.
10707         (mmx_ior<mode>3): Likewise.
10708         (mmx_xor<mode>3): Likewise.
10710         * config/i386/sse.md (<code><mode>3): New.
10711         (*<code><mode>3): Likewise.
10712         (*<code><mode>3): Likewise.
10713         (<code><mode>3): Likewise.
10714         (*sse_<code><mode>3): Likewise.
10715         (*sse2_<code><mode>3): Likewise.
10716         (<code>tf3): Likewise.
10717         (*<code>tf3): Likewise.
10718         (and<mode>3): Likewise.
10719         (*and<mode>3): Likewise.
10720         (ior<mode>3): Removed.
10721         (*ior<mode>3): Likewise.
10722         (xor<mode>3): Likewise.
10723         (*xor<mode>3): Likewise.
10724         (*and<mode>3): Likewise.
10725         (*ior<mode>3): Likewise.
10726         (*xor<mode>3): Likewise.
10727         (and<mode>3): Likewise.
10728         (*sse_and<mode>3): Likewise.
10729         (*sse2_and<mode>3): Likewise.
10730         (andtf3): Likewise.
10731         (*andtf3): Likewise.
10732         (ior<mode>3): Likewise.
10733         (*sse_ior<mode>3): Likewise.
10734         (*sse2_ior<mode>3): Likewise.
10735         (iortf3): Likewise.
10736         (*iortf3): Likewise.
10737         (xor<mode>3): Likewise.
10738         (*sse_xor<mode>3): Likewise.
10739         (*sse2_xor<mode>3): Likewise.
10740         (xortf3): Likewise.
10741         (*xortf3): Likewise.
10743 2008-04-02  Richard Guenther  <rguenther@suse.de>
10745         PR tree-optimization/14495
10746         PR tree-optimization/34793
10747         * tree-vrp.c (struct switch_update): New structure.
10748         (to_remove_edges, to_update_switch_stmts): New VECs.
10749         (simplify_switch_using_ranges): New function.  Remove not taken
10750         case labels and edges.
10751         (simplify_stmt_using_ranges): Call it.
10752         (identify_jump_threads): Mark edges we have queued for removal
10753         so we don't thread them.
10754         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10755         case label vector.
10756         * tree-cfg.c (group_case_labels): Deal with missing default label.
10757         (tree_verify_flow_info): Allow missing default label.
10758         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10759         (emit_case_nodes): Likewise.
10760         (expand_case): Do not rely on the default label to be present.
10761         * expr.c (try_casesi): Deal with NULL default_label.
10762         (do_tablejump): Likewise.
10764 2008-04-02  Richard Guenther  <rguenther@suse.de>
10766         PR tree-optimization/14495
10767         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10768         SWITCH_EXPR here ...
10769         (vrp_visit_switch_stmt): ... but here (new function).
10770         (find_case_label_index): New helper function.
10771         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10773 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10775         * fwprop.c: Fix ISO-C99ism.
10777 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10779         PR bootstrap/35752
10780         * Makefile.in (objdir): Set it here.
10781         * configure.ac: Not here.  Find dynamic linker characteristics.
10782         * exec-tool.in: Use them.
10783         * aclocal.m4: Regenerate.
10784         * configure: Regenerate.
10786 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10788         * expr.c (expand_var): Delete it.
10789         * expr.h (expand_var): Delete prototype.
10790         * function.c (expand_function_start): Use expand_decl instead.
10791         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10792         langhook.
10794 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
10796         PR rtl-optimization/35542
10797         * fwprop.c (forward_propagate_and_simplify): Replace
10798         loc_reg_mentioned_in_p with reg_mentioned_p.
10800 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10802         PR rtl-optimization/35281
10803         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10804         (propagate_rtx_1): Handle PR_HANDLE_MEM.
10805         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10806         (varying_mem_p): Move above propagate_rtx.
10807         (all_uses_available_at): Do not check MEMs.
10809 2008-04-02  Rafael Espindola  <espindola@google.com>
10811         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10812         (register_edge_assert_for_2): Split the cond argument.
10813         (register_edge_assert_for_1): Adjust for the change in
10814         register_edge_assert_for_2.
10815         (register_edge_assert_for): Split the cond argument.
10816         (find_switch_asserts): Adjust for the change in
10817         register_edge_assert_for.
10819 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
10821         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10822         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10823         offsets for 64-bit mingw.
10824         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10825         abi for x86_64-pc-mingw.
10827 2008-04-02  Richard Guenther  <rguenther@suse.de>
10829         * tree-vrp.c (extract_range_from_assert): Make sure to not
10830         produce range min/max with TREE_OVERFOW set.
10831         If merging a anti-range and a range keep the anti-range if
10832         the range covers all values of the type.
10833         (register_edge_assert_for_2): Only allow sign-changing
10834         conversions in detecting canonical range checks.  Also
10835         register an assert for the unsigned name if useful.
10837         PR tree-optimization/35787
10838         * tree-vrp.c (vrp_val_max): New function.
10839         (vrp_val_min): Likewise.
10840         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10841         (vrp_val_is_min): Likewise.
10842         (supports_overflow_infinity): Use vrp_val_{min,max}.
10843         (negative_overflow_infinity): Likewise.
10844         (positive_overflow_infinity): Likewise.
10845         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10846         (is_positive_overflow_infinity): Likewise.
10847         (is_overflow_infinity): Likewise.
10848         (avoid_overflow_infinity): Use vrp_val_{min,max} and
10849         vrp_val_is_{min,max}.
10850         (set_and_canonicalize_value_range): Canonicalize anti-ranges
10851         to ranges if possible.  Avoid empty ranges.
10853 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10855         PR middle-end/35705
10856         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10857         the expression is a function address.
10859 2008-04-01  George Helffrich  <george@gcc.gnu.org>
10861         PR fortran/35154, fortran/23057
10862         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10863         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10864         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10865         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10866         in common.
10867         (dbxout_syms): Check for COMMON-based symbol and wrap in
10868         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10869         in bracket for efficiency.
10871         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10872         using DW_TAG_common_block + member offset.
10873         (add_pubname_string): New function.
10874         (dw_expand_expr): New function to find block name and offset for
10875         COMMON var.
10876         (common_check): New function to check whether symbol in Fortran COMMON.
10877         (gen_variable_die): If COMMON, use DW_TAG_common_block.
10879 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
10881         PR c/35436
10882         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10884 2008-04-02  Ben Elliston  <bje@au.ibm.com>
10886         * config/v850/v850.md (casesi): Remove if (0) code.
10887         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10888         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10890 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
10892         * config/i386/i386.md (rex64suffix): New mode attribute.
10893         (floathi<mode>2): Disable expander for SSE math.
10894         (*floathi<mode>2_1): New insn insn_and_split pattern.
10895         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10896         corresponding post-reload splitters.
10897         (*floathi<mode>2_i387): New macroized insn pattern.
10898         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10899         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10900         insn_and_split pattern.
10901         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10902         New macroized instruction patterns and corresponding post-reload
10903         splitters.
10904         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10905         and corresponding post-reload splitters.
10906         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10907         New macroized instruction patterns.
10908         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10909         macroized instruction patterns and corresponding post-reload splitters.
10910         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10911         corresponding post-reload splitters.
10912         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10913         New macroized instruction patterns.
10914         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10915         corresponding post-reload splitters.
10916         (*floatsi<mode>2_i387): New macroized instruction patterns.
10918 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
10920         * config/i386/i386.md (smaxmin): New.
10921         (umaxmin): Likewise.
10922         (maxminiprefix): Likewise.
10923         (maxminfprefix): Likewise.
10924         (<code><mode>3): Likewise.
10925         (smin<mode>3): Removed.
10926         (smax<mode>3): Likewise.
10928         * config/i386/mmx.md (mmx_<code>v2sf3): New.
10929         (mmx_<code>v4hi3): Likewise.
10930         (mmx_<code>v8qi3): Likewise.
10931         (mmx_smaxv2sf3): Removed.
10932         (mmx_sminv2sf3): Likewise.
10933         (mmx_umaxv8qi3): Likewise.
10934         (mmx_smaxv4hi3): Likewise.
10935         (mmx_uminv8qi3): Likewise.
10936         (mmx_sminv4hi3): Likewise.
10938         * config/i386/sse.md (<addsub><mode>3): New.
10939         (*<addsub><mode>3): Likewise.
10940         (<sse>_vm<addsub><mode>3): Likewise.
10941         (<maxmin><mode>3): Likewise.
10942         (*<maxmin><mode>3_finite): Likewise.
10943         (*<maxmin><mode>3): Likewise.
10944         (<sse>_vm<maxmin><mode>3): Likewise.
10945         (sse3_h<addsub>v4sf3): Likewise.
10946         (sse3_h<addsub>v2df3): Likewise.
10947         (<maxmin>v16qi3): Likewise.
10948         (*<maxmin>v16qi3): Likewise.
10949         (<maxmin>v8hi3): Likewise.
10950         (*<maxmin>v8hi3): Likewise.
10951         (*sse4_1_<maxmin><mode>3): Likewise.
10952         (*sse4_1_<maxmin><mode>3): Likewise.
10953         (add<mode>3): Removed.
10954         (*add<mode>3): Likewise.
10955         (<sse>_vmadd<mode>3): Likewise.
10956         (sub<mode>3): Likewise.
10957         (*sub<mode>3): Likewise.
10958         (<sse>_vmsub<mode>3): Likewise.
10959         (smin<mode>3): Likewise.
10960         (*smin<mode>3_finite): Likewise.
10961         (*smin<mode>3): Likewise.
10962         (<sse>_vmsmin<mode>3): Likewise.
10963         (smax<mode>3): Likewise.
10964         (*smax<mode>3_finite): Likewise.
10965         (*smax<mode>3): Likewise.
10966         (<sse>_vmsmax<mode>3): Likewise.
10967         (sse3_haddv4sf3): Likewise.
10968         (sse3_haddv2df3): Likewise.
10969         (sse3_hsubv4sf3): Likewise.
10970         (sse3_hsubv2df3): Likewise.
10971         (umaxv16qi3): Likewise.
10972         (*umaxv16qi3): Likewise.
10973         (smaxv8hi3): Likewise.
10974         (*smaxv8hi3): Likewise.
10975         (*sse4_1_smax<mode>3): Likewise.
10976         (*sse4_1_umax<mode>3): Likewise.
10977         (uminv16qi3): Likewise.
10978         (*uminv16qi3): Likewise.
10979         (sminv8hi3): Likewise.
10980         (*sminv8hi3): Likewise.
10981         (*sse4_1_smin<mode>3): Likewise.
10982         (*sse4_1_umin<mode>3): Likewise.
10984 2008-04-01  Rafael Espindola  <espindola@google.com>
10986         * tree-cfg.c (verify_expr): remove in_phi.
10987         (verify_stmt): Don't call walk_tree with verify_expr. Use
10988         is_gimple_min_invariant instead of is_gimple_val.
10990 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
10992         * doc/include/gpl_v3.texi: Update for manpage generation.
10993         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10994         gpl.texi.
10995         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10996         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10997         gpl_v3.texi instead of gpl.texi.
10998         (gpl.pod): New.
11000 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11002         PR pch/13675
11003         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11005 2008-04-01  Rafael Espindola  <espindola@google.com>
11007         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11008         (extract_code_and_val_from_cond): Use
11009         extract_code_and_val_from_cond_with_ops.
11011 2008-04-01  Jan Hubicka  <jh@suse.cz>
11013         * function.c (free_after_compilation): Free epilogue_delay_list.
11014         (prepare_function_start): Assert that previous compilation was freed.
11016 2008-04-01  Jan Hubicka  <jh@suse.cz>
11017             Jim Wilson  <wilson@tuliptree.org>
11018             Andreas Tobler <andreast@gcc.gnu.org>
11020         PR middle-end/35781
11021         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11022         rtl.emit instead cfun->emit.
11023         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11024         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11026 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11028         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11030 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11032         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11033         New options
11034         (fprofile-use): Add var flag_profile_use
11035         * coverage.c (coverage_begin_output): Do not open a gcno file for
11036         output only if -ftest-coverage is set.
11037         Do not add getpwd() to gcda file path.
11038         (build_gcov_info): Check the new flag
11039         flag_profile_datafile_relative_path.
11040         (coverage_init): Use profile_data_prefix.
11041         Read profile counter only if flag_profile_use is set.
11042         * opts.c (common_handle_option): New option fprofile-use=,
11043         fprofile-dir=, fprofile-generate=.
11044         * toplev.c (profile_data_prefix): New variable definition.
11045         * toplev.h (profile_data_prefix): New declaration.
11046         * doc/invoke.tex (Option Summary, Optimization Options):
11047         Add new options.
11049 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11051         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11052         use tmp consistently.
11054         PR target/35695
11055         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11056         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11057         UNSPEC_FR_RECIP_APPROX_RES.
11058         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11060 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11062         PR c/35750
11063         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11065 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11067         PR middle-end/30186
11068         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11069         element of the vector via a pointer.
11071 2008-03-31  Ian Lance Taylor  <iant@google.com>
11073         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11075 2008-03-31  Jan Hubicka  <jh@suse.cz>
11077         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11078         get_arg_pointer_save_area.
11079         * expr.c (init_expr): Just clear out rtl.expr.
11080         * function.c (free_after_compilation): Clear out whole RTL structure.
11081         (get_func_frame_size): Merge into ...
11082         (get_frame_size): ... this one.
11083         (assign_stack_local_1): Merge into ...
11084         (assign_stack_local): ... this one.
11085         (expand_function_end): Update call of get_arg_pointer_save_area.
11086         (get_art_pointer_save_area): Remove cfun argument.
11087         * function.h (emit_status): regno_pointer_align does not need length
11088         attribute. Move x_regno_reg_rtx to ...
11089         (regno_reg_rtx): ... new global array.
11090         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11091         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11092         apply_args_value, forced_labels, stack_pointer_delta):
11093         Update accestors.
11094         (struct varasm_status): Move here from varasm.c
11095         (struct rtl_data): New. Move here some fields from struct function.
11096         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11097         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11098         used_temp_slots avail_temp_slots, temp_slot_level,
11099         nonlocal_goto_handler_labels): Update accesstors.
11100         (rtl): New global variable.
11101         (struct function): Move some fileds to rtl_data.
11102         (get_arg_pointer_save_area): Update prototype.
11103         * emit-rtl.c (rtl): Declare.
11104         (regno_reg_rtx): Declare.
11105         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11106         Update.
11107         (gen_reg_rtx): Update.
11108         (init_virtual_regs): Do not tate emit_status argument.
11109         (init_emit): Do not allocate emit.
11110         * varasm.c (varasm_statuc): Move to function.h.
11111         (n_deferred_constatns): Update accestor.
11112         (init_varasm_status): Do not allocate varasm_status.
11113         (force_const_mem, get_pool_size, output_constant_pool): Update.
11114         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11115         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11117 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11119         PR rtl-optimization/35729
11120         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11121         references.
11123 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11125         PR target/32000
11126         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11127         load/store if memory is unaligned.
11128         (*movti_rex64): Likewise.
11130         * config/i386/predicates.md (misaligned_operand): New.
11132 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11134         PR tree-opt/35431
11135         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11136         complex types.
11138 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11140         * config/ia64/constraints.md: Add 'j' constraint.
11141         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11142         (movdi_internal): Likewise.
11144 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11146         PR c/35748
11147         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11149 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11151         PR target/35757
11152         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11153         proper error message for the third argument on blendpd and
11154         blendps.
11156         * config/i386/sse.md (blendbits): New.
11157         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11159 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11161         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11163 2008-03-30  Richard Guenther  <rguenther@suse.de>
11165         PR middle-end/31023
11166         * fold-const.c (fold_sign_changed_comparison): Do leave
11167         conversions to base-types alone.
11169 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11171         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11172         the link register if one altivec register is be saved.
11174 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11176         * final.c (final_scan_insn): Remove if (0) code.
11178 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11180         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11182 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11184         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11185         of V4SFmode to ix86_binary_operator_ok.
11187 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11189         * config/i386/i386.c (override_options): Initialize
11190         ix86_veclib_handler to ix86_veclibabi_svml when
11191         -mveclibabi=svml is used.
11192         (ix86_veclibabi_svml): New function for SVML ABI style
11193         vectorization support.
11194         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11196 2008-03-28  Rafael Espindola  <espindola@google.com>
11198         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11199         (tree_binary_nonnegative_warnv_p): Make it public.
11200         (tree_single_nonnegative_warnv_p): Make it public.
11201         (tree_invalid_nonnegative_warnv_p): Make it public.
11202         (tree_unary_nonzero_warnv_p): Make it public.
11203         (tree_binary_nonzero_warnv_p): Make it public
11204         (tree_single_nonzero_warnv_p): Make it public.
11205         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11206         (extract_range_from_binary_expr): Split the expr argument.
11207         (extract_range_from_unary_expr): Split the expr argument.
11208         (extract_range_from_comparison): Split the expr argument.
11209         (extract_range_from_expr): Use the new aux functions.
11210         (vrp_evaluate_conditional_warnv): Use
11211         vrp_evaluate_conditional_warnv_with_ops.
11212         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11213         (tree_binary_nonzero_warnv_p): Declare.
11214         (tree_single_nonzero_warnv_p): Declare.
11215         (tree_expr_nonzero_warnv_p): Declare.
11216         (tree_unary_nonnegative_warnv_p): Declare.
11217         (tree_binary_nonnegative_warnv_p): Declare.
11218         (tree_single_nonnegative_warnv_p): Declare.
11219         (tree_invalid_nonnegative_warnv_p): Declare.
11221 2008-03-28  Richard Guenther  <rguenther@suse.de>
11223         PR tree-optimization/30317
11224         PR tree-optimization/30911
11225         PR tree-optimization/34793
11226         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11227         (struct assert_locus_d): New member EXPR.
11228         (register_new_assert_for): Add EXPR parameter to support
11229         ASSERT_EXPR <name, expr OP limit>.
11230         (register_edge_assert_for_1): Adjust callers.
11231         (find_assert_locations): Likewise.
11232         (process_assert_insertions_for): Build condition from expression.
11233         (extract_range_from_assert): Handle ASSERT_EXPRs
11234         of the form ASSERT_EXPR <name, expr OP limit>.
11235         (register_edge_assert_for_2): New helper registering
11236         asserts for comparisons.  Recognize range tests of the form
11237         (unsigned)i - CST1 OP CST2.
11238         (register_edge_assert_for_1): Use it.
11239         (register_edge_assert_for): Likewise.
11240         (needs_overflow_infinity): Integer sub-types
11241         do not need overflow infinities.
11242         (vrp_val_is_max): The extreme values of integer sub-types
11243         are those of the base type.
11244         (vrp_val_is_min): Likewise.
11245         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11246         expressions.
11248 2008-03-28  Nick Clifton  <nickc@redhat.com>
11250         PR target/31110
11251         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11252         Return GENERAL_REGS for stack adjustment reloads.
11254 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11256         PR target/31334
11257         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11258         const_vector when all the vectors are constant.
11260 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11262         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11263         comparisons.
11264         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11265         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11266         (scc_sf): New.
11267         (s<code>_sf): Use new scc_sf attribute for opcode names.
11269 2008-03-27  Tom Tromey  <tromey@redhat.com>
11271         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11272         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11273         config/spu/t-spu-elf, config/i386/t-interix,
11274         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11275         config/i386/x-darwin, config/i386/x-mingw32,
11276         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11277         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11278         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11279         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11280         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11281         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11282         config/score/t-score-elf, config/arm/t-strongarm-pe,
11283         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11284         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11285         Revert automatic dependency patch.
11287 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11289         PR target/35657
11290         * config/i386/i386.c (ix86_function_arg_boundary): Align
11291         decimal floating point to its natural boundary.
11293 2008-03-27  Richard Guenther  <rguenther@suse.de>
11295         PR middle-end/35716
11296         * fold-const.c (fold_comparison): Restrict distinct decl
11297         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11298         solely rely on operand_equal_p.
11300 2008-03-27  Richard Guenther  <rguenther@suse.de>
11302         PR c/32511
11303         * c-common.c (handle_weak_attribute): Reject combination of
11304         weak and inline.
11306 2008-03-27  Richard Guenther  <rguenther@suse.de>
11308         PR tree-optimization/32810
11309         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11310         conversions from DECL_INITIAL.
11311         (fold_const_aggregate_ref): Likewise from constructor elements.
11313 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11315         * tree-affine.h (aff_combination_expand): Declare.
11316         (get_inner_reference_aff): Likewise.
11317         * tree-affine.c (aff_combination_expand): Split out from
11318         tree_to_aff_combination_expand.
11319         (get_inner_reference_aff): New function.
11320         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11321         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11322         (struct lim_aux_data): sm_done field removed.
11323         (mem_ref_loc_p, mem_ref_locs_p): New types.
11324         (struct mem_ref): Added id, stored, accesses_in_loop,
11325         indep_loop, dep_loop, indep_ref, dep_ref fields.
11326         Removed is_stored, locs and next fields.
11327         (memory_accesses): New variable.
11328         (movement_possibility): Do not allow moving statements
11329         that store to memory.
11330         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11331         New functions.
11332         (determine_max_movement): For statements with memory references,
11333         find the outermost loop in that the reference is independent.
11334         (move_computations_stmt): Mark the virtual operands for renaming.
11335         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11336         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11337         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11338         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11339         create_vop_ref_mapping, analyze_memory_references,
11340         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11341         get_all_locs_in_loop, ref_always_accessed_p,
11342         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11343         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11344         store_motion_loop, store_motion): New functions.
11345         (struct vop_to_refs_elt): New type.
11346         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11347         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11348         (schedule_sm): Replaced by...
11349         (execute_sm): ... this.
11350         (determine_lsm_ref, hoist_memory_references,
11351         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11352         find_more_ref_vops, free_mem_ref, free_mem_refs,
11353         determine_lsm_loop, determine_lsm): Removed.
11354         (tree_ssa_lim_finalize): Free data structures used by store motion.
11355         (tree_ssa_lim): Call analyze_memory_references.  Use
11356         store_motion instead of determine_lsm.
11358 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11360         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11361         rename tmake_file to m68hc11/t-m68hc11.
11362         (mcore): Set inhibit_libc to true.
11363         * config.host (alpha*-dec-*vms*): Set extra_programs.
11364         (interix3*): Don't use host_xmake_file.
11365         * configure.ac: Let config.gcc override inhibit_libc.
11366         * configure: Regenerate.
11368         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11369         * config/t-openbsd-thread: Remove commented out lines.
11370         
11371         * config/x-interix: Remove.
11373         * config/m68hc11/t-m68hc11-gas: Rename to...
11374         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11376         * config/mcore/t-mcore: Remove T_CFLAGS.
11377         * config/mcore/t-mcore-pe: Likewise.
11379 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11381         * configure.ac: Replace custom __GNU_SOURCE test with
11382         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11383         * aclocal.m4: Regenerate.
11384         * configure: Regenerate.
11385         * config.in: Regenerate.
11387 2008-03-27  Richard Guenther  <rguenther@suse.de>
11389         * fold-const.c (target.h): Include.
11390         (fold_comparison): Fold comparison of addresses of decls
11391         that bind locally or of constants.  Consolidate address folding code.
11392         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11393         results from fold_binary_to_constant.
11394         (compare_values_warnv): Likewise.
11396 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11398         PR middle-end/35429
11399         * fold-const.c (fold_truthop): Check for integeral types when folding
11400         a == 0 && b == 0 and a != 0 || b != 0 .
11402 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11404         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11406 2008-03-26  Andreas Schwab  <schwab@suse.de>
11408         * doc/invoke.texi: Fix use of @item vs. @itemx.
11410 2008-03-26  Tom Tromey  <tromey@redhat.com>
11412         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11413         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11414         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11415         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11416         build/genconstants.o, build/genemit.o, build/genextract.o,
11417         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11418         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11419         options.h.
11421 2008-03-26  Richard Guenther  <rguenther@suse.de>
11423         Revert
11424         2008-03-26  Richard Guenther  <rguenther@suse.de>
11426         * fold-const.c (target.h): Include.
11427         (fold_comparison): Fold comparison of addresses of two decls
11428         that bind locally.  Consolidate address folding code.
11430 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11432         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11433         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11434         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11435         dconstsqrt2, dconstthird, dconste and/or dconst10.
11436         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11437         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11438         dconstsqrt2, dconste): Delete.
11439         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11440         Constify variable.
11441         * real.c (get_real_const): New.
11442         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11443         dconstsqrt2, dconste): Delete.
11444         (real_value_const, get_real_const): New.
11446 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11448         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11450         * config/i386/i386.c (ix86_function_arg_boundary): Check
11451         BIGGEST_ALIGNMENT instead of 128.
11452         (setup_incoming_varargs_64): Likewise.
11454 2008-03-26  Tom Tromey  <tromey@redhat.com>
11456         * Makefile.in (DEPFILES): Add missing '/'.
11458 2008-03-26  Richard Guenther  <rguenther@suse.de>
11460         * fold-const.c (target.h): Include.
11461         (fold_comparison): Fold comparison of addresses of two decls
11462         that bind locally.  Consolidate address folding code.
11464 2008-03-26  Nick Clifton  <nickc@redhat.com>
11466         PR target/31232
11467         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11468         not allow INT+INT as a legitimate addressing mode.
11470 2008-03-26  Richard Guenther  <rguenther@suse.de>
11472         * tree-flow.h (widen_bitfield): Remove declaration.
11473         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11474         (widen_bitfield): Remove function.
11475         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11476         code.
11478 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11480         PR target/31558
11481         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11482         error_mark_node's.
11484 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11486         PR rtl-optimization/35232
11487         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11488         (forget_old_reloads_1, forget_marked_reloads): Don't clear
11489         reg_reloaded_call_part_clobbered here.
11490         (reload_regs_reach_end_p): New function.
11491         (reload_reg_rtx_for_input): New variable.
11492         (reload_reg_rtx_for_output): Likewise.
11493         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11494         when reassigning a pseudo register.  Load reloadreg from 
11495         reload_reg_rtx_for_input, moving the mode and register
11496         calculation to...
11497         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
11498         instead of the original when deciding whether an input reload
11499         would be a no-op or whether an output reload can be deleted.
11500         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11501         when setting up new_spill_reg_store.  Load it from
11502         reload_reg_rtx_for_output, moving the mode and register
11503         calculation to...
11504         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
11505         instead of the original when deciding whether an output reload
11506         would be a no-op.  Do the same when modifying insn notes.
11507         Use rtx_equal_p instead of == to compare the registers.
11508         (inherit_piecemeal_p): Take a mode and two register numbers
11509         as argument.
11510         (emit_reload_insns): Clear new_spill_reg_store for every hard
11511         register in the reload register.  Remove spill registers
11512         from reg_reloaded_valid before considering whether to record
11513         inheritance information for them.  Use reload_reg_rtx_for_output
11514         instead of reg_rtx when recording output reloads.  Use
11515         reload_reg_rtx_for_input instead of reg_rtx when recording
11516         input reloads.  Set or clear reg_reloaded_call_part_clobbered
11517         at the same time as setting reg_reloaded_valid.
11518         (delete_output_reload): Add a new_reload_reg parameter and use it
11519         instead of rld[j].reg_rtx.
11520         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11521         calls accordingly.
11523 2008-03-25  Tom Tromey  <tromey@redhat.com>
11525         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11526         (build/genattr.o): Likewise.
11527         (build/genattrtab.o): Likewise.
11528         (build/gencodes.o): Likewise.
11529         (build/genconfig.o): Likewise.
11530         (build/genconstants.o): Likewise.
11531         (build/genemit.o): Likewise.
11532         (build/genextract.o): Likewise.
11533         (build/genflags.o): Likewise.
11535 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
11536         
11537         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11538         instead of size_int for integer types.
11539         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
11540         to match type of MINUS_EXPR.
11541         
11542 2008-03-25  Tom Tromey  <tromey@redhat.com>
11544         * configure: Rebuilt.
11545         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11546         Makefile.
11548 2008-03-25  Tom Tromey  <tromey@redhat.com>
11550         * config/x-solaris (host-solaris.o): Update.
11551         * config/x-linux (host-linux.o): Update.
11552         * config/x-hpux (host-hpux.o): Update.
11553         * config/x-darwin (host-darwin.o): Update.
11554         * config/v850/t-v850e (v850-c.o): Update.
11555         * config/v850/t-v850 (v850-c.o): Update.
11556         * config/t-vxworks (vxworks.o): Update.
11557         * config/t-sol2 (sol2-c.o, sol2.o): Update.
11558         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11559         * config/spu/t-spu-elf (spu-c.o): Update.
11560         (spu.o): Remove.
11561         * config/sh/t-symbian (sh-c.o): Update.
11562         (symbian.o): Update.
11563         * config/sh/t-sh (sh-c.o): Update.
11564         * config/score/t-score-elf (score7.o, score3.o): Update.
11565         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11566         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11567         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11568         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11569         (rs6000.o): Remove.
11570         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11571         * config/m32c/t-m32c (m32c-pragma.o): Update.
11572         * config/ia64/t-ia64 (ia64-c.o): Update.
11573         * config/i386/x-mingw32 (host-mingw32.o): Update.
11574         * config/i386/x-i386 (driver-i386.o): Update.
11575         * config/i386/x-darwin (host-i386-darwin.o): Update.
11576         * config/i386/x-cygwin (host-cygwin.o): Update.
11577         * config/i386/t-nwld (nwld.o): Update.
11578         * config/i386/t-netware (netware.o): Update.
11579         * config/i386/t-interix (winnt.o): Update.
11580         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11581         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11582         msformat-c.o): Update.
11583         * config/bfin/t-bfin-linux (generated_files): Add
11584         linux-sysroot-suffix.h.
11585         * config/arm/t-wince-pe (pe.o): Update.
11586         * config/arm/t-strongarm-pe (pe.o): Update.
11587         * config/arm/t-pe (pe.o): Update.
11588         * config/arm/t-arm (arm-c.o): Update.
11589         * doc/install.texi (Prerequisites): Require make 3.80.
11590         * Makefile.in: Remove .o targets.
11591         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11592         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11593         (simple_generated_h, simple_generated_c): Move earlier.
11594         (generated_files): New variable.
11595         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11596         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11597         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11598         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11599         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11600         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11601         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11602         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11603         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11604         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11605         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11606         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11607         (.c.o): Remove.
11608         (COMPILE.base, COMPILE): New variables.
11609         (%.o): New pattern rule.
11610         (ALL_HOST_OBJS): New variable.
11611         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11612         (dummy-checksum.o, cc1-checksum.o): Remove.
11613         (DRIVER_SHLIB): New variable.
11614         (DRIVER_DEFINES): Use it.
11615         (gencondmd.c): Move out of build/.
11616         (s-conditions): Update.
11617         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11618         (ALL_BUILD_OBJS): Likewise.
11619         (build/%.o): Use BUILDCOMPILE.
11620         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11621         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11622         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11623         build/gencheck.o, build/gencodes.o, build/genconditions.o,
11624         build/genconfig.o, build/genconstants.o, build/genemit.o,
11625         build/genextract.o, build/genflags.o, build/genmddeps.o,
11626         build/genopinit.o, build/genoutput.o, build/genpeep.o,
11627         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11628         build/gen-protos.o, build/scan.o, build/fix-header.o,
11629         build/scan-decls.o): Simplify.
11630         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11631         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11632         prefix.o, toplev.o): Reduce to variable setting.
11633         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
11634         ($(out_object_file), gcc-options.o): New targets.
11635         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
11636         * configure: Rebuilt.
11637         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11638         * doc/sourcebuild.texi (Front End Directory): Document new variable.
11640 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
11642         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11643         complain when we hit an error, return ERROR_MARK_NODE.
11645 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11647         * config/sh/constraints.md (Pso, Psz): New constraints.
11648         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11649         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11651 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11653         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11654         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11656 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11658         * config/sh/sh.md (prefetch): Add condition for SH2A target.
11659         (prefetch_sh2a): New.   
11661 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11662             Naveen.H.S  <naveen.hs@kpitcummins.com>
11664         * config/sh/constraints.md (I28): New constraint.
11665         * config/sh/sh.c (broken_move): Add support for movi20s.
11666         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11668 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
11669             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11670             Naveen.H.S  <naveen.hs@kpitcummins.com>
11672         * config/sh/sh.c (SH_ATTRIBUTES): Define.
11673         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11674         (print_operand): Handle resbank in %@ operand code.
11675         (sh_encode_section_info): New.
11676         (push_regs): Add conditions for resbank.
11677         (sh_expand_epilogue): Likewise.
11678         (sh_insert_attributes): Likewise.
11679         (sh_attribute_table): Likewise.
11680         (sh_handle_resbank_handler_attribute): New.
11681         (sh2a_handle_function_vector_handler_attribute): New.
11682         (sh2a_is_function_vector_call): New.
11683         (sh2a_get_function_vector_number): New.
11684         (sh2a_function_vector_p): New.
11685         (sh_cfun_resbank_handler_p): New.
11686         * config/sh/sh.md (calli): Emit jsr/n if possible.
11687         (calli_tbr_rel): New.
11688         (calli_pcrel): Emit jsr/n if possible.
11689         (return_i): Emit rts/n if possible.
11690         (call_valuei_tbr_rel): New.
11691         (call_valuei_pcrel): Add condition for SH2A target.
11692         (call_value): Likewise.
11693         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11694         (sh2a_get_function_vector_number): Likewise.
11695         (sh2a_is_function_vector_call): Likewise.
11696         * doc/extend.texi: Document TBR relative addressing of SH2A.
11697         (resbank): Add description for SH2A.
11699 2008-03-24  Richard Guenther  <rguenther@suse.de>
11701         PR c/22371
11702         * gimplify.c (gimplify_modify_expr): For frontend type-correct
11703         pointer assignments change conversions according to middle-end rules.
11704         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11705         * configure.ac: Include type checking in yes.
11706         * configure: Regenerate.
11708 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11710         * diagnostic.c (diagnostic_count_diagnostic): Delete.
11711         (diagnostic_report_diagnostic): Update. Handle ICEs here.
11712         
11713 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
11715         * gthr-vxworks.h (UNUSED): Define.
11717 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11719         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11721 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
11723         * doc/extend.texi (Function Attributes): Add missing comma in the
11724         example of the "alloc_size" attribute.
11725         
11726 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
11728         Revert:
11729         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11731         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11732         32bit host.
11734         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
11736         PR target/35496
11737         * stor-layout.c (update_alignment_for_field): Set minimum alignment
11738         of the underlying type of a MS bitfield layout to the natural
11739         alignment of the type.
11741         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11743         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11744         to their natural alignment to avoid store forwarding stalls.
11746 2008-03-22  Richard Guenther  <rguenther@suse.de>
11748         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11749         For PHI nodes verify the address is invariant.
11750         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11751         (get_symbol_constant_value): Use is_gimple_min_invariant.
11752         (maybe_fold_stmt_indirect): Likewise.
11754 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
11756         PR rtl-optimization/33927
11757         * Makefile.in (dse.o): Depend on $(TM_P_H).
11758         * expr.h (extract_low_bits): Declare.
11759         * expmed.c (extract_low_bits): New function.
11760         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11761         * dse.c: Include tm_p.h.
11762         (find_shift_sequence): Remove the read_reg argument and return the
11763         read value.  Emit the instructions instead of returning them.
11764         Iterate on new_mode rather than calculating it each time.
11765         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
11766         source to NEW_MODE and extract_low_bits to convert the shifted
11767         value to READ_MODE.
11768         (replace_read): Allow the load and store to have different mode
11769         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
11770         or extraction instructions before trying the replacement.  Update
11771         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11773 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11775         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11776         to their natural alignment to avoid store forwarding stalls.
11778 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11780         PR target/27946
11781         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11782         encouraging but not allowing gprs for input;
11783         change the input constraint to !f#r.
11784         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11785         gprs for output;
11786         change the output constraint to !f#r.
11788 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
11790         PR target/13958
11791         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11792         corresponding post-reload splitters.
11793         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11794         when x87 FP math is selected.
11795         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11796         New function prototype.
11797         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11798         unreachable function to ease macroization of insn patterns.
11800 2008-03-21  Martin Jambor  <mjambor@suse.cz>
11802         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11803         reference dumps if ddr is NULL or dependence is unknown.
11805 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11807         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11808         unsigned extension into account.
11809         (ATOMIC_COMPARE_AND_SWAP): Likewise.
11810         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11811         Do computations on a scratch register.
11813 2008-03-21  Richard Guenther  <rguenther@suse.de>
11815         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11816         Use is_gimple_min_invariant instead of TREE_INVARIANT.
11817         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11818         * tree-ssa-dom.c (record_equality): Likewise.
11819         * tree-inline.c (copy_body_r): Likewise.
11820         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11821         TREE_INVARIANT.
11823 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11825         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11826         as 'delete_unused' argument.
11828 2008-03-20  Richard Guenther  <rguenther@suse.de>
11830         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11831         special casing of constant qualifiers.
11832         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11833         care about them in general.
11834         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11835         regardless of their type.
11836         (fold_stmt_r): Forcefully fold *& if we end up with that.
11838 2008-03-20  Paul Brook  <paul@codesourcery.com>
11840         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11841         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11842         linker flags.
11843         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11844         definition.
11845         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11846         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11848 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
11850         * common.opt (Wmudflap): New option.
11851         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11852         (mx_register_decls): Likewise.
11853         (mudflap_finish_file): Likewise.
11854         * doc/invoke.texi: Document -Wno-mudflap.
11856 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
11858         * c-format.c (replace_format_name_to_system_name): New.
11859         (cmp_attribs): New.
11860         (convert_format_name_to_system_name): New.
11861         (decode_format_attr): Add use of convert_format_name_to_system_name.
11862         (format_types_orig): Add gnu_ prefix to names.
11863         (check_format_info_main): Special treating of \0 escaped names for
11864         supporting multi-character format specifiers as I32, I64.
11865         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11866         (gnu_target_overrides_format_attributes): New.
11867         * c-format.h: Add structure target_ovr_attr to hold
11868         system specific formatter names.
11869         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11870         msformat-c.o file to c_target_objs and cxx_target_objs.
11871         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11872         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11873         (TARGET_N_FORMAT_TYPES): New.
11874         * config/i386/msformat-c.c: New.
11875         * config/i386/t-cygming: Add build rule for msformat-c.o.
11876         * doc/extend.texi: Add new format names gnu_* and ms_* and
11877         further details.
11878         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11880 2008-03-20  Ira Rosen  <irar@il.ibm.com>
11882         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11883         optimizations turned on under -O3.
11884         (ftree-vectorize): Add that the flag is turned on with -O3.
11886 2008-03-20  Ben Elliston  <bje@au.ibm.com>
11888         * regmove.c (try_auto_increment): Fix spelling error in comment.
11889         * final.c (final_scan_insn): Likewise.
11891 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
11893         PR target/14552
11894         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11895         allocator preferences for "y" and "r" class registers.
11896         ("*mov<mode>_internal"): Ditto.
11897         ("*movv2sf_internal_rex64"): Ditto.
11898         ("*movv2sf_internal"): Ditto.
11900 2008-03-19  Michael Matz  <matz@suse.de>
11902         PR middle-end/35616
11903         * calls.c (expand_call): Check overlap of arguments with call
11904         address for sibcalls.
11906 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
11908         PR target/35496
11909         * stor-layout.c (update_alignment_for_field): Set minimum alignment
11910         of the underlying type of a MS bitfield layout to the natural
11911         alignment of the type.
11913 2008-03-19  Jan Hubicka  <jh@suse.cz>
11915         PR other/35094
11916         * toplev.c (decode_d_option): Handle all CPP flags.
11917         * tree-vrp.c: Update tree_pass descriptors.
11918         * regrename.c: Update tree_pass descriptors.
11919         * fwprop.c: Update tree_pass descriptors.
11920         * doc/invoke.texi: Remove documentation of dropped -d? flags.
11921         * tree-into-ssa.c: Update tree_pass descriptors.
11922         * tree-dump.c: Update tree_pass descriptors.
11923         * tree-complex.c: Update tree_pass descriptors.
11924         * tree-dump.h: Update tree_pass descriptors.
11925         * see.c: Update tree_pass descriptors.
11926         * cgraphbuild.c: Update tree_pass descriptors.
11927         * tracer.c: Update tree_pass descriptors.
11928         * tree-loop-distribution.c: Update tree_pass descriptors.
11929         * cgraph.c: Update tree_pass descriptors.
11930         * postreload-gcse.c: Update tree_pass descriptors.
11931         * postreload.c: Update tree_pass descriptors.
11932         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11933         * tree-tailcall.c: Update tree_pass descriptors.
11934         * tree-pass.h (tree_opt_pass): Rename to ...
11935         (opt_pass) ... this one; add "type" field and remove letter field.
11936         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11937         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11938         all_lowering_passes): Update declaration.
11939         * ipa-cp.c: Update tree_pass descriptors.
11940         * final.c: Update tree_pass descriptors.
11941         * omp-low.c: Update tree_pass descriptors.
11942         * tree-ssa-dse.c: Update tree_pass descriptors.
11943         * ipa-reference.c: Update tree_pass descriptors.
11944         * tree-ssa-uncprop.c: Update tree_pass descriptors.
11945         * auto-inc-dec.c: Update tree_pass descriptors.
11946         * reorg.c: Update tree_pass descriptors.
11947         * cgraphunit.c: Update tree_pass descriptors.
11948         * tree-ssa-copyrename.c: Update tree_pass descriptors.
11949         * tree-ssa-ccp.c: Update tree_pass descriptors.
11950         * df-core.c: Update tree_pass descriptors.
11951         * mode-switching.c: Update tree_pass descriptors.
11952         * tree-nomudflap.c: Update tree_pass descriptors.
11953         * modulo-sched.c: Update tree_pass descriptors.
11954         * ipa-pure-const.c: Update tree_pass descriptors.
11955         * cse.c: Update tree_pass descriptors.
11956         * web.c: Update tree_pass descriptors.
11957         * tree-stdarg.c: Update tree_pass descriptors.
11958         * tree-ssa-math-opts.c: Update tree_pass descriptors.
11959         * tree-ssa-dom.c: Update tree_pass descriptors.
11960         * tree-nrv.c: Update tree_pass descriptors.
11961         * tree-ssa-alias.c: Update tree_pass descriptors.
11962         * loop-init.c: Update tree_pass descriptors.
11963         * gimple-low.c: Update tree_pass descriptors.
11964         * ipa-inline.c: Update tree_pass descriptors.
11965         * tree-ssa-sink.c: Update tree_pass descriptors.
11966         * global.c: Update tree_pass descriptors.
11967         * ifcvt.c: Update tree_pass descriptors.
11968         * jump.c: Update tree_pass descriptors.
11969         * predict.c: Update tree_pass descriptors.
11970         * tree-ssa-loop.c: Update tree_pass descriptors.
11971         * recog.c: Update tree_pass descriptors.
11972         * dse.c: Update tree_pass descriptors.
11973         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11974         * tree-eh.c: Update tree_pass descriptors.
11975         * regmove.c: Update tree_pass descriptors.
11976         * local-alloc.c
11977         * function.c: Update tree_pass descriptors.
11978         * tree-vectorizer.c: Update tree_pass descriptors.
11979         * gcse.c: Update tree_pass descriptors.
11980         * ipa-type-escape.c: Update tree_pass descriptors.
11981         * tree-if-conv.c: Update tree_pass descriptors.
11982         * init-regs.c: Update tree_pass descriptors.
11983         * ipa.c: Update tree_pass descriptors.
11984         * tree-ssa-phiopt.c: Update tree_pass descriptors.
11985         * rtl-factoring.c: Update tree_pass descriptors.
11986         * lower-subreg.c: Update tree_pass descriptors.
11987         * bt-load.c: Update tree_pass descriptors.
11988         * tree-dfa.c: Update tree_pass descriptors.
11989         * except.c: Update tree_pass descriptors.
11990         * emit-rtl.c: Update tree_pass descriptors.
11991         * cfgexpand.c: Update tree_pass descriptors.
11992         * tree-cfgcleanup.c: Update tree_pass descriptors.
11993         * cfgcleanup.c: Update tree_pass descriptors.
11994         * tree-ssa-pre.c: Update tree_pass descriptors.
11995         * tree-sra.c: Update tree_pass descriptors.
11996         * tree-mudflap.c: Update tree_pass descriptors.
11997         * tree-ssa-copy.c: Update tree_pass descriptors.
11998         * cfglayout.c: Update tree_pass descriptors.
11999         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12000         * tree-ssa-dce.c: Update tree_pass descriptors.
12001         * tree-ssa.c: Update tree_pass descriptors.
12002         * regclass.c: Update tree_pass descriptors.
12003         * integrate.c: Update tree_pass descriptors.
12004         * tree-optimize.c: Update tree_pass descriptors.
12005         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12006         * tree-object-size.c: Update tree_pass descriptors.
12007         * combine.c: Update tree_pass descriptors.
12008         * tree-outof-ssa.c: Update tree_pass descriptors.
12009         * bb-reorder.c: Update tree_pass descriptors.
12010         * stack-ptr-mod.c: Update tree_pass descriptors.
12011         * var-tracking.c: Update tree_pass descriptors.
12012         * tree-profile.c: Update tree_pass descriptors.
12013         * tree-vect-generic.c: Update tree_pass descriptors.
12014         * reg-stack.c: Update tree_pass descriptors.
12015         * sched-rgn.c: Update tree_pass descriptors.
12016         * tree-ssa-structalias.c: Update tree_pass descriptors.
12017         * tree-cfg.c: Update tree_pass descriptors.
12018         * passes.c (current_pass): Update declaration.
12019         (finish_optimization_passes): Update.
12020         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12021         (register_one_dump_file, register_dump_files_1, next_pass_1):
12022         Update arguments.
12023         (init_optimization_passes): Update handling of new types.
12024         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12025         * ipa-struct-reorg.c: Update tree_pass descriptors.
12026         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12027         * combine-stack-adj.c: Update tree_pass descriptors.
12028         * cfgrtl.c: Update tree_pass descriptors.
12029         * dce.c: Update tree_pass descriptors.
12030         * tree-ssanames.c: Update tree_pass descriptors.
12032 2008-03-19  Richard Guenther  <rguenther@suse.de>
12034         PR middle-end/35609
12035         * tree-ssa.c (walk_data): New structure.
12036         (warn_uninitialized_var): If not always_executed warn with "maybe"
12037         instead of "is".
12038         (execute_early_warn_uninitialized): Compute post-dominators.
12039         Initialize always_executed before processing each basic block.
12041 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12043         PR target/35504
12044         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12045         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12047 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12049         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12051 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12053         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12054         is true.
12055         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12056         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12057         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12058         target after ignore has been set, and move there also the commputation
12059         of subtarget and original_target.
12060         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12061         (LANG_HOOKS_INITIALIZER): Remove it.
12062         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12064 2008-03-18  Richard Guenther  <rguenther@suse.de>
12066         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12067         found an expression with constants, note that in the VN for the lhs.
12068         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12069         fold them to constants if possible.  Run cleanup_cfg if done so.
12070         (execute_pre): Return todo.
12071         (do_pre): Likewise.
12072         (execute_fre): Likewise.
12073         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12074         of constants.
12075         (get_prop_source_stmt): Look through pointer conversions.
12077 2008-03-18  Jan Hubicka  <jh@suse.cz>
12079         * tree-pretty-print.c: Include predict.h.
12080         (dump_generic_node): Dump predictor.
12081         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12082         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12083         * gimple-low.c (lower_stmt): Likewise.
12084         * expr.c (expand_expr_real): Likewise.
12085         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12086         them.
12087         (build_predict_expr, build_predict_expr): New.
12088         * predict.h (predictor_name, build_predict_expr): Update.
12089         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12090         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12091         * predict.def (PRED_CONTINUE): Update hitrate.
12092         * tree.def (PREDICT_EXPR): Define.
12093         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12094         do not handle BIND_EXPR.
12095         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12096         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12097         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12098         operands.
12100 2008-03-18  Michael Matz  <matz@suse.de>
12102         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12104 2008-03-18  Richard Guenther  <rguenther@suse.de>
12106         * tree-gimple.h (is_gimple_invariant_address): Declare.
12107         (is_gimple_constant): Likewise.
12108         * tree-gimple.c (is_gimple_constant): New function.
12109         (is_gimple_invariant_address): Likewise.
12110         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12111         and is_gimple_invariant_address.
12112         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12113         previous change.
12114         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12115         an addressable base.
12117 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12119         PR middle-end/35611
12120         * gimplify.c (gimplify_expr): Gimplify second operand of
12121         OMP_ATOMIC_LOAD.
12123 2008-03-17  Richard Guenther  <rguenther@suse.de>
12125         PR tree-optimization/19637
12126         * fold-const.c (fold_unary): Remove restrictions of removing
12127         intermediate pointer-conversions (P2)(P1)P0.
12128         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12129         conversion to void pointer.
12130         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12132 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12134         PR debug/31510
12135         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12136         emulated thread local variables.
12138 2008-03-16  Richard Guenther  <rguenther@suse.de>
12140         PR middle-end/35607
12141         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12142         expand TREE_INVARIANT operations that are not gimple invariant.
12144 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12146         * doc/extend.texi (Alignment): Say that the ABI controls
12147         the __alignof__ for non-strict-alignment targets rather
12148         than being a recommendation.
12150 2008-03-15  Paul Brook  <paul@codesourcery.com>
12152         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12153         annotations.
12154         (arm_output_fn_unwind): Mark functions that can not be unwound.
12156 2008-03-15  Paul Brook  <paul@codesourcery.com>
12158         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12159         extension instructions.
12161 2008-03-15  Richard Guenther  <rguenther@suse.de>
12163         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12164         and fold constant aggregate refs.
12165         (fold_const_aggregate_ref): Handle string constants
12166         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12167         (evaluate_stmt): Simplify now that ccp_fold folds constant
12168         aggregate refs.
12170 2008-03-15  Paul Brook  <paul@codesourcery.com>
12172         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12173         (extzv): Use gen_extzv_t2.
12174         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12176 2008-03-15  Richard Guenther  <rguenther@suse.de>
12178         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12179         (fold_const_aggregate_ref): Likewise.
12180         (get_value): Return NULL if we don't have any values.
12181         (ccp_finalize): Set const_val to NULL after freeing it.
12182         * tree-flow.h (get_symbol_constant_value): Declare.
12183         (fold_const_aggregate_ref): Likewise.
12184         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12186 2008-03-15  Richard Guenther  <rguenther@suse.de>
12188         PR middle-end/35593
12189         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12190         to not produce negative array indices if not allowed.  Add
12191         parameter to indicate that.
12192         (maybe_fold_offset_to_component_ref): Allow negative array
12193         indices only for the first member of a structure.
12194         (maybe_fold_offset_to_reference): Allow negative array indices.
12195         (maybe_fold_stmt_addition): Likewise.
12197 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12198             Anatoly Sokolov <aesok@post.ru>
12200         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12201         (avr_arch): Add ARCH_AVR6.
12202         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12203         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
12204         instead of fixed value 2.
12205         (print_operand_address): Use gs() asm specifier instead of pm().
12206         (avr_assemble_integer): (Ditto.).
12207         (avr_output_addr_vec_elt): (Ditto.).
12208         (print_operand): Handle "!" code.
12209         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
12210         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12211         (AVR_HAVE_EIJMP_EICALL): Define.
12212         (AVR_3_BYTE_PC): Redefine.
12213         (AVR_2_BYTE_PC): (Ditto.).
12214         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12215         (LINK_SPEC): Add atmega2560 and atmega2561.
12216         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
12217         (crtm2561.o).
12218         * config/avr/avr.md (call_insn): Use eicall instead of icall 
12219         for 3 byte PC devices.
12220         (call_value_insn): (Ditto.).
12221         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12222         (indirect_jump): Use only for for 2 byte PC devices.
12223         (*tablejump): (Ditto.).
12224         (*indirect_jump_avr6): Add insn.
12225         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12226         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
12227         instead of ijmp for 3 byte PC devices.
12228         (__tablejump2__): (Ditto.).
12229         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12230         (MULITLIB_DIRNAMES): (Ditto.). 
12231         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12233 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12235         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12236         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12237         ("mmx_psadbw"): Use V1DI mode for operand 0.
12238         * config/i386/i386-modes.def (V1SI): New vector mode.
12239         * config/i386/i386.c (struct builtin_description)
12240         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12241         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12242         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12243         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12244         v1di_ftype_v8qi_v8qi type.
12245         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12247         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12248         __builtin_ia32_pmuludq]: Fix the mode of return value.
12250 2008-03-15  Richard Guenther  <rguenther@suse.de>
12252         PR middle-end/35595
12253         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12254         being a PHI_NODE.
12256 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12257         
12258         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12259         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12260         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12261         unless TARGET_SERIALIZE_VOLATILE is enabled.
12262         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12263         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12264         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12266 2008-03-14  Richard Guenther  <rguenther@suse.de>
12268         PR tree-optimization/34172
12269         * tree-flow.h (refs_may_alias_p): Declare.
12270         (get_single_def_stmt): Likewise.
12271         (get_single_def_stmt_from_phi): Likewise.
12272         (get_single_def_stmt_with_phi): Likewise.
12273         * tree-dfa.c (refs_may_alias_p): New function.
12274         (get_single_def_stmt): Likewise.
12275         (get_single_def_stmt_from_phi): Likewise.
12276         (get_single_def_stmt_with_phi): Likewise.
12277         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12278         (vn_reference_lookup_1): New helper function.
12279         (vn_reference_lookup): Walk the virtual use-def chain to
12280         continue searching for a match if the def does not alias the
12281         reference we are looking for.
12283 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12285         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12286         archive and Perzl.  Update The Written Word listing.
12288 2008-03-14  Richard Guenther  <rguenther@suse.de>
12290         PR tree-optimization/34043
12291         PR tree-optimization/33989
12292         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12293         when doing FRE.
12294         (bitmap_find_leader): Use extra argument to verify dominance
12295         relationship inside a basic-block.
12296         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12297         (find_leader_in_sets): Adjust.
12298         (create_component_ref_by_pieces): Take extra argument for
12299         dominance check, handle lookup failures.
12300         (find_or_generate_expression): Likewise.
12301         (create_expression_by_pieces): Likewise.
12302         (insert_into_preds_of_block): Adjust.
12303         (create_value_expr_from): If asked for, verify all operands
12304         are in the blocks AVAIL_OUT set.
12305         (make_values_for_stmt): Check for SSA_NAMEs that are life
12306         over an abnormal edge.
12307         (compute_avail): Remove such check.
12308         (do_SCCVN_insertion): New function.
12309         (eliminate): If we do not find a leader suitable for replacement
12310         insert a replacement expression from SCCVN if available.
12311         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12312         (struct vn_ssa_aux): Add needs_insertion flag.
12313         * tree-ssa-sccvn.c (may_insert): New global flag.
12314         (copy_reference_ops_from_ref): Value-number union member access
12315         based on its size, not type and member if insertion is allowed.
12316         (visit_reference_op_load): For a weak match from union type
12317         punning lookup a view-converted value and insert a SSA_NAME
12318         for that value if that is not found.
12319         (visit_use): Make dumps shorter.  Do not disallow value numbering
12320         SSA_NAMEs that are life over an abnormal edge to constants.
12321         (free_scc_vn): Release inserted SSA_NAMEs.
12322         (run_scc_vn): New flag to specify whether insertion is allowed.
12323         Process SSA_NAMEs in forward order.
12324         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12325         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12326         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12327         pointer type to/from integral types that do not change the
12328         precision to regular conversions.
12330 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12332         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12333         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12334         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12335         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12336         input arguments and the mode of return value.  Built-in functions
12337         that operate on whole 64-bit MMX register now use V1DI mode.
12339 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12340             Olga Golovanevsky  <olga@il.ibm.com>
12342         PR tree-optimization/35041
12343         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12344         to locate the right position in a statement.
12346 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12348         PR target/34000
12349         PR target/35553
12350         * config/i386/xmmintrin.h:  Change all static inline functions to
12351         extern inline and add __gnu_inline__ attribute.
12352         * config/i386/bmintrin.h: Ditto.
12353         * config/i386/smmintrin.h: Ditto.
12354         * config/i386/tmmintrin.h: Ditto.
12355         * config/i386/mmintrin-common.h: Ditto.
12356         * config/i386/ammintrin.h: Ditto.
12357         * config/i386/emmintrin.h: Ditto.
12358         * config/i386/pmmintrin.h: Ditto.
12359         * config/i386/mmintrin.h: Ditto.
12360         * config/i386/mm3dnow.h: Ditto.
12362 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12364         PR middle-end/35185
12365         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12366         (lower_omp_2): New function.
12367         (lower_omp_1, lower_omp): Rewritten.
12369 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12371         PR 35054
12372         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12373         with the phrase "Microsoft Windows compilers".
12374         (Push/Pop Macro Pragmas): New subsection. Document
12375         #pragma push_macro and pragma pop_macro.
12377 2008-03-12  Paul Brook  <paul@codesourcery.com>
12379         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12381 2008-03-12  Paul Brook  <paul@codesourcery.com>
12383         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12384         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12385         (thumb2_addsi_shortim): Rename ...
12386         (thumb2_addsi_short): ... to this.  Allow register operands.
12387         (thumb2_subsi_short): New pattern.
12388         (thumb2_one_cmplsi2_short,
12389         thumb2_negsi2_short): New patterns and peepholes.
12391 2008-03-12  Paul Brook  <paul@codesourcery.com>
12393         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12395 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12397         * config/i386/i386.md (int_cond): New code iterator.
12398         (fp_cond): Ditto.
12399         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12400         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12401         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12402         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12403         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12404         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12405         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12406         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12408 2008-03-12  Paul Brook  <paul@codesourcery.com>
12410         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12411         instead of {arm,thumb}_compute_save_reg_mask.
12412         (output_return_instruction): Ditto.
12413         (thumb_unexpanded_epilogue): Ditto.
12414         (thumb1_expand_prologue): Ditto.
12415         (thumb1_output_function_prologue): Ditto.
12416         (arm_set_return_address): Ditto.
12417         (thumb_set_return_address): Ditto.
12418         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12419         regs to achieve stack alignment.
12420         (thumb1_compute_save_reg_mask): Fix compiler warning.
12421         (arm_output_epilogue): Use offsets->saved_regs_mask.
12422         Adjust stack pointer by poping call clobered registers.
12423         (arm_expand_prologue): Use offsets->saved_regs_mask.
12424         Adjust stack pointer by pushing extra registers.
12425         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12427 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12429         PR tree-opt/35422
12430         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12431         conversion to the operands of a multiplication.
12433 2008-03-12  Richard Guenther  <rguenther@suse.de>
12435         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12436         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12437         * timevar.def (TV_TREE_PHIPROP): Add.
12438         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12439         pass description.  Use TV_TREE_PHIPROP.
12440         * tree-ssa-forwprop.c: Remove phiprop code.
12442 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12444         PR middle-end/35549
12445         * omp-low.c (maybe_lookup_decl): Constify first argument.
12446         (use_pointer_for_field): Change last argument from bool to
12447         omp_context *.  Disallow shared copy-in/out in nested
12448         parallel if decl is shared in outer parallel too.
12449         (build_outer_var_ref, scan_sharing_clauses,
12450         lower_rec_input_clauses, lower_copyprivate_clauses,
12451         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12453 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12454             Ira Rosen  <irar@il.ibm.com>
12456         * tree-vectorizer.c (free_stmt_vec_info): New function.
12457         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12458         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12459         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12460         * tree-vect-transform.c (vectorizable_conversion): Free
12461         vec_oprnds0 if it was allocated.
12462         (vect_permute_store_chain): Remove unused VECs.
12463         (vectorizable_store): Free VECs that are allocated in the..
12464         function.
12465         (vect_transform_strided_load, vectorizable_load): Likewise.
12466         (vect_remove_stores): Simplify the code.
12467         (vect_transform_loop): Move code to vect_remove_stores().
12468         Call vect_remove_stores() and free_stmt_vec_info().
12470 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12472         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12473         TARGET_HPUX.  Revise comment.
12474         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12475         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12476         Use sr4 variant of `be' instruction when not generating PIC code.
12477         (attr_length_call): Adjust for above change.
12479 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12481         * ipa-reference.c (static_execute): Remove module_statics_const and
12482         associated setting code.
12484 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12486         PR target/35540
12487         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12488         predicate for operand 1.
12489         (paritysi2_cmp): Use register_operand predicate for operand 2.
12490         Use earlyclobber modifier for operand 1.  Remove support for
12491         memory operands.
12492         (paritydi2_cmp): Use register_operand predicate for operand 3.
12493         Use earlyclobber modifier for operand 1.  Remove support for
12494         memory operands.
12496 2008-03-11  Paul Brook  <paul@codesourcery.com>
12497             Vladimir Prus  <vladimir@codesourcery.com>
12499         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12500         (arm_compute_save_reg0_reg12_mask): Always
12501         check if register 11 must be saved.  Always safe hard frame pointer
12502         when frame_pointer_needeed.
12503         (arm_compute_save_reg_mask): Save IP and PC
12504         only with apcs frames.
12505         (arm_output_epilogue): Adjust Thumb2 codepath to
12506         be also invoked and work for ARM non-apcs frames.
12507         (arm_expand_prologue): Don't bother saving IP
12508         for non-apcs frame, since it's not clobbered by
12509         prologue code.  Implement non-apcs frame
12510         layout.
12512 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12514         PR rtl-optimization/35281
12515         * expr.c (convert_move): Use a new pseudo for the intermediate
12516         from_mode->word_mode result.
12518 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12520         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12521         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12522         * toplev.c (compile_file): Don't call it.
12524 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12526         PR middle-end/35526
12527         * expr.c (store_expr): Call emit_block_move if the mode
12528         of "temp" RTX is BLKmode.
12530 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12531             Richard Guenther  <rguenther@suse.de>
12533         PR tree-optimization/31358
12534         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12535         the step with a NULL_TREE.
12536         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12537         to sizetype if type is a pointer type.
12538         (add_candidate_1): Don't convert the base and step to
12539         the generic type if the orginal type is a pointer type.
12540         (add_iv_value_candidates): Use sizetype for the step
12541         if type is a pointer type.
12542         (cand_value_at): Likewise.
12543         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12544         for pointer types.
12545         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12546         Don't convert the tem affine to the type.
12547         (add_elt_to_tree): Use sizetype for the step if a pointer.
12548         Use POINTER_PLUS_EXPR for pointers.
12549         (aff_combination_to_tree): Use sizetype for the step if a
12550         pointer.
12552 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
12554         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12555         Remove commutativity hint.
12557 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
12559         PR c/35438
12560         PR c/35439
12561         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12562         errorneous type.  Check that v is a VAR_DECL.
12564         PR middle-end/35099
12565         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12567 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12569         PR tree-optimization/35494
12570         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12571         may be overriden at link and run time.
12573 2008-03-10  Richard Guenther  <rguenther@suse.de>
12575         PR tree-optimization/34677
12576         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12577         (poolify_tree): Likewise.
12578         (modify_expr_template): Likewise.
12579         (poolify_modify_stmt): Likewise.
12580         (insert_fake_stores): Handle all component-ref style stores
12581         in addition to INDIRECT_REF.  Also handle complex types.
12582         Do not poolify the inserted load.
12583         (realify_fake_stores): Do not rebuild the tree but only
12584         make it a SSA_NAME copy.
12585         (init_pre): Remove initialzation of modify_expr_template.
12586         Do not allocate modify_expr_node_pool.
12587         (fini_pre): Do not free modify_expr_node_pool.
12589 2008-03-10  Paul Brook  <paul@codesourcery.com>
12591         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12592         to avoid conflicts.
12594 2008-03-10  Paul Brook  <paul@codesourcery.com>
12595             Mark Shinwell  <shinwell@codesourcery.com>
12597         * config/arm/cortex-r4.md: New.
12598         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12599         insn attributes.
12600         * config/arm/arm.md: Include cortex-r4.md.
12601         (insn): Add smmls, sdiv and udiv values.
12602         (generic_sched): Don't use generic scheduling for Cortex-R4.
12603         (arm_issue_rate): New function.
12604         (TARGET_SCHED_ISSUE_RATE): Define.
12606 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
12608         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12610 2008-03-10  Richard Guenther  <rguenther@suse.de>
12612         * tree-ssa-pre.c (get_sccvn_value): Simplify.
12613         (compute_avail): Do not add stmt uses to AVAIL_OUT.
12615 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
12617         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12618         Set default to true.
12620 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12622         * c.opt (Wsynth): Deprecate.
12623         * doc/invoke.texi (Option Summary, Warning Options): Document
12624         -Wno-format-contains-nul.
12626 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
12628         PR target/35496
12629         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12630         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12632 2008-03-09  Ira Rosen  <irar@il.ibm.com>
12634         * config/rs6000/rs6000.c (builtin_description): Rename vector
12635         left shift operations.
12636         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12637         (altivec_vsl<VI_char>): Rename to ...
12638         (ashl<mode>3): ... new name.
12639         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12640         gen_ashlv4si3.
12641         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12643 2008-03-08  Richard Guenther  <rguenther@suse.de>
12645         * coverage.h (tree_coverage_counter_addr): Declare.
12646         * coverage.c (tree_coverage_counter_addr): New function.
12647         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12648         before using again.
12649         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12650         (tree_gen_one_value_profiler): Likewise.
12651         (tree_gen_ic_profiler): Likewise.
12652         (tree_gen_average_profiler): Likewise.
12653         (tree_gen_ior_profiler): Likewise.
12655 2008-03-08  Richard Guenther  <rguenther@suse.de>
12657         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12658         (vn_binary_op_insert): Likewise.
12659         (vn_unary_op_lookup): Likewise.
12660         (vn_unary_op_insert): Likewise.
12661         (vn_nary_op_lookup): Declare.
12662         (vn_nary_op_insert): Likewise.
12663         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12664         and binary hashes, use a single obstack for unary_op_pool
12665         and binary_op_pool.
12666         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12667         a single struct vn_nary_op_s.  Store tree code length and
12668         a variable number of operands.
12669         (struct vn_reference_op_struct): Remove unused op2.
12670         (vn_reference_op_eq): Do not compare op2.
12671         (vn_reference_op_compute_hash): Do not compute hash of op2.
12672         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12673         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12674         with vn_nary_op_compute_hash.
12675         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12676         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12677         vn_nary_op_lookup.
12678         (vn_unary_op_insert, vn_binary_op_insert): Replace with
12679         vn_nary_op_insert.
12680         (visit_unary_op): Call nary functions.
12681         (visit_binary_op): Likewise.
12682         (process_scc): Adjust for struct vn_tables_s changes.
12683         (allocate_vn_table): Likewise.
12684         (free_vn_table): Likewise.
12685         * tree-vn.c (vn_add): Call nary functions.
12686         (vn_lookup): Likewise.
12688 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
12690         PR target/35498
12691         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12692         wdst back after sync_compare_and_swapqhi_internal.
12694 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
12696         PR target/22152
12697         * config/i386/i386-modes.def (V1DI): New vector mode.
12698         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12699         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12700         (MMXMODE248): Ditto.
12701         (MMXMODE): Add V1DI mode.
12702         (mmxvecsize): Change DI mode to V1DI mode.
12703         ("mov<mode>): Use MMXMODEI8 mode iterator.
12704         ("*mov<mode>_internal_rex64"): Ditto.
12705         ("*mov<mode>_internal"): Ditto.
12706         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
12707         ("mmx_sub<mode>3"): Ditto.
12708         ("mmx_adddi3"): Remove insn pattern.
12709         ("mmx_subdi3"): Ditto.
12710         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12711         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12712         ("mmx_ashl<mode>3"): Ditto.
12713         ("mmx_lshrdi3"): Remove insn pattern.
12714         ("mmx_ashldi3"): Ditto.
12715         * config/i386/i386.c (classify_argument): Handle V1DImode.
12716         (function_arg_advance_32): Ditto.
12717         (function_arg_32): Ditto.
12718         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12719         mmx_addv1di3 insn pattern.
12720         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12721         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12722         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12723         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12724         Remove definitions of built-in functions.
12725         (V1DI_type_node): New node.
12726         (v1di_ftype_v1di_int): Ditto.
12727         (v1di_ftype_v1di_v1di): Ditto.
12728         (v2si_ftype_v2si_si): Ditto.
12729         (v4hi_ftype_v4hi_di): Remove node.
12730         (v2si_ftype_v2si_di): Ditto.
12731         (ix86_init_mmx_sse_builtins): Handle V1DImode.
12732         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12733         Redefine builtins using def_builtin_const with *_ftype_*_int node.
12734         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12735         Add new builtins using def_builtin_const.
12736         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12737         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12738         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12739         * config/i386/mmintrin.h (__v1di): New typedef.
12740         (_mm_add_si64): Cast arguments to __v1di type.
12741         (_mm_sub_si64): Ditto.
12742         (_mm_sll_pi16): Cast __count to __v4hi type.
12743         (_mm_sll_pi32): Cast __count to __v2si type.
12744         (_mm_sll_si64): Cast arguments to __v1di type.
12745         (_mm_srl_pi16): Cast __count to __v4hi type.
12746         (_mm_srl_pi32): Cast __count to __v2si type.
12747         (_mm_srl_si64): Cast arguments to __v1di type.
12748         (_mm_sra_pi16): Cast __count to __v4hi type.
12749         (_mm_sra_pi32): Cast __count to __v2si type.
12750         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12751         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12752         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12753         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12754         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12755         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12756         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12757         (_mm_srai_pi32): Use __builtin_ia32_psradi.
12758         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12759         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12760         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12761         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12763 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
12765         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12767 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
12769         PR target/35373
12770         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12771         reg+const addressing for Altivec modes.  Don't generate reg+reg
12772         addressing for TFmode or TDmode quantities.
12774 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
12776         * c-common.c (vector_types_convertible_p): Call langhook
12777         instead of comptypes.
12779 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12781         PR tree-opt/35402
12782         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12783         integral and scalar float variables which have a
12784         NULL DECL_INITIAL.
12786 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
12788         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12789         dwarf_register_span hook when emitting unwind information for
12790         register-to-memory saves.
12791         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12792         (rs6000_frame_related): Remove call to spe_synthesize_frame.
12794 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
12796         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12797         for the same VAR_DECL.
12799 2008-03-06  Tom Tromey  <tromey@redhat.com>
12801         * treelang: Delete.
12802         * doc/standards.texi (Standards): Don't mention treelang.
12803         * doc/invoke.texi (Overall Options): Don't mention treelang.
12804         * doc/install.texi (Prerequisites): Don't mention bison or
12805         treelang.
12806         (Configuration): Don't mention treelang.
12807         (Building): Likewise.
12808         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12810 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
12812         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12813         word-extractions out of a multi-word object.
12815 2008-03-06  Richard Guenther  <rguenther@suse.de>
12817         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12818         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12819         result type and precision.
12820         * expr.c (get_inner_reference): Set unsignedp based on the result
12821         type of BIT_FIELD_REF.
12822         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12823         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12824         (try_instantiate_multiple_fields): Likewise.  Use the correct type
12825         for BIT_FIELD_REF.
12826         (sra_build_assignment): Likewise.
12827         (sra_build_elt_assignment): Likewise.
12828         (sra_explode_bitfield_assignment): Likewise.
12829         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12830         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12831         set BIT_FIELD_REF_UNSIGNED.
12832         (vectorizable_load): Likewise.
12834 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
12836         * cse.c (cse_extended_basic_block): Invalidate artificial defs
12837         at bb start.
12839 2008-03-06  Richard Guenther  <rguenther@suse.de>
12841         * alias.c (struct alias_set_entry): Move has_zero_child field
12842         to pack with alias_set.
12844 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12846         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12847         32bit host.
12849 2008-03-05  Ian Lance Taylor  <iant@google.com>
12851         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12853 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
12855         * fwprop.c (update_df): Support width and offset parameters of
12856         df_ref_create.
12857         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12858         global_conflicts): Change DF_REF_EXTRACT to either
12859         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12860         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12861         * df-scan.c (df_ref_record, df_defs_record,
12862         df_ref_create_structure, df_def_record_1, df_uses_record,
12863         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12864         df_bb_refs_collect, df_entry_block_defs_collect,
12865         df_exit_block_uses_collect): Support new width and offset fields.
12866         (ref_extract_pool): New storage pool.
12867         (df_free_ref): New function.
12868         (df_reg_chain_unlink, df_free_collection_rec,
12869         df_sort_and_compress_refs): Call df_free_ref.
12870         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12871         of df_ref_extract.
12872         (df_ref_create_structure): Allocate df_ref_extract if offset and
12873         width fields are used.
12874         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12875         (df_uses_record): Get offset and width from ZERO_EXTRACT 
12876         and SIGN_EXTRACT.
12877         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12878         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12879         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12880         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12881         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
12882         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12883         (df_ref_extract): New structure.
12884         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12885         (df_ref_create): Add width and offset parameters.
12886         
12887 2008-03-05  Richard Guenther  <rguenther@suse.de>
12889         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12890         Use ranges_overlap_p.
12891         (offset_overlaps_with_access): Rename
12892         to ranges_overlap_p and move ...
12893         * tree-flow-inline.h (ranges_overlap_p): ... here.
12895         * tree.h (get_inner_reference, handled_component_p): Update
12896         comments.
12898         * tree.h (record_component_aliases, get_alias_set,
12899         alias_sets_conflict_p, alias_sets_must_conflict_p,
12900         objects_must_conflict_p): Move declarations ...
12901         * alias.h (record_component_aliases, get_alias_set,
12902         alias_sets_conflict_p, alias_sets_must_conflict_p,
12903         objects_must_conflict_p): ... here.
12904         Include coretypes.h.
12905         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12907 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
12909         * cfg.c: Include tree-flow.h.
12910         (remove_edge_raw): Call redirect_edge_var_map_clear.
12911         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12912         * tree-flow-inline.h (redirect_edge_var_map_def): New.
12913         (redirect_edge_var_map_result): New.
12914         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12915         PENDING_STMT use with redirect_edge_var_map_*.
12916         * tree-ssa.c (edge_var_maps): New definition.
12917         (redirect_edge_var_map_add): New.
12918         (redirect_edge_var_map_clear): New.
12919         (redirect_edge_var_map_dup): New.
12920         (redirect_edge_var_map_vector): New.
12921         (redirect_edge_var_map_destroy): New.
12922         (ssa_redirect_edge): Replace PENDING_STMT use with
12923         redirect_edge_var_map_*.
12924         (flush_pending_stmts): Same.
12925         (delete_tree_ssa): Destroy edge var map.
12926         * tree-flow.h (struct _edge_var_map): New.
12927         Define edge_var_map vector type.
12928         Declare redirect_edge_var_map_* prototypes.
12929         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12930         * tree-cfg.c (reinstall_phi_args): Replace
12931         PENDING_STMT use with redirect_edge_var_map_*.
12933 2008-03-05  Richard Guenther  <rguenther@suse.de>
12935         PR tree-optimization/35472
12936         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12937         whose single use_stmt has a overlapping set of loaded and
12938         stored symbols as that use_stmt might be a noop assignment then.
12940 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
12942         * gthr-rtems.h: Implement __gthread_mutex_destroy.
12944 2008-03-05  Richard Guenther  <rguenther@suse.de>
12946         PR c++/35336
12947         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12948         should be constants.
12949         * tree-cfg.c (verify_expr): Verify it.
12950         * fold-const.c (fold_truthop): Remove code generating
12951         BIT_FIELD_REFs of structure bases.
12952         (fold_binary): Likewise.
12953         (fold_ternary): Position and size of BIT_FIELD_REFs are
12954         always host integers.
12955         (make_bit_field_ref): Remove.
12956         (optimize_bit_field_compare): Remove.
12957         (all_ones_mask_p): Remove.
12959 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
12961         PR gcc/33009
12962         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12963         (split_block_and_df_analyze): New. Split basic block and rebuild
12964         dataflow.
12965         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12966         SPLIT_BLOCK.
12967         (split_pattern_seq): Likewise.
12968         (erase_matching_seqs): Likewise.
12969         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12971 2008-03-04  Geoff Keating  <geoffk@apple.com>
12973         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12974         declaration and code.
12975         (tree_invalid_nonnegative_warnv_p): Likewise.
12977 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
12979         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12980         examples.  Truncate option-names then causing overfull hbox.
12982 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12984         PR target/35222
12985         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12986         on hpux10.
12987         * configure: Rebuilt.
12989 2008-03-04  Rafael Espindola  <espindola@google.com>
12991         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12992         (tree_unary_nonnegative_warnv_p): New.
12993         (tree_binary_nonnegative_warnv_p): New.
12994         (tree_single_nonnegative_warnv_p): New.
12995         (tree_invalid_nonnegative_warnv_p): New.
12996         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12998 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13000         PR 28322
13001         * opts.c (handle_option): Postpone 'unknown option' errors only for
13002         warning options.
13004 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13006         PR target/35453
13007         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13008         (_SIDD_XXX): This.
13010 2008-03-04  Rafael Espindola  <espindola@google.com>
13012         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13013         (tree_binary_nonzero_warnv_p): New.
13014         (tree_single_nonzero_warnv_p): New.
13015         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13017 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13019         PR middle-end/35456
13020         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13021         transformations for modes that have signed zeros.
13022         * ifcvt.c (noce_try_abs): Ditto.
13024 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13026         * config/i386/i386.c (override_options): Force
13027         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13029 2008-03-04  Jan Hubicka  <jh@suse.cz>
13031         PR c++/35262
13032         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13033         in last commit.
13035 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13037         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13038         label to probe the stack.
13040 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13042         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13043         (__gthr_win32_mutex_destroy): Declare.
13044         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13045         __gthr_win32_mutex_destroy.
13046         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13048 2008-03-03  Jan Hubicka  <jh@suse.cz>
13050         PR c++/35262
13051         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13052         aggressive on inlining cold calls.
13054 2008-03-03  Richard Guenther  <rguenther@suse.de>
13056         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13057         struct copies into the expression table.
13058         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13059         (try_to_simplify): Likewise.
13060         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13061         integral and pointer arguments which do not change the
13062         precision to NOP_EXPRs.
13063         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13064         VIEW_CONVERT_EXPR case.
13066 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13068         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13069         defined in a loop at depth 0 is invariant.
13070         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13071         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13072         be called at loop depth 0.
13074 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13076         PR driver/35420
13077         * gcc.c (process_command): Update copyright notice dates.
13078         * gcov.c (print_version): Likewise.
13079         * gcov-dump.c (print_version): Likewise.
13080         * mips-tfile.c (main): Likewise.
13081         * mips-tdump.c (main): Likewise.
13083 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13085         PR 24924
13086         * c-common.c (flag_permissive): Delete.
13087         (constant_expression_warnings): Check flags first.
13088         (constant_expression_error): New.
13089         * c-common.h (flag_permissive): Delete.
13090         (constant_expression_error): Declare.
13091         * flags.h (flag_permissive): Declare. Update description.
13092         * diagnostic.c (pedwarn): Update.
13093         (permerror): New.
13094         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13095         (permissive_error_kind): New.
13096         * toplev.c (flag_permissive): Define. Update description.
13097         * toplev.h (permissive_error_kind): Declare.
13098         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13099         (pedwarn_c90): Use pedantic_warning_kind.
13100         * c-opts.c (c_common_post_options): flag_permissive does not affect
13101         flag_pedantic_errors.
13103 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13105         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13106         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13107         __absvsi2, __absvDI2): Use unsigned arithmetic.
13109 2008-03-02  Andi Kleen  <ak@suse.de>
13110             Richard Guenther  <rguenther@suse.de>
13112         * struct-equiv.c: Remove file.
13113         * cfg_cleanup.c (condjump_equiv_p): Remove.
13114         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13115         (struct-equiv.o): Remove rule.
13116         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13117         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
13118         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13120 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13122         * ifcvt.c (noce_process_if_block): Try to handle only the then
13123         block if the else block exists but isn't suitable.
13125 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13127         PR gcc/35063
13128         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13129         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13130         regression from previous patch.
13132 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13134         PR gcc/35063
13135         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13136         implemented.
13137         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13138         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13139         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13140         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13141         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13142         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13143         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13144         (__gthread_mutex_destroy_function): Rename to
13145         __gthread_mutex_destroy.
13146         * gthr-dce.h (__gthread_mutex_destroy): Call
13147         pthread_mutex_destroy.
13148         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13149         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13150         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13152 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13154         * df-scan.c (df_ref_chain_change_bb): Simplify.
13155         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13156         set_block_for_insn if there's any change.
13157         * df.h ((df_insn_change_bb): Fix prototype.
13158         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13159         df_insn_change_bb, don't call set_block_for_insn.
13160         * emit-rtl.c (reorder_insns): Likewise.
13161         * haifa-sched.c (move_insn): Likewise.
13163 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13165         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13167 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13169         * tree-flow-inline.h (next_readonly_imm_use): Return
13170         NULL_USE_OPERAND_P after the end.
13172 2008-03-01  Richard Guenther  <rguenther@suse.de>
13174         PR tree-optimization/35411
13175         * tree-sra.c (sra_build_assignment): Split conversion to
13176         final type to a separate statement if we are not assigning
13177         to a register.
13179 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13181         * fold-const.c (fold_convertible_p): Correct the logic to follow
13182         that in fold_convert().
13184 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13186         PR c++/35315
13187         * tree-inline.c (build_duplicate_type): When we make a
13188         duplicate type, make it unique in the canonical types system.
13190 2008-02-29  Tom Tromey  <tromey@redhat.com>
13192         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13193         input_file_stack_history, input_file_stack_restored): Remove.
13194         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13195         * input.h (struct file_stack): Remove.
13196         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13197         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13198         Likewise.
13199         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13200         type.
13201         (diagnostic_last_module_changed): Add 'map' argument.
13202         (diagnostic_set_last_function): Likewise.
13203         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13204         line map, not input_file_stack.
13205         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13207 2008-02-29  Paul Brook  <paul@codesourcery.com>
13209         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13211 2008-02-29  Paul Brook  <paul@codesourcery.com>
13213         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13215 2008-02-29  Richard Guenther  <rguenther@suse.de>
13217         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13218         vn_lookup_or_add.
13219         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13220         value for comparing for a store match.
13221         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13222         (try_to_simplify): Do not do a full-blown reference lookup.
13224 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13226         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13227         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13229         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13231 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13233         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13234         strides against cache sizes.
13236 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13238         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13239         constant to fpul.
13241 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13243         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13244         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13245         is smaller than the original promoted value.
13246         (simplify_subreg): If OP is a SUBREG, try to preserve its
13247         SUBREG_PROMOTED_VAR_P information.
13249 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13251         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13252         (VN_INFO_GET): Allocate new objects on the obstack.
13253         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13254         for rpo_numbers_temp, for consistency.
13255         (free_scc_vn): Free the obstack.
13257 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13259         * doc/invoke.texi: Document -ftree-loop-distribution.
13260         * tree-loop-distribution.c: New.
13261         * tree-pass.h (pass_loop_distribution): New.
13262         * graphds.h (struct graph): Add htab_t indices.
13263         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13264         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13265         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13266         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13267         * tree-data-ref.c (debug_data_dependence_relations): New.
13268         (dump_data_dependence_relation): Also print data references.
13269         (free_data_ref): Extern.
13270         (same_access_functions): Moved...
13271         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13272         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13273         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13274         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13275         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13276         (stmts_from_loop): Skip LABEL_EXPR.
13277         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13278         New.
13279         (build_rdg): Initialize rdg->indices htab.
13280         (free_rdg, stores_from_loop, ref_base_address,
13281         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13282         have_similar_memory_accesses_1, ref_base_address_1,
13283         remove_similar_memory_refs): New.
13284         * tree-data-ref.h: Depend on tree-chrec.h.
13285         (debug_data_dependence_relations, free_data_ref): Declared.
13286         (same_access_functions): ... here.
13287         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13288         New.
13289         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13290         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13291         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13292         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13293         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13294         rdg_vertex_for_stmt): Declared.
13295         (struct rdg_edge): Add level.
13296         (RDGE_LEVEL): New.
13297         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13298         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13299         Declared.
13300         (rdg_has_similar_memory_accesses): New.
13301         * tree-vect-analyze.c: Remove unused static decls.
13302         * lambda.h (dependence_level): New.
13303         * common.opt (ftree-loop-distribution): New.
13304         * tree-flow.h (mark_virtual_ops_in_bb, 
13305         slpeel_tree_duplicate_loop_to_edge_cfg,
13306         rename_variables_in_loop): Declared.
13307         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13308         (OBJS-common): Add tree-loop-distribution.o.
13309         (tree-loop-distribution.o): New rule.
13310         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13311         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13312         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13314 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13316         PR target/33963
13317         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13318         other than structures and unions.
13320 2008-02-28  Richard Guenther  <rguenther@suse.de>
13322         Revert:
13323         2008-02-26  Richard Guenther  <rguenther@suse.de>
13325         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13326         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13327         (lookup_decl_from_uid): Declare.
13328         (remove_decl_from_map): Likewise.
13329         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13330         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13331         (decl_for_uid_map): New global hashtable mapping DECL_UID
13332         to the decl tree.
13333         (init_ttree): Allocate it.
13334         (insert_decl_to_uid_decl_map): New helper function.
13335         (make_node_stat): Insert new decls into the map.
13336         (copy_node_stat): Likewise.
13337         (lookup_decl_from_uid): New function.
13338         (remove_decl_from_map): Likewise.
13339         (print_decl_for_uid_map_statistics): New helper.
13340         (dump_tree_statistics): Call it.
13342         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13343         (referenced_var_iterator): Adjust.
13344         (FOR_EACH_REFERENCED_VAR): Adjust.
13345         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13346         (num_referenced_vars): Adjust.
13347         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13348         (first_referenced_var): Remove.
13349         (end_referenced_vars_p): Likewise.
13350         (next_referenced_var): Likewise.
13351         (referenced_var_iterator_set): New helper function.
13352         * tree-dfa.c (referenced_var_lookup): Adjust.
13353         (referenced_var_check_and_insert): Likewise.
13354         (remove_referenced_var): Likewise.
13355         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13356         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13357         (verify_call_clobbering): Likewise.
13358         (verify_memory_partitions): Likewise.
13359         (init_tree_ssa): Allocate bitmap instead of hashtable for
13360         referenced_vars.
13361         (delete_tree_ssa): Adjust.
13362         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13363         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13364         (compute_tag_properties): Likewise.
13365         (set_initial_properties): Likewise.
13366         (find_partition_for): Likewise.
13367         (update_reference_counts): Likewise.
13368         (dump_may_aliases_for): Likewise.
13369         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13370         (add_call_clobber_ops): Likewise.
13371         (add_call_read_ops): Likewise.
13372         (get_asm_expr_operands): Likewise.
13373         * tree-into-ssa.c (dump_decl_set): Likewise.
13374         (update_ssa): Likewise.
13375         * tree-sra.c (scan_function): Likewise.
13376         (decide_instantiations): Likewise.
13377         (scalarize_parms): Likewise.
13378         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13379         (dsa_named_for): Likewise.
13380         * tree-ssa-structalias.c (update_alias_info): Likewise.
13381         (merge_smts_into): Likewise.
13383 2008-02-27  David Daney  <ddaney@avtrex.com>
13385         PR target/34409
13386         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13387         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13388         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13389         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13390         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13392 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13394         PR target/25477
13395         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13396         (BUILT_IN_NEXTTOWARD): Remove.
13397         (BUILT_IN_NEXTTOWARDF): Ditto.
13398         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13399         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13401 2008-02-27  Tom Tromey  <tromey@redhat.com>
13403         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13404         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13406 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13408         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13409         update the respective field on newdecl.
13411 2008-02-27  Revital Eres  <eres@il.ibm.com>
13413         PR rtl-optimization/34999
13414         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13415         crossing edges that ends with a call insn.
13416         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13417         call insn and clear the EDGE_CROSSING flag of the crossing edge
13418         when fixing fallthru edges.
13420 2008-02-27  Richard Guenther  <rguenther@suse.de>
13422         PR middle-end/35390
13423         * fold-const.c (fold_unary): Return the correct argument,
13424         converted to the result type.
13426 2008-02-27  Richard Guenther  <rguenther@suse.de>
13428         PR middle-end/34971
13429         * expr.c (expand_expr_real_1): Assert on rotates that operate
13430         on partial modes.
13431         * fold-const.c (fold_binary): Use the types precision, not the
13432         bitsize of the mode if folding rotate expressions.  Build rotates
13433         only for full modes.
13435 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13437         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13438         and CPP_PRAGMA_EOL.
13439         * c-pragma.c (pragma_ns_name): New typedef.
13440         (registered_pp_pragmas): New variable.
13441         (c_pp_lookup_pragma): New function.
13442         (c_register_pragma_1): If flag_preprocess_only, do nothing
13443         for non-expanded pragmas, for expanded ones push pragma's
13444         namespace and name into registered_pp_pragmas vector.
13445         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13446         flag_preprocess_only, don't register GCC pch_preprocess
13447         pragma if flag_preprocess_only.
13448         * c-opts.c (c_common_init): Call init_pragma even if
13449         flag_preprocess_only.
13450         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13451         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13452         cpp_register_pragma if flag_preprocess_only.
13454 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13456         PR c/28800
13457         * c-parser.c (c_parser_translation_unit): Warn for empty
13458         translation unit, not empty source file.
13460 2008-02-26  Paul Brook  <paul@codesourcery.com>
13462         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13463         operand for Thumb-2.
13464         * config/arm/arm.h (reg_class): Add CORE_REGS.
13465         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13466         (BASE_REG_CLASS): Use CORE_REGS.
13467         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13468         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13469         (REGNO_OK_FOR_INDEX_P): Exclude SP.
13470         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
13471         ARM_REGNO_OK_FOR_INDEX_P.
13472         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13473         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13474         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13475         (ldm/stm peepholes): Ditto.
13476         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13477         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13478         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13479         * config/arm/constraints.md: Enable "k" constraint on ARM.
13481 2008-02-27  Ben Elliston  <bje@au.ibm.com>
13483         * config/rs6000/rs6000.c: Annotate cache line size field in all
13484         instances of struct processor_costs.
13486 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
13488         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13489         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13490         jump_bypass): New counters.
13491         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13492         * dce.c (gate_ud_dce): Same.
13493         (gate_fast_dce): Same.
13494         * dse.c (gate_dse1): New function.
13495         (gate_dse2): New function.
13496         (gate_dse): Merge results of new gate functions.
13497         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13498         (gate_handle_jump_bypass): Add dbg_cnt.
13499         (gate_handle_gcse): Add dbg_cnt.
13500         * ifcvt.c (gate_handle_if_conversion): Same.
13501         (gate_handle_if_after_combine): Same.
13502         (gate_handle_if_after_reload): Same.
13503         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13505 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
13507         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13508         line sizes.
13509         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13511 2008-02-26  Jason Merrill  <jason@redhat.com>
13513         PR c++/35315
13514         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
13515         alone if it's the naming decl for the type's main variant.
13517 2008-02-26  Tom Tromey  <tromey@redhat.com>
13519         * system.h (USE_MAPPED_LOCATION): Poison.
13520         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13521         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13522         (make_goto_expr_edges): Likewise.
13523         (remove_bb): Likewise.
13524         (execute_warn_function_return): Likewise.
13525         * basic-block.h (struct edge_def) <goto_locus>: Change type to
13526         location_t.
13527         * c-common.c (fname_decl): Remove old location code.
13528         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13529         location code.
13530         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13531         variant.
13532         (ASM_INPUT_SOURCE_LOCATION): Likewise.
13533         (gen_rtx_ASM_INPUT): Likewise.
13534         (gen_rtx_ASM_INPUT_loc): Likewise.
13535         (get_rtx_asm_OPERANDS): Remove.
13536         * cfglayout.c (insn_locators_alloc): Remove old location code.
13537         (set_curr_insn_source_location): Likewise.
13538         (curr_insn_locator): Likewise.
13539         * print-tree.c (print_node): Remove old location code.
13540         * tree-mudflap.c (mf_varname_tree): Remove old location code.
13541         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13542         * cfgexpand.c (expand_gimple_cond_expr): Don't use
13543         location_from_locus.
13544         (construct_exit_block): Remove old location code.
13545         * emit-rtl.c (force_next_line_note): Remove old location code.
13546         * profile.c (branch_prob): Remove old location code.
13547         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13548         LOC_LINE): Remove old-location variants.
13549         * langhooks.c (lhd_print_error_function): Remove old location
13550         code.
13551         * configure, config.in: Rebuilt.
13552         * configure.ac (--enable-mapped-location): Remove.
13553         * c-decl.c (c_init_decl_processing): Remove old location code.
13554         (finish_function): Likewise.
13555         * recog.c (decode_asm_operands): Remove old location code.
13556         * c-pch.c (c_common_read_pch): Remove old location code.
13557         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13558         variants.
13559         * gimple-low.c (lower_function_body): Remove old location code.
13560         * toplev.c (unknown_location): Remove.
13561         (push_srcloc): Remove old-location variant.
13562         (process_options): Remove old location code.
13563         (lang_dependent_init): Likewise.
13564         * input.h (UNKNOWN_LOCATION): Move definition.
13565         (location_t): Undeprecate.
13566         (source_locus): Remove.
13567         (location_from_locus): Remove.
13568         (struct location_s): Remove.
13569         Remove all old-location code.
13570         (input_line, input_filename): Remove.
13571         * final.c (final_scan_insn): Remove old location code.
13572         * diagnostic.c (diagnostic_build_prefix): Remove
13573         USE_MAPPED_LOCATION test.
13574         * tree.h (gimple_stmt) <locus>: Now a location_t.
13575         (tree_exp) <locus>: Likewise.
13576         (DECL_IS_BUILTIN): Remove old-location variant.
13577         (annotate_with_file_line, annotate_with_locus): Likewise.
13578         (expr_locus, set_expr_locus): Update.
13579         * tree.c (build1_stat): Remove old location code.
13580         (last_annotated_node): Remove.
13581         (annotate_with_file_line): Remove old-location variant.
13582         (annotate_with_locus): Likewise.
13583         (expr_location): Remove old location code.
13584         (set_expr_location): Likewise.
13585         (expr_has_location): Likewise.
13586         (expr_locus): Likewise.
13587         (set_expr_locus): Likewise.
13588         (expr_filename): Don't use location_from_locus.
13589         (expr_lineno): Likewise.
13590         * rtl-error.c (location_for_asm): Remove old location code.
13591         * c-lex.c (cb_line_change): Remove old location code.
13592         (fe_file_change): Likewise.
13593         (cb_def_pragma): Likewise.
13594         (c_lex_with_flags): Likewise.
13595         * gengtype.c (do_typedef): Don't special-case location types.
13596         (define_location_structures): Remove.
13597         (main): Don't call define_location_structures.
13598         * tree-pretty-print.c (dump_implicit_edges): Remove old location
13599         code.
13601 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13603         PR 26264
13604         * builtins.def (BUILT_IN_STDARG_START): Remove.
13605         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13606         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13607         * tree-inline.c (inline_forbidden_p_1): Likewise.
13608         
13609 2008-02-26  Richard Guenther  <rguenther@suse.de>
13611         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13612         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13613         (lookup_decl_from_uid): Declare.
13614         (remove_decl_from_map): Likewise.
13615         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13616         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13617         (decl_for_uid_map): New global hashtable mapping DECL_UID
13618         to the decl tree.
13619         (init_ttree): Allocate it.
13620         (insert_decl_to_uid_decl_map): New helper function.
13621         (make_node_stat): Insert new decls into the map.
13622         (copy_node_stat): Likewise.
13623         (lookup_decl_from_uid): New function.
13624         (remove_decl_from_map): Likewise.
13625         (print_decl_for_uid_map_statistics): New helper.
13626         (dump_tree_statistics): Call it.
13628         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13629         (referenced_var_iterator): Adjust.
13630         (FOR_EACH_REFERENCED_VAR): Adjust.
13631         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13632         (num_referenced_vars): Adjust.
13633         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13634         (first_referenced_var): Remove.
13635         (end_referenced_vars_p): Likewise.
13636         (next_referenced_var): Likewise.
13637         (referenced_var_iterator_set): New helper function.
13638         * tree-dfa.c (referenced_var_lookup): Adjust.
13639         (referenced_var_check_and_insert): Likewise.
13640         (remove_referenced_var): Likewise.
13641         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13642         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13643         (verify_call_clobbering): Likewise.
13644         (verify_memory_partitions): Likewise.
13645         (init_tree_ssa): Allocate bitmap instead of hashtable for
13646         referenced_vars.
13647         (delete_tree_ssa): Adjust.
13648         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13649         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13650         (compute_tag_properties): Likewise.
13651         (set_initial_properties): Likewise.
13652         (find_partition_for): Likewise.
13653         (update_reference_counts): Likewise.
13654         (dump_may_aliases_for): Likewise.
13655         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13656         (add_call_clobber_ops): Likewise.
13657         (add_call_read_ops): Likewise.
13658         (get_asm_expr_operands): Likewise.
13659         * tree-into-ssa.c (dump_decl_set): Likewise.
13660         (update_ssa): Likewise.
13661         * tree-sra.c (scan_function): Likewise.
13662         (decide_instantiations): Likewise.
13663         (scalarize_parms): Likewise.
13664         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13665         (dsa_named_for): Likewise.
13666         * tree-ssa-structalias.c (update_alias_info): Likewise.
13667         (merge_smts_into): Likewise.
13669 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13671         PR 34351
13672         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13673         * c-opts.c (c_common_handle_option): Wall enables
13674         Wvolatile-register-var.
13675         * common.opt: Move Wvolatile-register-var to...
13676         * c.opt: ...here.
13677         
13678 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13680         * common.opt (Wlarger-than=): New.
13681         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13682         -Wlarger-than=.
13683         * opts.c (common_handle_option): Handle -Wlarger-than=.
13684         * optc-gen.awk: Likewise.
13685         * opth-gen.awk: Likewise.
13686         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13687         * tree-optimize.c (tree_rest_of_compilation): Likewise.
13688         
13689 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13691         * c-common.c (match_case_to_enum_1): Add appropriate
13692         OPT_W* parameter to warning.
13693         (c_do_switch_warnings): Likewise.
13694         * c-typeck.c (warning_init): Add one more parameter following
13695         'warning' function.
13696         (push_init_level): Update call to warning_init.
13697         (pop_init_level): Likewise.
13698         (add_pending_init): Likewise.
13699         (output_init_element: Likewise.
13701 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13703         PR 28322
13704         * toplev.c (toplev_main): If there are warnings or error, print
13705         errors for ignored options.
13706         * opts.c (ignored_options): New static variable.
13707         (postpone_unknown_option_error): New.
13708         (print_ignored_options): New.
13709         (handle_option): Postpone errors for unknown -Wno-* options.
13710         * opts.h (print_ignored_options): Declare.
13711         
13712 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
13714         * config/mips/mips.md (loadgp_blockage, blockage): Change type
13715         to "ghost".
13717 2008-02-25  Richard Guenther  <rguenther@suse.de>
13719         Revert:
13720         2008-02-25  Richard Guenther  <rguenther@suse.de>
13722         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13723         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13724         (lookup_decl_from_uid): Declare.
13725         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13726         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13727         (decl_for_uid_map): New global hashtable mapping DECL_UID
13728         to the decl tree.
13729         (init_ttree): Allocate it.
13730         (insert_decl_to_uid_decl_map): New helper function.
13731         (make_node_stat): Insert new decls into the map.
13732         (copy_node_stat): Likewise.
13733         (lookup_decl_from_uid): New function.
13734         (print_decl_for_uid_map_statistics): New helper.
13735         (dump_tree_statistics): Call it.
13737         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13738         (referenced_var_iterator): Adjust.
13739         (FOR_EACH_REFERENCED_VAR): Adjust.
13740         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13741         (num_referenced_vars): Adjust.
13742         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13743         (first_referenced_var): Remove.
13744         (end_referenced_vars_p): Likewise.
13745         (next_referenced_var): Likewise.
13746         (referenced_var_iterator_set): New helper function.
13747         * tree-dfa.c (referenced_var_lookup): Adjust.
13748         (referenced_var_check_and_insert): Likewise.
13749         (remove_referenced_var): Likewise.
13750         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13751         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13752         (verify_call_clobbering): Likewise.
13753         (verify_memory_partitions): Likewise.
13754         (init_tree_ssa): Allocate bitmap instead of hashtable for
13755         referenced_vars.
13756         (delete_tree_ssa): Adjust.
13757         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13758         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13759         (compute_tag_properties): Likewise.
13760         (set_initial_properties): Likewise.
13761         (find_partition_for): Likewise.
13762         (update_reference_counts): Likewise.
13763         (dump_may_aliases_for): Likewise.
13764         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13765         (add_call_clobber_ops): Likewise.
13766         (add_call_read_ops): Likewise.
13767         (get_asm_expr_operands): Likewise.
13768         * tree-into-ssa.c (dump_decl_set): Likewise.
13769         (update_ssa): Likewise.
13770         * tree-sra.c (scan_function): Likewise.
13771         (decide_instantiations): Likewise.
13772         (scalarize_parms): Likewise.
13773         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13774         (dsa_named_for): Likewise.
13775         * tree-ssa-structalias.c (update_alias_info): Likewise.
13776         (merge_smts_into): Likewise.
13778 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13780         PR fortran/29549
13781         * doc/invoke.texi (-fcx-limited-range): Document new option.
13782         * toplev.c (process_options): Handle -fcx-fortran-rules.
13783         * common.opt: Add documentation for -fcx-fortran-rules.
13785 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13787         PR c/35162
13788         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13789         actual behaviour and C99.
13790         
13791 2008-02-26  Ben Elliston  <bje@au.ibm.com>
13793         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13794         (ASM_CPU_POWER6_SPEC): Likewise.
13795         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13796         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13797         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13799 2008-02-25  Richard Guenther  <rguenther@suse.de>
13801         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13802         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13803         (lookup_decl_from_uid): Declare.
13804         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13805         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13806         (decl_for_uid_map): New global hashtable mapping DECL_UID
13807         to the decl tree.
13808         (init_ttree): Allocate it.
13809         (insert_decl_to_uid_decl_map): New helper function.
13810         (make_node_stat): Insert new decls into the map.
13811         (copy_node_stat): Likewise.
13812         (lookup_decl_from_uid): New function.
13813         (print_decl_for_uid_map_statistics): New helper.
13814         (dump_tree_statistics): Call it.
13816         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13817         (referenced_var_iterator): Adjust.
13818         (FOR_EACH_REFERENCED_VAR): Adjust.
13819         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13820         (num_referenced_vars): Adjust.
13821         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13822         (first_referenced_var): Remove.
13823         (end_referenced_vars_p): Likewise.
13824         (next_referenced_var): Likewise.
13825         (referenced_var_iterator_set): New helper function.
13826         * tree-dfa.c (referenced_var_lookup): Adjust.
13827         (referenced_var_check_and_insert): Likewise.
13828         (remove_referenced_var): Likewise.
13829         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13830         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13831         (verify_call_clobbering): Likewise.
13832         (verify_memory_partitions): Likewise.
13833         (init_tree_ssa): Allocate bitmap instead of hashtable for
13834         referenced_vars.
13835         (delete_tree_ssa): Adjust.
13836         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13837         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13838         (compute_tag_properties): Likewise.
13839         (set_initial_properties): Likewise.
13840         (find_partition_for): Likewise.
13841         (update_reference_counts): Likewise.
13842         (dump_may_aliases_for): Likewise.
13843         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13844         (add_call_clobber_ops): Likewise.
13845         (add_call_read_ops): Likewise.
13846         (get_asm_expr_operands): Likewise.
13847         * tree-into-ssa.c (dump_decl_set): Likewise.
13848         (update_ssa): Likewise.
13849         * tree-sra.c (scan_function): Likewise.
13850         (decide_instantiations): Likewise.
13851         (scalarize_parms): Likewise.
13852         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13853         (dsa_named_for): Likewise.
13854         * tree-ssa-structalias.c (update_alias_info): Likewise.
13855         (merge_smts_into): Likewise.
13857 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
13859         PR target/35258
13860         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13861         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13862         * alias.h (nonoverlapping_memrefs_p): Likewise.
13864 2008-02-25  Jan Beulich  <jbeulich@novell.com>
13866         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13867         * config/i386/netware-libgcc.exp: Add __bswap?i2,
13868         __emultls_get_address, __emultls_register_common,
13869         __floatundi?f, and _Unwind_GetIPInfo.
13870         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13871         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13872         (gen_regparm_prefix): Likewise.
13873         (i386_nlm_encode_section_info): Sync with
13874         config/i386/winnt.c:i386_pe_encode_section_info().
13875         (i386_nlm_maybe_mangle_decl_assembler_name): New.
13876         i386_nlm_mangle_decl_assembler_name): New.
13877         (netware_override_options): New.
13878         * config/i386/netware.h (netware_override_options): Declare.
13879         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13880         (i386_nlm_mangle_decl_assembler_name): Declare.
13881         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13883 2008-02-25  Ben Elliston  <bje@au.ibm.com>
13885         PR other/32948
13886         * c-decl.c (grokdeclarator): Remove unused local variables
13887         `typedef_type' and `type_as_written'.
13888         * bb-reorder.c
13889         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13890         unused local variable `has_hot_blocks'.
13891         (fix_crossing_conditional_branches): Remove unused local variable
13892         `prev_bb'.
13893         
13894 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
13896         PR middle-end/19984
13897         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13898         using DEF_C99_BUILTIN.
13899         (BUILT_IN_NANF): Ditto.
13900         (BUILT_IN_NANL): Ditto.
13902 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
13903             Revital Eres  <eres@il.ibm.com>
13905         * modulo-sched.c (calculate_must_precede_follow): Address TODO
13906         regarding the order of two dependent insns in the same row.
13908 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
13910         * stor-layout.c (layout_decl): Do not bump the alignment of a
13911         bit-field to more than byte alignment if it is packed.
13913 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
13915         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13916         e300c2 and e300c3.
13918 2008-02-24  Diego Novillo  <dnovillo@google.com>
13920         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13922         PR 33738
13923         * tree-vrp.c (vrp_evaluate_conditional): With
13924         -Wtype-limits, emit a warning when comparing against a
13925         constant outside the natural range of OP0's type.
13926         * c.opt (Wtype-limits): Move ...
13927         * common.opt (Wtype-limits): ... here.
13929 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
13931         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13932         * config/rs6000/e300c2c3.md: New file.
13933         * config/rs6000/rs6000.c (processor_costs): Add new costs for
13934         e300c2 and e300c3.
13935         (rs6000_override_options): Add e300c2 and e300c3 cases to
13936         processor_target_table. Do not allow usage of Altivec or Spe
13937         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13938         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13939         * config/rs6000/rs6000.h (processor_type): Add
13940         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13941         (ASM_CPU_SPEC): Add e300c2 and e300c3.
13942         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13943         and ppce300c3. Include e300c2c3.md.
13945 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
13947         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13948         instead of TARGET_STRICT_ALIGN.
13950 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
13952         * explow.c (memory_address): Assert that the generated address is
13953         valid.
13955 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13957         PR target/25477
13958         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13959         * config/darwin-ppc-ldouble-patch.def: New file.
13960         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13961         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13962         SUBTARGET_INIT_BUILTINS if defined.
13963         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13964         New functions.
13966 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13968         PR rtl-opt/33512
13969         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13970         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13972 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13974         PR pch/35027
13975         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13976         file" warning condtional on -Winvalid-PCH.
13978 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
13980         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13982 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
13984         PR target/22076
13985         PR target/34256 
13986         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13987         prevent reload from using MMX registers.
13988         (*mov<mode>_internal): Ditto.
13989         (*movv2sf_internal_rex64): Ditto.
13990         (*movv2sf_internal): Ditto.
13992 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13994         PR documentation/31569
13995         * doc/install.texi2html: Use makeinfo --no-number-sections.
13997 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
13999         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14000         ensure that we can address an entire entity > 8 bytes.  Don't
14001         generate reg+reg addressing for such data.
14003 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14005         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14006         strings when optimizing for size, unless the target cares about
14007         alignment.
14009 2008-02-22  Tom Tromey  <tromey@redhat.com>
14011         * regclass.c (current_pass): Remove declaration.
14013 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14015         * config/avr/libgcc.S (__RAMPZ__): Define.
14016         (__do_copy_data): Add for devices with 128KB code memory.
14018 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14020         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14021         Use spe_abi.
14022         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14024 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14026         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14027         GENNONACR_REGS.
14029 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14031         PR c/19999
14032         * c-typeck.c (build_binary_op): Warn about floating point
14033         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14035 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14037         PR target/34526
14038         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14039         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14040         add vrsave.
14041         (rs6000_override_options): Set altivec_abi as default, not override,
14042         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14043         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14044         is used; use new member spe_abi.
14045         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14046         spe_abi and altivec_abi.
14048 2008-02-22  Tomas Bily  <tbily@suse.cz>
14050         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14052 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14054         PR bootstrap/35273
14055         * config.build (build_file_translate): Set to `CMD //c' only if
14056         it works.
14057         * Makefile.in (build_file_translate): Improve comment.
14059 2008-02-21  Jan Hubicka  <jh@suse.cz>
14061         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14062         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14063         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14065 2008-02-21  Michael Matz  <matz@suse.de>
14067         PR target/35264
14068         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14070 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14072         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14073         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14074         as insn constraint.
14075         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14076         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14077         SSE_VEC_FLOAT_MODE_P as insn constraint.
14078         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14079         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14080         sse4a_movntdf using MODEF mode iterator.
14081         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14082         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14083         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14084         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14085         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14086         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14087         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14089 2008-02-21  Richard Guenther  <rguenther@suse.de>
14091         * tree.def (PAREN_EXPR): New tree code.
14092         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14093         and PAREN_EXPR.
14094         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14095         * expr.c (expand_expr_real_1): Likewise.
14096         * tree-inline.c (estimate_num_insns_1): Likewise.
14097         * tree-complex.c (expand_complex_move): Likewise.
14098         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14099         as plain x.
14101 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14103         PR target/35225
14104         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14106 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14108         PR target/35190
14109         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14111         * config/sh/sh.c (find_barrier): Don't go past
14112         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14114 2008-02-20  DJ Delorie  <dj@redhat.com>
14116         * config/h8300/h8300.md (insv): Force source operand to be a register.
14118         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14119         as a jump, not as a plain insn.
14120         
14121 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14123         * doc/invoke.texi (Warning Options): Add new option
14124         -Wframe-larger-than=.
14125         (-Wframe-larger-than): Document.
14127         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14128         Add declarations for new option variables.
14130         * final.c (final_start_function): Check the frame size
14131         before emission and issue a Wframe-larger-than warning.
14133         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14134         Add definitions for new option variables.
14135         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14137         * common.opt (Wframe-larger-than=): New option.
14139 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14141         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14142         (<sse>_div<mode>3): Ditto.
14143         (<sse>_vmdiv<mode>3): Ditto.
14144         (<sse>_vmsqrt<mode>2): Ditto.
14145         (*smax<mode>3): Ditto.
14146         (sse5_frcz<mode>2): Ditto.
14147         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14148         as insn constraint.
14150 2008-02-20  Richard Guenther  <rguenther@suse.de>
14152         PR middle-end/35265
14153         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14154         be happy with INTEGRAL_TYPE_P.
14156 2008-02-20  Richard Guenther  <rguenther@suse.de>
14158         * fold-const.c (split_tree): Associate floatig-point expressions
14159         if flag_associative_math is set.
14161 2008-02-20  Richard Guenther  <rguenther@suse.de>
14163         * tree.h (fold_real_zero_addition_p): Declare.
14164         * fold-const.c (fold_real_zero_addition_p): Export.
14165         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14166         floating-point operations with zero and one.
14168 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14170         * doc/install.texi: Correct references to CFLAGS, replacing them
14171         with BOOT_CFLAGS.  Document flags used during bootstrap for
14172         target libraries.
14173                                 
14174 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14176         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14177         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14178         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14179         insn constraint.
14180         (smin<mode>3): Ditto from similar patterns.
14181         (smax<mode>3): Ditto.
14182         (*ieee_smin<mode>3): Ditto.
14183         (*ieee_smax<mode>3): Ditto.
14184         * config/i386/sse.md (sse): New mode attribute.
14185         (mov<mode>): Macroize expander from movv4sf and movv2df using
14186         SSEMODEF2P mode iterator.
14187         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14188         SSE_VEC_FLOAT_MODE_P as insn constraint.
14189         (storent<mode>): Ditto.
14190         (storent<mode>): Macroize expander from storentsf and storentdf using
14191         MODEF mode iterator.
14192         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14193         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14194         (abs<mode>2): Ditto from similar patterns.
14195         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14196         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14197         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14198         (<sse>_vmsqrt<mode>2): Ditto.
14199         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14200         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14201         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14202         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14203         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14204         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14205         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14206         insn constraint.
14207         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14208         iterator and SSE_FLOAT_MODE_P as insn constraint.
14209         (<sse>_ucomi): Ditto from similar patterns.
14210         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14211         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14212         SSE_VEC_FLOAT_MODE_P as insn constraint.
14213         (vcond<mode>): Ditto from similar patterns.
14214         (and<mode>3, *and<mode>3): Ditto.
14215         (<sse>_nand<mode>3): Ditto.
14216         (ior<mode>3, *ior<mode>3): Ditto.
14217         (xor<mode>3, *xor<mode>3): Ditto.
14218         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14219         iterator and SSE_FLOAT_MODE_P as insn constraint.
14220         (*nand<mode>3): Ditto from similar patterns.
14221         (*ior<mode>3): Ditto.
14222         (*xor<mode>3): Ditto.
14224 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14226         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14227         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14228         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14230 2008-02-19  Jan Hubicka  <jh@suse.cz>
14232         * predict.c (tree_bb_level_predictions): Remove variable next
14233         mistakely introduced by previous commit.
14235 2008-02-19  Jan Hubicka  <jh@suse.cz>
14237         * predict.c (predict_paths_leading_to): Rewrite.
14238         (predict_paths_for_bb): New.
14239         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14241 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14243         PR bootstrap/35218
14244         * Makefile.in (build_file_translate): New.
14245         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14246         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14247         * configure.ac (build_file_translate): Substitute it.
14248         * configure: Regenerate.
14250 2008-02-19  Jan Hubicka  <jh@suse.cz>
14252         PR rtl-optimization/34408
14253         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14254         invalid sharing.
14256 2008-02-19  Jan Hubicka  <jh@suse.cz>
14258         PR middle-end/28779
14259         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14260         call_expr.
14262 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14264         PR Ada/35186
14265         * config/i386/i386-modes.def: Revert the last DI alignment
14266         change until Ada people can look into it.
14268 2008-02-19  Nick Clifton  <nickc@redhat.com>
14270         * opts.c (print_specific_help): Fix typo in --help text.
14272 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14274         PR target/35239
14275         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14276         32-bit inline asm without asm alternatives for host GCC < 3.0.
14278 2008-02-19  Richard Guenther  <rguenther@suse.de>
14280         PR tree-optimization/34989
14281         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14282         Allow propagation to INDIRECT_REF if we can simplify only.
14284 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14286         * c-common.c (warn_for_collisions_1): Use appropriate option when
14287         warning.
14289 2008-02-19  Nick Clifton  <nickc@redhat.com>
14291         PR other/31349
14292         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14293         (handle_options): Fix indentation.
14294         (print_filtered_help): If no language-specific options were
14295         displayed tell the user how to list all the options supported by
14296         the language's front-end.
14297         (print_specific_help): Fix indentation and remove duplicate line.
14298         (common_handle_option): Handle the -v option.
14299         For --help enable the display of undocumented options if the -v
14300         switch has been included on the command line.
14301         For --help= check for overlaps in the arguments between the option
14302         classes and the language names and issue a warning when they
14303         cannot be disambiguated.
14304         * c.opt (v): Pass on to the common option handler.
14306 2008-02-19  Revital Eres  <eres@il.ibm.com> 
14308         * modulo-sched.c (sms_schedule): Change dump message when
14309         create_ddg function fails.
14310         (try_scheduling_node_in_cycle): Rename row to cycle.
14311         (print_partial_schedule): Rename CYCLE to ROW.
14313 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14314             Zdenek Dvorak  <ook@ucw.cz>
14316         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14318 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14320         PR target/33555
14321         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14322         (*x86_movdicc_0_m1_se): Ditto.
14324 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14326         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14327         (CMPtype): Define as __gcc_CMPtype.
14328         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14329         (CMPtype): Define as __gcc_CMPtype.
14331 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14333         Support valgrind 3.3 for --enable-checking=valgrind.
14334         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14335         here.
14336         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14337         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14338         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14339         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14340         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14341         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14342         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14343         respectively.
14344         * ggc-zone.c: Similar.
14345         * ggc-page.c: Similar.
14347 2008-02-19  Paul Brook  <paul@codesourcery.com>
14349         PR target/35071
14350         * config/arm/ieee754-df.S: Fix do_it typo.
14351         * config/arm/ieee754-sf.S: Fix do_it typo.
14353 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14355         PR target/35189
14356         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14357         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14358         (OPTION_MASK_ISA_SSE_SET): Likewise.
14359         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14360         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14361         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14362         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14363         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14364         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14365         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14366         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14367         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14368         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14369         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14370         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14371         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14372         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14373         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14374         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14375         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14376         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14377         (OPTION_MASK_ISA_SSE4): Removed.
14378         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14379         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14380         (override_options): Don't turn on implied SSE/MMX bits in
14381         ix86_isa_flags.
14383 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14385         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14386         32bit host.
14388 2008-02-18  Joey Ye  <joey.ye@intel.com>
14390         PR middle-end/34921
14391         * tree-nested.c (insert_field_into_struct): Set type alignment
14392         to field alignment if the former is less than the latter.
14394 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14396         * BASE-VER: Set to 4.4.0.
14398 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14400         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14401         * doc/cfg.texi: Likewise.
14402         * doc/extend.texi: Likewise.
14403         * doc/gty.texi: Likewise.
14404         * doc/invoke.texi: Likewise.
14405         * doc/loop.texi: Likewise.
14406         * doc/md.texi: Likewise.
14407         * doc/passes.texi: Likewise.
14408         * doc/rtl.texi: Likewise.
14409         * doc/sourcebuild.texi: Likewise.
14410         * doc/tm.texi: Likewise.
14411         * doc/tree-ssa.texi: Likewise.
14413 2008-02-17  Richard Guenther  <rguenther@suse.de>
14415         PR middle-end/35227
14416         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14417         without default definition.
14419 2008-02-17  Richard Guenther  <rguenther@suse.de>
14421         PR tree-optimization/35231
14422         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14423         if A | B != 1.
14425 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14427         Revert:
14428         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
14429         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14430         libgcc_cmp_return mode.
14432 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14434         PR c/28368
14435         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14437 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14439         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14440         multilibs.
14442 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14444         * doc/c-tree.texi: Use `@.' where appropriate.
14445         * doc/extend.texi: Likewise.
14446         * doc/install.texi: Likewise.
14447         * doc/invoke.texi: Likewise.
14448         * doc/loop.texi: Likewise.
14449         * doc/makefile.texi: Likewise.
14450         * doc/md.texi: Likewise.
14451         * doc/passes.texi: Likewise.
14452         * doc/standards.texi: Likewise.
14453         * doc/tm.texi: Likewise.
14455 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14457         PR middle-end/35196
14458         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14459         in entry_bb.
14460         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14461         rather than in entry_bb.
14463 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14465         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14466         libgcc_cmp_return mode.
14468 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14470         PR middle-end/35130
14471         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14472         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14474 2008-02-15  Richard Guenther  <rguenther@suse.de>
14475             Zdenek Dvorak  <ook@ucw.cz>
14477         PR tree-optimization/35164
14478         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14479         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14480         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14481         Only propagate addresses which do not have abnormal SSA_NAMEs
14482         in their operands.
14484 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
14486         PR target/35088
14487         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14489 2008-02-15  Jan Hubicka  <jh@suse.cz>
14491         PR middle-end/35149
14492         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14494 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14496         PR middle-end/34621
14497         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14498         when calculating alignment_pad.
14500 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14502         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14503         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14504         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14505         and STACK_BOUNDARY define.
14507 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
14509         PR preprocessor/35061
14510         * c-pragma.c (handle_pragma_pop_macro): Check that
14511         pushed_macro_table has been allocated.
14513 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14515         PR middle-end/35136
14516         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14517         (force_gimple_operand): Likewise.
14518         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14519         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14520         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14521         (find_interesting_uses_address): Check addressability and alignment
14522         of the base expression only after substituting bases of IVs into it.
14524 2008-02-14  Michael Matz  <matz@suse.de>
14526         PR target/34930
14527         * function.c (instantiate_virtual_regs_in_insn): Reload address
14528         before falling back to reloading the whole operand.
14530 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14532         * config/s390/s390.c (s390_mainpool_start): Emit the pool
14533         before the first section switch note.
14535 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14537         * doc/bugreport.texi: Update copyright years.
14538         * doc/c-tree.texi: Likewise.
14539         * doc/cfg.texi: Likewise.
14540         * doc/cpp.texi: Likewise.
14541         * doc/cppinternals.texi: Likewise.
14542         * doc/fragments.texi: Likewise.
14543         * doc/frontends.texi: Likewise.
14544         * doc/gcc.texi: Likewise.
14545         * doc/gty.texi: Likewise.
14546         * doc/hostconfig.texi: Likewise.
14547         * doc/implement-c.texi: Likewise.
14548         * doc/libgcc.texi: Likewise.
14549         * doc/loop.texi: Likewise.
14550         * doc/makefile.texi: Likewise.
14551         * doc/options.texi: Likewise.
14552         * doc/passes.texi: Likewise.
14553         * doc/rtl.texi: Likewise.
14554         * doc/sourcebuild.texi: Likewise.
14555         * doc/standards.texi: Likewise.
14556         * doc/tree-ssa.texi: Likewise.
14557         * doc/trouble.texi: Likewise.
14559         * doc/extend.texi: Use @: or add comma where appropriate.
14560         * doc/invoke.texi: Likewise.
14561         * doc/tm.texi: Likewise.
14563 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
14565         PR target/34393
14566         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14567         to a reg.
14569 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
14571         * doc/md.texi (clz, ctz): Add reference.
14572         * doc/rtl.texi (clz, ctz): Likewise.
14574 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14576         PR other/35148
14577         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14578         srcdir.
14580 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
14582         * config/s390/s390.c (struct constant_pool): New field
14583         emit_pool_after added.
14584         (s390_mainpool_start): Set the emit_pool_after flag according
14585         to the section switch notes.
14586         (s390_mainpool_finish): Consider emit_pool_after when emitting
14587         the literal pool at the end of the function.
14588         (s390_chunkify_start): Force literal pool splits at section
14589         switch notes.
14591 2008-02-13  Michael Matz  <matz@suse.de>
14593         PR debug/35065
14594         * var-tracking.c (clobber_variable_part): Correctly traverse the
14595         list.
14597 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14599         PR 29673
14600         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14601         Add -fdump-ipa-inline.
14602         * tree-dump.c (dump_files): Remove tree-inlined dump.
14603         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14604         
14605 2008-02-12  Richard Guenther  <rguenther@suse.de>
14607         PR tree-optimization/35171
14608         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14609         default defs.
14611 2008-02-12  Richard Guenther  <rguenther@suse.de>
14613         PR middle-end/35163
14614         * fold-const.c (fold_widened_comparison): Use get_unwidened in
14615         value-preserving mode.  Disallow final truncation.
14617 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14619         PR middle-end/35136
14620         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14621         code from here to...
14622         (force_gimple_operand): ...here.
14624 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
14626         PR c++/35144
14627         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14628         non-compatible pointers.
14629         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14630         different FIELD_DECLs, try harder by comparing field offsets, sizes
14631         and types.
14633         PR inline-asm/35160
14634         * function.c (match_asm_constraints_1): Don't replace the same input
14635         multiple times.
14637 2008-02-12  Anatoly Sokolov <aesok@post.ru>
14639         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14640         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14641         (expand_epilogue): Restore RAMPZ register.
14642         * config/avr/avr.md (RAMPZ_ADDR): New constant.
14644 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
14646         * config/i386/cygwin.asm: (__alloca): Correct calling
14647         convention and alignment.
14648         (__chkstk): Force 8 byte stack alignment.
14650 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
14651             Richard Guenther  <rguenther@suse.de>
14653         PR tree-optimization/33992
14654         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14655         the zero we compare against.
14657 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
14659         PR libfortran/35063
14660         * gthr-win32.h (__gthread_mutex_destroy_function): New function
14661         to CloseHandle after unlocking to prevent accumulation of handle
14662         count.
14664 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14666         PR middle_end/34150
14667         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14668         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
14669         and update LABEL_NUSES during and after reload.
14671 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
14673         PR middle-end/34627
14674         * combine.c (simplify_if_then_else): Make sure the comparison is
14675         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14677 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14679         PR bootstrap/35051
14680         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14681         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14682         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14683         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14684         * tree.h (get_type_static_bounds): Likewise.
14686 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14688         * doc/invoke.texi (Option Summary, C++ Dialect Options)
14689         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14690         Make -Wfoo language annotations match what the compiler outputs.
14692 2008-02-08  Sa Liu  <saliu@de.ibm.com>
14694         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
14695         intrinsics spu_convts, spu_convtu, spu_convtf.
14697 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
14699         * doc/extend.texi (Function Attributes) <noinline>: Mention
14700         asm ("") as method to keep calls.
14702 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14704         PR other/32754
14705         * doc/options.texi (Options): Replace references to opts.sh with
14706         optc-gen.awk.
14707         * opts-common.c: Likewise.
14708         * optc-gen.awk: Likewise.
14709         
14710 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
14712         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14714 2008-02-07  Richard Henderson  <rth@redhat.com>
14716         PR rtl-opt/33410
14717         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14718         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
14719         funny mode.
14721 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
14723         PR tree-optimization/35085
14724         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14725         for operand entry oe2 in addition to operand entry oe3 in order to
14726         expose more opportunities for vectorizer sum reduction.
14728 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14730         PR other/35107
14731         * Makefile.in (LIBS): Remove $(GMPLIBS).
14732         (cc1-dummy, cc1): Add $(GMPLIBS).
14734 2008-02-06  Jan Hubicka  <jh@suse.cz>
14736         PR target/23322
14737         * i386.md (moddf_integer): Do not produce partial memory stalls for
14738         targets where it hurts.
14740 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
14742         PR target/35083
14743         * optabs.c (expand_float): Do not check for decimal modes when
14744         expanding unsigned integer through signed conversion.
14746 2008-02-06  Nick Clifton  <nickc@redhat.com>
14748         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14749         inside the clobber with a match_operand and duplicated operand
14750         number in the constraint.
14751         (ineqbranchsi): Delete redundant comment.
14753 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
14755         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
14756         builtin_define ("__USE_INIT_FINI__").
14757         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14758         -msx multilibs.
14759         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14761 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14763         PR documentation/30330
14764         * doc/invoke.texi (C++ Dialect Options)
14765         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14766         For each warning option -Wfoo that allows -Wno-foo, ensure both
14767         -Wfoo and -Wno-foo are listed in the option index.  Fix index
14768         entry of -Wswitch-default, index -Wnormalized= including the
14769         `=', and -Wlarger-than-@var{len} including @var{len}.
14771 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
14773         * config/i386/i386.md (floatunssisf2): Use
14774         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14775         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14776         Macroize expander using MODEF mode iterator.
14778 2008-02-05  Diego Novillo  <dnovillo@google.com>
14780         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14782         PR 33738
14783         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14785 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14787         PR other/35070
14788         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14790 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
14792         PR target/35084
14793         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14794         to indicate if a message should be generated.
14795         (init_cumulative_args): Updated.
14796         (function_value_32): Likewise.
14798 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
14800         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14802 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
14804         PR target/35083
14805         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14806         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14808 2008-02-04  Diego Novillo  <dnovillo@google.com>
14810         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14812         PR 33738
14813         * tree-vrp.c (vrp_evaluate_conditional): With
14814         -Wtype-limits, emit a warning when comparing against a
14815         constant outside the natural range of OP0's type.
14817 2008-02-04  Richard Guenther  <rguenther@suse.de>
14819         PR middle-end/33631
14820         * expr.c (count_type_elements): Give for unions instead of
14821         guessing.
14823 2008-02-04  Richard Guenther  <rguenther@suse.de>
14825         PR middle-end/35043
14826         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14827         to TYPE_DOMAINs base type instead of using bitsizetype here.
14829 2008-02-03  Jason Merrill  <jason@redhat.com>
14831         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14833 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14835         PR other/29972
14836         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14837         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14838         (RS/6000 and PowerPC Options): Fix typos and markup.
14839         * doc/passes.texi (Tree-SSA passes): Likewise.
14841 2008-02-02  Michael Matz  <matz@suse.de>
14843         PR target/35045
14844         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14845         from record_last_reg_set_info.
14846         (record_last_reg_set_info): Take an RTX argument, iterate over all
14847         constituent hardregs.
14848         (record_last_set_info, record_opr_changes): Change calls to
14849         new signature or to record_last_reg_set_info_regno.
14851 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
14853         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14855 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
14857         PR rtl-optimization/34773
14858         * reg-notes.def (EQUAL): Mention significance of combination of
14859         REG_EQUAL and REG_RETVAL.
14860         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14861         insn that has a REG_RETVAL.
14863 2008-02-01  Roger Sayle  <roger@eyesopen.com>
14865         PR bootstrap/33781
14866         * configure.ac (--enable-fixed-point): Disable unless explicitly
14867         requested on IRIX.
14868         * configure: Regenerate.
14870 2008-02-01  Richard Guenther  <rguenther@suse.de>
14872         PR other/35042
14873         * invoke.texi (-finline-limit): Remove no longer true parts
14874         of the documentation.  Note that there is no default value.
14876 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
14877             Mark Mitchell  <mark@codesourcery.com>
14878             Ben Elliston  <bje@au.ibm.com>
14880         PR c/29326
14881         * doc/extend.texi (Other Builtins): Document.
14883 2008-01-31  Tom Browder <tom.browder@gmail.com>
14885         * doc/c-tree.texi (Types): Fix grammar.
14886         (Expression trees): Ditto.
14887         * doc/passes.texi (Tree-SSA passes): Ditto.
14888         
14889         * doc/configterms.texi (Configure Terms): Fix typo.
14890         * doc/cpp.texi (Common Predefined Macros): Ditto.
14891         * doc/md.texi (Machine Constraints): Ditto.
14892         
14893         * doc/makefile.texi (Makefile): Add comma.
14895 2008-01-31  Tom Browder  <tom.browder@gmail.com>
14896             Gerald Pfeifer  <gerald@pfeifer.com>
14897         
14898         * doc/sourcebuild.texi (Front End): Remove references to CVS
14899         and CVSROOT/modules.
14900         (Texinfo Manuals): Replace reference to CVS by one to SVN.
14901         (Back End): Remove reference to CVS.
14903 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
14905         PR target/34900
14906         * config/mips/mips.c (gen_load_const_gp): New function, taking a
14907         comment from...
14908         (mips16_gp_pseudo_reg): ...here.
14909         * config/mips/mips.md (load_const_gp): Replace with...
14910         (load_const_gp_<mode>): ...this :P-based insn.
14912 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14914         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14915         options. Minor fixes.
14916         (-std): Move reference to standards closer to where language
14917         standards are first mentioned.
14918         
14919 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
14921         PR rtl-optimization/34995
14922         * reload.c (alternative_allows_const_pool_ref): Take an rtx
14923         parameter and return a bool.  If the rtx parameter is nonnull,
14924         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14925         (find_reloads): Update call accordingly.  Pass the new operand
14926         if it needed no address reloads, otherwise pass null.
14928 2008-01-30  Richard Henderson  <rth@redhat.com>
14930         PR c/34993
14931         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14932         for unbounded arrays.
14934 2008-01-30  Silvius Rus  <rus@google.com>
14936         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14938 2008-01-30  Jan Hubicka  <jh@suse.cz>
14940         PR target/34982
14941         * i386.c (init_cumulative_args): Use real function declaration when
14942         calling locally.
14944 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14946         PR rtl-optimization/34998
14947         * global.c (build_insn_chain): Treat non-subreg_lowpart
14948         SUBREGs of pseudos as clobbering all the words covered by the
14949         SUBREG, not just all the bytes.
14950         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
14951         original df_ref rather than an extract parameter.
14952         (global_conflicts): Update call accordingly.
14954 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
14956         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14957         the overflow check to make it easier to read.
14958         (__fixtfdi): Change the type of the ll member in union
14959         long_double to UDItype_x.
14961 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
14963         PR middle-end/34969
14964         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14965         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14966         * tree-inline.c (fold_marked_statements): Call
14967         cgraph_update_edges_for_call_stmt if folding a call statement.
14968         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14969         debug_generic_stmt calls, reset it back afterwards.
14971         PR c/35017
14972         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14973         static decls.
14974         * c-typeck.c (build_external_ref): Don't pedwarn about
14975         static vars in current function's scope.
14977 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
14979         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14981 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
14983         PR c/35002
14984         * ipa-struct-reorg.c: Fix spelling.
14985         * params.def: Ditto.
14987 2008-01-29  Richard Guenther  <rguenther@suse.de>
14989         PR middle-end/35006
14990         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14991         field.
14992         * tree-inline.c (remap_type): Increment remapping_type_depth
14993         around remapping types.
14994         (copy_body_r): Only add referenced variables if they are referenced
14995         from code, not types.
14997 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
14999         PR c++/34055
15000         PR c++/34103
15001         PR c++/34219
15002         PR c++/34606
15003         PR c++/34753
15004         PR c++/34754
15005         PR c++/34755
15006         PR c++/34919
15007         PR c++/34961
15008         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15009         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15011 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15013         PR target/34412
15014         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
15015         pointer for tiny stack.
15017 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15019         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15021 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15023         * config/vx-common.h: Fix typo in comment.
15025 2008-01-28  Ian Lance Taylor  <iant@google.com>
15027         PR c++/34862
15028         PR c++/33407
15029         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15030         coalesce pointers if they have different DECL_NO_TBAA_P values.
15031         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15032         between variables with different DECL_NO_TBAA_P values.
15034 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15036         PR 31535
15037         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15038         are not legitimate small data references on SPE targets.
15040 2008-01-28  David Daney  <ddaney@avtrex.com>
15042         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15044 2008-01-28  David Daney  <ddaney@avtrex.com>
15046         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15048 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15050         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15051         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15052         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15053         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15054         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15055         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15056         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15057         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15059 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15061         * basic-block.h (condjump_equiv_p): Fix comment.
15063 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15065         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15066         print_generic_stmt_indented): Fix comment.
15068 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15070         * configure.ac (__stack_chk_fail): Add detecion for availability
15071         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15072         * configure: Regenerate.
15074 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15076         PR middle-end/34688
15077         * final.c (output_addr_const): Handle TRUNCATE.
15079 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15081         PR target/34711
15082         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15083         (zero_cost, infinite_cost): New constants.
15084         (struct cost_pair): Change type of cost to comp_cost.
15085         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15086         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15087         New functions.
15088         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15089         split_address_cost, ptr_difference_cost, difference_cost,
15090         get_computation_cost_at, get_computation_cost,
15091         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15092         determine_use_iv_cost_condition, determine_use_iv_costs,
15093         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15094         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15095         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15096         Change type of cost to comp_cost.
15097         (determine_iv_cost): Increase cost of non-original ivs, instead
15098         of decreasing the cost of original ones.
15099         (get_address_cost): Indicate the complexity of the addressing mode 
15100         in comp_cost.
15101         (try_add_cand_for): Prefer using ivs not specific to some object.
15102         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15104 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15105             Janis Johnson  <janis187@us.ibm.com>
15107         PR target/34814
15108         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15109         (TARGET_INSTANTIATE_DECLS): Likewise.
15110         * target.h (expand_to_rtl_hook): New target hook.
15111         (instantiate_decls): Likewise.
15112         * function.c (instantiate_decl): Make non-static.  Rename to...
15113         (instantiate_decl_rtl): ... this.
15114         (instantiate_expr): Use instantiate_decl_rtl.
15115         (instantiate_decls_1): Likewise.
15116         (instantiate_decls): Likewise.
15117         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15118         * function.h (instantiate_decl_rtl): Add prototype.
15119         * cfgexpand.c (target.h): New include.
15120         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15121         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15122         (TARGET_INSTANTIATE_DECLS): Likewise.
15123         (TARGET_INITIALIZER): New target hooks added.
15124         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15125         New prototype.
15126         * config/rs6000/rs6000.c (tree-flow.h): New include.
15127         (machine_function): Add sdmode_stack_slot field.
15128         (rs6000_alloc_sdmode_stack_slot): New function.
15129         (rs6000_instantiate_decls): Likewise.
15130         (rs6000_secondary_memory_needed_rtx): Likewise.
15131         (rs6000_check_sdmode): Likewise.
15132         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15133         (TARGET_INSTANTIATE_DECLS): Likewise.
15134         (rs6000_hard_regno_mode_ok): Allow SDmode.
15135         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15136         (rs6000_emit_move): Handle SDmode.
15137         (function_arg_advance): Likewise.
15138         (function_arg): Likewise.
15139         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15140         SDmode var args for 32-bit compiles.
15141         (rs6000_secondary_reload_class): Handle SDmode.
15142         (rs6000_output_function_epilogue): Likewise.
15143         (rs6000_function_value): Simplify if statement.
15144         (rs6000_libcall_value): Likewise.
15145         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15146         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15147         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15148         (movsd_hardfloat): New define_insn.
15149         (movsd_softfloat): Likewise.
15150         (movsd_store): Likewise.
15151         (movsd_load): Likewise.
15152         (extendsddd2): Likewise.
15153         (extendsdtd2): Likewise.
15154         (truncddsd2): Likewise.
15155         (movdd_hardfloat64): Fixup comment.
15156         (UNSPEC_MOVSD_LOAD): New constant.
15157         (UNSPEC_MOVSD_STORE): Likewise.
15159 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15161         PR c++/34965
15162         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15163         TRUTH_XOR_EXPR.
15164         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15165         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15166         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15167         and TRUTH_XOR_EXPR.
15169 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15171         PR target/34794
15172         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15173         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15174         __LONGDOUBLE128 too.
15175         * config/rs6000/aix61.h: New file.
15177 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15179         PR rtl-optimization/34959
15180         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15181         popcount and parity rtxes the same mode as their operand.
15182         Truncate or extend the result to the return value's mode
15183         if necessary.
15185 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15187         PR target/34981
15188         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15189         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15190         to GOT_VERSION_REGNUM.
15191         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15192         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15193         * config/mips/mips.c (mips_emit_call_insn): New function.
15194         (mips_call_tls_get_addr): Call mips_expand_call directly.
15195         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15196         emit_call_insn.
15197         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15198         (mips_expand_call): Update the call to mips16_build_call_stub
15199         accordingly and a remove redundant condition.  Assert that MIPS16
15200         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15201         the call insn.
15202         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15203         TARGET_USE_GOT.
15204         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15205         (mips_avoid_hazard): Remove hazard_set handling.
15206         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15207         (UNSPEC_RESTORE_GP): ...this.
15208         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15209         (FAKE_CALL_REGNO): Rename to...
15210         (GOT_VERSION_REGNUM): ...this.
15211         (type): Add "ghost" value.  Add an associated insn reservation.
15212         (hazard_set): Remove.
15213         (exception_receiver): Rename to...
15214         (restore_gp): ...this and update the unspec identifier accordingly.
15215         (exception_receiver, nonlocal_got_receiver): New expanders.
15216         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15217         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15218         (set_got_version, update_got_version): New patterns.
15220 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15222         PR target/34970
15223         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15225 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15227         PR other/31955
15228         * doc/install.texi2html: Generate gcc-vers.texi.
15230 2008-01-25  DJ Delorie  <dj@redhat.com>
15232         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15234 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15236         * config/c4x: Remove directory.
15237         * config.gcc (crx-*, mt-*): Mark obsolete.
15238         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15239         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15240         sh-*-rtemscoff*): Remove cases.
15241         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15242         * real.c (encode_c4x_single, decode_c4x_single,
15243         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15244         c4x_extended_format): Remove.
15245         * real.h (c4x_single_format, c4x_extended_format): Remove.
15246         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15247         on C4x.
15248         (Pragmas): Remove comment about c4x pragmas.
15249         * doc/install.texi (c4x): Remove target-specific instructions.
15250         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15251         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15252         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15253         refer to C4x source files as examples.
15254         (C4X_FLOAT_FORMAT): Remove documentation.
15256 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15258         * config/bfin/bfin.c (override_options): Reorder tests so that
15259         flag_pic gets enabled for -msep-data.
15261 2008-01-25  Richard Guenther  <rguenther@suse.de>
15263         PR middle-end/32244
15264         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15265         to its bitfield precision if required.
15267 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15269         PR middle-end/33880
15270         * tree-nested.c (walk_omp_for): New function.
15271         (convert_nonlocal_reference, convert_local_reference): Call
15272         walk_omp_for on OMP_FOR.
15273         (convert_call_expr): Call walk_body on OMP_FOR's
15274         OMP_FOR_PRE_INIT_BODY.
15276 2008-01-25  Richard Guenther  <rguenther@suse.de>
15278         PR tree-optimization/34966
15279         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15280         default defs and PHI_NODEs we have to insert after the
15281         defining statement.
15283 2008-01-24  Nick Clifton  <nickc@redhat.com>
15285         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15286         Provide a default definition.
15287         (LIBGCC2_UNITS_PER_WORD): Likewise.
15289         * config/stormy16/stormy16.c: Include df.h for the prototype
15290         for df_regs_ever_live_p.
15291         (xstormy16_expand_builtin_va_start): Convert the stack offset
15292         into a component_ref and then use POINTER_PLUS_EXPR to add it
15293         to the incoming_virtual_args_rtx.
15294         (xstormy16_gimplify_va_arg_expr): Rename to
15295         xstormy16_gimplify_va_arg_expr.
15296         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15297         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15298         xstormy16_gimplify_va_arg_expr.
15299         Fix up some formatting issues.
15301         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15302         Move to predicates.md.
15303         (xs_hi_general_operand): Likewise.
15304         (xs_hi_nonmemory_operand): Likewise.
15305         * config/stormy16/predicates.md:
15306         (xstormy16_carry_plus_operand): New predicate.
15307         (xs_hi_general_operand): New predicate.
15308         (xs_hi_nonmemory_operand): New predicate.
15309         * config/stormy16/stormy16-protos.h:
15310         (xstormy16_carry_plus_operand): Delete prototype.
15311         (xs_hi_general_operand): Likewise.
15312         (xs_hi_nonmemory_operand): Likewise.
15314         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15315         modifiers as they are no longer needed and they can trigger
15316         reload spill failures.
15318         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15319         with a match_operand in order to help reload.
15321         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15322         constraint with 'e' for the 8th alternative as this version of
15323         the mov.w instruction only accepts the lower 8 registers.
15325 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15327         PR target/34856
15328         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15329         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15330         vector elements.
15332 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15334         PR middle-end/33333
15335         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15337 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15339         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15340         New functions.
15341         (remove_structure): Update allocations list before removing structure.
15342         
15343 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15345         * ipa-struct-reorg.c (is_safe_cond_expr, 
15346         create_new_stmts_for_cond_expr): Use integer_zerop function,
15347         that recognize not only zero-pointer, but zero-integer too.
15349 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15351         PR other/22232
15352         * fixproto: Escape "." in sed expression that strips leading "./".
15354 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15356         PR driver/34904
15357         * gcc.c (SWITCH_OK): Removed.
15358         (SWITCH_LIVE): Changed to bit.
15359         (SWITCH_FALSE): Likewise.
15360         (SWITCH_IGNORE): Likewise.
15361         (switchstr): Change live_cond to unsigned int.
15362         (process_command): Replace SWITCH_OK with 0.
15363         (do_self_spec): Likewise.
15364         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15365         (give_switch): Likewise.
15366         (used_arg): Likewise.
15367         (do_spec_1): Set the SWITCH_IGNORE bit.
15368         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15369         bits.  Set the SWITCH_LIVE bit.
15371 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15373         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15375 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15377         PR tree-optimization/34472
15378         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15379         parameter to a "bool *" and set *DATA to false if there is
15380         an unsafe access.  Do not delete the structure here.
15381         (check_cond_exprs): Delete it here instead.
15382         (check_cond_exprs, exclude_cold_structs): Do not increase
15383         I when removing a structure.
15385 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15387         PR target/34856
15388         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15389         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15391 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15393         PR middle-end/34934
15394         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15395         a fixed vector for stack.
15397 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15399         PR c++/25701
15400         * doc/gcc.texi (Software development): Add a direntry for g++.
15401         
15402 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15404         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15405         stale and straggling -fforce-addr comments above.
15407         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15408         define.
15409         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15410         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15412 2008-01-23  Michael Matz  <matz@suse.de>
15414         PR debug/34895
15415         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15416         gen_type_die.
15418 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15420         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15421         malloc result type.
15423 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15425         * config/avr/avr.c (avr_current_arch): New variable.
15426         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15427         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15428         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15429         (avr_override_options): Init 'avr_current_arch'. 
15430         (base_arch_s): Move from here...
15431         * config/avr/avr.h (base_arch_s): ... here. Add new members 
15432         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
15433         'mega' to 'have_jmp_call'.
15434         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
15435         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15436         macros.
15437         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
15438         architectures.
15439         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
15440         MULTILIB_MATCHES): (Ditto.).
15442 2008-01-23  Richard Guenther  <rguenther@suse.de>
15444         PR middle-end/31529
15445         * cgraphunit.c (cgraph_reset_node): Always mark the node
15446         not reachable if it is not queued already.
15448 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15450         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15451         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15452         (cputype_selected): New static variable.
15453         (bfin_handle_option): Set it if -mcpu is used.
15454         (override_option): Select default set of workarounds if no cpu type
15455         selected on the command line.
15456         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15458         From  Michael Frysinger  <michael.frysinger@analog.com>
15459         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15460         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15462         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15463         for bf547, bf523, bf524, and bf526.
15464         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
15465         bf526.
15466         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15467         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15468         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15469         __ADSPBF547__ and __ADSPBF54x__ for bf547.
15470         * doc/invoke.texi (Blackfin Options): Document that
15471         -mcpu now accept bf547, bf523, bf524, and bf526.
15473 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15475         PR rtl-optimization/34628
15476         * combine.c (try_combine): Stop and undo after the first combination
15477         if an autoincrement side-effect on the first insn has effectively
15478         been lost.
15480 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
15482         PR target/34529
15483         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15484         Offset addresses are not valid for Altivec or paired float modes.
15486 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
15488         PR c++/34607
15489         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15490         if DECL_INITIAL (decl) is error_mark_node.
15492         PR c++/34914
15493         * c-common.c (handle_vector_size_attribute): Only allow
15494         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
15495         the same way as pointer, array etc. types.
15496         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15498         PR c++/34917
15499         * tree.c (build_type_attribute_qual_variant): Call
15500         build_qualified_type if attributes are equal, but quals are not.
15502 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15504         PR 32102
15505         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15506         * flags.h (warn_strict_aliasing): Remove.
15507         (warn_strict_overflow): Remove.
15508         * opts.c (warn_strict_aliasing): Remove.
15509         (warn_strict_overflow): Remove.
15510         * c-opts.c (c_common_handle_option): -Wall only sets
15511         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15512         (c_common_post_options): Give default values to -Wstrict-aliasing
15513         and -Wstrict-overflow if they are uninitialized.
15514         * common.opt (Wstrict-aliasing): Specify Var and Init.
15515         (Wstrict-overflow): Likewise.
15517 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15519         PR rtl-optimization/26854
15520         PR rtl-optimization/34400
15521         PR rtl-optimization/34884
15522         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15523         DF_RD->gen.
15524         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15525         (df_rd_bb_info.expanded_lr_out): Deleted
15526         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15527         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
15528         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15529         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15530         Removed code to allocate, initialize or free expanded_lr_out.
15531         (df_rd_bb_local_compute_process_def): Restructured to make more
15532         understandable.
15533         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15534         sets if the sets are being trimmed.
15536 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15538         PR bootstrap/32287
15539         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15540         (as_vers): Likewise.
15541         * configure: Regenerated.
15543 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15545         PR middle-end/33092
15546         * tree-pass.h (pass_build_alias): New pass.
15547         * tree-ssa-alias.c (gate_build_alias): New.
15548         (pass_build_alias): New.
15549         * passes.c (init_optimization_passes): Add pass_build_alias after
15550         pass_create_structure_vars.
15552 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
15554         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15555         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15556         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15557         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15558         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15559         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15560         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15561         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15562         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15563         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15564         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15565         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15566         * config/s390/s390.md (FP_ALL): New mode iterator.
15567         (_d): New mode attribute.
15568         ("*signbit<mode>2>"): Changed mode of first operand.
15569         ("isinf<mode>2"): Changed mode of first operand.
15570         ("*TDC_insn"): Adaptation for DFP modes.
15572 2008-01-22  Ben Elliston  <bje@au.ibm.com>
15574         * tree.c (check_qualified_type): Improve function description.
15576 2008-01-21  Jason Merrill  <jason@redhat.com>
15578         PR c++/34196
15579         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15580         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15581         if it is set.
15583 2008-01-21  DJ Delorie  <dj@redhat.com>
15585         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15586         return zero.
15588 2008-01-21  Richard Guenther  <rguenther@suse.de>
15590         PR middle-end/34856
15591         * tree-cfg.c (verify_expr): Allow all invariant expressions
15592         instead of just constant class ones as reference argument.
15593         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15594         like any other constant.
15595         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15597 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15599         * regmove.c (fixup_match_1): Update call crossed frequencies.
15601 2008-01-21  Richard Guenther  <rguenther@suse.de>
15603         PR c/34885
15604         * tree-inline.c (setup_one_parameter): Deal with mismatched
15605         types using a VIEW_CONVERT_EXPR.
15607 2008-01-21  Alon Dayan  <alond@il.ibm.com>
15608             Olga Golovanevsky  <olga@il.ibm.com>
15609         
15610         PR tree-optimization/34701
15611         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15612         when the structure size is not a power of 2.
15614 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15616         * doc/install.texi: Add doc for --enable-checking=df.
15617         
15618 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15620         PR rtl-optimization/34808
15621         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15623 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15625         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15626         input.
15628 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
15630         PR rtl-optimization/26854
15631         PR rtl-optimization/34400
15632         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15633         DF_RD->gen.
15634         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15635         (df_rd_bb_info.expanded_lr_out): New.
15636         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15637         * loop_iv.c (iv_analysis_loop_init): Ditto.
15638         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15639         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15640         Added code to allocate, initialize or free expanded_lr_out.
15641         (df_rd_bb_local_compute_process_def): Restructured to make
15642         more understandable.
15643         (df_rd_confluence_n): Add code to do nothing with fake edges and
15644         code to no apply invalidate_by_call sets if the sets are being trimmed.
15645         (df_lr_local_finalize): Renamed to df_lr_finalize.
15646         (df_live_local_finalize): Renamed to df_live_finalize.
15648 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15650         PR target/34831
15651         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15652         deciding whether to use reciprocal instructions.
15654 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
15656         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15657         dwarf2out_note_section_used if cold_text_section is NULL.
15659 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
15661         PR gcov-profile/34610
15662         * tree-cfg.c (make_edges): Mark both outgoing edges from
15663         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15664         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15665         from OMP_FOR and OMP_CONTINUE outgoing edges.
15667         * tree-profile.c (tree_profiling): Return early if
15668         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
15669         at the end.
15670         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15671         from cfun to child_cfun.
15672         * function.h (struct function): Add after_tree_profile bit.
15674 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15676         * config/avr/avr.S (_exit): Disable interrupt.
15678 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
15679             Steven Bosscher  <stevenb.gcc@gmail.com>
15681         PR rtl-optimization/26854
15682         PR rtl-optimization/34400
15683         * df-problems.c (df_live_scratch): New scratch bitmap.
15684         (df_live_alloc): Allocate df_live_scratch when doing df_live.
15685         (df_live_reset): Clear the proper bitmaps.
15686         (df_live_bb_local_compute): Only process the artificial defs once
15687         since the order is not important.
15688         (df_live_init): Init the df_live sets only with the variables
15689         found live by df_lr.
15690         (df_live_transfer_function): Use the df_lr sets to prune the
15691         df_live sets as they are being computed.  
15692         (df_live_free): Free df_live_scratch.
15694 2008-01-18  Ian Lance Taylor  <iant@google.com>
15696         * common.opt: Add fmerge-debug-strings.
15697         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15698         flag_merge_debug_strings rather than flag_merge_constants.
15699         * doc/invoke.texi (Option Summary): Mention
15700         -fmerge-debug-strings.
15701         (Debugging Options): Document -fmerge-debug-strings.
15703 2008-01-18  Ian Lance Taylor  <iant@google.com>
15705         PR c++/33407
15706         * tree.h (DECL_IS_OPERATOR_NEW): Define.
15707         (struct tree_function_decl): Add new field operator_new_flag.
15708         * tree-inline.c (expand_call_inline): When inlining a call to
15709         operator new, force the return value to go into a variable, and
15710         set DECL_NO_TBAA_P on that variable.
15711         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15713 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
15715         PR debug/34484
15716         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15717         DWARF2_DEBUGGING_INFO.
15718         (dwarf2out_note_section_used): Ditto.  Add prototype.
15719         (have_multiple_function_sections, text_section_used,
15720         cold_text_section_used, *cold_text_sections): Move declarations
15721         before their uses.
15723 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
15725         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15726         field and add signal_ra.
15727         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15728         assignments to frame state pc.  Move end of stack check after
15729         MD_FALLBACK_FRAME_STATE_FOR.
15730         (uw_update_context_1): Use frame state signal_regs if set, instead
15731         of checking signal_frame flag.
15732         (uw_update_context): Use frame state signal_ra if set.
15733         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15734         * config/xtensa/linux-unwind.h: New file.
15736 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
15738         * modulo-sched.c (get_sched_window): Fix comment typo.
15740 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
15742         PR tree-optimization/34648
15743         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15745 2008-01-17  Anatoly Sokolov <aesok@post.ru>
15747         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15748         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15750 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
15752         PR rtl-optimization/34400
15753         * df-core.c (df_worklist_dataflow_overeager,
15754         df_worklist_dataflow_doublequeue): New functions.
15755         (df_worklist_dataflow): Two different worklist solvers.
15756         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15757         New param.
15759 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15761         PR testsuite/34821
15762         * doc/invoke.texi: Document the dependence on pthread for fopenmp
15763         and ftree-parallelize-loops.
15765 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
15767         PR rtl-optimization/34826
15768         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15770 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
15772         * global.c (find_reg): Mark the eh regs as used if necessary.
15773         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15774         * ra.h (struct allocno): no_eh_reg field added.  Changed
15775         no_stack_reg type to bitfield.
15777 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15779         * tree.c (substitute_in_expr): Add missing 'break'.
15781 2008-01-17  Richard Guenther  <rguenther@suse.de>
15783         PR tree-optimization/34825
15784         * tree-ssa-math-opts.c (is_division_by): Do not recognize
15785         x / x as division to handle.
15787 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15789         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15790         "-pthread" is specified.
15791         * pa-hpux11.h (LIB_SPEC): Likewise.
15793 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
15794             Peter Bergner  <bergner@vnet.ibm.com>
15796         PR rtl-optimization/33796
15797         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15799 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15801         PR libgfortran/34699
15802         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15803         static links.
15804         * pa-hpux10.h (LINK_SPEC): Likewise.
15805         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15807 2008-01-16  Richard Guenther  <rguenther@suse.de>
15809         PR middle-end/32628
15810         * fold-const.c (fold_convert_const_int_from_int): Do not
15811         set overflow if that occured only because of a sign extension
15812         change when converting from/to a sizetype with the same
15813         precision and signedness.
15815 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
15817         PR debug/34249
15818         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15819         location address to the correct place.  Update copyright year.
15821 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15823         * lambda-code.c (lambda_transform_legal_p): Handle the case of
15824         no dependences in the dependence_relations vector.
15826 2008-01-16  Jan Hubicka  <jh@suse.cz>
15828         PR rtl-optimization/31396
15829         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15830         * cfg.c (dump_reg_info): Print it.
15831         * regs.h (struct reg_info_t): add freq_calls_crossed.
15832         (REG_FREQ_CALLS_CROSSED): New macro.
15833         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15834         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15835         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15836         regmove_optimize): Update call crossed frequencies.
15837         * local-alloc.c (struct qty): Add freq_calls_crossed.
15838         (alloc_qty): Copute freq_calls_crossed.
15839         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15840         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15841         * ra.h (struct allocno): Add freq_calls_crossed.
15843 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15845         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15846         libgomp when compiling with ftree-parallelize-loops.
15847         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15849 2008-01-16  Richard Guenther  <rguenther@suse.de>
15851         PR tree-optimization/34769
15852         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15853         * tree.c (int_cst_value): Instead make this function more
15854         permissive in what it accepts as valid input.  Document this
15855         function always sign-extends the value.
15857 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
15858             Richard Guenther  <rguenther@suse.de>
15860         PR c/34668
15861         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15862         (gimple_fold_indirect_ref_rhs): ... this.
15863         (gimple_fold_indirect_ref): New function with foldings
15864         that preserve lvalueness.
15865         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15866         * tree-flow.h (gimple_fold_indirect_ref): Declare.
15867         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15868         to fold an INDIRECT_REF, fall back to the old use of
15869         fold_indirect_ref_1.
15871 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15873         * tree-data-ref.c (subscript_dependence_tester_1): Call 
15874         free_conflict_function.
15875         (compute_self_dependence): Same.
15877 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
15879         PR debug/34249
15880         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15881         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
15882         function global.
15883         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15884         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15885         for DWARF2_UNWIND_INFO targets.
15887 2008-01-16  Richard Guenther  <rguenther@suse.de>
15889         PR c/34768
15890         * c-typeck.c (common_pointer_type): Do not merge inconsistent
15891         type qualifiers for function types.
15893 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
15895         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15896         loop_iterator li from previous commit.
15898 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
15900         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15902 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
15904         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15905         (parallelize_loops): Don't parallelize irreducible components.
15907 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15909         PR c++/24924
15910         * c-opts (c_common_post_options): Do not enable CPP
15911         flag_pedantic_errors by default.
15912         
15913 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
15915         PR rtl-optimization/31944
15916         * cse.c (remove_pseudo_from_table): New function.
15917         (merge_equiv_classes): Use above function to remove pseudo-registers.
15918         (invalidate): Likewise.
15920 2008-01-13  Richard Guenther  <rguenther@suse.de>
15922         PR middle-end/34601
15923         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15924         instead of TYPE_MODE to deal with calls from expand_one_error_var.
15926 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
15928         * gcse.c (cprop_jump): Call validate_unshare_change instead of
15929         validate_change to unshare the source of the PC set.
15931 2008-01-12  Jan Hubicka  <jh@suse.cz>
15933         PR middle-end/32135
15934         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15935         references above array bounds.  This might trigger bounds checks for
15936         pointers to arrays.
15938 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
15940         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15941         new_replaceable_dependencies.
15943 2008-01-12  Doug Kwan  <dougkwan@google.com>
15945         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15946         instead of OPT_Wreturn_type in warning due to ignored return type
15947         qualifiers.
15948         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15949         options included in -Wextra.
15950         * c.opt: New option -Wignored_qualifiers.
15951         * doc/invoke.texi (Warning Options, -Wextra): Add new option
15952         -Wignore_qualifiers.
15953         (-Wignored-qualifiers): Document.
15954         (-Wreturn-type): Remove description of functionality now handled
15955         by -Wignored-qualifiers.
15957 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15959         PR ada/33788
15960         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15961         NOP_EXPR if it is between integral types with the same precision.
15963 2008-01-12  Jan Hubicka  <jh@suse.cz>
15965         PR other/28023
15966         * invoke.texi (max-inline-recursive-depth): Fix default value.
15968 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
15970         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15971         correct type.
15973 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
15974         
15975         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15976         
15977 2008-01-11  James E. Wilson  <wilson@specifix.com>
15979         PR target/26015
15980         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15982 2008-01-11  Anatoly Sokolov <aesok@post.ru>
15984         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
15985         save/restore frame pointer register and don't use 'call-prologues' 
15986         optimization in function with "OS_task" attribute.
15988 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
15990         PR middle-end/31309
15991         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15992         when copying to memory.
15994 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
15996         PR rtl-optimization/30905
15997         * cfgcleanup.c: Include dce.h
15998         (crossjumps_occured): New global variable.
15999         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16000         If something changed, set crossjumps_occured to true.
16001         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16002         Don't add/remove fake edges to exit here...
16003         (cleanup_cfg): ...but do it here, when crossjumping.
16004         Run a fast DCE when successful crossjumps occured in the latest
16005         iteration of try_optimize_cfg.
16007 2008-01-11  Richard Guenther  <rguenther@suse.de>
16009         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16010         (struct vn_unary_op_s): Likewise.
16011         (vn_reference_insert): Free old reference on hash collision.
16013 2008-01-10  Raksit Ashok  <raksit@google.com>
16015         PR rtl-optimization/27971
16016         * combine.c (find_split_point): Split PLUS expressions which are
16017         inside a MEM rtx, and whose first operand is complex.
16019 2008-01-10  DJ Delorie  <dj@redhat.com>
16021         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16022         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16023         (m32c_hard_regno_ok): Call the underlying function.
16025 2008-01-10  Richard Guenther  <rguenther@suse.de>
16027         PR middle-end/34683
16028         * tree-cfg.c (tree_merge_blocks): Do not go through the
16029         full-blown folding and stmt updating path if we just deal
16030         with virtual operands.
16031         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16032         test for abnormal SSA_NAMEs.
16034 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16036         PR middle-end/34641
16037         * reload.c (push_reload): Add assertions.  All constants from
16038         reg_equiv_constant should have been used for replacing the respective
16039         pseudo earlier.
16040         (find_reloads_address): Invoke find_reloads_address_part for
16041         constant taken from the reg_equiv_constant array.
16043 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16045         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16046         field (valnum) the first in the struct.  Replace bools with
16047         unit bit fields.
16049 2008-01-10  Richard Guenther  <rguenther@suse.de>
16051         PR tree-optimization/34651
16052         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16053         types and ordering for masking and converting.
16055 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16057         PR tree-optimization/34017
16058         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16059         also for PHI_NODE expressions.
16061 2008-01-09  Jan Hubicka  <jh@suse.cz>
16063         PR tree-optimization/34708
16064         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16065         based on number of case labels.
16066         (init_inline_once): Remove switch_cost.
16067         * tree-inline.h (eni_weights_d): Remove switch_cost.
16069 2008-01-09  Richard Guenther  <rguenther@suse.de>
16070         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16072         PR middle-end/30132
16073         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16074         temporary if an rvalue is ok or an lvalue is not required.
16076 2008-01-09  Richard Guenther  <rguenther@suse.de>
16078         PR middle-end/34458
16079         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16080         adjust return type.
16082 2008-01-09  Richard Guenther  <rguenther@suse.de>
16084         PR middle-end/34679
16085         * tree.c (host_integerp): Check for sizetype only if the
16086         type is an integer type.
16088 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16090         PR debug/26364
16091         * opts.c (decode_options): Disable inlining of functions called
16092         once if not in unit-at-a-time mode.
16094 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16096         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16098 2008-01-08  Richard Guenther  <rguenther@suse.de>
16100         PR middle-end/31863
16101         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16102         out early if the result will be unused.
16104 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16106         PR target/34709
16107         Revert:
16109         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16110         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16111         for TARGET_RECIP.       
16112         
16113 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16114         
16115         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16116         for vectorization tuned.
16117         
16118 2008-01-08  Richard Guenther  <rguenther@suse.de>
16120         PR tree-optimization/34683
16121         * tree-ssa-operands.c (operand_build_cmp): Export.
16122         * tree-ssa-operands.h (operand_build_cmp): Declare.
16123         * tree-vn.c (vuses_compare): Remove.
16124         (sort_vuses): Use operand_build_cmp.
16125         (sort_vuses_heap): Likewise.
16126         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16127         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16128         (vdefs_to_vec): Do not sort already sorted VDEFs.
16130 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16132         PR middle-end/34694
16133         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16135 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16137         PR target/34702
16138         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16139         limitations of reciprocal sequences on x86 targets.
16141 2008-01-08  Richard Guenther  <rguenther@suse.de>
16143         PR tree-optimization/34683
16144         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16146 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16148         PR target/34622
16149         * config/darwin.c (darwin_mergeable_string_section): Don't use
16150         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16152 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16154         PR target/34682
16155         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16156         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16157         predicates of op0 and op1 to register_operand.
16158         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16159         expander using X87MODEF mode iterator.  Change predicates of
16160         op0 and op1 to register_operand.
16161         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16162         corresponding patterns and macroize using MODEF macro.  Change
16163         predicates of op0 and op1 to register_operand and remove
16164         "m" constraint. Disparage "r" alternative with "!".
16165         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16166         macroize using X87MODEF macro.  Change predicates of op0 and op1
16167         to register_operand and remove "m" constraint.  Disparage "r"
16168         alternative with "!".
16169         (absneg splitter with memory operands): Remove.
16170         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16171         patterns and macroize using X87MODEF mode iterator.
16172         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16173         Change predicate of op1 to register_operand.
16174         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16175         for memory operands.
16177 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16179         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16181 2008-01-07  Richard Guenther  <rguenther@suse.de>
16183         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16184         fields.
16186 2008-01-07  Richard Guenther  <rguenther@suse.de>
16188         PR tree-optimization/34683
16189         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16190         VOPs of the needed size to save memory.  Use VEC_quick_push
16191         to save compile-time.
16192         (vdefs_to_vec): Likewise.
16194 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16196         * config/spu/spu.md (divdf3): Genetate inline code for double
16197         division.  The implementation doesn't handle INF or NAN, therefore it
16198         only applies when -ffinite-math-only is given.
16200 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16202         PR libstdc++/34680
16203         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16204         * doc/cpp.texi ([Common Predefined Macros]): Document.
16206 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16208         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16209         order to use commutative addition instead of subtraction.
16211 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16212             Mircea Namolaru  <namolaru@il.ibm.com>
16213             Vladimir Yanovsky  <yanov@il.ibm.com>
16214             Revital Eres  <eres@il.ibm.com>
16216         PR tree-optimization/34263
16217         * tree-outof-ssa.c (process_single_block_loop_latch,
16218         contains_tree_r): New functions.
16219         (analyze_edges_for_bb): Call process_single_block_loop_latch
16220         function to empty single-basic-block latch block if possible.
16222 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16224         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16225         for TARGET_RECIP.
16226         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16228 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16230         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16232 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16234         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16236 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16238         PR tree-optimization/34618
16239         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16240         flag from T.
16242 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16244         PR target/34673
16245         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16246         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16247         Update copyright year.
16249         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16250         Update copyright year.
16251         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16252         using NR fixup.
16254 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16256         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16257         edge does not point to current bb before changing need_assert.
16259 2008-01-04  Richard Guenther  <rguenther@suse.de>
16261         PR middle-end/34029
16262         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16263         for verifying purposes if they are is_gimple_min_invariant.
16265 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16267         PR tree-optimization/34448
16268         PR tree-optimization/34465
16269         * gimplify.c (gimplify_init_constructor): Add new parameter
16270         notify_temp_creation.  Use it.
16271         (gimplify_modify_expr_rhs): Take volatiles into account when
16272         optimizing constructors.
16273         Do not optimize constructors if gimplify_init_constructor will dump to
16274         memory.
16275         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16276         * gcc.c-torture/compile/pr34448.c: New.
16278 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16280         PR gcov-profile/34609
16281         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16282         return_slot if result is TREE_ADDRESSABLE.
16284 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16286         * config/mips/mips.md (sqrt_condition): Tweak comment.
16287         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16289 2008-01-03  Tom Tromey  <tromey@redhat.com>
16291         PR c/34457
16292         * c-common.c (c_type_hash): Handle VLAs.
16294 2008-01-03  Jan Hubicka  <jh@suse.cz>
16296         PR tree-optimization/31081
16297         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16298         0 when inlining and not inlining to first basic block.
16299         (remap_decl): When var is initialized to 0, don't set default_def.
16300         (expand_call_inline): Set entry_bb.
16301         * tree-inline.h (copy_body_data): Add entry_bb.
16303 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16305         PR c++/34619
16306         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16307         before returning.
16309         PR tree-optimization/29484
16310         * tree-inline.c (inline_forbidden_p_2): New function.
16311         (inline_forbidden_p): Disallow inlining if some static var
16312         has an address of a local LABEL_DECL in its initializer.
16313         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16314         vs. inlining.
16316 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16318         PR tree-optimization/34635
16319         * tree-data-ref.c (add_other_self_distances): Make sure that the
16320         evolution step is constant.
16322 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16324         PR middle-end/34608
16325         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16327 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16329         * tree-sra.c (scalarize_init): Insert the generate_element_init
16330         statements after the generate_element_zero statements.
16332 2008-01-02  Richard Guenther  <rguenther@suse.de>
16334         PR middle-end/34093
16335         PR middle-end/31976
16336         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16337         for very large number of operands instead of ICEing.
16339 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16341         PR target/34013
16342         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16343         while stack probing.
16345 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16347         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16348         in C++0x mode.
16350 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16352         PR libmudflap/26442
16353         * tree-mudflap.c (mx_register_decls): Guard warning by
16354         !DECL_ARTIFICIAL check.
16356 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16358         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16359         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16360         sse5_perm<mode>): Fix constraints.